Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2039

Jute compareBytes incorrect comparison index

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.6, 3.5.0
    • Fix Version/s: 3.4.7, 3.5.1
    • Component/s: jute
    • Labels:
      None

      Description

      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.

        Attachments

        1. ZOOKEEPER-2039.patch
          0.9 kB
          Flavio Junqueira
        2. ZOOKEEPER-2039.patch
          1 kB
          Ian Dimayuga

          Activity

            People

            • Assignee:
              iandi Ian Dimayuga
              Reporter:
              iandi Ian Dimayuga
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified