hash: factor, and guard against misbehaving hasher function
[gnulib.git] / ChangeLog
index 45bd20f..ff20e28 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,27 @@
+2010-08-31  Eric Blake  <eblake@redhat.com>
+       and Jim Meyering  <meyering@redhat.com>
+
+       hash: factor, and guard against misbehaving hasher function
+       * lib/hash.c (safe_hasher): New function, to encapsulate the checking
+       of table->hasher's return value.  Also protect against a hash value
+       so large that adding it to table->bucket results in a NULL pointer.
+       (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
+       Use it in place of open-coded check-and-abort.
+
+2010-08-30  Bruno Haible  <bruno@clisp.org>
+
+       hash: silence spurious clang warning
+       * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
+       Reported by Eric Blake.
+
 2010-08-30  Eric Blake  <eblake@redhat.com>
 
+       strstr, memmem, strcasestr: avoid leaked shell message
+       * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
+       FreeBSD.
+       * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
+       * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
+
        tests: silence clang warning
        * tests/test-malloca.c (do_allocation): Avoid dead store.