-
Notifications
You must be signed in to change notification settings - Fork 510
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
Unsafe unwrap in parser #363
Comments
Awesome, nice find! The parser uses an itertools adapter that allows putting items back into an iterator. However, if you put back two items in a row, it overwrites the previous item. The bug was caused by removing and putting back an |
I'm surprised that nobody ever hit this organically! |
@RadicalZephyr added fuzz testing using `cargo-fuzz` to `just`, which found a [bug in the parser](github.com/casey/just/issues/363). It wasn't even a particularly weird edge case, and was definitely something that a normal user could have encountered. Thanks `cargo-fuzz`!
Found with the new fuzz testing setup!
This input
export\x09AA
causes the Lexer to fail.The text was updated successfully, but these errors were encountered: