ielr: fix crash on memory management
commitcf6d8d0631d6d4c82a00843b1fe3d6b13e7ff436
authorAkim Demaille <akim.demaille@gmail.com>
Fri, 26 Jun 2020 05:33:51 +0000 (26 07:33 +0200)
committerAkim Demaille <akim.demaille@gmail.com>
Sat, 27 Jun 2020 06:16:07 +0000 (27 08:16 +0200)
treef1c7f3d235f85d1ee15bef997dfb7bc692672620
parent8f44164443e8cc04f7931cd5fdb39a0cc48b39a4
ielr: fix crash on memory management

Reported by Dwight Guth.
https://lists.gnu.org/r/bug-bison/2020-06/msg00037.html

* src/AnnotationList.c (AnnotationList__computePredecessorAnnotations):
Beware that SBITSET__FOR_EACH nests _two_ for-loops, so "break" does
not actually break out of it.
That was the only occurrence in the code.
* src/Sbitset.h (SBITSET__FOR_EACH): Warn passersby.
NEWS
THANKS
src/AnnotationList.c
src/Sbitset.h