]> granicus.if.org Git - re2c/commit
Update tags after reading character in TDFAs without lookahead.
authorUlya Trofimovich <skvadrik@gmail.com>
Mon, 23 Jan 2017 21:02:24 +0000 (21:02 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Mon, 23 Jan 2017 21:02:24 +0000 (21:02 +0000)
commit65780565a0cc80dc7d103f0e7f5dcf084d2bfdbb
tree7e1ab9f37f48d1143bc3cfd6be84afe6838d9b77
parent5446f3afd632f0e4401c53637fc899d92e8265e8
Update tags after reading character in TDFAs without lookahead.

Fixed forgotten special case when tags and cursor increment
are hoisted out of conditional branches.

Found by slyfox's fuzzer. :)
re2c/src/codegen/go_emit.cc
re2c/test/tags/skip_before_tags.i--tags--no-lookahead.c [new file with mode: 0644]
re2c/test/tags/skip_before_tags.i--tags--no-lookahead.re [new file with mode: 0644]