skvadrik / re2c

Lexer generator for C, C++, Go and Rust.
https://re2c.org
Other
1.06k stars 169 forks source link

SEGV #433

Closed dtp555-1212 closed 1 year ago

dtp555-1212 commented 1 year ago

re2c 3.0 crashes when trying to process the attached file crash.zip

skvadrik commented 1 year ago

It looks like a stackoverflow to me. A number of those have been fixed recently, and I can reproduce segfault on re2c-3.0 but not on the one built from git. Can you check with the most recent re2c built from git?

dtp555-1212 commented 1 year ago

Yes... Building from the repo has the same failure (actually I used the zip file from git) so I don't know if that is the 'latest' or just a bundled 3.0

skvadrik commented 1 year ago

This is how I tried to reproduce:

$ git clone https://github.com/skvadrik/re2c
$ cd re2c
$ autoreconf -W all -i
$ build/__build.sh
$ cd __build
$ wget https://github.com/skvadrik/re2c/files/10467779/crash.zip
$ unzip crash.zip
$ ./re2c c.re

There is no segfault, output is generated as expected.

dtp555-1212 commented 1 year ago

Thanks... that worked!