Thanks for the excellent, detailed bug report.
A nesting level of 128 is unlikely, but can happen.
I've uploaded new versions of sched.c and spinlex.c to increase the limit to 256, which makes it even more unlikely.
The real fix would be to test for exceeding the limit, and take appropriate action (or bail out with an assert), but that requires bigger changes to the code which I'll hold off on for now.
Thanks again for the report and the detail provided.
Out-of-bounds Write in lex()
Description
Out-of-bounds Write in lex() at spinlex.c:1707
If there are 129
{,theyyinwill add 1then, the
fclose(yyin)at main:1162 will crash.fclose(yyin);If there are more
}than{, thescope_levelwill be negative.then, the variables before
scope_seqwill add 1.Should there be a limit?
version
045a0a5
System information
Ubuntu 20.04 focal, AMD EPYC 7742 64-Core @ 16x 2.25GHz
poc
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{command
Result
gdb
poc
{{}}}}}{{{{command
Result
gdb
The text was updated successfully, but these errors were encountered: