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

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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: