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

Null-proofing for linker_md.c

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 16
    • 16
    • hotspot
    • None
    • b19

    Description

      In the platform-specific implementations of linker_md.c, we see the dll_build_name methods begin with a call to jvmtiAllocate.

      We then appear to rush ahead and try to use that variable without checking for a null.

      I propose moving the null check to the point *before* we try to use that variable, to avoid any possible SEGV.

      https://github.com/openjdk/jdk/pull/246

      Attachments

        Issue Links

          Activity

            People

              afarley Adam Farley
              afarley Adam Farley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: