check for memory exhaustion

hash_initialize returns NULL when out of memory.  Check for it, and
die cleanly instead of crashing.

Reported by 江 祖铭 (Zu-Ming Jiang).
https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00015.html

* src/muscle-tab.c, src/state.c, src/symtab.c, src/uniqstr.c:
Check the value returned by hash_initialize.
This commit is contained in:
Akim Demaille
2019-08-31 18:07:26 -05:00
parent 53526f31df
commit f788ba2ab6
5 changed files with 11 additions and 0 deletions

1
THANKS
View File

@@ -199,6 +199,7 @@ Wwp subscript@free.fr
xolodho xolodho@gmail.com
Zack Weinberg zack@codesourcery.com
長田偉伸 cbh34680@iret.co.jp
江 祖铭 jjzuming@outlook.com
Many people are not named here because we lost track of them. We
thank them! Please, help us keeping this list up to date.