Skip to content

Comments

tokenizer: Fix index-out-of-bounds on unfinished unicode escapes before EOF#9809

Merged
andrewrk merged 1 commit intoziglang:masterfrom
squeek502:tok-char-escape-eof
Sep 22, 2021
Merged

tokenizer: Fix index-out-of-bounds on unfinished unicode escapes before EOF#9809
andrewrk merged 1 commit intoziglang:masterfrom
squeek502:tok-char-escape-eof

Conversation

@squeek502
Copy link
Member

@squeek502 squeek502 commented Sep 21, 2021

Follow up to #9808, pretty much the same bug but with char literals (also found via fuzzing).

Turns out these were the only other crashes found by the fuzzer, they were just being repeated a ton so I thought there'd be a lot more fixes necessary. The tokenizer fuzzer is now running cleanly so far with these fixes.

@andrewrk andrewrk merged commit 3b09262 into ziglang:master Sep 22, 2021
@andrewrk
Copy link
Member

Thanks!

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.

2 participants