From db05fd0568ec9d1e0444f3064df52f6048cc1121 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 22 Jan 2009 21:46:36 +0100 Subject: [PATCH 1/1] isl_hash_table_remove: update number of entries Otherwise, removing an element and later adding it back again would increase the number of elements in the table, quickly leading to overflows. --- isl_hash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/isl_hash.c b/isl_hash.c index 41076b8..3a39bbc 100644 --- a/isl_hash.c +++ b/isl_hash.c @@ -91,4 +91,5 @@ void isl_hash_table_remove(struct isl_ctx *ctx, entry->hash = 0; entry->data = NULL; + table->n--; } -- 2.7.4