usethesource / rascal

The implementation of the Rascal meta-programming language (including interpreter, type checker, parser generator, compiler and JVM based run-time system)
http://www.rascal-mpl.org
Other
407 stars 77 forks source link

Fix for crash bug: allocating and enlarging bitset should use the same size #2061

Closed PieterOlivier closed 1 month ago

PieterOlivier commented 1 month ago

The parser sometimes crashed after error recovery because a discrepancy between allocating and enlarging the propagatedPrefixes bitset in AbstractStackNode.updateOvertakenNullableNode. Both should use possibleMaxSize.