Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8210583 Base64.Encoder incorrectly throws NegativeArraySizeException
  3. JDK-8217706

Release Note: Base64.Encoder and Base64.Decoder Methods Can Throw OutOfMemoryError

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: P4
    • Resolution: Delivered
    • Affects Version/s: 13
    • Fix Version/s: 13
    • Component/s: core-libs
    • Subcomponent:
    • Verification:
      Verified

      Description

      The behavior of `Base64.Encoder.encode` and `Base64.Decoder.decode` methods have been changed for large arrays. The methods previously threw an unspecified exception, such as, `NegativeArraySizeException`. The new behavior throws an `OutOfMemoryError` exception if the `encode` and `decode` methods fail to allocate the output array/buffer or memory.

        Attachments

          Activity

            People

            • Assignee:
              nishjain Nishit Jain
              Reporter:
              nishjain Nishit Jain
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: