hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-16692) Make ByteBufferUtils#equals safer and correct
Date Sun, 25 Sep 2016 13:40:20 GMT

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

Ted Yu updated HBASE-16692:
---------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Thanks for the patch, binlijin

Thanks for the reviews.

> Make ByteBufferUtils#equals safer and correct
> ---------------------------------------------
>
>                 Key: HBASE-16692
>                 URL: https://issues.apache.org/jira/browse/HBASE-16692
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>             Fix For: 2.0.0
>
>         Attachments: HBASE-16692-master.patch, HBASE-16692-master_v2.patch, HBASE-16692-master_v3.patch,
HBASE-16692-master_v4.patch, HBASE-16692-master_v5.patch
>
>
> ByteBufferUtils.equals(HConstants.EMPTY_BYTE_BUFFER, 0, 0, HConstants.EMPTY_BYTE_ARRAY,
0, 0) will throw java.lang.ArrayIndexOutOfBoundsException: -1, i think it should return true.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message