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

Jute compareBytes incorrect comparison index

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.6, 3.5.0
    • 3.4.7, 3.5.1
    • jute
    • 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 Paiva Junqueira
        2. ZOOKEEPER-2039.patch
          1 kB
          Ian Dimayuga

        Activity

          People

            iandi Ian Dimayuga
            iandi Ian Dimayuga
            Votes:
            0 Vote for this issue
            Watchers:
            3 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