Insufficient length checks
Closed this issue · 1 comments
kloetzl commented
The following code is confusing me.
Lines 14 to 24 in aabd592
On x86 there is a check that the length is sufficient, but only for 32bit hashes. For 64bit hashes, length - 16
may still be negative and lead to weird behaviour in MurmurHash3_x86_32
. On x64 nothing gets checked. Am I missing something?
kloetzl commented
I realised that this might not be that much of an issue, because there are checks in place prior to calling this function that ensure enough data is available.