Skip to content

Fix zip_file::remove_comment() length checks#16

Open
cleeus wants to merge 2 commits intotfussell:masterfrom
cleeus:fix-remove_comment-length-checks
Open

Fix zip_file::remove_comment() length checks#16
cleeus wants to merge 2 commits intotfussell:masterfrom
cleeus:fix-remove_comment-length-checks

Conversation

@cleeus
Copy link

@cleeus cleeus commented Oct 21, 2020

The zip_file::remove_comment() member function is missing a few important length checks that can lead to crashes with invalid zip file input. As far as I can see, this is a potential security issue.

zip_file::remove_comment() does some manual parsing on the dictionary
and seems to miss some range check in case of broken input
@yhyu13
Copy link

yhyu13 commented Mar 9, 2021

@cleeus thanks, this is helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants