You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Ian Dimayuga (JIRA)" <ji...@apache.org> on 2014/09/16 04:35:35 UTC

[jira] [Created] (ZOOKEEPER-2039) Jute compareBytes incorrect comparison index

Ian Dimayuga created ZOOKEEPER-2039:
---------------------------------------

             Summary: Jute compareBytes incorrect comparison index
                 Key: ZOOKEEPER-2039
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2039
             Project: ZooKeeper
          Issue Type: Bug
          Components: jute
    Affects Versions: 3.5.0, 3.4.6
            Reporter: Ian Dimayuga
            Priority: Minor
             Fix For: 3.4.7, 3.5.1


The Jute utility's naïve byte-array comparison compares b1[off1+i] with b2[off2+1]. (A literal 1, not the variable i)

It should be off2+i, in parallel with the other operand.



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