[Pvfs2-developers] Codegen.c hash function -

David Bonnie dbonnie at parl.clemson.edu
Mon May 26 10:37:47 EDT 2008


Hey all -

I'm looking through the state machine code generator in codegen.c and it
seems that the hash function used does the same thing as the string hash
bug I found earlier this month (using h uninitialized).  I imagine it'd be
a rare case when it happens but using uninitialized memory could lead to
the hash generating different hashes for the same string.  The variable in
question is on line 130.  Would there be any ramifications I'm not
thinking of with fixing it so that it's consistent?

- Dave






More information about the Pvfs2-developers mailing list