]> git.saurik.com Git - bison.git/commit - src/lalr.c
Avoid undefined behavior that accessed just before the start of an array.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 18 Jan 2006 23:48:29 +0000 (23:48 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 18 Jan 2006 23:48:29 +0000 (23:48 +0000)
commite9ad4aeca53f9e96dd72821c96d25e3ee2a3a2e8
tree333033b74ef906572099e5720b3f52b2ee04e971
parent02d7cce6e21c97f4245f333eaab7e76b38fe373a
Avoid undefined behavior that accessed just before the start of an array.
* src/reader.c (packgram): Prepend a new sentinel before ritem.
* src/lalr.c (build_relations): Rely on new sentinel.
* src/gram.c (gram_free): Adjust to new sentinel.
ChangeLog
src/gram.c
src/lalr.c
src/reader.c