Precomputing the hash value for a string representable in bytes, but passed in
authorNicholas Clark <nick@ccl4.org>
Sun, 28 Dec 2008 09:36:16 +0000 (09:36 +0000)
committerNicholas Clark <nick@ccl4.org>
Sun, 28 Dec 2008 09:36:16 +0000 (09:36 +0000)
commit527df579b2667fd0b8db4c07bcab268e0f401be9
tree4b3ce9cb56db5e1c69dbb3b321b8b9fc4c6b2e6e
parenta44093a96fbebc6fd778dfaa82b165e9006382a8
Precomputing the hash value for a string representable in bytes, but passed in
in UTF-8, would result in storing the wrong hash value in the hash, and hence
failing lookups. I guess not that much XS code precomputes hash values.
ext/XS/APItest/APItest.xs
ext/XS/APItest/t/hash.t
hv.c