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

Don't return spurious filenames #117

Merged
merged 2 commits into from
Aug 28, 2018
Merged

Don't return spurious filenames #117

merged 2 commits into from
Aug 28, 2018

Conversation

dimbleby
Copy link
Contributor

Be careful not to read a name from beyond the valid event length.

Eg I was hitting examples where event.len is zero, but the first byte in the buffer after the event happened to be non-zero. Then the old code would interpret that as the name.

Be careful not to read a name from beyond the valid event length
@hannobraun
Copy link
Owner

Thank you for the pull request, @dimbleby! I don't have time to take a close look right now, but I'll do so later this week.

@hannobraun
Copy link
Owner

hannobraun commented Aug 28, 2018

I pushed a regression test to prevent that bug from showing up again. Thank you again, @dimbleby, good catch!

@hannobraun hannobraun merged commit 3c59145 into hannobraun:master Aug 28, 2018
@dimbleby dimbleby deleted the spurious-names branch August 28, 2018 11:44
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