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

[GCC static analyzer] libjdwp/threadControl.c threadControl_setPendingInterrupt error: dereference of NULL 'node'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 23, 26
    • core-svc
    • None
    • generic
    • linux

      GCC static analyzer (-fanalyzer) reports this issue :

      jdk/src/jdk.jdwp.agent/share/native/libjdwp/threadControl.c:2321:28: error: dereference of NULL 'node' [CWE-476] [-Werror=analyzer-null-dereference]
       2321 | node->pendingInterrupt = JNI_TRUE;

      We call node = findRunningThread(thread); but unlike the other findRunningThread calls we do here a JDI_ASSERT and no result-check for node != NULL , maybe this should be adjusted.

            Unassigned Unassigned
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: