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

Use PutBackN instead of PutBack in parser #364

Merged
merged 1 commit into from
Oct 13, 2018
Merged

Use PutBackN instead of PutBack in parser #364

merged 1 commit into from
Oct 13, 2018

Conversation

casey
Copy link
Owner

@casey casey commented Oct 13, 2018

The parser could be confused into dropping tokens by calling PutBack::put_back twice in a row. This commit switches to PutBackN, which doesn't have that behavior. This fixes #363.

Thanks @RadicalZephyr for adding the fuzz testing that found this!

The parser could be confused into dropping tokens by calling
`PutBack::put_back` twice in a row. This commit switches to `PutBackN`,
which doesn't have that behavior.
@casey casey merged commit bcfd47d into master Oct 13, 2018
@casey casey deleted the put-back branch October 13, 2018 09:39
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.

Unsafe unwrap in parser
1 participant