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 crash when displaying more than 64 KB of raw data #165

Merged
merged 1 commit into from
Jun 4, 2015

Conversation

0xced
Copy link
Collaborator

@0xced 0xced commented Jun 4, 2015

Using the sprintf function with a %04x format does not limit string to 4 characters. Displaying more than 64 KB of raw data would lead to a buffer overflow and a crash.

Using the sprintf function with a %04x format does not limit string to 4 characters. Displaying more than 64 KB of raw data would lead to a buffer overflow and a crash.
fpillet added a commit that referenced this pull request Jun 4, 2015
Fix crash when displaying more than 64 KB of raw data
@fpillet fpillet merged commit e293bef into fpillet:master Jun 4, 2015
@fpillet
Copy link
Owner

fpillet commented Jun 4, 2015

Thanks again. Good one with %0*, I learned something today!

@0xced 0xced deleted the fix-buffer-overflow branch June 4, 2015 13:17
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