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

pkg/rec: fix parser crash #97

Merged
merged 3 commits into from
Oct 2, 2020
Merged

Conversation

ksurent
Copy link
Contributor

@ksurent ksurent commented Oct 1, 2020

when finding the first non-dot character, validate cursor value before indexing
into the string

same when looking for the last non-dot character

see rec_test.go for a mimimal crash repro

found by https://github.com/dvyukov/go-fuzz

when finding the first non-dot character, validate cursor value before indexing
into the string

same when looking for the last non-dot character

see rec_test.go for a mimimal crash repro

found by https://github.com/dvyukov/go-fuzz
@avereha
Copy link
Contributor

avereha commented Oct 2, 2020

Nice find, @ksurent !

@grzkv grzkv self-requested a review October 2, 2020 09:06
Copy link
Member

@grzkv grzkv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ksurent Good one!

@grzkv grzkv merged commit 1867a9c into bookingcom:master Oct 2, 2020
@dgryski
Copy link

dgryski commented Oct 2, 2020

Please add an entry to go-fuzz's trophy case :D

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

4 participants