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

ByteBufferAccessor.getUnsignedShort ignores ByteBuffer position

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 4.0-beta4, 4.0
    • Legacy/Core
    • None
    • Correctness - Unrecoverable Corruption / Loss
    • Critical
    • Low Hanging Fruit
    • Code Inspection
    • All
    • None
    • 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

            jlewandowski Jacek Lewandowski
            jlewandowski Jacek Lewandowski
            Jacek Lewandowski
            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