Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZIP reader: fixed 2 bugs: unlimited loop and a crash, triggered by invalid files #1153

Merged
merged 2 commits into from
Mar 3, 2019

Conversation

antekone
Copy link
Contributor

@antekone antekone commented Mar 1, 2019

There are 2 commits on this branch: one fixes a crash in PPMd8 decompressor in ZIP reader, the second one fixes an unlimited loop in BZIP2 decompressor, also in the ZIP reader.

Files that were triggering those bugs were found during fuzzing.

For both cases I've added relevant tests with files that were triggering the bugs.

The crash happened on invalid files which declare more data than
actually are stored in the file.

This commit contains a fix that prevents PPMd8 decompressor from
crashing, as well as relevant tests containing files that were
triggering the crash.
The hang was triggered on invalid zipx files that declare more data than
there actually is in the file.

This case was found by fuzzing the zipx file.
@mmatuska mmatuska merged commit ffc9918 into libarchive:master Mar 3, 2019
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.

None yet

2 participants