[Pvfs2-developers] [PVFS2-devlopers] Quickhash bug -

David Bonnie dbonnie at parl.clemson.edu
Mon May 19 16:12:22 EDT 2008


Everyone -

I think I've found a bug in the string hashing function in
/src/common/quickhash/quickhash.c.  The function quickhash_string_hash
uses an uninitialized variable (uint32_t h) as a starting point for the
hash.  This could lead to the hash function creating different hashes for
the same key (and the compiler really doesn't like it).

I've done a quick fix in our branch to make it consistent but it'd
probably be a good idea for someone to check over it more thoroughly
seeing as I'm no expert on hash functions.

- Dave




More information about the Pvfs2-developers mailing list