[ 
https://issues.apache.org/jira/browse/CASSANDRA-1729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stu Hood updated CASSANDRA-1729:
--------------------------------

    Attachment: 0001-Remove-varargs-from-FBUtilities.hash-and-correctly-use.txt

> Fix misuse of DataOutputBuffer.getData in AntiEntropyService
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-1729
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1729
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Stu Hood
>            Assignee: Stu Hood
>            Priority: Minor
>             Fix For: 0.6.8
>
>         Attachments: 
> 0001-Remove-varargs-from-FBUtilities.hash-and-correctly-use.txt
>
>
> As reported by Schubert Zhang, AntiEntropyService is ignoring the length of 
> the input buffer.
> {code:java}
> byte[] rowhash = FBUtilities.hash("SHA-256", row.key.key.getBytes(), 
> row.buffer.getData());
> {code}
> While this isn't effecting our accuracy, it would break validation if we 
> started reusing buffers in CompactedRow. This issue has already been fixed in 
> 0.7.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to