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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.6.0
    • security
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved: