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-09-08 11:38:29 +02:00
parent 53526f31df
commit f788ba2ab6
5 changed files with 11 additions and 0 deletions
+1
View File
@@ -199,6 +199,7 @@ Wwp [email protected]
xolodho [email protected]
Zack Weinberg [email protected]
長田偉伸 [email protected]
江 祖铭 [email protected]
Many people are not named here because we lost track of them. We
thank them! Please, help us keeping this list up to date.