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

Do not read from unallocated memory #74

Merged
merged 2 commits into from
Jan 27, 2019
Merged

Do not read from unallocated memory #74

merged 2 commits into from
Jan 27, 2019

Conversation

nevun
Copy link
Contributor

@nevun nevun commented Jan 24, 2019

Basically, the width specifier in the format string caused printf to
read outside the buffer.

Fix by using strndup so we get a guaranteed null terminated buffer.

Fixes issue #67

Gabriel Kihlman added 2 commits January 24, 2019 12:35
Basically, the width specifier in the format string caused printf to
read outside the buffer.

Fix by using strndup so we get a guaranteed null terminated buffer.

Fixes issue PJK#67
@PJK
Copy link
Owner

PJK commented Jan 27, 2019

Thanks @nevun , this is awesome!

@PJK PJK merged commit b9c45ea into PJK:master Jan 27, 2019
@nevun nevun deleted the issue_67 branch January 28, 2019 10: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.

2 participants