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

Fix Buffer Overflow in Legacy (v0.3) Raw Literals Decompression #1722

Merged
merged 2 commits into from
Aug 15, 2019

Conversation

felixhandte
Copy link
Contributor

@felixhandte felixhandte commented Aug 15, 2019

Credit to OSS-Fuzz

The DCtx has a 128KB literals buffer. When a block's literals are raw-encoded, we were not checking the literal section length before copying then into that buffer. This could result in a buffer overflow.

@felixhandte felixhandte merged commit c9072ee into facebook:dev Aug 15, 2019
@felixhandte felixhandte mentioned this pull request Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants