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: Resolved
    • Priority: P4
    • Resolution: Delivered
    • Affects Version/s: 13
    • Fix Version/s: 13
    • Component/s: core-libs

      Description

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

        Attachments

          Activity

            People

            • Assignee:
              nishjain Nishit Jain (Inactive)
              Reporter:
              nishjain Nishit Jain (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: