isl_hash_table_find: don't use user specified comparison function to grow table
commit454621e935ff836361c77df436fbd7066c9d44e0
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 4 Dec 2013 11:29:53 +0000 (4 12:29 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 4 Dec 2013 11:29:53 +0000 (4 12:29 +0100)
tree1cf25e8336282b935dea96dcb581e7de118fa7ca
parentf83fdcf0c6b0b03f51968c06bdc940f04c71deab
isl_hash_table_find: don't use user specified comparison function to grow table

When isl_hash_table_find needs to grow the hash table, it would
reuse the user specified comparison function to compare entries
against each other.  However, this may lead to undefined behavior
as the comparison function is only meant to be used to compare
entries to the "val" argument.  Moreover, there is no need to
use any comparison function while growing the table since all
entries in the original table are supposed to be distinct already.

Reported-by: Tobias Grosser <tobias@grosser.es>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_hash.c