You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "James Henderson (Jira)" <ji...@apache.org> on 2021/12/21 17:10:00 UTC

[jira] [Created] (ARROW-15175) MurmurHasher doesn't take the final bytes into account if size % 4 != 0

James Henderson created ARROW-15175:
---------------------------------------

             Summary: MurmurHasher doesn't take the final bytes into account if size % 4 != 0
                 Key: ARROW-15175
                 URL: https://issues.apache.org/jira/browse/ARROW-15175
             Project: Apache Arrow
          Issue Type: Bug
          Components: Java
    Affects Versions: 6.0.1
            Reporter: James Henderson


Repro (for example): all buffers of size 1 hash to the same value (-1684229222)

To my untrained eye, it looks like [https://github.com/apache/arrow/blob/c9588c54a1264ce02abc70cd02486966a1e97acf/java/memory/memory-core/src/main/java/org/apache/arrow/memory/util/hash/MurmurHasher.java#L99] should range from `length - 1` rather than `index - 1`?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)