Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-4113

Fix incorrect usage of ByteBuffer

Log workAgile BoardRank to TopRank to BottomVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabels
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.6.4, 1.7.0
    • Fix Version/s: 1.6.5, 1.7.1, 1.8.0
    • Component/s: None
    • Labels:
      None

      Description

      While working on ACCUMULO-4098 I found one place where ByteBuffer was being used incorrectly. Looking around the code, I have found other places that are using ByteBuffer incorrectly. Some of the problems I found are as follows :

      • Calling ByteBuffer.array() without calling ByteBuffer.hasArray().
      • Using ByteBuffer.position() or ByteBuffer.limit() without adding ByteBuffer.arrayOffset() when dealing with an array returned by ByteBuffer.array().
      • Using ByteBuffer.arrayOffset() without adding ByteBuffer.position() when dealing with an array returned by ByteBuffer.array().

        Attachments

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              kturner Keith Turner Assign to me
              Reporter:
              kturner Keith Turner

              Dates

              • Created:
                Updated:
                Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 1h 10m
              1h 10m

                Issue deployment