Richard Low created CASSANDRA-4250:
--------------------------------------

             Summary: Missing arrayOffset in FBUtilities.hash
                 Key: CASSANDRA-4250
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4250
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.1.0
            Reporter: Richard Low
            Assignee: Richard Low
            Priority: Critical


In CASSANDRA-3869, FBUtilities.hash was optimised to use the backing byte array 
if there is one.  However, there is a missing +arrayOffset in the offset 
parameter.

This can cause incorrect hashes resulting in data going to the wrong place, 
etc..  I haven't observed any errors directly attributable to this so maybe we 
are lucky and all backing arrays start at 0 but this could cause data loss in 
the worst case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to