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

Check that the target address of a native call is not NULL

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: None
    • Component/s: tools

      Description

      It's possible to pass MemoryAddress.NULL to CLinker::downcallHandle when linking, which will result in a segmentation fault when invoking the returned method handle.

      Similarly, it is possible to invoke a segmentation fault by passing NULL to a virtual native method handle.

      We can try to fail a bit faster here by checking that the target address is non-NULL before unboxing it.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jvernee Jorn Vernee
              Reporter:
              jvernee Jorn Vernee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: