Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-16249

ByteBufferAccessor.getUnsignedShort ignores ByteBuffer position

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 4.0-beta4, 4.0
    • Component/s: Legacy/Core
    • Labels:
      None
    • Bug Category:
      Correctness - Unrecoverable Corruption / Loss
    • Severity:
      Critical
    • Complexity:
      Low Hanging Fruit
    • Discovered By:
      Code Inspection
    • Platform:
      All
    • Impacts:
      None
    • Since Version:
    • Test and Documentation Plan:
      Hide

      Add new unit tests and modify the tests to find issues with methods assuming a zero position for the ByteBuffers.

      Show
      Add new unit tests and modify the tests to find issues with methods assuming a zero position for the ByteBuffers.

      Description

      ByteBufferAccessor.readUnsignedShort does not include the current buffer position when calculating the final offset for reading data

        Attachments

          Activity

            People

            • Assignee:
              jlewandowski Jacek Lewandowski
              Reporter:
              jlewandowski Jacek Lewandowski
              Authors:
              Jacek Lewandowski
              Reviewers:
              Benjamin Lerer, Berenguer Blasi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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