From 37ddf7020b29fb100c73cd5fe5090e12f8210a43 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 19 Sep 2016 15:01:58 -0700 Subject: [PATCH] Util: Fix inserting too many items into a hash table --- CHANGES | 1 + src/util/table.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index be6c53dd1..6928f537f 100644 --- a/CHANGES +++ b/CHANGES @@ -43,6 +43,7 @@ Bugfixes: - GBA: Count up timers should not count themselves - GBA Savedata: Fix savedata sync timer - GBA Savedata: Only unmap savedata if present + - Util: Fix inserting too many items into a hash table Misc: - 3DS: Use blip_add_delta_fast for a small speed improvement - OpenGL: Log shader compilation failure diff --git a/src/util/table.c b/src/util/table.c index 9b0f62905..cc01f2c67 100644 --- a/src/util/table.c +++ b/src/util/table.c @@ -175,6 +175,7 @@ void HashTableInsert(struct Table* table, const char* key, void* value) { } return; } TABLE_LOOKUP_END; + list = _resizeAsNeeded(table, list, hash); list->list[list->nEntries].key = hash; list->list[list->nEntries].stringKey = strdup(key); list->list[list->nEntries].keylen = strlen(key);