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

[JVMCI] CompilerToVM::writeDebugOutput need input data range checks

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 9
    • 9
    • hotspot
    • Verified

    Description

      Currently, a negative value for offset is handled as expected, throwing an exception.

      In case of offset being more than provided byte array size(for example, Integer.MAX_VALUE or Integer.MIN_VALUE) and also in case of (offset +length) being more than array size, there will be a crash.

      It's possible to guard against such cases using information about java byte array size.

      Attachments

        Activity

          People

            twisti Christian Thalinger
            dpochepk Dmitrij Pochepko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: