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

Sam Lang slang at mcs.anl.gov
Mon May 19 16:31:55 EDT 2008


Hi Dave,

Good catch!  It doesn't look like we actually use that function  
anywhere, but I added it there in the hope that we would have a good  
string hashing function to use instead of reinventing something ad-hoc  
every time.  Are you guys using it now for the security stuff?

-sam

On May 19, 2008, at 3:12 PM, David Bonnie wrote:

> 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
>
>
> _______________________________________________
> Pvfs2-developers mailing list
> Pvfs2-developers at beowulf-underground.org
> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
Url : http://www.beowulf-underground.org/pipermail/pvfs2-developers/attachments/20080519/9f956ad9/smime.bin


More information about the Pvfs2-developers mailing list