libvirt-12.2.0-2.fc45
List of Findings
Error: SHELLCHECK_WARNING: [#def1]
/usr/libexec/libvirt-guests.sh:69:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def2]
/usr/libexec/libvirt-guests.sh:90:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def3]
/usr/libexec/libvirt-guests.sh:107:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def4]
/usr/libexec/libvirt-guests.sh:108:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def5]
/usr/libexec/libvirt-guests.sh:109:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def6]
/usr/libexec/libvirt-guests.sh:123:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def7]
/usr/libexec/libvirt-guests.sh:124:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def8]
/usr/libexec/libvirt-guests.sh:133:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def9]
/usr/libexec/libvirt-guests.sh:134:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def10]
/usr/libexec/libvirt-guests.sh:135:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def11]
/usr/libexec/libvirt-guests.sh:157:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def12]
/usr/libexec/libvirt-guests.sh:158:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def13]
/usr/libexec/libvirt-guests.sh:159:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def14]
/usr/libexec/libvirt-guests.sh:160:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def15]
/usr/libexec/libvirt-guests.sh:161:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def16]
/usr/libexec/libvirt-guests.sh:176:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def17]
/usr/libexec/libvirt-guests.sh:177:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def18]
/usr/libexec/libvirt-guests.sh:178:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def19]
/usr/libexec/libvirt-guests.sh:198:13: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-571): [#def20]
/usr/libexec/libvirt-guests.sh:198:19: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def21]
/usr/libexec/libvirt-guests.sh:229:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def22]
/usr/libexec/libvirt-guests.sh:230:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def23]
/usr/libexec/libvirt-guests.sh:231:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-571): [#def24]
/usr/libexec/libvirt-guests.sh:231:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def25]
/usr/libexec/libvirt-guests.sh:232:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-571): [#def26]
/usr/libexec/libvirt-guests.sh:232:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def27]
/usr/libexec/libvirt-guests.sh:233:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def28]
/usr/libexec/libvirt-guests.sh:234:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def29]
/usr/libexec/libvirt-guests.sh:239:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def30]
/usr/libexec/libvirt-guests.sh:246:13: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-571): [#def31]
/usr/libexec/libvirt-guests.sh:246:19: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def32]
/usr/libexec/libvirt-guests.sh:263:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def33]
/usr/libexec/libvirt-guests.sh:264:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def34]
/usr/libexec/libvirt-guests.sh:265:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-571): [#def35]
/usr/libexec/libvirt-guests.sh:265:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def36]
/usr/libexec/libvirt-guests.sh:266:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def37]
/usr/libexec/libvirt-guests.sh:267:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def38]
/usr/libexec/libvirt-guests.sh:268:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def39]
/usr/libexec/libvirt-guests.sh:269:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def40]
/usr/libexec/libvirt-guests.sh:315:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def41]
/usr/libexec/libvirt-guests.sh:316:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def42]
/usr/libexec/libvirt-guests.sh:317:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-571): [#def43]
/usr/libexec/libvirt-guests.sh:317:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def44]
/usr/libexec/libvirt-guests.sh:338:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def45]
/usr/libexec/libvirt-guests.sh:339:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def46]
/usr/libexec/libvirt-guests.sh:340:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def47]
/usr/libexec/libvirt-guests.sh:360:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def48]
/usr/libexec/libvirt-guests.sh:361:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def49]
/usr/libexec/libvirt-guests.sh:362:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def50]
/usr/libexec/libvirt-guests.sh:363:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def51]
/usr/libexec/libvirt-guests.sh:370:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-571): [#def52]
/usr/libexec/libvirt-guests.sh:370:15: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def53]
/usr/libexec/libvirt-guests.sh:382:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def54]
/usr/libexec/libvirt-guests.sh:383:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def55]
/usr/libexec/libvirt-guests.sh:384:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def56]
/usr/libexec/libvirt-guests.sh:385:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def57]
/usr/libexec/libvirt-guests.sh:386:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def58]
/usr/libexec/libvirt-guests.sh:387:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def59]
/usr/libexec/libvirt-guests.sh:388:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-156): [#def60]
/usr/libexec/libvirt-guests.sh:399:17: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING: [#def61]
/usr/libexec/libvirt-guests.sh:401:13: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def62]
/usr/libexec/libvirt-guests.sh:413:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def63]
/usr/libexec/libvirt-guests.sh:415:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def64]
/usr/libexec/libvirt-guests.sh:434:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def65]
/usr/libexec/libvirt-guests.sh:444:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def66]
/usr/libexec/libvirt-guests.sh:445:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def67]
/usr/libexec/libvirt-guests.sh:446:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def68]
/usr/libexec/libvirt-guests.sh:487:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def69]
/usr/libexec/libvirt-guests.sh:490:13: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def70]
/usr/libexec/libvirt-guests.sh:504:13: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def71]
/usr/libexec/libvirt-guests.sh:507:17: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def72]
/usr/libexec/libvirt-guests.sh:508:17: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def73]
/usr/libexec/libvirt-guests.sh:560:17: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def74]
/usr/libexec/libvirt-guests.sh:580:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def75]
/usr/libexec/libvirt-guests.sh:612:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def76]
/usr/libexec/libvirt-guests.sh:612:11: warning[SC2034]: program_name appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-149): [#def77]
/usr/libexec/libvirt-guests.sh:613:69: warning[SC2140]: Word is of the form "A"B"C" (B indicated). Did you mean "ABC" or "A\"B\"C"?
Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
libvirt-12.2.0/src/ch/ch_driver.c:1858:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘vcpuinfo’
libvirt-12.2.0/src/ch/ch_driver.c:1819:5: branch_false: following ‘false’ branch (when ‘__unsuppflags == 0’)...
libvirt-12.2.0/src/ch/ch_driver.c:1822:11: branch_false: ...to here
libvirt-12.2.0/src/ch/ch_driver.c:1824:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/ch/ch_driver.c:1827:9: branch_false: ...to here
libvirt-12.2.0/src/ch/ch_driver.c:1827:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/ch/ch_driver.c:1830:9: branch_false: ...to here
libvirt-12.2.0/src/ch/ch_driver.c:1830:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/ch/ch_driver.c:1833:9: branch_false: ...to here
libvirt-12.2.0/src/ch/ch_driver.c:1833:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/ch/ch_driver.c:1836:9: branch_false: ...to here
libvirt-12.2.0/src/ch/ch_driver.c:1836:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/ch/ch_driver.c:1844:21: branch_false: ...to here
libvirt-12.2.0/src/ch/ch_driver.c:1844:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/ch/ch_driver.c:1847:9: branch_false: ...to here
libvirt-12.2.0/src/ch/ch_driver.c:1847:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/ch/ch_driver.c:1853:9: branch_false: ...to here
libvirt-12.2.0/src/ch/ch_driver.c:1857:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/ch/ch_driver.c:1858:9: branch_true: ...to here
libvirt-12.2.0/src/ch/ch_driver.c:1858:9: danger: dereference of NULL ‘vcpuinfo’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def79]
libvirt-12.2.0/src/conf/nwfilter_params.c:416:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libvirt-12.2.0/src/conf/nwfilter_params.c:393:1: enter_function: entry to ‘virNWFilterVarCombIterEntryAreUniqueEntries’
libvirt-12.2.0/src/conf/nwfilter_params.c:402:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/conf/nwfilter_params.c:408:13: branch_false: ...to here
libvirt-12.2.0/src/conf/nwfilter_params.c:408:13: call_function: calling ‘virNWFilterVarValueGetNthValue’ from ‘virNWFilterVarCombIterEntryAreUniqueEntries’
libvirt-12.2.0/src/conf/nwfilter_params.c:408:13: return_function: returning to ‘virNWFilterVarCombIterEntryAreUniqueEntries’ from ‘virNWFilterVarValueGetNthValue’
libvirt-12.2.0/src/conf/nwfilter_params.c:409:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/conf/nwfilter_params.c:409:8: branch_false: ...to here
libvirt-12.2.0/src/conf/nwfilter_params.c:415:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/conf/nwfilter_params.c:416:13: branch_true: ...to here
libvirt-12.2.0/src/conf/nwfilter_params.c:416:13: call_function: calling ‘virNWFilterVarValueGetNthValue’ from ‘virNWFilterVarCombIterEntryAreUniqueEntries’
libvirt-12.2.0/src/conf/nwfilter_params.c:416:13: return_function: returning to ‘virNWFilterVarCombIterEntryAreUniqueEntries’ from ‘virNWFilterVarValueGetNthValue’
libvirt-12.2.0/src/conf/nwfilter_params.c:415:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/conf/nwfilter_params.c:416:13: branch_true: ...to here
libvirt-12.2.0/src/conf/nwfilter_params.c:416:13: call_function: calling ‘virNWFilterVarValueGetNthValue’ from ‘virNWFilterVarCombIterEntryAreUniqueEntries’
libvirt-12.2.0/src/conf/nwfilter_params.c:416:13: return_function: returning to ‘virNWFilterVarCombIterEntryAreUniqueEntries’ from ‘virNWFilterVarValueGetNthValue’
libvirt-12.2.0/src/conf/nwfilter_params.c:416:13: danger: argument 2 (‘virNWFilterVarValueGetNthValue(virHashLookup(hash, *cie_28(D)->varNames), (unsigned int)i)’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def80]
libvirt-12.2.0/src/conf/nwfilter_params.c:424:21: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libvirt-12.2.0/src/conf/nwfilter_params.c:393:1: enter_function: entry to ‘virNWFilterVarCombIterEntryAreUniqueEntries’
libvirt-12.2.0/src/conf/nwfilter_params.c:402:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/conf/nwfilter_params.c:408:13: branch_false: ...to here
libvirt-12.2.0/src/conf/nwfilter_params.c:408:13: call_function: calling ‘virNWFilterVarValueGetNthValue’ from ‘virNWFilterVarCombIterEntryAreUniqueEntries’
libvirt-12.2.0/src/conf/nwfilter_params.c:408:13: return_function: returning to ‘virNWFilterVarCombIterEntryAreUniqueEntries’ from ‘virNWFilterVarValueGetNthValue’
libvirt-12.2.0/src/conf/nwfilter_params.c:409:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/conf/nwfilter_params.c:409:8: branch_false: ...to here
libvirt-12.2.0/src/conf/nwfilter_params.c:415:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/conf/nwfilter_params.c:416:13: branch_true: ...to here
libvirt-12.2.0/src/conf/nwfilter_params.c:416:13: call_function: calling ‘virNWFilterVarValueGetNthValue’ from ‘virNWFilterVarCombIterEntryAreUniqueEntries’
libvirt-12.2.0/src/conf/nwfilter_params.c:416:13: return_function: returning to ‘virNWFilterVarCombIterEntryAreUniqueEntries’ from ‘virNWFilterVarValueGetNthValue’
libvirt-12.2.0/src/conf/nwfilter_params.c:416:12: branch_true: following ‘true’ branch (when the strings are equal)...
libvirt-12.2.0/src/conf/nwfilter_params.c:416:12: branch_true: ...to here
libvirt-12.2.0/src/conf/nwfilter_params.c:418:25: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/conf/nwfilter_params.c:419:43: branch_true: ...to here
libvirt-12.2.0/src/conf/nwfilter_params.c:420:20: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/conf/nwfilter_params.c:424:21: branch_false: ...to here
libvirt-12.2.0/src/conf/nwfilter_params.c:424:21: call_function: calling ‘virNWFilterVarValueGetNthValue’ from ‘virNWFilterVarCombIterEntryAreUniqueEntries’
libvirt-12.2.0/src/conf/nwfilter_params.c:424:21: return_function: returning to ‘virNWFilterVarCombIterEntryAreUniqueEntries’ from ‘virNWFilterVarValueGetNthValue’
libvirt-12.2.0/src/conf/nwfilter_params.c:424:21: call_function: calling ‘virNWFilterVarValueGetNthValue’ from ‘virNWFilterVarCombIterEntryAreUniqueEntries’
libvirt-12.2.0/src/conf/nwfilter_params.c:424:21: return_function: returning to ‘virNWFilterVarCombIterEntryAreUniqueEntries’ from ‘virNWFilterVarValueGetNthValue’
libvirt-12.2.0/src/conf/nwfilter_params.c:424:21: danger: argument 1 (‘virNWFilterVarValueGetNthValue(virHashLookup(hash, *<unknown>), *cie.curValue)’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def81]
libvirt-12.2.0/src/conf/virchrdev.c:77:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libvirt-12.2.0/src/conf/virchrdev.c:66:14: enter_function: entry to ‘virChrdevLockFilePath’
libvirt-12.2.0/src/conf/virchrdev.c:77:16: danger: argument 1 (‘<unknown>’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-465): [#def82]
libvirt-12.2.0/src/conf/virstorageobj.c:1387:12: warning[-Wanalyzer-deref-before-check]: check of ‘obj’ for NULL after already dereferencing it
libvirt-12.2.0/src/conf/virstorageobj.c:1378:1: enter_function: entry to ‘virStoragePoolObjSourceMatchTypeDEVICE’
libvirt-12.2.0/src/conf/virstorageobj.c:1383:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/conf/virstorageobj.c:1384:13: branch_true: ...to here
libvirt-12.2.0/src/conf/virstorageobj.c:1384:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/conf/virstorageobj.c:1387:25: branch_false: ...to here
libvirt-12.2.0/src/conf/virstorageobj.c:1387:25: call_function: calling ‘virStoragePoolSourceFindDuplicateDevices’ from ‘virStoragePoolObjSourceMatchTypeDEVICE’
libvirt-12.2.0/src/conf/virstorageobj.c:1387:25: return_function: returning to ‘virStoragePoolObjSourceMatchTypeDEVICE’ from ‘virStoragePoolSourceFindDuplicateDevices’
libvirt-12.2.0/src/conf/virstorageobj.c:1387:12: danger: pointer ‘obj’ is checked for NULL here but it was already dereferenced at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-465): [#def83]
libvirt-12.2.0/src/conf/virstorageobj.c:1426:13: warning[-Wanalyzer-deref-before-check]: check of ‘payload’ for NULL after already dereferencing it
libvirt-12.2.0/src/conf/virstorageobj.c:1410:1: enter_function: entry to ‘virStoragePoolObjSourceFindDuplicateCb’
libvirt-12.2.0/src/conf/virstorageobj.c:1419:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
libvirt-12.2.0/src/conf/virstorageobj.c:1422:33: branch_false: ...to here
libvirt-12.2.0/src/conf/virstorageobj.c:1426:12: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/conf/virstorageobj.c:1427:13: branch_true: ...to here
libvirt-12.2.0/src/conf/virstorageobj.c:1427:13: call_function: calling ‘virStoragePoolObjSourceMatchTypeDIR’ from ‘virStoragePoolObjSourceFindDuplicateCb’
libvirt-12.2.0/src/conf/virstorageobj.c:1427:13: return_function: returning to ‘virStoragePoolObjSourceFindDuplicateCb’ from ‘virStoragePoolObjSourceMatchTypeDIR’
libvirt-12.2.0/src/conf/virstorageobj.c:1426:13: danger: pointer ‘payload’ is checked for NULL here but it was already dereferenced at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-465): [#def84]
libvirt-12.2.0/src/conf/virstorageobj.c:1432:13: warning[-Wanalyzer-deref-before-check]: check of ‘payload’ for NULL after already dereferencing it
libvirt-12.2.0/src/conf/virstorageobj.c:1410:1: enter_function: entry to ‘virStoragePoolObjSourceFindDuplicateCb’
libvirt-12.2.0/src/conf/virstorageobj.c:1419:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
libvirt-12.2.0/src/conf/virstorageobj.c:1422:33: branch_false: ...to here
libvirt-12.2.0/src/conf/virstorageobj.c:1432:12: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/conf/virstorageobj.c:1433:13: branch_true: ...to here
libvirt-12.2.0/src/conf/virstorageobj.c:1433:13: call_function: calling ‘virStoragePoolObjSourceMatchTypeISCSI’ from ‘virStoragePoolObjSourceFindDuplicateCb’
libvirt-12.2.0/src/conf/virstorageobj.c:1433:13: return_function: returning to ‘virStoragePoolObjSourceFindDuplicateCb’ from ‘virStoragePoolObjSourceMatchTypeISCSI’
libvirt-12.2.0/src/conf/virstorageobj.c:1432:13: danger: pointer ‘payload’ is checked for NULL here but it was already dereferenced at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-465): [#def85]
libvirt-12.2.0/src/conf/virstorageobj.c:1442:13: warning[-Wanalyzer-deref-before-check]: check of ‘payload’ for NULL after already dereferencing it
libvirt-12.2.0/src/conf/virstorageobj.c:1410:1: enter_function: entry to ‘virStoragePoolObjSourceFindDuplicateCb’
libvirt-12.2.0/src/conf/virstorageobj.c:1419:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
libvirt-12.2.0/src/conf/virstorageobj.c:1422:33: branch_false: ...to here
libvirt-12.2.0/src/conf/virstorageobj.c:1447:13: call_function: calling ‘virStoragePoolObjSourceMatchTypeDEVICE’ from ‘virStoragePoolObjSourceFindDuplicateCb’
libvirt-12.2.0/src/conf/virstorageobj.c:1447:13: return_function: returning to ‘virStoragePoolObjSourceFindDuplicateCb’ from ‘virStoragePoolObjSourceMatchTypeDEVICE’
libvirt-12.2.0/src/conf/virstorageobj.c:1442:13: danger: pointer ‘payload’ is checked for NULL here but it was already dereferenced at [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
libvirt-12.2.0/src/esx/esx_util.c:219:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘saveptr’
libvirt-12.2.0/src/esx/esx_util.c:199:1: enter_function: entry to ‘esxUtil_ParseDatastorePath’
libvirt-12.2.0/src/esx/esx_util.c:205:11: release_memory: ‘saveptr’ is NULL
libvirt-12.2.0/src/esx/esx_util.c:219:17: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
libvirt-12.2.0/src/esx/esx_util.c:399:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tmp’
libvirt-12.2.0/src/esx/esx_util.c:414:1: enter_function: entry to ‘esxUtil_EscapeDatastoreItem’
libvirt-12.2.0/src/esx/esx_util.c:421:5: call_function: calling ‘esxUtil_ReplaceSpecialWindowsPathChars’ from ‘esxUtil_EscapeDatastoreItem’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def88]
libvirt-12.2.0/src/hyperv/hyperv_driver.c:835:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘driveSettings’
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2962:1: enter_function: entry to ‘hypervDomainDefineXMLFlags’
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2977:5: branch_false: following ‘false’ branch (when ‘__unsuppflags == 0’)...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2979:8: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2984:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2988:19: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3008:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3011:25: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3013:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3017:9: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3030:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3035:9: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3035:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3039:45: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3039:14: call_function: calling ‘hypervDomainLookupByName’ from ‘hypervDomainDefineXMLFlags’
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3039:14: return_function: returning to ‘hypervDomainDefineXMLFlags’ from ‘hypervDomainLookupByName’
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3042:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3046:9: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3046:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3050:9: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3050:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3054:9: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3054:9: call_function: calling ‘hypervDomainAttachStorage’ from ‘hypervDomainDefineXMLFlags’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def89]
libvirt-12.2.0/src/hyperv/hyperv_driver.c:900:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘domain’
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2962:1: enter_function: entry to ‘hypervDomainDefineXMLFlags’
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2977:5: branch_false: following ‘false’ branch (when ‘__unsuppflags == 0’)...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2979:8: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2984:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2988:19: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3008:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3011:25: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3013:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3017:9: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3030:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3035:9: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3035:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3039:45: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3039:14: call_function: calling ‘hypervDomainLookupByName’ from ‘hypervDomainDefineXMLFlags’
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3039:14: return_function: returning to ‘hypervDomainDefineXMLFlags’ from ‘hypervDomainLookupByName’
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3042:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3046:9: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3046:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3050:9: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3050:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3054:9: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3054:9: call_function: calling ‘hypervDomainAttachStorage’ from ‘hypervDomainDefineXMLFlags’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def90]
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2263:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘domain’
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2962:1: enter_function: entry to ‘hypervDomainDefineXMLFlags’
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2977:5: branch_false: following ‘false’ branch (when ‘__unsuppflags == 0’)...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2979:8: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2984:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2988:19: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3008:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3011:25: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3013:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3017:9: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3030:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3035:9: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3035:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3039:45: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3039:14: call_function: calling ‘hypervDomainLookupByName’ from ‘hypervDomainDefineXMLFlags’
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3039:14: return_function: returning to ‘hypervDomainDefineXMLFlags’ from ‘hypervDomainLookupByName’
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3042:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3046:9: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3046:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3046:36: call_function: inlined call to ‘hypervDomainSetMaxMemory’ from ‘hypervDomainDefineXMLFlags’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def91]
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2521:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘domain’
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2962:1: enter_function: entry to ‘hypervDomainDefineXMLFlags’
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2977:5: branch_false: following ‘false’ branch (when ‘__unsuppflags == 0’)...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2979:8: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2984:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:2988:19: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3008:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3011:25: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3013:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3017:9: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3030:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3035:9: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3035:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3039:45: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3039:14: call_function: calling ‘hypervDomainLookupByName’ from ‘hypervDomainDefineXMLFlags’
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3039:14: return_function: returning to ‘hypervDomainDefineXMLFlags’ from ‘hypervDomainLookupByName’
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3042:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3042:52: branch_true: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:3042:23: call_function: inlined call to ‘hypervDomainSetVcpus’ from ‘hypervDomainDefineXMLFlags’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
libvirt-12.2.0/src/hyperv/hyperv_driver.c:4228:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘snapshotsRet’
libvirt-12.2.0/src/hyperv/hyperv_driver.c:4180:5: branch_false: following ‘false’ branch (when ‘__unsuppflags == 0’)...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:4185:9: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:4185:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:4188:19: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:4190:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:4194:10: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:4203:8: branch_false: following ‘false’ branch (when ‘snaps’ is non-NULL)...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:4206:8: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:4206:8: branch_false: following ‘false’ branch (when ‘count <= 0’)...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:4221:5: branch_false: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:4221:5: release_memory: ‘snapshotsRet’ is NULL
libvirt-12.2.0/src/hyperv/hyperv_driver.c:4225:8: branch_true: following ‘true’ branch (when ‘ret < 0’)...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:4225:8: branch_true: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:4227:21: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/hyperv/hyperv_driver.c:4228:29: branch_true: ...to here
libvirt-12.2.0/src/hyperv/hyperv_driver.c:4228:17: danger: dereference of NULL ‘snapshotsRet + i * 8’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def93]
libvirt-12.2.0/src/hyperv/hyperv_wmi.c:1008:12: warning[-Wanalyzer-deref-before-check]: check of ‘object’ for NULL after already dereferencing it
Error: GCC_ANALYZER_WARNING (CWE-476): [#def94]
libvirt-12.2.0/src/libxl/libxl_driver.c:6291:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iface’
libvirt-12.2.0/src/libxl/libxl_driver.c:6250:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/libxl/libxl_driver.c:6250:8: branch_false: ...to here
libvirt-12.2.0/src/libxl/libxl_driver.c:6253:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/libxl/libxl_driver.c:6256:33: branch_true: ...to here
libvirt-12.2.0/src/libxl/libxl_driver.c:6268:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/libxl/libxl_driver.c:6271:25: branch_false: ...to here
libvirt-12.2.0/src/libxl/libxl_driver.c:6271:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/libxl/libxl_driver.c:6275:12: branch_false: ...to here
libvirt-12.2.0/src/libxl/libxl_driver.c:6275:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/libxl/libxl_driver.c:6289:9: branch_false: ...to here
libvirt-12.2.0/src/libxl/libxl_driver.c:6289:21: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/libxl/libxl_driver.c:6290:50: branch_true: ...to here
libvirt-12.2.0/src/libxl/libxl_driver.c:6291:46: danger: dereference of NULL ‘iface’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def95]
libvirt-12.2.0/src/libxl/libxl_logger.c:198:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_strdup_printf("%s/%s.log", *logger.logDir, name), "a")’
libvirt-12.2.0/src/libxl/libxl_logger.c:181:1: enter_function: entry to ‘libxlLoggerOpenFile’
libvirt-12.2.0/src/libxl/libxl_logger.c:193:21: acquire_resource: opened here
libvirt-12.2.0/src/libxl/libxl_logger.c:193:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/libxl/libxl_logger.c:198:5: branch_false: ...to here
libvirt-12.2.0/src/libxl/libxl_logger.c:198:5: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/libxl/libxl_logger.c:198:5: call_function: inlined call to ‘glib_auto_cleanup_virLockGuard’ from ‘libxlLoggerOpenFile’
libvirt-12.2.0/src/libxl/libxl_logger.c:198:5: danger: ‘fopen(g_strdup_printf("%s/%s.log", *logger.logDir, name), "a")’ leaks here; was opened at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
libvirt-12.2.0/src/libxl/libxl_logger.c:198:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_strdup_printf("%s/%s.log", *logger.logDir, name), "a")’
libvirt-12.2.0/src/libxl/libxl_logger.c:181:1: enter_function: entry to ‘libxlLoggerOpenFile’
libvirt-12.2.0/src/libxl/libxl_logger.c:193:21: acquire_memory: allocated here
libvirt-12.2.0/src/libxl/libxl_logger.c:193:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/libxl/libxl_logger.c:198:5: branch_false: ...to here
libvirt-12.2.0/src/libxl/libxl_logger.c:198:5: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/libxl/libxl_logger.c:198:5: call_function: inlined call to ‘glib_auto_cleanup_virLockGuard’ from ‘libxlLoggerOpenFile’
libvirt-12.2.0/src/libxl/libxl_logger.c:198:5: danger: ‘fopen(g_strdup_printf("%s/%s.log", *logger.logDir, name), "a")’ leaks here; was allocated at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def97]
libvirt-12.2.0/src/libxl/xen_xl.c:997:17: warning[-Wanalyzer-null-argument]: use of NULL ‘type’ where non-null expected
libvirt-12.2.0/src/libxl/xen_xl.c:955:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/libxl/xen_xl.c:957:16: branch_true: following ‘true’ branch (when ‘list’ is non-NULL)...
libvirt-12.2.0/src/libxl/xen_xl.c:963:18: branch_true: ...to here
libvirt-12.2.0/src/libxl/xen_xl.c:967:20: branch_true: following ‘true’ branch (when ‘key’ is non-NULL)...
libvirt-12.2.0/src/libxl/xen_xl.c:969:33: branch_true: ...to here
libvirt-12.2.0/src/libxl/xen_xl.c:975:20: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/libxl/xen_xl.c:979:27: branch_false: ...to here
libvirt-12.2.0/src/libxl/xen_xl.c:979:27: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/libxl/xen_xl.c:980:25: branch_false: following ‘false’ branch (when ‘nextkey’ is NULL)...
libvirt-12.2.0/src/libxl/xen_xl.c:980:60: branch_false: ...to here
libvirt-12.2.0/src/libxl/xen_xl.c:987:24: branch_false: following ‘false’ branch (when ‘nextkey’ is NULL)...
libvirt-12.2.0/src/libxl/xen_xl.c:987:24: branch_false: ...to here
libvirt-12.2.0/src/libxl/xen_xl.c:967:20: branch_false: following ‘false’ branch (when ‘key’ is NULL)...
libvirt-12.2.0/src/libxl/xen_xl.c:994:29: branch_false: ...to here
libvirt-12.2.0/src/libxl/xen_xl.c:994:16: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/libxl/xen_xl.c:997:17: branch_false: ...to here
libvirt-12.2.0/src/libxl/xen_xl.c:997:17: danger: argument 1 (‘type’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def98]
libvirt-12.2.0/src/lxc/lxc_container.c:1906:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libvirt-12.2.0/src/lxc/lxc_container.c:1895:12: enter_function: entry to ‘lxcContainerSetHostname’
libvirt-12.2.0/src/lxc/lxc_container.c:1906:9: danger: dereference of NULL ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def99]
libvirt-12.2.0/src/lxc/lxc_driver.c:2978:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
libvirt-12.2.0/src/lxc/lxc_driver.c:4389:12: enter_function: entry to ‘lxcDomainAttachDeviceFlags’
libvirt-12.2.0/src/lxc/lxc_driver.c:4401:5: branch_false: following ‘false’ branch (when ‘__unsuppflags == 0’)...
libvirt-12.2.0/src/lxc/lxc_driver.c:4404:16: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4404:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4407:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4407:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4410:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4410:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4413:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4413:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4416:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4416:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4423:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4423:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4424:26: branch_true: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4424:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4430:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4430:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4432:17: branch_true: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4433:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4436:13: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4436:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4441:20: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4441:20: call_function: calling ‘lxcDomainAttachDeviceConfig’ from ‘lxcDomainAttachDeviceFlags’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def100]
libvirt-12.2.0/src/lxc/lxc_driver.c:3122:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
libvirt-12.2.0/src/lxc/lxc_driver.c:4549:12: enter_function: entry to ‘lxcDomainDetachDeviceFlags’
libvirt-12.2.0/src/lxc/lxc_driver.c:4564:5: branch_false: following ‘false’ branch (when ‘__unsuppflags == 0’)...
libvirt-12.2.0/src/lxc/lxc_driver.c:4567:16: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4567:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4570:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4570:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4573:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4573:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4576:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4576:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4579:18: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4579:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4582:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4582:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4588:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4588:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4589:26: branch_true: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4589:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4594:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4594:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4596:17: branch_true: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4597:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4600:20: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4600:20: call_function: calling ‘lxcDomainDetachDeviceConfig’ from ‘lxcDomainDetachDeviceFlags’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def101]
libvirt-12.2.0/src/lxc/lxc_driver.c:3915:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
libvirt-12.2.0/src/lxc/lxc_driver.c:4389:12: enter_function: entry to ‘lxcDomainAttachDeviceFlags’
libvirt-12.2.0/src/lxc/lxc_driver.c:4401:5: branch_false: following ‘false’ branch (when ‘__unsuppflags == 0’)...
libvirt-12.2.0/src/lxc/lxc_driver.c:4404:16: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4404:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4407:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4407:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4410:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4410:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4413:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4413:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4416:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4416:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4417:28: branch_true: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4417:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4423:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4423:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4430:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4430:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4432:17: branch_true: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4433:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4436:13: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4436:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4441:20: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4441:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4445:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4445:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4446:44: branch_true: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4446:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4451:20: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4451:20: call_function: calling ‘lxcDomainAttachDeviceLive’ from ‘lxcDomainAttachDeviceFlags’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def102]
libvirt-12.2.0/src/lxc/lxc_driver.c:4340:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
libvirt-12.2.0/src/lxc/lxc_driver.c:4549:12: enter_function: entry to ‘lxcDomainDetachDeviceFlags’
libvirt-12.2.0/src/lxc/lxc_driver.c:4564:5: branch_false: following ‘false’ branch (when ‘__unsuppflags == 0’)...
libvirt-12.2.0/src/lxc/lxc_driver.c:4567:16: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4567:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4570:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4570:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4573:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4573:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4576:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4576:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4579:18: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4579:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4582:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4582:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4583:28: branch_true: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4583:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4588:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4588:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4594:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4594:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4596:17: branch_true: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4597:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4600:20: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4600:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4604:9: branch_false: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4604:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/lxc/lxc_driver.c:4605:20: branch_true: ...to here
libvirt-12.2.0/src/lxc/lxc_driver.c:4605:20: call_function: calling ‘lxcDomainDetachDeviceLive’ from ‘lxcDomainDetachDeviceFlags’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def103]
libvirt-12.2.0/src/node_device/node_device_driver.c:1919:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘defs’
libvirt-12.2.0/src/node_device/node_device_driver.c:1891:1: enter_function: entry to ‘nodeDeviceUpdateMediatedDevices’
libvirt-12.2.0/src/node_device/node_device_driver.c:1893:35: release_memory: ‘defs’ is NULL
libvirt-12.2.0/src/node_device/node_device_driver.c:1894:35: release_memory: ‘defs’ is NULL
libvirt-12.2.0/src/node_device/node_device_driver.c:1901:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/node_device/node_device_driver.c:1906:23: branch_false: ...to here
libvirt-12.2.0/src/node_device/node_device_driver.c:1906:23: call_function: calling ‘virMdevctlList’ from ‘nodeDeviceUpdateMediatedDevices’
libvirt-12.2.0/src/node_device/node_device_driver.c:1906:23: return_function: returning to ‘nodeDeviceUpdateMediatedDevices’ from ‘virMdevctlList’
libvirt-12.2.0/src/node_device/node_device_driver.c:1906:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/node_device/node_device_driver.c:1914:5: branch_false: ...to here
libvirt-12.2.0/src/node_device/node_device_driver.c:1914:5: release_memory: ‘defs’ is NULL
libvirt-12.2.0/src/node_device/node_device_driver.c:1918:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/node_device/node_device_driver.c:1919:48: branch_true: ...to here
libvirt-12.2.0/src/node_device/node_device_driver.c:1919:48: release_memory: ‘defs’ is NULL
libvirt-12.2.0/src/node_device/node_device_driver.c:1919:13: danger: dereference of NULL ‘defs + i * 8’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def104]
libvirt-12.2.0/src/qemu/qemu_alias.c:43:10: warning[-Wanalyzer-null-argument]: use of NULL ‘prefix’ where non-null expected
libvirt-12.2.0/src/qemu/qemu_alias.c:84:1: enter_function: entry to ‘qemuAssignDeviceChrAlias’
libvirt-12.2.0/src/qemu/qemu_alias.c:127:8: branch_true: following ‘true’ branch (when ‘idx == -1’)...
libvirt-12.2.0/src/qemu/qemu_alias.c:127:29: branch_true: ...to here
libvirt-12.2.0/src/qemu/qemu_alias.c:127:29: call_function: calling ‘qemuGetNextChrDevIndex’ from ‘qemuAssignDeviceChrAlias’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def105]
libvirt-12.2.0/src/qemu/qemu_blockjob.c:1087:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘baseparent’
libvirt-12.2.0/src/qemu/qemu_blockjob.c:1650:1: enter_function: entry to ‘qemuBlockJobUpdate’
libvirt-12.2.0/src/qemu/qemu_blockjob.c:1656:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_blockjob.c:1659:5: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_blockjob.c:1659:5: call_function: calling ‘qemuBlockJobEventProcess’ from ‘qemuBlockJobUpdate’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def106]
libvirt-12.2.0/src/qemu/qemu_blockjob.c:1177:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘baseparent’
libvirt-12.2.0/src/qemu/qemu_blockjob.c:1650:1: enter_function: entry to ‘qemuBlockJobUpdate’
libvirt-12.2.0/src/qemu/qemu_blockjob.c:1656:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_blockjob.c:1659:5: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_blockjob.c:1659:5: call_function: calling ‘qemuBlockJobEventProcess’ from ‘qemuBlockJobUpdate’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def107]
libvirt-12.2.0/src/qemu/qemu_capabilities.c:6118:9: warning[-Wanalyzer-null-argument]: use of NULL ‘binary’ where non-null expected
libvirt-12.2.0/src/qemu/qemu_capabilities.c:6177:1: enter_function: entry to ‘virQEMUCapsNewData’
libvirt-12.2.0/src/qemu/qemu_capabilities.c:6182:12: call_function: calling ‘virQEMUCapsNewForBinaryInternal’ from ‘virQEMUCapsNewData’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def108]
libvirt-12.2.0/src/qemu/qemu_driver.c:4456:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘vcpuinfo’
libvirt-12.2.0/src/qemu/qemu_driver.c:4417:5: branch_false: following ‘false’ branch (when ‘__unsuppflags == 0’)...
libvirt-12.2.0/src/qemu/qemu_driver.c:4420:11: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:4422:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_driver.c:4425:9: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:4425:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_driver.c:4428:9: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:4428:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_driver.c:4431:9: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:4431:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_driver.c:4434:9: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:4434:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_driver.c:4442:21: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:4442:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_driver.c:4445:9: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:4445:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_driver.c:4451:9: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:4455:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/qemu/qemu_driver.c:4456:9: branch_true: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:4456:9: danger: dereference of NULL ‘vcpuinfo’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def109]
libvirt-12.2.0/src/qemu/qemu_driver.c:7197:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
libvirt-12.2.0/src/qemu/qemu_driver.c:7487:1: enter_function: entry to ‘qemuDomainUpdateDeviceFlags’
libvirt-12.2.0/src/qemu/qemu_driver.c:7503:5: branch_false: following ‘false’ branch (when ‘__unsuppflags == 0’)...
libvirt-12.2.0/src/qemu/qemu_driver.c:7507:11: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:7509:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_driver.c:7512:5: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:7514:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_driver.c:7517:9: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:7517:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_driver.c:7520:9: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:7520:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_driver.c:7523:9: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:7527:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_driver.c:7533:9: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:7533:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/qemu/qemu_driver.c:7535:50: branch_true: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:7534:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_driver.c:7539:9: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:7539:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/qemu/qemu_driver.c:7542:47: branch_true: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:7543:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_driver.c:7548:20: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_driver.c:7548:20: call_function: calling ‘qemuDomainUpdateDeviceConfig’ from ‘qemuDomainUpdateDeviceFlags’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def110]
libvirt-12.2.0/src/qemu/qemu_namespace.c:1217:9: warning[-Wanalyzer-null-argument]: use of NULL ‘file’ where non-null expected
libvirt-12.2.0/src/qemu/qemu_namespace.c:1746:1: enter_function: entry to ‘qemuDomainNamespaceSetupInput’
libvirt-12.2.0/src/qemu/qemu_namespace.c:1753:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/qemu/qemu_namespace.c:1756:9: branch_true: ...to here
libvirt-12.2.0/src/qemu/qemu_namespace.c:1756:9: call_function: calling ‘qemuDomainSetupInput’ from ‘qemuDomainNamespaceSetupInput’
libvirt-12.2.0/src/qemu/qemu_namespace.c:1756:9: return_function: returning to ‘qemuDomainNamespaceSetupInput’ from ‘qemuDomainSetupInput’
libvirt-12.2.0/src/qemu/qemu_namespace.c:1759:16: call_function: calling ‘qemuNamespaceMknodPaths’ from ‘qemuDomainNamespaceSetupInput’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def111]
libvirt-12.2.0/src/qemu/qemu_namespace.c:1475:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘mount’
libvirt-12.2.0/src/qemu/qemu_namespace.c:1767:1: enter_function: entry to ‘qemuDomainNamespaceTeardownInput’
libvirt-12.2.0/src/qemu/qemu_namespace.c:1772:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/qemu/qemu_namespace.c:1775:9: branch_true: ...to here
libvirt-12.2.0/src/qemu/qemu_namespace.c:1775:9: call_function: calling ‘qemuDomainSetupInput’ from ‘qemuDomainNamespaceTeardownInput’
libvirt-12.2.0/src/qemu/qemu_namespace.c:1775:9: return_function: returning to ‘qemuDomainNamespaceTeardownInput’ from ‘qemuDomainSetupInput’
libvirt-12.2.0/src/qemu/qemu_namespace.c:1778:9: call_function: calling ‘qemuNamespaceUnlinkPaths’ from ‘qemuDomainNamespaceTeardownInput’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def112]
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:252:9: warning[-Wanalyzer-null-argument]: use of NULL ‘*caps.path’ where non-null expected
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:354:1: enter_function: entry to ‘virNbdkitCapsNewData’
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:365:12: call_function: calling ‘qemuNbdkitCapsNew’ from ‘virNbdkitCapsNewData’
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:365:12: return_function: returning to ‘virNbdkitCapsNewData’ from ‘qemuNbdkitCapsNew’
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:366:5: call_function: calling ‘qemuNbdkitCapsQuery’ from ‘virNbdkitCapsNewData’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def113]
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1264:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘nbd_create()’ where non-null expected
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1175:1: enter_function: entry to ‘qemuNbdkitProcessStart’
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1195:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1201:17: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1201:17: call_function: calling ‘qemuNbdkitProcessBuildCommand’ from ‘qemuNbdkitProcessStart’
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1201:17: return_function: returning to ‘qemuNbdkitProcessStart’ from ‘qemuNbdkitProcessBuildCommand’
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1201:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1204:24: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1204:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1212:13: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1219:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1222:9: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1234:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1237:9: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1237:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1243:15: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1243:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1250:9: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1250:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1250:8: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1253:12: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1254:27: branch_true: ...to here
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1263:19: acquire_memory: this call could return NULL
libvirt-12.2.0/src/qemu/qemu_nbdkit.c:1264:17: danger: argument 1 (‘nbd_create()’) from [(25)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/24) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def114]
libvirt-12.2.0/src/qemu/qemu_snapshot.c:2547:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tmpsnapdef’
libvirt-12.2.0/src/qemu/qemu_snapshot.c:2940:1: enter_function: entry to ‘qemuSnapshotRevert’
libvirt-12.2.0/src/qemu/qemu_snapshot.c:2953:5: branch_false: following ‘false’ branch (when ‘__unsuppflags == 0’)...
libvirt-12.2.0/src/qemu/qemu_snapshot.c:2958:9: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_snapshot.c:2974:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_snapshot.c:2980:9: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_snapshot.c:2980:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_snapshot.c:2986:18: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_snapshot.c:2986:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_snapshot.c:2988:15: call_function: inlined call to ‘virDomainSnapshotObjGetDef’ from ‘qemuSnapshotRevert’
libvirt-12.2.0/src/qemu/qemu_snapshot.c:2990:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_snapshot.c:2993:9: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_snapshot.c:2993:9: call_function: calling ‘qemuSnapshotRevertPrep’ from ‘qemuSnapshotRevert’
libvirt-12.2.0/src/qemu/qemu_snapshot.c:2993:9: return_function: returning to ‘qemuSnapshotRevert’ from ‘qemuSnapshotRevertPrep’
libvirt-12.2.0/src/qemu/qemu_snapshot.c:2993:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_snapshot.c:2998:38: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_snapshot.c:3001:15: call_function: calling ‘qemuSnapshotRevertActive’ from ‘qemuSnapshotRevert’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def115]
libvirt-12.2.0/src/qemu/qemu_vhost_user.c:330:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘vu’
libvirt-12.2.0/src/qemu/qemu_vhost_user.c:340:1: enter_function: entry to ‘qemuVhostUserFillDomainGPU’
libvirt-12.2.0/src/qemu/qemu_vhost_user.c:349:17: call_function: calling ‘qemuVhostUserFetchParsedConfigs’ from ‘qemuVhostUserFillDomainGPU’
libvirt-12.2.0/src/qemu/qemu_vhost_user.c:349:17: return_function: returning to ‘qemuVhostUserFillDomainGPU’ from ‘qemuVhostUserFetchParsedConfigs’
libvirt-12.2.0/src/qemu/qemu_vhost_user.c:349:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_vhost_user.c:349:8: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_vhost_user.c:353:17: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_vhost_user.c:398:8: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_vhost_user.c:398:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_vhost_user.c:404:10: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_vhost_user.c:404:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/qemu/qemu_vhost_user.c:407:10: branch_false: ...to here
libvirt-12.2.0/src/qemu/qemu_vhost_user.c:407:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/qemu/qemu_vhost_user.c:407:8: branch_true: ...to here
libvirt-12.2.0/src/qemu/qemu_vhost_user.c:408:9: call_function: inlined call to ‘qemuVhostUserGPUHasFeature’ from ‘qemuVhostUserFillDomainGPU’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def116]
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3392:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3356:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3359:5: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3361:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3365:8: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3365:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3369:8: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3369:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3371:15: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3373:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3379:9: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3379:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3385:5: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3388:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3390:43: branch_true: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3392:43: danger: dereference of NULL ‘params + i * 88’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def117]
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3458:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3422:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3425:5: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3427:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3431:8: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3431:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3435:8: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3435:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3437:15: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3439:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3445:9: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3445:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3451:5: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3454:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3456:43: branch_true: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:3458:43: danger: dereference of NULL ‘params + i * 88’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def118]
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:5276:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:5235:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:5238:9: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:5238:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:5242:9: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:5242:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:5247:8: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:5247:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:5247:8: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:5250:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:5255:39: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:5256:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:5259:9: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:5272:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:5275:21: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:5276:23: branch_true: ...to here
libvirt-12.2.0/src/remote/remote_daemon_dispatch.c:5276:17: danger: dereference of NULL ‘params + i * 96’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def119]
libvirt-12.2.0/src/remote/remote_driver.c:3531:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘state’
libvirt-12.2.0/src/remote/remote_driver.c:3596:12: enter_function: entry to ‘remoteAuthInteract’
libvirt-12.2.0/src/remote/remote_driver.c:3601:5: call_function: inlined call to ‘remoteAuthInteractStateClear’ from ‘remoteAuthInteract’
libvirt-12.2.0/src/remote/remote_driver.c:3604:9: branch_true: ...to here
libvirt-12.2.0/src/remote/remote_driver.c:3604:9: call_function: calling ‘remoteAuthFillFromConfig’ from ‘remoteAuthInteract’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def120]
libvirt-12.2.0/src/remote/remote_driver.c:6907:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘leases_ret’
libvirt-12.2.0/src/remote/remote_driver.c:6872:1: enter_function: entry to ‘remoteNetworkGetDHCPLeases’
libvirt-12.2.0/src/remote/remote_driver.c:6886:16: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/remote/remote_driver.c:6886:5: branch_true: ...to here
libvirt-12.2.0/src/remote/remote_driver.c:6890:9: call_function: calling ‘call’ from ‘remoteNetworkGetDHCPLeases’
libvirt-12.2.0/src/remote/remote_driver.c:6890:9: return_function: returning to ‘remoteNetworkGetDHCPLeases’ from ‘call’
libvirt-12.2.0/src/remote/remote_driver.c:6890:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_driver.c:6895:9: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_driver.c:6895:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_driver.c:6902:8: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_driver.c:6902:8: branch_true: following ‘true’ branch (when ‘leases’ is non-NULL)...
libvirt-12.2.0/src/remote/remote_driver.c:6903:12: branch_true: ...to here
libvirt-12.2.0/src/remote/remote_driver.c:6903:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_driver.c:6906:9: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_driver.c:6906:21: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/remote/remote_driver.c:6907:29: branch_true: ...to here
libvirt-12.2.0/src/remote/remote_driver.c:6907:13: danger: dereference of NULL ‘leases_ret + i * 8’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def121]
libvirt-12.2.0/src/remote/remote_driver.c:7150:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ifaces_ret’
libvirt-12.2.0/src/remote/remote_driver.c:7111:1: enter_function: entry to ‘remoteDomainInterfaceAddresses’
libvirt-12.2.0/src/remote/remote_driver.c:7129:9: call_function: calling ‘call’ from ‘remoteDomainInterfaceAddresses’
libvirt-12.2.0/src/remote/remote_driver.c:7129:9: return_function: returning to ‘remoteDomainInterfaceAddresses’ from ‘call’
libvirt-12.2.0/src/remote/remote_driver.c:7129:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_driver.c:7136:9: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_driver.c:7136:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_driver.c:7143:8: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_driver.c:7143:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/remote/remote_driver.c:7146:5: branch_false: ...to here
libvirt-12.2.0/src/remote/remote_driver.c:7146:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/remote/remote_driver.c:7148:48: branch_true: ...to here
libvirt-12.2.0/src/remote/remote_driver.c:7150:9: danger: dereference of NULL ‘ifaces_ret + i * 8’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def122]
libvirt-12.2.0/src/rpc/virnetserverservice.c:145:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
libvirt-12.2.0/src/rpc/virnetserverservice.c:228:22: enter_function: entry to ‘virNetServerServiceNewUNIX’
libvirt-12.2.0/src/rpc/virnetserverservice.c:242:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/rpc/virnetserverservice.c:249:11: branch_false: ...to here
libvirt-12.2.0/src/rpc/virnetserverservice.c:249:11: call_function: calling ‘virNetServerServiceNewSocket’ from ‘virNetServerServiceNewUNIX’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def123]
libvirt-12.2.0/src/rpc/virnetsocket.c:754:9: warning[-Wanalyzer-null-argument]: use of NULL ‘lockpath’ where non-null expected
libvirt-12.2.0/src/rpc/virnetsocket.c:659:5: enter_function: entry to ‘virNetSocketNewConnectUNIX’
libvirt-12.2.0/src/rpc/virnetsocket.c:677:8: branch_false: following ‘false’ branch (when ‘spawnDaemonPath’ is NULL)...
libvirt-12.2.0/src/rpc/virnetsocket.c:702:15: branch_false: ...to here
libvirt-12.2.0/src/rpc/virnetsocket.c:702:8: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
libvirt-12.2.0/src/rpc/virnetsocket.c:707:5: branch_false: ...to here
libvirt-12.2.0/src/rpc/virnetsocket.c:708:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/rpc/virnetsocket.c:712:9: branch_false: ...to here
libvirt-12.2.0/src/rpc/virnetsocket.c:747:22: call_function: calling ‘virNetSocketNew’ from ‘virNetSocketNewConnectUNIX’
libvirt-12.2.0/src/rpc/virnetsocket.c:747:22: return_function: returning to ‘virNetSocketNewConnectUNIX’ from ‘virNetSocketNew’
libvirt-12.2.0/src/rpc/virnetsocket.c:747:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/rpc/virnetsocket.c:752:2: branch_false: ...to here
libvirt-12.2.0/src/rpc/virnetsocket.c:753:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/rpc/virnetsocket.c:754:9: branch_true: ...to here
libvirt-12.2.0/src/rpc/virnetsocket.c:754:9: danger: argument 1 (‘lockpath’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-775): [#def124]
libvirt-12.2.0/src/rpc/virnetsocket.c:2035:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*sock.fd’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def125]
libvirt-12.2.0/src/rpc/virnetsocket.c:2040:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*sock.fd’
libvirt-12.2.0/src/rpc/virnetsocket.c:2035:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/rpc/virnetsocket.c:2040:5: branch_false: ...to here
libvirt-12.2.0/src/rpc/virnetsocket.c:2040:5: danger: ‘*sock.fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def126]
libvirt-12.2.0/src/rpc/virnettlscontext.c:132:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘keys’
libvirt-12.2.0/src/rpc/virnettlscontext.c:381:19: enter_function: entry to ‘virNetTLSContextNewClient’
libvirt-12.2.0/src/rpc/virnettlscontext.c:390:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/rpc/virnettlscontext.c:390:8: branch_false: ...to here
libvirt-12.2.0/src/rpc/virnettlscontext.c:396:12: call_function: calling ‘virNetTLSContextNew’ from ‘virNetTLSContextNewClient’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def127]
libvirt-12.2.0/src/storage/storage_backend_logical.c:431:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libvirt-12.2.0/src/storage/storage_backend_logical.c:416:1: enter_function: entry to ‘virStorageBackendLogicalFindPoolSourcesFunc’
libvirt-12.2.0/src/storage/storage_backend_logical.c:430:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/storage/storage_backend_logical.c:431:13: branch_true: ...to here
libvirt-12.2.0/src/storage/storage_backend_logical.c:431:13: danger: argument 2 (‘<unknown>’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def128]
libvirt-12.2.0/src/storage/storage_backend_logical.c:587:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘thisSource’
libvirt-12.2.0/src/storage/storage_backend_logical.c:557:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/storage/storage_backend_logical.c:557:8: branch_false: ...to here
libvirt-12.2.0/src/storage/storage_backend_logical.c:561:17: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/storage/storage_backend_logical.c:567:8: branch_false: ...to here
libvirt-12.2.0/src/storage/storage_backend_logical.c:567:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/storage/storage_backend_logical.c:578:9: branch_false: ...to here
libvirt-12.2.0/src/storage/storage_backend_logical.c:578:7: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/storage/storage_backend_logical.c:578:7: branch_false: ...to here
libvirt-12.2.0/src/storage/storage_backend_logical.c:586:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/storage/storage_backend_logical.c:586:17: branch_true: ...to here
libvirt-12.2.0/src/storage/storage_backend_logical.c:587:25: danger: dereference of NULL ‘thisSource’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def129]
libvirt-12.2.0/src/test/test_driver.c:10578:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
libvirt-12.2.0/src/test/test_driver.c:10643:1: enter_function: entry to ‘testDomainUpdateDeviceFlags’
libvirt-12.2.0/src/test/test_driver.c:10658:5: branch_false: following ‘false’ branch (when ‘__unsuppflags == 0’)...
libvirt-12.2.0/src/test/test_driver.c:10661:16: branch_false: ...to here
libvirt-12.2.0/src/test/test_driver.c:10661:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/test/test_driver.c:10664:9: branch_false: ...to here
libvirt-12.2.0/src/test/test_driver.c:10664:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/test/test_driver.c:10667:9: branch_false: ...to here
libvirt-12.2.0/src/test/test_driver.c:10667:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/test/test_driver.c:10670:9: branch_false: ...to here
libvirt-12.2.0/src/test/test_driver.c:10675:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/test/test_driver.c:10678:9: branch_false: ...to here
libvirt-12.2.0/src/test/test_driver.c:10678:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/test/test_driver.c:10684:9: branch_false: ...to here
libvirt-12.2.0/src/test/test_driver.c:10684:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/test/test_driver.c:10691:9: branch_false: ...to here
libvirt-12.2.0/src/test/test_driver.c:10691:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/test/test_driver.c:10693:17: branch_true: ...to here
libvirt-12.2.0/src/test/test_driver.c:10694:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/test/test_driver.c:10699:20: branch_false: ...to here
libvirt-12.2.0/src/test/test_driver.c:10699:20: call_function: calling ‘testDomainUpdateDevice’ from ‘testDomainUpdateDeviceFlags’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def130]
libvirt-12.2.0/src/util/vircgroupv1.c:368:26: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libvirt-12.2.0/src/util/vircgroupv1.c:332:1: enter_function: entry to ‘virCgroupV1DetectPlacement’
libvirt-12.2.0/src/util/vircgroupv1.c:339:17: branch_true: following ‘true’ branch (when ‘i != 10’)...
libvirt-12.2.0/src/util/vircgroupv1.c:340:31: branch_true: ...to here
libvirt-12.2.0/src/util/vircgroupv1.c:344:14: call_function: calling ‘virCgroupV1MountOptsMatchController’ from ‘virCgroupV1DetectPlacement’
libvirt-12.2.0/src/util/vircgroupv1.c:344:14: return_function: returning to ‘virCgroupV1DetectPlacement’ from ‘virCgroupV1MountOptsMatchController’
libvirt-12.2.0/src/util/vircgroupv1.c:368:26: danger: argument 1 (‘<unknown>’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-775): [#def131]
libvirt-12.2.0/src/util/virdaemon.c:66:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(stdinfd, 0)’
libvirt-12.2.0/src/util/virdaemon.c:43:1: enter_function: entry to ‘virDaemonForkIntoBackground’
libvirt-12.2.0/src/util/virdaemon.c:48:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virdaemon.c:51:11: branch_false: ...to here
libvirt-12.2.0/src/util/virdaemon.c:62:16: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virdaemon.c:64:29: call_function: inlined call to ‘open’ from ‘virDaemonForkIntoBackground’
libvirt-12.2.0/src/util/virdaemon.c:64:16: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virdaemon.c:66:17: branch_false: ...to here
libvirt-12.2.0/src/util/virdaemon.c:66:17: acquire_resource: opened here
libvirt-12.2.0/src/util/virdaemon.c:66:16: danger: ‘dup2(stdinfd, 0)’ leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def132]
libvirt-12.2.0/src/util/virdaemon.c:68:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(stdoutfd, 1)’
libvirt-12.2.0/src/util/virdaemon.c:43:1: enter_function: entry to ‘virDaemonForkIntoBackground’
libvirt-12.2.0/src/util/virdaemon.c:48:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virdaemon.c:51:11: branch_false: ...to here
libvirt-12.2.0/src/util/virdaemon.c:62:16: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virdaemon.c:64:29: call_function: inlined call to ‘open’ from ‘virDaemonForkIntoBackground’
libvirt-12.2.0/src/util/virdaemon.c:64:16: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virdaemon.c:66:17: branch_false: ...to here
libvirt-12.2.0/src/util/virdaemon.c:66:16: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virdaemon.c:68:17: branch_false: ...to here
libvirt-12.2.0/src/util/virdaemon.c:68:17: acquire_resource: opened here
libvirt-12.2.0/src/util/virdaemon.c:68:16: danger: ‘dup2(stdoutfd, 1)’ leaks here; was opened at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def133]
libvirt-12.2.0/src/util/virdaemon.c:70:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(stdoutfd, 2)’
libvirt-12.2.0/src/util/virdaemon.c:43:1: enter_function: entry to ‘virDaemonForkIntoBackground’
libvirt-12.2.0/src/util/virdaemon.c:48:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virdaemon.c:51:11: branch_false: ...to here
libvirt-12.2.0/src/util/virdaemon.c:62:16: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virdaemon.c:64:29: call_function: inlined call to ‘open’ from ‘virDaemonForkIntoBackground’
libvirt-12.2.0/src/util/virdaemon.c:64:16: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virdaemon.c:66:17: branch_false: ...to here
libvirt-12.2.0/src/util/virdaemon.c:66:16: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virdaemon.c:68:17: branch_false: ...to here
libvirt-12.2.0/src/util/virdaemon.c:68:16: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virdaemon.c:70:17: branch_false: ...to here
libvirt-12.2.0/src/util/virdaemon.c:70:17: acquire_resource: opened here
libvirt-12.2.0/src/util/virdaemon.c:70:16: danger: ‘dup2(stdoutfd, 2)’ leaks here; was opened at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def134]
libvirt-12.2.0/src/util/virfdstream.c:1363:9: warning[-Wanalyzer-null-argument]: use of NULL ‘path’ where non-null expected
libvirt-12.2.0/src/util/virfdstream.c:1263:1: enter_function: entry to ‘virFDStreamOpenFileInternal’
libvirt-12.2.0/src/util/virfdstream.c:1284:14: call_function: inlined call to ‘open’ from ‘virFDStreamOpenFileInternal’
libvirt-12.2.0/src/util/virfdstream.c:1287:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virfdstream.c:1295:9: branch_false: ...to here
libvirt-12.2.0/src/util/virfdstream.c:1295:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virfdstream.c:1302:8: branch_false: ...to here
libvirt-12.2.0/src/util/virfdstream.c:1315:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/util/virfdstream.c:1316:12: branch_true: ...to here
libvirt-12.2.0/src/util/virfdstream.c:1319:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virfdstream.c:1326:13: branch_false: ...to here
libvirt-12.2.0/src/util/virfdstream.c:1326:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virfdstream.c:1329:22: branch_false: ...to here
libvirt-12.2.0/src/util/virfdstream.c:1347:13: release_memory: ‘path’ is NULL
libvirt-12.2.0/src/util/virfdstream.c:1353:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/util/virfdstream.c:1354:9: branch_true: ...to here
libvirt-12.2.0/src/util/virfdstream.c:1362:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/util/virfdstream.c:1363:9: branch_true: ...to here
libvirt-12.2.0/src/util/virfdstream.c:1363:9: danger: argument 1 (‘path’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def135]
libvirt-12.2.0/src/util/virfile.c:2138:13: warning[-Wanalyzer-null-argument]: use of NULL ‘path’ where non-null expected
libvirt-12.2.0/src/util/virfile.c:2809:1: enter_function: entry to ‘virFileRemove’
libvirt-12.2.0/src/util/virfile.c:2818:10: call_function: calling ‘virFileRemoveNeedsSetuid’ from ‘virFileRemove’
libvirt-12.2.0/src/util/virfile.c:2818:10: return_function: returning to ‘virFileRemove’ from ‘virFileRemoveNeedsSetuid’
libvirt-12.2.0/src/util/virfile.c:2818:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/util/virfile.c:2829:8: branch_true: ...to here
libvirt-12.2.0/src/util/virfile.c:2838:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virfile.c:2841:8: branch_false: ...to here
libvirt-12.2.0/src/util/virfile.c:2841:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virfile.c:2867:9: branch_false: ...to here
libvirt-12.2.0/src/util/virfile.c:2867:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virfile.c:2872:9: branch_false: ...to here
libvirt-12.2.0/src/util/virfile.c:2872:9: call_function: calling ‘virFileIsDir’ from ‘virFileRemove’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def136]
libvirt-12.2.0/src/util/virfile.c:3760:12: warning[-Wanalyzer-null-argument]: use of NULL ‘path’ where non-null expected
libvirt-12.2.0/src/util/virfile.c:3765:1: enter_function: entry to ‘virFileIsSharedFSType’
libvirt-12.2.0/src/util/virfile.c:3768:22: release_memory: ‘dirpath’ is NULL
libvirt-12.2.0/src/util/virfile.c:3774:15: call_function: calling ‘virFileCheckParents’ from ‘virFileIsSharedFSType’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def137]
libvirt-12.2.0/src/util/virfile.c:3810:9: warning[-Wanalyzer-null-argument]: use of NULL ‘path’ where non-null expected
libvirt-12.2.0/src/util/virfile.c:3868:1: enter_function: entry to ‘virFileFindHugeTLBFS’
libvirt-12.2.0/src/util/virfile.c:3879:8: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
libvirt-12.2.0/src/util/virfile.c:3879:8: branch_false: ...to here
libvirt-12.2.0/src/util/virfile.c:3886:12: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/util/virfile.c:3889:13: branch_true: ...to here
libvirt-12.2.0/src/util/virfile.c:3896:9: release_memory: using NULL here
libvirt-12.2.0/src/util/virfile.c:3898:13: call_function: calling ‘virFileGetHugepageSize’ from ‘virFileFindHugeTLBFS’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def138]
libvirt-12.2.0/src/util/virfirewall.c:1009:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libvirt-12.2.0/src/util/virfirewall.c:977:1: enter_function: entry to ‘virFirewallNewFromRollback’
libvirt-12.2.0/src/util/virfirewall.c:983:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virfirewall.c:989:16: branch_false: ...to here
libvirt-12.2.0/src/util/virfirewall.c:994:33: branch_true: following ‘true’ branch (when ‘g != 0’)...
libvirt-12.2.0/src/util/virfirewall.c:996:35: branch_true: ...to here
libvirt-12.2.0/src/util/virfirewall.c:1001:9: call_function: calling ‘virFirewallStartTransaction’ from ‘virFirewallNewFromRollback’
libvirt-12.2.0/src/util/virfirewall.c:1001:9: return_function: returning to ‘virFirewallNewFromRollback’ from ‘virFirewallStartTransaction’
libvirt-12.2.0/src/util/virfirewall.c:1003:36: branch_true: following ‘true’ branch (when ‘r != 0’)...
libvirt-12.2.0/src/util/virfirewall.c:1005:39: branch_true: ...to here
libvirt-12.2.0/src/util/virfirewall.c:1006:37: call_function: calling ‘virFirewallAddCmdFull’ from ‘virFirewallNewFromRollback’
libvirt-12.2.0/src/util/virfirewall.c:1006:37: return_function: returning to ‘virFirewallNewFromRollback’ from ‘virFirewallAddCmdFull’
libvirt-12.2.0/src/util/virfirewall.c:1008:25: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/util/virfirewall.c:1009:17: branch_true: ...to here
libvirt-12.2.0/src/util/virfirewall.c:1009:17: danger: dereference of NULL ‘virFirewallAddCmdFull(virFirewallNew(*original.backend), *origCmd.layer, 0, 0, 0, 0)’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def139]
libvirt-12.2.0/src/util/virlockspace.c:94:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libvirt-12.2.0/src/util/virlockspace.c:111:1: enter_function: entry to ‘virLockSpaceResourceNew’
libvirt-12.2.0/src/util/virlockspace.c:126:23: call_function: calling ‘virLockSpaceGetResourcePath’ from ‘virLockSpaceResourceNew’
libvirt-12.2.0/src/util/virlockspace.c:126:23: return_function: returning to ‘virLockSpaceResourceNew’ from ‘virLockSpaceGetResourcePath’
libvirt-12.2.0/src/util/virlockspace.c:126:10: release_memory: using NULL here
libvirt-12.2.0/src/util/virlockspace.c:126:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/util/virlockspace.c:127:9: branch_true: ...to here
libvirt-12.2.0/src/util/virlockspace.c:220:5: call_function: calling ‘virLockSpaceResourceFree’ from ‘virLockSpaceResourceNew’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def140]
libvirt-12.2.0/src/util/virmdev.c:400:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
libvirt-12.2.0/src/util/virmdev.c:419:1: enter_function: entry to ‘virMediatedDeviceListMarkDevices’
libvirt-12.2.0/src/util/virmdev.c:429:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/util/virmdev.c:430:35: branch_true: ...to here
libvirt-12.2.0/src/util/virmdev.c:430:35: call_function: calling ‘virMediatedDeviceListGet’ from ‘virMediatedDeviceListMarkDevices’
libvirt-12.2.0/src/util/virmdev.c:430:35: return_function: returning to ‘virMediatedDeviceListMarkDevices’ from ‘virMediatedDeviceListGet’
libvirt-12.2.0/src/util/virmdev.c:430:28: release_memory: ‘mdev’ is NULL
libvirt-12.2.0/src/util/virmdev.c:432:13: call_function: calling ‘virMediatedDeviceIsUsed’ from ‘virMediatedDeviceListMarkDevices’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def141]
libvirt-12.2.0/src/util/virobject.c:226:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parent’
libvirt-12.2.0/src/util/virobject.c:289:1: enter_function: entry to ‘virObjectRWLockableNew’
libvirt-12.2.0/src/util/virobject.c:293:10: call_function: calling ‘virClassForObjectRWLockable’ from ‘virObjectRWLockableNew’
libvirt-12.2.0/src/util/virobject.c:293:10: return_function: returning to ‘virObjectRWLockableNew’ from ‘virClassForObjectRWLockable’
libvirt-12.2.0/src/util/virobject.c:293:10: call_function: calling ‘virClassIsDerivedFrom’ from ‘virObjectRWLockableNew’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def142]
libvirt-12.2.0/src/util/virpcivpd.c:181:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘v’
libvirt-12.2.0/src/util/virpcivpd.c:597:1: enter_function: entry to ‘virPCIVPDParse’
libvirt-12.2.0/src/util/virpcivpd.c:615:12: branch_true: following ‘true’ branch...
libvirt-12.2.0/src/util/virpcivpd.c:617:13: branch_true: ...to here
libvirt-12.2.0/src/util/virpcivpd.c:617:13: call_function: calling ‘virPCIVPDReadVPDBytes’ from ‘virPCIVPDParse’
libvirt-12.2.0/src/util/virpcivpd.c:617:13: return_function: returning to ‘virPCIVPDParse’ from ‘virPCIVPDReadVPDBytes’
libvirt-12.2.0/src/util/virpcivpd.c:617:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virpcivpd.c:621:13: branch_false: ...to here
libvirt-12.2.0/src/util/virpcivpd.c:645:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virpcivpd.c:655:13: branch_false: ...to here
libvirt-12.2.0/src/util/virpcivpd.c:655:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/src/util/virpcivpd.c:661:9: branch_false: ...to here
libvirt-12.2.0/src/util/virpcivpd.c:664:21: call_function: calling ‘virPCIVPDParseVPDLargeResourceString’ from ‘virPCIVPDParse’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def143]
libvirt-12.2.0/src/util/virrotatingfile.c:183:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libvirt-12.2.0/src/util/virrotatingfile.c:229:1: enter_function: entry to ‘virRotatingFileWriterNew’
libvirt-12.2.0/src/util/virrotatingfile.c:241:8: branch_false: following ‘false’ branch (when ‘maxbackup <= 32’)...
libvirt-12.2.0/src/util/virrotatingfile.c:248:5: branch_false: ...to here
libvirt-12.2.0/src/util/virrotatingfile.c:252:8: branch_true: following ‘true’ branch (when ‘trunc != 0’)...
libvirt-12.2.0/src/util/virrotatingfile.c:253:9: branch_true: ...to here
libvirt-12.2.0/src/util/virrotatingfile.c:253:9: call_function: calling ‘virRotatingFileWriterDelete’ from ‘virRotatingFileWriterNew’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def144]
libvirt-12.2.0/tools/virsh-completer-checkpoint.c:69:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libvirt-12.2.0/tools/virsh-completer-checkpoint.c:39:5: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libvirt-12.2.0/tools/virsh-completer-checkpoint.c:41:10: branch_false: ...to here
libvirt-12.2.0/tools/virsh-completer-checkpoint.c:41:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-completer-checkpoint.c:44:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-completer-checkpoint.c:47:25: branch_false: ...to here
libvirt-12.2.0/tools/virsh-completer-checkpoint.c:47:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-completer-checkpoint.c:49:9: branch_true: ...to here
libvirt-12.2.0/tools/virsh-completer-checkpoint.c:68:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-completer-checkpoint.c:69:19: branch_true: ...to here
libvirt-12.2.0/tools/virsh-completer-checkpoint.c:69:9: danger: dereference of NULL ‘(char **)(i * 8)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def145]
libvirt-12.2.0/tools/virsh-domain-monitor.c:1709:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_pp’
libvirt-12.2.0/tools/virsh-domain-monitor.c:1511:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-domain-monitor.c:1518:9: branch_false: ...to here
libvirt-12.2.0/tools/virsh-domain-monitor.c:1518:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-domain-monitor.c:1548:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-domain-monitor.c:1553:12: branch_false: ...to here
libvirt-12.2.0/tools/virsh-domain-monitor.c:1553:12: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-domain-monitor.c:1554:19: branch_true: ...to here
libvirt-12.2.0/tools/virsh-domain-monitor.c:1708:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-domain-monitor.c:1709:9: danger: dereference of NULL ‘_pp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def146]
libvirt-12.2.0/tools/virsh-domain.c:9169:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libvirt-12.2.0/tools/virsh-domain.c:9161:12: enter_function: entry to ‘getSignalNumber’
libvirt-12.2.0/tools/virsh-domain.c:9168:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-domain.c:9169:10: branch_true: ...to here
libvirt-12.2.0/tools/virsh-domain.c:9169:10: release_memory: using NULL here
libvirt-12.2.0/tools/virsh-domain.c:9169:9: danger: dereference of NULL ‘<unknown> + i’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def147]
libvirt-12.2.0/tools/virsh-domain.c:9174:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libvirt-12.2.0/tools/virsh-domain.c:9161:12: enter_function: entry to ‘getSignalNumber’
libvirt-12.2.0/tools/virsh-domain.c:9168:17: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-domain.c:9171:9: branch_false: ...to here
libvirt-12.2.0/tools/virsh-domain.c:9171:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-domain.c:9174:9: branch_false: ...to here
libvirt-12.2.0/tools/virsh-domain.c:9174:9: danger: argument 1 (‘<unknown>’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def148]
libvirt-12.2.0/tools/virsh-interface.c:295:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_pp’
libvirt-12.2.0/tools/virsh-interface.c:294:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-interface.c:295:9: danger: dereference of NULL ‘_pp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def149]
libvirt-12.2.0/tools/virsh-interface.c:298:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_pp’
libvirt-12.2.0/tools/virsh-interface.c:194:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-interface.c:202:9: branch_false: ...to here
libvirt-12.2.0/tools/virsh-interface.c:202:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-interface.c:214:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-interface.c:215:25: branch_true: ...to here
libvirt-12.2.0/tools/virsh-interface.c:216:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-interface.c:220:12: branch_false: ...to here
libvirt-12.2.0/tools/virsh-interface.c:220:12: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-interface.c:221:27: branch_true: ...to here
libvirt-12.2.0/tools/virsh-interface.c:297:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-interface.c:298:9: danger: dereference of NULL ‘_pp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def150]
libvirt-12.2.0/tools/virsh-nodedev.c:343:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_pp’
libvirt-12.2.0/tools/virsh-nodedev.c:251:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-nodedev.c:252:9: branch_true: ...to here
libvirt-12.2.0/tools/virsh-nodedev.c:342:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-nodedev.c:343:9: danger: dereference of NULL ‘_pp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def151]
libvirt-12.2.0/tools/virsh-nwfilter.c:327:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_pp’
libvirt-12.2.0/tools/virsh-nwfilter.c:283:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-nwfilter.c:284:9: branch_true: ...to here
libvirt-12.2.0/tools/virsh-nwfilter.c:326:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-nwfilter.c:327:9: danger: dereference of NULL ‘_pp’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def152]
libvirt-12.2.0/tools/virsh-secret.c:240:22: warning[-Wanalyzer-null-argument]: use of NULL ‘secret_val’ where non-null expected
libvirt-12.2.0/tools/virsh-secret.c:210:1: enter_function: entry to ‘cmdSecretSetValue’
libvirt-12.2.0/tools/virsh-secret.c:215:22: release_memory: ‘secret_val’ is NULL
libvirt-12.2.0/tools/virsh-secret.c:227:20: call_function: calling ‘virshCommandOptSecret’ from ‘cmdSecretSetValue’
libvirt-12.2.0/tools/virsh-secret.c:227:20: return_function: returning to ‘cmdSecretSetValue’ from ‘virshCommandOptSecret’
libvirt-12.2.0/tools/virsh-secret.c:227:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-secret.c:230:9: branch_false: ...to here
libvirt-12.2.0/tools/virsh-secret.c:230:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-secret.c:233:9: branch_false: ...to here
libvirt-12.2.0/tools/virsh-secret.c:233:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-secret.c:236:9: branch_false: ...to here
libvirt-12.2.0/tools/virsh-secret.c:236:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-secret.c:238:9: branch_true: ...to here
libvirt-12.2.0/tools/virsh-secret.c:240:22: danger: argument 1 (‘<unknown>’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
libvirt-12.2.0/tools/virsh-volume.c:1381:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘volInfoTexts’
libvirt-12.2.0/tools/virsh-volume.c:1325:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1328:18: branch_false: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1328:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1331:9: branch_false: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1331:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1335:5: branch_false: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1335:17: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1374:8: branch_false: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1374:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1376:17: branch_false: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1377:12: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1377:12: branch_false: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1380:21: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1383:47: branch_true: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1381:17: danger: dereference of NULL ‘volInfoTexts + i * 32’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def154]
libvirt-12.2.0/tools/virsh-volume.c:1404:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘volInfoTexts’
libvirt-12.2.0/tools/virsh-volume.c:1325:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1328:18: branch_false: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1328:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1331:9: branch_false: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1331:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1335:5: branch_false: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1335:17: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1374:8: branch_false: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1374:8: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1398:13: branch_true: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1399:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1399:8: branch_false: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1403:17: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1409:43: branch_true: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1404:13: danger: dereference of NULL ‘volInfoTexts + i * 32’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def155]
libvirt-12.2.0/tools/virsh-volume.c:1425:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘volInfoTexts’
libvirt-12.2.0/tools/virsh-volume.c:1325:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1328:18: branch_false: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1328:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1331:9: branch_false: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1331:8: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1335:5: branch_false: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1335:17: branch_false: following ‘false’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1374:8: branch_false: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1377:12: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1378:13: branch_true: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1422:9: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1422:9: branch_true: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1423:21: branch_true: following ‘true’ branch...
libvirt-12.2.0/tools/virsh-volume.c:1425:13: branch_true: ...to here
libvirt-12.2.0/tools/virsh-volume.c:1425:13: danger: dereference of NULL ‘volInfoTexts + i * 32’
Scan Properties
| analyzer-version-clippy | 1.95.0 |
| analyzer-version-cppcheck | 2.20.0 |
| analyzer-version-gcc | 16.0.1 |
| analyzer-version-gcc-analyzer | 16.0.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-208.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260420.180315.gd39a405.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libvirt-12.2.0-2.fc45 |
| store-results-to | /tmp/tmptgs2u6wu/libvirt-12.2.0-2.fc45.tar.xz |
| time-created | 2026-04-28 18:11:25 |
| time-finished | 2026-04-28 18:21:19 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmptgs2u6wu/libvirt-12.2.0-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmptgs2u6wu/libvirt-12.2.0-2.fc45.src.rpm' |
| tool-version | csmock-3.8.5-1.el9 |