libvirt-10.9.0-1.fc42
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 (CWE-571): [#def6]
/usr/libexec/libvirt-guests.sh:109:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def7]
/usr/libexec/libvirt-guests.sh:122:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def8]
/usr/libexec/libvirt-guests.sh:123:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def9]
/usr/libexec/libvirt-guests.sh:132:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def10]
/usr/libexec/libvirt-guests.sh:133:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def11]
/usr/libexec/libvirt-guests.sh:134:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-571): [#def12]
/usr/libexec/libvirt-guests.sh:134:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def13]
/usr/libexec/libvirt-guests.sh:155:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def14]
/usr/libexec/libvirt-guests.sh:156:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def15]
/usr/libexec/libvirt-guests.sh:157:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def16]
/usr/libexec/libvirt-guests.sh:158:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def17]
/usr/libexec/libvirt-guests.sh:159:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def18]
/usr/libexec/libvirt-guests.sh:174:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def19]
/usr/libexec/libvirt-guests.sh:175:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def20]
/usr/libexec/libvirt-guests.sh:176:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def21]
/usr/libexec/libvirt-guests.sh:196:13: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-571): [#def22]
/usr/libexec/libvirt-guests.sh:196:19: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def23]
/usr/libexec/libvirt-guests.sh:227:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def24]
/usr/libexec/libvirt-guests.sh:228:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def25]
/usr/libexec/libvirt-guests.sh:229:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-571): [#def26]
/usr/libexec/libvirt-guests.sh:229:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def27]
/usr/libexec/libvirt-guests.sh:230:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-571): [#def28]
/usr/libexec/libvirt-guests.sh:230:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def29]
/usr/libexec/libvirt-guests.sh:231:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def30]
/usr/libexec/libvirt-guests.sh:232:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def31]
/usr/libexec/libvirt-guests.sh:237:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def32]
/usr/libexec/libvirt-guests.sh:244:13: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-571): [#def33]
/usr/libexec/libvirt-guests.sh:244:19: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def34]
/usr/libexec/libvirt-guests.sh:261:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def35]
/usr/libexec/libvirt-guests.sh:262:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def36]
/usr/libexec/libvirt-guests.sh:263:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-571): [#def37]
/usr/libexec/libvirt-guests.sh:263:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def38]
/usr/libexec/libvirt-guests.sh:264:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def39]
/usr/libexec/libvirt-guests.sh:265:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def40]
/usr/libexec/libvirt-guests.sh:266:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def41]
/usr/libexec/libvirt-guests.sh:267:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def42]
/usr/libexec/libvirt-guests.sh:313:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def43]
/usr/libexec/libvirt-guests.sh:314:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def44]
/usr/libexec/libvirt-guests.sh:315:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-571): [#def45]
/usr/libexec/libvirt-guests.sh:315:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def46]
/usr/libexec/libvirt-guests.sh:336:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def47]
/usr/libexec/libvirt-guests.sh:337:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def48]
/usr/libexec/libvirt-guests.sh:338:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def49]
/usr/libexec/libvirt-guests.sh:358:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def50]
/usr/libexec/libvirt-guests.sh:359:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def51]
/usr/libexec/libvirt-guests.sh:360:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def52]
/usr/libexec/libvirt-guests.sh:361:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def53]
/usr/libexec/libvirt-guests.sh:368:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-571): [#def54]
/usr/libexec/libvirt-guests.sh:368:15: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def55]
/usr/libexec/libvirt-guests.sh:380:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def56]
/usr/libexec/libvirt-guests.sh:381:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def57]
/usr/libexec/libvirt-guests.sh:382:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def58]
/usr/libexec/libvirt-guests.sh:383:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def59]
/usr/libexec/libvirt-guests.sh:384:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def60]
/usr/libexec/libvirt-guests.sh:385:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def61]
/usr/libexec/libvirt-guests.sh:386:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-156): [#def62]
/usr/libexec/libvirt-guests.sh:397:17: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING: [#def63]
/usr/libexec/libvirt-guests.sh:399:13: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def64]
/usr/libexec/libvirt-guests.sh:411:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def65]
/usr/libexec/libvirt-guests.sh:413:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def66]
/usr/libexec/libvirt-guests.sh:432:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def67]
/usr/libexec/libvirt-guests.sh:442:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def68]
/usr/libexec/libvirt-guests.sh:443:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def69]
/usr/libexec/libvirt-guests.sh:444:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def70]
/usr/libexec/libvirt-guests.sh:485:9: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-571): [#def71]
/usr/libexec/libvirt-guests.sh:485:15: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def72]
/usr/libexec/libvirt-guests.sh:487:13: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def73]
/usr/libexec/libvirt-guests.sh:501:13: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-571): [#def74]
/usr/libexec/libvirt-guests.sh:501:19: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def75]
/usr/libexec/libvirt-guests.sh:503:17: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def76]
/usr/libexec/libvirt-guests.sh:504:17: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def77]
/usr/libexec/libvirt-guests.sh:556:17: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def78]
/usr/libexec/libvirt-guests.sh:576:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def79]
/usr/libexec/libvirt-guests.sh:608:5: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def80]
/usr/libexec/libvirt-guests.sh:608:11: warning[SC2034]: program_name appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-149): [#def81]
/usr/libexec/libvirt-guests.sh:609: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-479): [#def82]
libvirt-10.9.0-build/libvirt-10.9.0/examples/c/misc/event-test.c: scope_hint: In function ‘stop’
libvirt-10.9.0-build/libvirt-10.9.0/examples/c/misc/event-test.c:1119:5: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘printf’ from within signal handler
Error: GCC_ANALYZER_WARNING (CWE-465): [#def83]
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/virstorageobj.c: scope_hint: In function ‘virStoragePoolObjSourceMatchTypeDEVICE’
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/virstorageobj.c:1358:12: warning[-Wanalyzer-deref-before-check]: check of ‘obj’ for NULL after already dereferencing it
Error: GCC_ANALYZER_WARNING (CWE-465): [#def84]
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/virstorageobj.c: scope_hint: In function ‘virStoragePoolObjSourceFindDuplicateCb’
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/virstorageobj.c:1397:47: warning[-Wanalyzer-deref-before-check]: check of ‘payload’ for NULL after already dereferencing it
libvirt-10.9.0-build/libvirt-10.9.0/src/datatypes.h:24: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/virstorageobj.c:23: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:90:29: note: in definition of macro ‘STREQ’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def85]
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/virstorageobj.c:1403:47: warning[-Wanalyzer-deref-before-check]: check of ‘payload’ for NULL after already dereferencing it
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:90:29: note: in definition of macro ‘STREQ’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:90:32: note: in definition of macro ‘STREQ’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def86]
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/virstorageobj.c:1417:55: warning[-Wanalyzer-deref-before-check]: check of ‘payload’ for NULL after already dereferencing it
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:90:29: note: in definition of macro ‘STREQ’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def87]
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c: scope_hint: In function ‘esxConnectListAllDomains’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4812:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘powerState’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:26: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4716:5: note: in expansion of macro ‘virCheckFlags’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4737:9: note: in expansion of macro ‘MATCH’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4751:20: note: in expansion of macro ‘MATCH’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4810:13: note: in expansion of macro ‘MATCH’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4811:16: note: in expansion of macro ‘MATCH’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def88]
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4814:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘powerState’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4716:5: note: in expansion of macro ‘virCheckFlags’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4737:9: note: in expansion of macro ‘MATCH’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4751:20: note: in expansion of macro ‘MATCH’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4810:13: note: in expansion of macro ‘MATCH’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4811:16: note: in expansion of macro ‘MATCH’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4813:16: note: in expansion of macro ‘MATCH’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def89]
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4866:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘powerState’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4716:5: note: in expansion of macro ‘virCheckFlags’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4737:9: note: in expansion of macro ‘MATCH’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4751:20: note: in expansion of macro ‘MATCH’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4810:13: note: in expansion of macro ‘MATCH’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_driver.c:4865:13: note: in expansion of macro ‘MATCH’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def90]
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_util.c: scope_hint: In function ‘esxUtil_ReplaceSpecialWindowsPathChars’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_util.c:403:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tmp’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_util.c:424:16: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_util.c: scope_hint: In function ‘esxUtil_ReplaceSpecialWindowsPathChars’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def91]
libvirt-10.9.0-build/libvirt-10.9.0/src/hyperv/hyperv_driver.c: scope_hint: In function ‘hypervDomainAttachFloppy’
libvirt-10.9.0-build/libvirt-10.9.0/src/hyperv/hyperv_driver.c:816:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘driveSettings’
/usr/include/glib-2.0/glib/gmacros.h:1365:7: note: in expansion of macro ‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’
/usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’
libvirt-10.9.0-build/libvirt-10.9.0/redhat-linux-build/src/hyperv/hyperv_wmi_classes.generated.typedef:90:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’
libvirt-10.9.0-build/libvirt-10.9.0/src/hyperv/hyperv_driver.c: scope_hint: In function ‘hypervDomainAttachFloppy’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
libvirt-10.9.0-build/libvirt-10.9.0/src/hyperv/hyperv_driver.c: scope_hint: In function ‘hypervDomainAttachStorage’
libvirt-10.9.0-build/libvirt-10.9.0/src/hyperv/hyperv_driver.c:881:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘domain’
/usr/include/glib-2.0/glib/gmacros.h:1365:7: note: in expansion of macro ‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’
/usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’
libvirt-10.9.0-build/libvirt-10.9.0/redhat-linux-build/src/hyperv/hyperv_wmi_classes.generated.typedef:90:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’
libvirt-10.9.0-build/libvirt-10.9.0/src/hyperv/hyperv_driver.c: scope_hint: In function ‘hypervDomainAttachStorage’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def93]
libvirt-10.9.0-build/libvirt-10.9.0/src/hyperv/hyperv_driver.c:928:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ideChannels[ctrlr_idx]’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def94]
libvirt-10.9.0-build/libvirt-10.9.0/src/hyperv/hyperv_driver.c:935:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘scsiControllers[ctrlr_idx]’
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
libvirt-10.9.0-build/libvirt-10.9.0/src/hyperv/hyperv_driver.c: scope_hint: In function ‘hypervDomainSetMemoryProperty’
libvirt-10.9.0-build/libvirt-10.9.0/src/hyperv/hyperv_driver.c:2245:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘domain’
/usr/include/glib-2.0/glib/gmacros.h:1365:7: note: in expansion of macro ‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’
/usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’
libvirt-10.9.0-build/libvirt-10.9.0/redhat-linux-build/src/hyperv/hyperv_wmi_classes.generated.typedef:90:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’
libvirt-10.9.0-build/libvirt-10.9.0/src/hyperv/hyperv_driver.c: scope_hint: In function ‘hypervDomainSetMemoryProperty’
libvirt-10.9.0-build/libvirt-10.9.0/src/hyperv/hyperv_driver.c: scope_hint: In function ‘hypervDomainSetMemoryProperty’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def96]
libvirt-10.9.0-build/libvirt-10.9.0/src/hyperv/hyperv_driver.c: scope_hint: In function ‘hypervDomainSetVcpusFlags’
libvirt-10.9.0-build/libvirt-10.9.0/src/hyperv/hyperv_driver.c:2503:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘domain’
/usr/include/glib-2.0/glib/gmacros.h:1365:7: note: in expansion of macro ‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’
/usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’
libvirt-10.9.0-build/libvirt-10.9.0/redhat-linux-build/src/hyperv/hyperv_wmi_classes.generated.typedef:90:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’
libvirt-10.9.0-build/libvirt-10.9.0/src/hyperv/hyperv_driver.c: scope_hint: In function ‘hypervDomainSetVcpusFlags’
libvirt-10.9.0-build/libvirt-10.9.0/src/hyperv/hyperv_driver.c: scope_hint: In function ‘hypervDomainSetVcpusFlags’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def97]
libvirt-10.9.0-build/libvirt-10.9.0/src/hyperv/hyperv_wmi.c: scope_hint: In function ‘hypervFreeObject.part.0’
libvirt-10.9.0-build/libvirt-10.9.0/src/hyperv/hyperv_wmi.c:1011:19: warning[-Wanalyzer-deref-before-check]: check of ‘object’ for NULL after already dereferencing it
Error: GCC_ANALYZER_WARNING (CWE-688): [#def98]
libvirt-10.9.0-build/libvirt-10.9.0/src/interface/interface_backend_udev.c: scope_hint: In function ‘udevGetIfaceDef’
libvirt-10.9.0-build/libvirt-10.9.0/src/interface/interface_backend_udev.c:992:27: warning[-Wanalyzer-null-argument]: use of NULL ‘name’ where non-null expected
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virlog.h:24: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/interface/interface_backend_udev.c:26: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/interface/interface_backend_udev.c:1036:5: note: in expansion of macro ‘virCheckFlags’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/interface/interface_backend_udev.c:938:22: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/interface/interface_backend_udev.c: scope_hint: In function ‘udevGetIfaceDef’
libvirt-10.9.0-build/libvirt-10.9.0/src/interface/interface_backend_udev.c:949:21: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:28: included_from: Included from here.
/usr/include/string.h:273:14: note: argument 1 of ‘strrchr’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def99]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroupv1.c: scope_hint: In function ‘virCgroupV1DetectPlacement’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:90:22: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroupv1.c:368:26: note: in expansion of macro ‘STREQ’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroupv1.c:355:21: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroupv1.c: scope_hint: In function ‘virCgroupV1DetectPlacement’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroupv1.c:368:26: note: in expansion of macro ‘STREQ’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroupv1.c:368:26: note: in expansion of macro ‘STREQ’
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def100]
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:92:23: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/nwfilter_params.c:424:21: note: in expansion of macro ‘STRNEQ’
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/nwfilter_params.c:416:13: note: in expansion of macro ‘STREQ’
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/nwfilter_params.c:416:13: note: in expansion of macro ‘STREQ’
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/nwfilter_params.c:416:13: note: in expansion of macro ‘STREQ’
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/nwfilter_params.c:424:21: note: in expansion of macro ‘STRNEQ’
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/nwfilter_params.c:424:21: note: in expansion of macro ‘STRNEQ’
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/nwfilter_params.c:424:21: note: in expansion of macro ‘STRNEQ’
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/nwfilter_params.c:424:21: note: in expansion of macro ‘STRNEQ’
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/nwfilter_params.c:424:21: note: in expansion of macro ‘STRNEQ’
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/nwfilter_params.c:424:21: note: in expansion of macro ‘STRNEQ’
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def101]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/viralloc.h:25: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tests/testutils.h:23: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tests/qemudomaincheckpointxml2xmltest.c:11: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tests/qemudomaincheckpointxml2xmltest.c: scope_hint: In function ‘testCompareXMLToXMLFiles’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:92:23: warning[-Wanalyzer-null-argument]: use of NULL ‘outXmlData’ where non-null expected
libvirt-10.9.0-build/libvirt-10.9.0/tests/qemudomaincheckpointxml2xmltest.c:92:9: note: in expansion of macro ‘STRNEQ’
libvirt-10.9.0-build/libvirt-10.9.0/tests/qemudomaincheckpointxml2xmltest.c:92:9: note: in expansion of macro ‘STRNEQ’
libvirt-10.9.0-build/libvirt-10.9.0/tests/qemudomaincheckpointxml2xmltest.c:92:9: note: in expansion of macro ‘STRNEQ’
libvirt-10.9.0-build/libvirt-10.9.0/tests/qemudomaincheckpointxml2xmltest.c:92:9: note: in expansion of macro ‘STRNEQ’
libvirt-10.9.0-build/libvirt-10.9.0/tests/qemudomaincheckpointxml2xmltest.c:6: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def102]
libvirt-10.9.0-build/libvirt-10.9.0/src/security/security_driver.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/security/security_selinux.c:28: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/security/security_selinux.c: scope_hint: In function ‘virSecuritySELinuxSetFilecon’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:92:23: warning[-Wanalyzer-null-argument]: use of NULL ‘tcon’ where non-null expected
libvirt-10.9.0-build/libvirt-10.9.0/src/security/security_selinux.c:1444:21: note: in expansion of macro ‘STRNEQ’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/security/security_selinux.c:122:18: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/security/security_selinux.c: scope_hint: In function ‘virSecuritySELinuxSetFilecon’
libvirt-10.9.0-build/libvirt-10.9.0/src/security/security_selinux.c: scope_hint: In function ‘virSecuritySELinuxSetFilecon’
libvirt-10.9.0-build/libvirt-10.9.0/src/security/security_selinux.c:1444:21: note: in expansion of macro ‘STRNEQ’
libvirt-10.9.0-build/libvirt-10.9.0/src/security/security_selinux.c:1444:21: note: in expansion of macro ‘STRNEQ’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:28: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def103]
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/virchrdev.h:24: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/virchrdev.c:28: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/virchrdev.c: scope_hint: In function ‘virChrdevLockFilePath’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:98:26: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:100:24: note: in expansion of macro ‘STRPREFIX’
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/virchrdev.c:77:16: note: in expansion of macro ‘STRSKIP’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/virchrdev.c:74:15: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/virchrdev.c: scope_hint: In function ‘virChrdevLockFilePath’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:100:24: note: in expansion of macro ‘STRPREFIX’
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/virchrdev.c:77:16: note: in expansion of macro ‘STRSKIP’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:100:24: note: in expansion of macro ‘STRPREFIX’
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/virchrdev.c:77:16: note: in expansion of macro ‘STRSKIP’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:28: included_from: Included from here.
/usr/include/string.h:159:12: note: argument 1 of ‘strncmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def104]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virenum.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virconf.h:23: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/xen_xl.c:26: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/xen_xl.c: scope_hint: In function ‘xenParseXLChannel’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:98:26: warning[-Wanalyzer-null-argument]: use of NULL ‘type’ where non-null expected
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/xen_xl.c:993:17: note: in expansion of macro ‘STRPREFIX’
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/xen_xl.c:975:37: note: in expansion of macro ‘STRPREFIX’
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/xen_xl.c:978:37: note: in expansion of macro ‘STRPREFIX’
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/xen_xl.c:993:17: note: in expansion of macro ‘STRPREFIX’
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/xen_xl.c:993:17: note: in expansion of macro ‘STRPREFIX’
/usr/include/libxl.h:843: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/xen_xl.c:24: included_from: Included from here.
/usr/include/string.h:159:12: note: argument 1 of ‘strncmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def105]
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_util.c:26: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_util.c: scope_hint: In function ‘esxUtil_ParseDatastorePath’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:98:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘saveptr’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:100:24: note: in expansion of macro ‘STRPREFIX’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_util.c:219:17: note: in expansion of macro ‘STRSKIP’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_util.c:216:27: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_util.c: scope_hint: In function ‘esxUtil_ParseDatastorePath’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:100:24: note: in expansion of macro ‘STRPREFIX’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_util.c:219:17: note: in expansion of macro ‘STRSKIP’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:100:24: note: in expansion of macro ‘STRPREFIX’
libvirt-10.9.0-build/libvirt-10.9.0/src/esx/esx_util.c:219:17: note: in expansion of macro ‘STRSKIP’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def106]
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/libxl_driver.c: scope_hint: In function ‘libxlGetDHCPInterfaces’
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/libxl_driver.c:6301:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iface’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def107]
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/libxl_logger.c: scope_hint: In function ‘libxlLoggerNew’
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/libxl_logger.c:156:34: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_strdup_printf("%s/libxl-driver.log", logDir), "a")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/libxl_logger.c:156:34: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_strdup_printf("%s/libxl-driver.log", logDir), "a")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def109]
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/libxl_logger.c: scope_hint: In function ‘libxlLoggerOpenFile’
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/libxl_logger.c:193:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_strdup_printf("%s/%s.log", *logger.logDir, name), "a")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/libxl_logger.c:193:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_strdup_printf("%s/%s.log", *logger.logDir, name), "a")’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def111]
libvirt-10.9.0-build/libvirt-10.9.0/src/lxc/lxc_driver.c: scope_hint: In function ‘lxcDomainAttachDeviceConfig’
libvirt-10.9.0-build/libvirt-10.9.0/src/lxc/lxc_driver.c:2999:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virerror.h:24: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/lxc/lxc_driver.c:37: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/lxc/lxc_driver.c:4422:5: note: in expansion of macro ‘virCheckFlags’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
libvirt-10.9.0-build/libvirt-10.9.0/src/lxc/lxc_driver.c: scope_hint: In function ‘lxcDomainDetachDeviceConfig’
libvirt-10.9.0-build/libvirt-10.9.0/src/lxc/lxc_driver.c:3147:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
libvirt-10.9.0-build/libvirt-10.9.0/src/lxc/lxc_driver.c:4585:5: note: in expansion of macro ‘virCheckFlags’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def113]
libvirt-10.9.0-build/libvirt-10.9.0/src/lxc/lxc_driver.c: scope_hint: In function ‘lxcDomainAttachDeviceLive’
libvirt-10.9.0-build/libvirt-10.9.0/src/lxc/lxc_driver.c:3936:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
libvirt-10.9.0-build/libvirt-10.9.0/src/lxc/lxc_driver.c:4422:5: note: in expansion of macro ‘virCheckFlags’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def114]
libvirt-10.9.0-build/libvirt-10.9.0/src/lxc/lxc_driver.c: scope_hint: In function ‘lxcDomainDetachDeviceLive’
libvirt-10.9.0-build/libvirt-10.9.0/src/lxc/lxc_driver.c:4361:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
libvirt-10.9.0-build/libvirt-10.9.0/src/lxc/lxc_driver.c:4585:5: note: in expansion of macro ‘virCheckFlags’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def115]
libvirt-10.9.0-build/libvirt-10.9.0/src/lxc/lxc_fuse.c: scope_hint: In function ‘lxcProcReadMeminfo’
libvirt-10.9.0-build/libvirt-10.9.0/src/lxc/lxc_fuse.c:208:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(hostpath, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
libvirt-10.9.0-build/libvirt-10.9.0/src/lxc/lxc_fuse.c:208:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(hostpath, "r")’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def117]
libvirt-10.9.0-build/libvirt-10.9.0/src/node_device/node_device_driver.c: scope_hint: In function ‘nodeDeviceUpdateMediatedDevices’
libvirt-10.9.0-build/libvirt-10.9.0/src/node_device/node_device_driver.c:1917:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘defs’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def118]
libvirt-10.9.0-build/libvirt-10.9.0/src/nwfilter/nwfilter_dhcpsnoop.c: scope_hint: In function ‘virNWFilterSnoopLeaseFileLoad’
libvirt-10.9.0-build/libvirt-10.9.0/src/nwfilter/nwfilter_dhcpsnoop.c:1727:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/run/libvirt/network/nwfilter.leases", "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
libvirt-10.9.0-build/libvirt-10.9.0/src/nwfilter/nwfilter_dhcpsnoop.c:1727:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/run/libvirt/network/nwfilter.leases", "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def120]
libvirt-10.9.0-build/libvirt-10.9.0/src/openvz/openvz_conf.c: scope_hint: In function ‘openvzWriteConfigParam’
libvirt-10.9.0-build/libvirt-10.9.0/src/openvz/openvz_conf.c:550:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(conf_file, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
libvirt-10.9.0-build/libvirt-10.9.0/src/openvz/openvz_conf.c:550:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(conf_file, "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def122]
libvirt-10.9.0-build/libvirt-10.9.0/src/openvz/openvz_conf.c: scope_hint: In function ‘openvzReadConfigParam’
libvirt-10.9.0-build/libvirt-10.9.0/src/openvz/openvz_conf.c:620:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(conf_file, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
libvirt-10.9.0-build/libvirt-10.9.0/src/openvz/openvz_conf.c:620:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(conf_file, "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def124]
libvirt-10.9.0-build/libvirt-10.9.0/src/openvz/openvz_conf.c: scope_hint: In function ‘openvz_copyfile’
libvirt-10.9.0-build/libvirt-10.9.0/src/openvz/openvz_conf.c:682:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(from_path, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
libvirt-10.9.0-build/libvirt-10.9.0/src/openvz/openvz_conf.c:682:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(from_path, "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def126]
libvirt-10.9.0-build/libvirt-10.9.0/src/openvz/openvz_conf.c: scope_hint: In function ‘openvzGetVPSUUID’
libvirt-10.9.0-build/libvirt-10.9.0/src/openvz/openvz_conf.c:822:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(conf_file, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
libvirt-10.9.0-build/libvirt-10.9.0/src/openvz/openvz_conf.c:822:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(conf_file, "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def128]
libvirt-10.9.0-build/libvirt-10.9.0/src/openvz/openvz_conf.c: scope_hint: In function ‘openvzSetDefinedUUID’
libvirt-10.9.0-build/libvirt-10.9.0/src/openvz/openvz_conf.c:876:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(conf_file, "a")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
libvirt-10.9.0-build/libvirt-10.9.0/src/openvz/openvz_conf.c:876:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(conf_file, "a")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def130]
libvirt-10.9.0-build/libvirt-10.9.0/src/openvz/openvz_driver.c: scope_hint: In function ‘openvzGetProcessInfo’
libvirt-10.9.0-build/libvirt-10.9.0/src/openvz/openvz_driver.c:1418:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/vz/vestat", "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
libvirt-10.9.0-build/libvirt-10.9.0/src/openvz/openvz_driver.c:1418:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/vz/vestat", "r")’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def132]
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_block.c: scope_hint: In function ‘qemuBlockStorageSourceGetISCSIProps’
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_block.c:615:19: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_block.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_block.c:21: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1365:7: note: in expansion of macro ‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’
/usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virjson.h:280:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’
/usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virjson.h:280:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_block.c:612:14: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_block.c: scope_hint: In function ‘qemuBlockStorageSourceGetISCSIProps’
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def133]
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_block.c:615:19: warning[-Wanalyzer-null-argument]: use of NULL ‘backingPath’ where non-null expected
/usr/include/glib-2.0/glib/gmacros.h:1365:7: note: in expansion of macro ‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’
/usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virjson.h:280:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’
/usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virjson.h:280:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_block.c:612:14: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_block.c: scope_hint: In function ‘qemuBlockStorageSourceGetISCSIProps’
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def134]
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_blockjob.c: scope_hint: In function ‘qemuBlockJobProcessEventCompletedActiveCommit’
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_blockjob.c:1162:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘baseparent’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virlog.h:88:5: note: in expansion of macro ‘VIR_DEBUG_INT’
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_blockjob.c:1535:5: note: in expansion of macro ‘VIR_DEBUG’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def135]
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_namespace.c: scope_hint: In function ‘qemuNamespaceUnlinkPaths’
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_namespace.c:1459:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘mount’
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_namespace.c: scope_hint: In function ‘qemuNamespaceUnlinkPaths’
/usr/include/glib-2.0/glib/glib-autocleanups.h:103:1: note: in expansion of macro ‘G_DEFINE_AUTO_CLEANUP_FREE_FUNC’
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_namespace.c: scope_hint: In function ‘qemuNamespaceUnlinkPaths’
/usr/include/glib-2.0/glib/glib-autocleanups.h:103:1: note: in expansion of macro ‘G_DEFINE_AUTO_CLEANUP_FREE_FUNC’
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_namespace.c: scope_hint: In function ‘qemuNamespaceUnlinkPaths’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def136]
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_nbdkit.c: scope_hint: In function ‘qemuNbdkitCapsQuery’
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_nbdkit.c:252:9: warning[-Wanalyzer-null-argument]: use of NULL ‘*caps.path’ where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_nbdkit.c:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_nbdkit.c:225:18: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_nbdkit.c: scope_hint: In function ‘qemuNbdkitCapsQuery’
/usr/include/features.h:511: included_from: Included from here.
/usr/include/bits/libc-header-start.h:33: included_from: Included from here.
/usr/include/limits.h:26: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include/limits.h:210: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include/syslimits.h:9: included_from: Included from here.
/opt/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/15.0.0/include/limits.h:34: included_from: Included from here.
/usr/lib64/glib-2.0/include/glibconfig.h:11: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/sys/stat.h:227:12: note: argument 1 of ‘stat’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_nbdkit.c: scope_hint: In function ‘qemuNbdkitProcessStart’
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_nbdkit.c:1259:19: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def138]
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_nbdkit.c:1260:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘nbd_create()’ where non-null expected
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_nbdkit.c:23: included_from: Included from here.
/usr/include/libnbd.h:598:12: note: argument 1 of ‘nbd_connect_unix’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def139]
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_vhost_user.c:330:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘vu’
libvirt-10.9.0-build/libvirt-10.9.0/src/qemu/qemu_vhost_user.c: scope_hint: In function ‘qemuVhostUserFillDomainGPU’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def140]
libvirt-10.9.0-build/libvirt-10.9.0/src/rpc/virnetsocket.c: scope_hint: In function ‘virNetSocketNewConnectUNIX’
libvirt-10.9.0-build/libvirt-10.9.0/src/rpc/virnetsocket.c:754:9: warning[-Wanalyzer-null-argument]: use of NULL ‘lockpath’ where non-null expected
libvirt-10.9.0-build/libvirt-10.9.0/src/rpc/virnetsocket.c:45: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virlog.h:88:5: note: in expansion of macro ‘VIR_DEBUG_INT’
libvirt-10.9.0-build/libvirt-10.9.0/src/rpc/virnetsocket.c:248:5: note: in expansion of macro ‘VIR_DEBUG’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virlog.h:81:72: note: in definition of macro ‘VIR_INFO_INT’
libvirt-10.9.0-build/libvirt-10.9.0/src/rpc/virnetsocket.c:303:5: note: in expansion of macro ‘PROBE’
libvirt-10.9.0-build/libvirt-10.9.0/src/rpc/virnetsocket.c:306:44: note: in expansion of macro ‘NULLSTR’
libvirt-10.9.0-build/libvirt-10.9.0/src/rpc/virnetsocket.c:25: included_from: Included from here.
/usr/include/unistd.h:858:12: note: argument 1 of ‘unlink’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def141]
libvirt-10.9.0-build/libvirt-10.9.0/src/rpc/virnetsocket.c: scope_hint: In function ‘virNetSocketListen’
libvirt-10.9.0-build/libvirt-10.9.0/src/rpc/virnetsocket.c:2035:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*sock.fd’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def142]
libvirt-10.9.0-build/libvirt-10.9.0/src/rpc/virnetsocket.c:2040:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*sock.fd’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def143]
libvirt-10.9.0-build/libvirt-10.9.0/src/rpc/virnetsshsession.c: scope_hint: In function ‘virNetSSHKbIntCb’
libvirt-10.9.0-build/libvirt-10.9.0/src/rpc/virnetsshsession.c:223:20: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:52: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/rpc/virnetsshsession.h:23: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/rpc/virnetsshsession.c:24: included_from: Included from here.
/usr/include/glib-2.0/glib/gmem.h:335:57: note: in expansion of macro ‘_G_NEW’
libvirt-10.9.0-build/libvirt-10.9.0/src/rpc/virnetsshsession.c:215:15: note: in expansion of macro ‘g_new0’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/rpc/virnetsshsession.c:219:29: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/rpc/virnetsshsession.c: scope_hint: In function ‘virNetSSHKbIntCb’
/usr/include/libssh2.h:99: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/rpc/virnetsshsession.c:21: included_from: Included from here.
/usr/include/string.h:273:14: note: argument 1 of ‘strrchr’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def144]
libvirt-10.9.0-build/libvirt-10.9.0/src/storage/storage_backend_fs.c: scope_hint: In function ‘virStorageBackendFileSystemIsMounted’
libvirt-10.9.0-build/libvirt-10.9.0/src/storage/storage_backend_fs.c:247:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/etc/mtab", "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
libvirt-10.9.0-build/libvirt-10.9.0/src/storage/storage_backend_fs.c:247:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/etc/mtab", "r")’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def146]
libvirt-10.9.0-build/libvirt-10.9.0/src/storage/storage_backend_logical.c: scope_hint: In function ‘virStorageBackendLogicalMatchPoolSource’
libvirt-10.9.0-build/libvirt-10.9.0/src/storage/storage_backend_logical.c:587:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘thisSource’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def147]
libvirt-10.9.0-build/libvirt-10.9.0/src/storage/storage_backend_zfs.c: scope_hint: In function ‘virStorageBackendZFSRefreshPool’
libvirt-10.9.0-build/libvirt-10.9.0/src/storage/storage_backend_zfs.c:248:16: warning[-Wanalyzer-null-argument]: use of NULL ‘zpool_props’ where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/viralloc.h:25: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/storage/storage_backend_zfs.c:24: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/storage/storage_backend_zfs.c:235:29: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/storage/storage_backend_zfs.c: scope_hint: In function ‘virStorageBackendZFSRefreshPool’
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def148]
libvirt-10.9.0-build/libvirt-10.9.0/src/storage/storage_util.c: scope_hint: In function ‘virStorageBackendBuildLocal’
libvirt-10.9.0-build/libvirt-10.9.0/src/storage/storage_util.c:2785:15: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/datatypes.h:24: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/storage/storage_util.c:46: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/storage/storage_util.c:2784:14: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/storage/storage_util.c: scope_hint: In function ‘virStorageBackendBuildLocal’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:28: included_from: Included from here.
/usr/include/string.h:273:14: note: argument 1 of ‘strrchr’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def149]
libvirt-10.9.0-build/libvirt-10.9.0/src/storage_file/storage_source_backingstore.c: scope_hint: In function ‘virStorageSourceParseNBDColonString’
libvirt-10.9.0-build/libvirt-10.9.0/src/storage_file/storage_source_backingstore.c:311:24: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/storage_file/storage_source_backingstore.c:24: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/storage_file/storage_source_backingstore.c:294:28: note: in expansion of macro ‘g_strdup’
/usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:52: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/storage_file/storage_source_backingstore.c: scope_hint: In function ‘virStorageSourceParseNBDColonString’
/usr/include/glib-2.0/glib/gmem.h:335:57: note: in expansion of macro ‘_G_NEW’
libvirt-10.9.0-build/libvirt-10.9.0/src/storage_file/storage_source_backingstore.c:300:18: note: in expansion of macro ‘g_new0’
<built-in>: note: argument 1 of ‘__builtin_strstr’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def150]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:27: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c: scope_hint: In function ‘virFirewallNewFromRollback’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/viralloc.h:116:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:225:9: note: in expansion of macro ‘VIR_RESIZE_N’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:996:17: note: in expansion of macro ‘ADD_ARG’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:483:5: note: in expansion of macro ‘VIR_FIREWALL_RETURN_IF_ERROR’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:483:5: note: in expansion of macro ‘VIR_FIREWALL_RETURN_IF_ERROR’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:993:37: note: in expansion of macro ‘virFirewallAddCmd’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:243:5: note: in expansion of macro ‘VIR_FIREWALL_RETURN_NULL_IF_ERROR’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:243:5: note: in expansion of macro ‘VIR_FIREWALL_RETURN_NULL_IF_ERROR’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:993:37: note: in expansion of macro ‘virFirewallAddCmd’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:225:9: note: in expansion of macro ‘VIR_RESIZE_N’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:996:17: note: in expansion of macro ‘ADD_ARG’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:225:9: note: in expansion of macro ‘VIR_RESIZE_N’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:996:17: note: in expansion of macro ‘ADD_ARG’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def151]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroup.c: scope_hint: In function ‘virCgroupDetectPlacement’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroup.c:353:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(procfile, "r")’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virbitmap.h:24: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroup.h:24: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgrouppriv.h:28: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroup.c:36: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroup.c:348:20: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroup.c: scope_hint: In function ‘virCgroupDetectPlacement’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroup.c:353:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(procfile, "r")’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroup.c:348:20: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroup.c: scope_hint: In function ‘virCgroupDetectPlacement’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def153]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroup.c: scope_hint: In function ‘virCgroupKillInternal’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroup.c:2672:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(keypath, "r")’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgrouppriv.h:29: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroup.c:1515:5: note: in expansion of macro ‘VIR_CGROUP_BACKEND_CALL’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroup.c:1515:5: note: in expansion of macro ‘VIR_CGROUP_BACKEND_CALL’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroup.c:1515:5: note: in expansion of macro ‘VIR_CGROUP_BACKEND_CALL’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroup.c:2672:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(keypath, "r")’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroup.c:1515:5: note: in expansion of macro ‘VIR_CGROUP_BACKEND_CALL’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroup.c:1515:5: note: in expansion of macro ‘VIR_CGROUP_BACKEND_CALL’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroup.c:1515:5: note: in expansion of macro ‘VIR_CGROUP_BACKEND_CALL’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def155]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroupv1.c: scope_hint: In function ‘virCgroupV1ResolveMountLink’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroupv1.c:230:15: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroupv1.c:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroupv1.c:228:11: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/vircgroupv1.c: scope_hint: In function ‘virCgroupV1ResolveMountLink’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:28: included_from: Included from here.
/usr/include/string.h:273:14: note: argument 1 of ‘strrchr’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def156]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virdaemon.c: scope_hint: In function ‘virDaemonForkIntoBackground’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virdaemon.c:66:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(stdinfd, 0)’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virdaemon.c: scope_hint: In function ‘virDaemonForkIntoBackground’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def157]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virdaemon.c:68:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(stdoutfd, 1)’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virdaemon.c: scope_hint: In function ‘virDaemonForkIntoBackground’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def158]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virdaemon.c:70:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(stdoutfd, 2)’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virdaemon.c: scope_hint: In function ‘virDaemonForkIntoBackground’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def159]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virdnsmasq.c: scope_hint: In function ‘addnhostsWrite’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virdnsmasq.c:174:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_strdup_printf("%s.new", path), "w")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virdnsmasq.c:174:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_strdup_printf("%s.new", path), "w")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def161]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virdnsmasq.c:176:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virdnsmasq.c:176:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def163]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virdnsmasq.c: scope_hint: In function ‘hostsfileWrite’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virdnsmasq.c:366:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_strdup_printf("%s.new", path), "w")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virdnsmasq.c:366:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_strdup_printf("%s.new", path), "w")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def165]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virdnsmasq.c:368:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "w")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virdnsmasq.c:368:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "w")’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def167]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfdstream.c: scope_hint: In function ‘virFDStreamOpenFileInternal’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfdstream.c:1341:9: warning[-Wanalyzer-null-argument]: use of NULL ‘path’ where non-null expected
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfdstream.c: scope_hint: In function ‘virFDStreamOpenFileInternal’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfdstream.c:25: included_from: Included from here.
/usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:52: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfdstream.h:24: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfdstream.c:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmem.h:335:57: note: in expansion of macro ‘_G_NEW’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfdstream.c:1307:22: note: in expansion of macro ‘g_new0’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfdstream.c:1325:37: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfdstream.c: scope_hint: In function ‘virFDStreamOpenFileInternal’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfdstream.c:27: included_from: Included from here.
/usr/include/unistd.h:858:12: note: argument 1 of ‘unlink’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def168]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.c: scope_hint: In function ‘virFileMakeParentPath’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.c:3243:14: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.c:26: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.c:3241:11: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.c: scope_hint: In function ‘virFileMakeParentPath’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:28: included_from: Included from here.
/usr/include/string.h:273:14: note: argument 1 of ‘strrchr’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def169]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.c: scope_hint: In function ‘virFileSanitizePath’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.c:3370:16: warning[-Wanalyzer-null-argument]: use of NULL ‘path’ where non-null expected
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.c:3366:17: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.c: scope_hint: In function ‘virFileSanitizePath’
<built-in>: note: argument 1 of ‘__builtin_strstr’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def170]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.c: scope_hint: In function ‘virFileIsSharedFSType’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.c:3586:18: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.c:3584:15: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.c: scope_hint: In function ‘virFileIsSharedFSType’
/usr/include/features.h:511: included_from: Included from here.
/usr/include/errno.h:25: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:23: included_from: Included from here.
/usr/include/sys/statfs.h:35:12: note: argument 1 of ‘statfs’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def171]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.c: scope_hint: In function ‘virFileGetHugepageSize’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.c:3643:9: warning[-Wanalyzer-null-argument]: use of NULL ‘path’ where non-null expected
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:92:30: note: in definition of macro ‘STRNEQ’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.c:3729:24: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.c: scope_hint: In function ‘virFileGetHugepageSize’
/usr/include/sys/statfs.h:35:12: note: argument 1 of ‘statfs’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def172]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c: scope_hint: In function ‘virFirewallCmdToString’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:547:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘fwCmd’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virlog.h:88:5: note: in expansion of macro ‘VIR_DEBUG_INT’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:911:5: note: in expansion of macro ‘VIR_DEBUG’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.h:23: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:25: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:90:29: note: in definition of macro ‘STREQ’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:686:13: note: in expansion of macro ‘VIR_NFTABLES_ARG_IS_CREATE’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:243:5: note: in expansion of macro ‘VIR_FIREWALL_RETURN_NULL_IF_ERROR’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:243:5: note: in expansion of macro ‘VIR_FIREWALL_RETURN_NULL_IF_ERROR’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:444:5: note: in expansion of macro ‘VIR_FIREWALL_CMD_RETURN_IF_ERROR’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:444:5: note: in expansion of macro ‘VIR_FIREWALL_CMD_RETURN_IF_ERROR’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:444:5: note: in expansion of macro ‘VIR_FIREWALL_CMD_RETURN_IF_ERROR’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfirewall.c:444:5: note: in expansion of macro ‘VIR_FIREWALL_CMD_RETURN_IF_ERROR’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def173]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virhostmem.c: scope_hint: In function ‘virHostMemGetStats’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virhostmem.c:286:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(meminfo_path, "r")’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virhostmem.h:24: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virhostmem.c:39: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virhostmem.c:253:5: note: in expansion of macro ‘virCheckFlags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virhostmem.c:286:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(meminfo_path, "r")’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virhostmem.c:253:5: note: in expansion of macro ‘virCheckFlags’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def175]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virlockspace.c: scope_hint: In function ‘virLockSpaceResourceFree’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virlockspace.c:94:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virlockspace.h:24: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virlockspace.c:24: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virlockspace.c:124:17: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virlockspace.c: scope_hint: In function ‘virLockSpaceResourceFree’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virlockspace.c:69:15: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virlockspace.c: scope_hint: In function ‘virLockSpaceResourceFree’
/usr/include/bits/sigstksz.h:24: included_from: Included from here.
/usr/include/signal.h:328: included_from: Included from here.
/usr/include/glib-2.0/glib/gbacktrace.h:38: included_from: Included from here.
/usr/include/glib-2.0/glib.h:36: included_from: Included from here.
/usr/include/unistd.h:858:12: note: argument 1 of ‘unlink’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def176]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virmdev.c: scope_hint: In function ‘virMediatedDeviceIsUsed’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virmdev.c:400:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def177]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virobject.c: scope_hint: In function ‘virClassIsDerivedFrom’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virobject.c:226:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parent’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def178]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virpcivpd.c: scope_hint: In function ‘virPCIVPDResourceIsValidTextValue’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virpcivpd.c:181:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘v’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virthread.h:24: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virpcivpd.c:29: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virpcivpd.c:578:25: note: in expansion of macro ‘g_strstrip’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virpcivpd.c:578:16: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virpcivpd.c: scope_hint: In function ‘virPCIVPDResourceIsValidTextValue’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def179]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virrotatingfile.c: scope_hint: In function ‘virRotatingFileWriterDelete’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virrotatingfile.c:183:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virrotatingfile.h:24: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virrotatingfile.c:28: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virrotatingfile.c:239:22: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virrotatingfile.c: scope_hint: In function ‘virRotatingFileWriterDelete’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virrotatingfile.c:26: included_from: Included from here.
/usr/include/unistd.h:858:12: note: argument 1 of ‘unlink’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-457): [#def180]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virsocketaddr.c: scope_hint: In function ‘virSocketAddrGetRange’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virsocketaddr.c:1020:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘t2[7]’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virsocket.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virsocketaddr.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virsocketaddr.c:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virsocketaddr.c:487:23: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virsocketaddr.c: scope_hint: In function ‘virSocketAddrGetRange’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virsocketaddr.c:487:23: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virsocketaddr.c: scope_hint: In function ‘virSocketAddrGetRange’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virsocketaddr.c:895:9: note: in expansion of macro ‘VIR_SOCKET_ADDR_FAMILY’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virsocketaddr.c:968:9: note: in expansion of macro ‘VIR_SOCKET_ADDR_IS_FAMILY’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def181]
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/libxl_logger.c:29: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virthread.h:214:38: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_strdup_printf("%s/%s.log", *logger.logDir, name), "a")’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virthread.h:232:5: note: in expansion of macro ‘VIR_WITH_MUTEX_LOCK_GUARD_’
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/libxl_logger.c:198:5: note: in expansion of macro ‘VIR_WITH_MUTEX_LOCK_GUARD’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virthread.h:232:5: note: in expansion of macro ‘VIR_WITH_MUTEX_LOCK_GUARD_’
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/libxl_logger.c:198:5: note: in expansion of macro ‘VIR_WITH_MUTEX_LOCK_GUARD’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virthread.h:232:5: note: in expansion of macro ‘VIR_WITH_MUTEX_LOCK_GUARD_’
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/libxl_logger.c:198:5: note: in expansion of macro ‘VIR_WITH_MUTEX_LOCK_GUARD’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def182]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virthread.h:214:38: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_strdup_printf("%s/%s.log", *logger.logDir, name), "a")’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virthread.h:232:5: note: in expansion of macro ‘VIR_WITH_MUTEX_LOCK_GUARD_’
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/libxl_logger.c:198:5: note: in expansion of macro ‘VIR_WITH_MUTEX_LOCK_GUARD’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virthread.h:232:5: note: in expansion of macro ‘VIR_WITH_MUTEX_LOCK_GUARD_’
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/libxl_logger.c:198:5: note: in expansion of macro ‘VIR_WITH_MUTEX_LOCK_GUARD’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virthread.h:232:5: note: in expansion of macro ‘VIR_WITH_MUTEX_LOCK_GUARD_’
libvirt-10.9.0-build/libvirt-10.9.0/src/libxl/libxl_logger.c:198:5: note: in expansion of macro ‘VIR_WITH_MUTEX_LOCK_GUARD’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def183]
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virutil.c: scope_hint: In function ‘virParseOwnershipIds’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virutil.c:1392:11: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virerror.h:24: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virutil.c:53: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virutil.c:1386:34: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virutil.c: scope_hint: In function ‘virParseOwnershipIds’
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def184]
libvirt-10.9.0-build/libvirt-10.9.0/src/vmware/vmware_conf.c: scope_hint: In function ‘vmwareExtractPid’
libvirt-10.9.0-build/libvirt-10.9.0/src/vmware/vmware_conf.c:444:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_strdup_printf("%s/vmware.log", g_path_get_dirname(vmxPath)), "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
libvirt-10.9.0-build/libvirt-10.9.0/src/vmware/vmware_conf.c:444:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_strdup_printf("%s/vmware.log", g_path_get_dirname(vmxPath)), "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandhelper.c: scope_hint: In function ‘main’
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandhelper.c:55:1: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def187]
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandhelper.c:73:5: warning[-Wanalyzer-null-argument]: use of NULL ‘fopen("/builddir/build/BUILD/libvirt-10.9.0-build/libvirt-10.9.0/redhat-linux-build/tests/commandhelper.log", "w")’ where non-null expected
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandhelper.c: scope_hint: In function ‘main’
/usr/include/stdio.h: scope_hint: In function ‘main’
/usr/include/stdio.h:184:12: note: argument 1 of ‘fclose’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def188]
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandhelper.c:73:5: warning[-Wanalyzer-null-argument]: use of NULL ‘log’ where non-null expected
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandhelper.c: scope_hint: In function ‘main’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:27: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/viralloc.h:25: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tests/testutils.h:23: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandhelper.c:30: included_from: Included from here.
/usr/include/stdio.h: scope_hint: In function ‘main’
/usr/include/stdio.h:184:12: note: argument 1 of ‘fclose’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandhelper.c:97:19: warning[-Wanalyzer-malloc-leak]: leak of ‘parseArguments(argc, argv)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandhelper.c: scope_hint: In function ‘parseArguments’
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandhelper.c:101:27: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:90:29: note: in definition of macro ‘STREQ’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def191]
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandhelper.c: scope_hint: In function ‘main’
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandhelper.c:350:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/libvirt-10.9.0-build/libvirt-10.9.0/redhat-linux-build/tests/commandhelper.log", "w")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandhelper.c:350:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/libvirt-10.9.0-build/libvirt-10.9.0/redhat-linux-build/tests/commandhelper.log", "w")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def193]
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandtest.c: scope_hint: In function ‘mymain’
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandtest.c:1261:48: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(__open_alias("/dev/null", 0), 3)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def194]
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandtest.c:1262:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd, 4)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def195]
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandtest.c:1263:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd, 5)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def196]
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandtest.c:1264:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd, 6)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def197]
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandtest.c:1265:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd, 7)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def198]
libvirt-10.9.0-build/libvirt-10.9.0/tests/commandtest.c:1266:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd, 8)’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def199]
libvirt-10.9.0-build/libvirt-10.9.0/tests/qemunbdkittest.c: scope_hint: In function ‘testInfoSetArgs’
libvirt-10.9.0-build/libvirt-10.9.0/tests/qemunbdkittest.c:168:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def200]
libvirt-10.9.0-build/libvirt-10.9.0/tests/securityselinuxlabeltest.c: scope_hint: In function ‘testSELinuxLoadFileList’
libvirt-10.9.0-build/libvirt-10.9.0/tests/securityselinuxlabeltest.c:107:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_strdup_printf("%s/securityselinuxlabeldata/%s.txt", "/builddir/build/BUILD/libvirt-10.9.0-build/libvirt-10.9.0/tests", testname), "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
libvirt-10.9.0-build/libvirt-10.9.0/tests/securityselinuxlabeltest.c:107:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_strdup_printf("%s/securityselinuxlabeldata/%s.txt", "/builddir/build/BUILD/libvirt-10.9.0-build/libvirt-10.9.0/tests", testname), "r")’
Error: GCC_ANALYZER_WARNING (CWE-127): [#def202]
libvirt-10.9.0-build/libvirt-10.9.0/tests/testutils.c: scope_hint: In function ‘virTestDifferenceFullInternal’
libvirt-10.9.0-build/libvirt-10.9.0/tests/testutils.c:413:30: warning[-Wanalyzer-out-of-bounds]: buffer under-read
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/viralloc.h:25: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tests/testutils.h:23: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tests/testutils.c:29: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1365:7: note: in expansion of macro ‘_GLIB_AUTOPTR_CLEAR_FUNC_NAME’
/usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.h:103:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’
/usr/include/glib-2.0/glib/gmacros.h:1381:3: note: in expansion of macro ‘_GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS’
libvirt-10.9.0-build/libvirt-10.9.0/src/util/virfile.h:103:1: note: in expansion of macro ‘G_DEFINE_AUTOPTR_CLEANUP_FUNC’
libvirt-10.9.0-build/libvirt-10.9.0/tests/testutils.c:413:30: note: valid subscripts for ‘""’ are ‘[0]’ to ‘[0]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def203]
libvirt-10.9.0-build/libvirt-10.9.0/tests/testutilsqemu.c: scope_hint: In function ‘testQemuInfoSetArgs’
libvirt-10.9.0-build/libvirt-10.9.0/tests/testutilsqemu.c:720:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup(fakefd)’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def204]
libvirt-10.9.0-build/libvirt-10.9.0/tests/testutilsqemu.c: scope_hint: In function ‘testQemuGetRealCapsInternal’
libvirt-10.9.0-build/libvirt-10.9.0/tests/testutilsqemu.c:804:14: warning[-Wanalyzer-null-argument]: use of NULL ‘capsfile’ where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/conf/capabilities.h:24: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tests/testutilsqemu.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tests/testutilsqemu.c:4: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/tests/testutilsqemu.c:783:20: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/tests/testutilsqemu.c: scope_hint: In function ‘testQemuGetRealCapsInternal’
libvirt-10.9.0-build/libvirt-10.9.0/tests/testutilsqemu.c: scope_hint: In function ‘testQemuGetRealCapsInternal’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def205]
libvirt-10.9.0-build/libvirt-10.9.0/tests/virhostcputest.c: scope_hint: In function ‘linuxTestCompareFiles’
libvirt-10.9.0-build/libvirt-10.9.0/tests/virhostcputest.c:36:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(cpuinfofile, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
libvirt-10.9.0-build/libvirt-10.9.0/tests/virhostcputest.c:36:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(cpuinfofile, "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def207]
libvirt-10.9.0-build/libvirt-10.9.0/tests/virhostcputest.c: scope_hint: In function ‘linuxCPUStatsCompareFiles’
libvirt-10.9.0-build/libvirt-10.9.0/tests/virhostcputest.c:110:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(cpustatfile, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
libvirt-10.9.0-build/libvirt-10.9.0/tests/virhostcputest.c:110:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(cpustatfile, "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def209]
libvirt-10.9.0-build/libvirt-10.9.0/tests/virhostcputest.c: scope_hint: In function ‘hostCPUSignature’
libvirt-10.9.0-build/libvirt-10.9.0/tests/virhostcputest.c:193:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_strdup_printf("%s/virhostcpudata/linux-%s-%s.cpuinfo", "/builddir/build/BUILD/libvirt-10.9.0-build/libvirt-10.9.0/tests", virArchToString(*(const struct linuxTestHostCPUData *)opaque.arch), *(const struct linuxTestHostCPUData *)opaque.testName), "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
libvirt-10.9.0-build/libvirt-10.9.0/tests/virhostcputest.c:193:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_strdup_printf("%s/virhostcpudata/linux-%s-%s.cpuinfo", "/builddir/build/BUILD/libvirt-10.9.0-build/libvirt-10.9.0/tests", virArchToString(*(const struct linuxTestHostCPUData *)opaque.arch), *(const struct linuxTestHostCPUData *)opaque.testName), "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def211]
libvirt-10.9.0-build/libvirt-10.9.0/tests/virnetdaemontest.c: scope_hint: In function ‘testExecRestart’
libvirt-10.9.0-build/libvirt-10.9.0/tests/virnetdaemontest.c:293:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fdserver[0], 100)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def212]
libvirt-10.9.0-build/libvirt-10.9.0/tests/virnetdaemontest.c:293:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fdserver[1], 101)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def213]
libvirt-10.9.0-build/libvirt-10.9.0/tests/virnetdaemontest.c:294:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fdclient[0], 102)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def214]
libvirt-10.9.0-build/libvirt-10.9.0/tests/virnetdaemontest.c:295:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fdclient[1], 103)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def215]
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-completer-checkpoint.c: scope_hint: In function ‘virshCheckpointNameCompleter’
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-completer-checkpoint.c:69:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libvirt-10.9.0-build/libvirt-10.9.0/tools/vsh.h:28: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-completer-checkpoint.h:23: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-completer-checkpoint.c:23: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-completer-checkpoint.c:39:5: note: in expansion of macro ‘virCheckFlags’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def216]
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-domain.c: scope_hint: In function ‘virshAddressParse’
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-domain.c:125:15: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh.h:25: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-domain.h:23: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-domain.c:22: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-domain.c:124:29: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-domain.c: scope_hint: In function ‘virshAddressParse’
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def217]
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-domain.c: scope_hint: In function ‘getSignalNumber’
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-domain.c:8652:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘signame’
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-domain.c:8649:28: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-domain.c: scope_hint: In function ‘getSignalNumber’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def218]
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-secret.c: scope_hint: In function ‘cmdSecretSetValue’
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-secret.c:240:22: warning[-Wanalyzer-null-argument]: use of NULL ‘secret_val’ where non-null expected
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:69: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tools/vsh.h:28: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-secret.h:23: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-secret.c:22: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-secret.c:238:23: note: in expansion of macro ‘_’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-secret.c:239:22: note: in expansion of macro ‘g_strdup’
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-secret.c: scope_hint: In function ‘cmdSecretSetValue’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def219]
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-volume.c: scope_hint: In function ‘cmdVolList’
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-volume.c:1381:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘volInfoTexts’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def220]
libvirt-10.9.0-build/libvirt-10.9.0/tools/virsh-volume.c:1404:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘volInfoTexts’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def221]
libvirt-10.9.0-build/libvirt-10.9.0/tools/virt-host-validate-common.c: scope_hint: In function ‘virHostValidateGetCPUFlags’
libvirt-10.9.0-build/libvirt-10.9.0/tools/virt-host-validate-common.c:112:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/cpuinfo", "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
libvirt-10.9.0-build/libvirt-10.9.0/tools/virt-host-validate-common.c:112:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/cpuinfo", "r")’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def223]
libvirt-10.9.0-build/libvirt-10.9.0/tools/vsh.c: scope_hint: In function ‘vshCommandOptArgvString’
libvirt-10.9.0-build/libvirt-10.9.0/tools/vsh.c:1283:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘opt’
/usr/include/bits/types/struct_iovec.h:23: included_from: Included from here.
/usr/include/bits/fcntl-linux.h:38: included_from: Included from here.
/usr/include/bits/fcntl.h:61: included_from: Included from here.
/usr/include/fcntl.h:35: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tools/vsh.c:27: included_from: Included from here.
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/util/glibcompat.h:21: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/src/internal.h:30: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tools/vsh.h:28: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tools/vsh.c:22: included_from: Included from here.
libvirt-10.9.0-build/libvirt-10.9.0/tools/vsh.c:3539:28: note: in expansion of macro ‘g_strdup’
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-69.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | libvirt-10.9.0-1.fc42 |
store-results-to | /tmp/tmp4_d0ste2/libvirt-10.9.0-1.fc42.tar.xz |
time-created | 2024-11-13 01:57:44 |
time-finished | 2024-11-13 02:09:54 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp4_d0ste2/libvirt-10.9.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp4_d0ste2/libvirt-10.9.0-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |