mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 05:13:04 +00:00
hash: check insertion for memory exhaustion.
* src/muscle-tab.c (muscle_insert, muscle_grow) * src/state.c (state_hash_insert): Check the return value of hash_insert.
This commit is contained in:
@@ -379,7 +379,8 @@ state_hash_free (void)
|
||||
void
|
||||
state_hash_insert (state *s)
|
||||
{
|
||||
hash_insert (state_table, s);
|
||||
if (!hash_insert (state_table, s))
|
||||
xalloc_die ();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user