Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8183591

Incorrect behavior when reading DER value with Integer.MAX_VALUE length

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b17
    • Verification:
      Verified

      Backports

        Description

        When a DER value has a length equal to Integer.MAX_VALUE, the code will read until the end of the buffer. This read will succeed when the buffer has fewer bytes than Integer.MAX_VALUE. The correct behavior is to throw an exception in this circumstance.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                apetcher Adam Petcher (Inactive)
                Reporter:
                apetcher Adam Petcher (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: