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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 9
    • Affects Version/s: 9
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: