summaryrefslogtreecommitdiffstats
path: root/src/lexer.in.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-12-29 20:44:15 (GMT)
committerEvan Martin <martine@danga.com>2011-12-29 20:44:15 (GMT)
commit47ba90bd530cfd269f40e61e5d41e87298812ddb (patch)
tree036c43c3d07eab02b49ca593eca4e54b5a9a8727 /src/lexer.in.cc
parenteaf1ff190423b1cf41eb1b905192be07aeb6b22e (diff)
downloadNinja-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.in.cc')
0 files changed, 0 insertions, 0 deletions