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

Null-proofing for linker_md.c

XMLWordPrintable

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

      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

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

              Created:
              Updated:
              Resolved: