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

Null-proofing for linker_md.c

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: