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

Prevent buffer overflows in decompression #14

Merged

Conversation

grignaak
Copy link
Contributor

shoco_decompress prevents buffer overflows by returning SIZE_MAX when
the input is smaller than expected.

This commit fixes #12

shoco_decompress prevents buffer overflows by returning SIZE_MAX when
the input is smaller than expected.
@Ed-von-Schleck
Copy link
Owner

That look sensible. However, this should be documented – the proper place is in the gh-pages branch, in sections/api.md. There's a 'render.py' to render the docs. It's a home-grown solution and not very pretty :(

I'll merge it anyway, just say if you plan to document it. If not, I will do it (eventually). Also, if you do it, add yourself to authors.

Ed-von-Schleck added a commit that referenced this pull request Mar 16, 2015
Prevent buffer overflows in decompression
@Ed-von-Schleck Ed-von-Schleck merged commit 7bf707f into Ed-von-Schleck:master Mar 16, 2015
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.

Buffer overflows on malformed input
2 participants