Closed kdsjZh closed 2 years ago
Hi, Thanks for the report. It boils down to this:
%%
input:;
YYEOF:
In other words, your file redefined YYEOF from being a token to being a nonterminal symbol. This should not happen. I'll see how to address this.
Thanks!
short summary
Hello, I was testing my fuzzer and found function
abitset_set
inlib/bitset/array.c:92
can be reached when bison parse a crafted input. As commented in the code indicate, it should not be reached. I'm not sure if it's a bug or just error handling, pls ignore if it's just an expected behavior.Step to reproduce
Environment
Ubuntu 22.04 (docker image) gcc 11.2.0 bison latest commit https://github.com/akimd/bison/commit/637636412037d1fc2079f81260b19de5d0dab199
Output / gdb log
Seems that function abitset_set should never be reached. I'm not sure if it's a bug or just error handling.
POC
poc1.zip
Credit
Han Zheng (NCNIPC of China, Hexhive)