diff options
author | Evan Martin <martine@danga.com> | 2011-12-29 20:44:15 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-12-29 20:44:15 (GMT) |
commit | 47ba90bd530cfd269f40e61e5d41e87298812ddb (patch) | |
tree | 036c43c3d07eab02b49ca593eca4e54b5a9a8727 /src/lexer.cc | |
parent | eaf1ff190423b1cf41eb1b905192be07aeb6b22e (diff) | |
download | Ninja-47ba90bd530cfd269f40e61e5d41e87298812ddb.zip Ninja-47ba90bd530cfd269f40e61e5d41e87298812ddb.tar.gz Ninja-47ba90bd530cfd269f40e61e5d41e87298812ddb.tar.bz2 |
handle nuls more carefully in re2c rules
- '.' in re2c matches anything except \n, which means it matches \000.
Be more careful about which characters we match.
- The fallback rule [^] reads ahead another character, which means it
can read past the trailing \000. Add a separate rule to match it
specifically.
This was found by Valgrind.
Diffstat (limited to 'src/lexer.cc')
0 files changed, 0 insertions, 0 deletions