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

Return value from in.read() should be checked in NonCachingSecretKeyEncryptionStrategy#doKeyEncryptionOperation()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.3, 1.8.1, 2.0.0
    • None

    Description

      Here is related code:

            byte[] keyEncryptionKey = new byte[keyEncryptionKeyLength];
            in.read(keyEncryptionKey);
      

      The return value should be checked so that we don't need to call cipher.init() in case encryption key isn't read properly.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yuzhihong@gmail.com Ted Yu
              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 - 2.5h
                  2.5h