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 overrun in printable_binary. #34

Conversation

guillerodriguez
Copy link
Contributor

"Negative" values were being sign-extended to int, and would take more
than 4 bytes when printed (e.g. 255 was printed as \xffffffff instead of
\xff). This was causing a buffer overrun. Fixed by casting to unsigned
char.

This fixes #33, and perhaps #29.

"Negative" values were being sign-extended to int, and would take more
than 4 bytes when printed (e.g. 255 was printed as \xffffffff instead of
\xff). This was causing a buffer overrun. Fixed by casting to unsigned
char.
@pagekite pagekite merged commit 402b8c9 into pagekite:master Feb 21, 2017
@guillerodriguez guillerodriguez deleted the guillerodriguez-fix-printable_binary-buffer-overrun branch February 27, 2017 08:50
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 overrun in printable_binnary
2 participants