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

Downcall and Upcall unboxing code should reject heap segments

XMLWordPrintable

      Heap segments can not be passed to native code, but the current code generated for address unboxing doesn't check for heap segments. Passing a heap segment to native code will not be caught, and as a result a malformed pointer (derived from the heap segment's offset + array base) is passed to native code instead.

      (similar rules should apply to MemorySegments returned from upcalls)

            jvernee Jorn Vernee
            jvernee Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: