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

Pranav Khaitan updated HBASE-2928:
----------------------------------

    Description: 
Following statement makes an incorrect assumption that value.length >= 
this.value.length.

return Bytes.compareTo(this.value, 0, this.value.length, value, 0,
      this.value.length);

  was:
Following statement makes an incorrect assumption that value.length > 
this.value.length.

return Bytes.compareTo(this.value, 0, this.value.length, value, 0,
      this.value.length);


> Fault in logic in BinaryPrefixComparator leads to 
> ArrayIndexOutOfBoundsException.
> ---------------------------------------------------------------------------------
>
>                 Key: HBASE-2928
>                 URL: https://issues.apache.org/jira/browse/HBASE-2928
>             Project: HBase
>          Issue Type: Bug
>          Components: filters
>            Reporter: Pranav Khaitan
>            Assignee: Pranav Khaitan
>
> Following statement makes an incorrect assumption that value.length >= 
> this.value.length.
> return Bytes.compareTo(this.value, 0, this.value.length, value, 0,
>       this.value.length);

-- 
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