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 EOF handling in ne_buffer_read (used by nestegg_sniff). #59

Merged
merged 1 commit into from
Jun 14, 2018

Conversation

kinetiknz
Copy link
Collaborator

Previously, any short read would be treated as EOF. Now, EOF is only
returned if the entire buffer has been consumed, and any short read is
signalled as an error. This matches the expected behaviour of the
nestegg_io interface.

This code is duplicated in test/fuzz.cc, so also fixed there.

This addresses an OOM found by the oss-fuzz project (issue 8875).

Previously, any short read would be treated as EOF.  Now, EOF is only
returned if the entire buffer has been consumed, and any short read is
signalled as an error.  This matches the expected behaviour of the
nestegg_io interface.

This code is duplicated in test/fuzz.cc, so also fixed there.

This addresses an OOM found by the oss-fuzz project (issue 8875).
@kinetiknz
Copy link
Collaborator Author

r? @SingingTree please

@kinetiknz kinetiknz merged commit 7c16939 into master Jun 14, 2018
@kinetiknz kinetiknz deleted the issue8875 branch June 14, 2018 20:56
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