lexer: Treat null characters in input as spaces.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 3 Apr 2016 00:53:52 +0000 (17:53 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 3 Apr 2016 00:53:52 +0000 (17:53 -0700)
commitfc6fccc92a47c4bb4e03bd39600234da7cf7ba55
tree1bceabf653a50bfa85e235815c1405aec94fbddd
parent7a0693849ac589de8fc975a6ebb4602d3ef58732
lexer: Treat null characters in input as spaces.

In some circumstances nulls could confuse the lexer and cause crashes.

Thanks to John Darrington for reporting the problem.

Bug #47602.
src/language/lexer/lexer.c
tests/language/lexer/lexer.at