Also check for PRIME_MAX when increasing hash size.

SVN revision: 30210
This commit is contained in:
Sebastian Dransfeld 2007-06-03 08:22:48 +00:00
parent 63a4d1b72a
commit 869c74666b
1 changed files with 1 additions and 1 deletions

View File

@ -675,7 +675,7 @@ _ecore_hash_increase(Ecore_Hash *hash)
CHECK_PARAM_POINTER_RETURN("hash", hash, FALSE);
/* Max size reached so return FALSE */
if (hash->size == PRIME_TABLE_MAX)
if ((ecore_prime_table[hash->size] == PRIME_MAX) || (hash->size == PRIME_TABLE_MAX))
return FALSE;
/*