Browse files

Fixed out of bounds read in lexer.

The error was caused by assuming that a sequence of zeroes (used for
padding in YYFILL) cannot form a valid lexeme suffix. This is not the
case with strings, as they may contain arbitrary characters. The fix
is to manually loop over string characters in lexer, stopping at each
zero to check if it's the end of input.

Found by american fuzzy lop (thanks to Henri Salo).
  • Loading branch information...
skvadrik committed Oct 29, 2018
1 parent ae21046 commit 44737d3792dcdcf0fb2279e76f3ce7a1add21ea5
Oops, something went wrong.

0 comments on commit 44737d3

Please sign in to comment.