Skip to content

Use PutBackN instead of PutBack in parser#364

Merged
casey merged 1 commit intomasterfrom
put-back
Oct 13, 2018
Merged

Use PutBackN instead of PutBack in parser#364
casey merged 1 commit intomasterfrom
put-back

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