Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11040

Return value of read(ByteBuffer buf) in CryptoInputStream is incorrect in some cases

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.6.0
    • Component/s: security
    • Labels:
      None
    • Target Version/s:

      Description

      In CryptoInputStream, for int read(ByteBuffer buf)), if there is unread value in outBuffer, then the current return value is incorrect. This case happens when caller uses bytes array read firstly and then do the ByteBuffer read.

        Attachments

          Activity

            People

            • Assignee:
              hitliuyi Yi Liu
              Reporter:
              hitliuyi Yi Liu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: