Details
-
Bug
-
Resolution: Won't Fix
-
Blocker
-
None
-
2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6
-
Security Level: Public
-
None
-
Windows & Linux (debian)
Description
It seems that the CRC32 hashing function in libvbucket (hash_crc32()) returns an invalid hash.
For instance, hashing the key '1234567890' returns 9757 (0x261D), while it should return 639479525 (0x261DAEE5).
Every key I tried (on both win and linux) returns a 16bit hash.
The problem seems to be on line 85 in crc32.c.
Changing the return expression to 'return crc ^ ~0;' fixes the problem and computes the correct hash.