Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] udisks2-2.10.90-build/udisks-2.10.90/modules/lsm/lsm_data.c: scope_hint: In function '_fill_pl_id_2_lsm_pl_data_hash' udisks2-2.10.90-build/udisks-2.10.90/modules/lsm/lsm_data.c:587:31: warning[-Wanalyzer-null-dereference]: dereference of NULL 'lsm_pl_array' # 585| guint i; # 586| # 587|-> for (i = 0; i < lsm_pl_array->len; ++i) # 588| { # 589| lsm_pl = g_ptr_array_index (lsm_pl_array, i); Error: GCC_ANALYZER_WARNING (CWE-476): [#def2] udisks2-2.10.90-build/udisks-2.10.90/modules/lvm2/udiskslinuxvolumegroup.c: scope_hint: In function 'handle_create_volume' udisks2-2.10.90-build/udisks-2.10.90/modules/lvm2/udiskslinuxvolumegroup.c:1126:3: warning[-Wanalyzer-jump-through-null]: jump through null pointer udisks2-2.10.90-build/udisks-2.10.90/modules/lvm2/udiskslinuxvolumegroup.c:42: included_from: Included from here. udisks2-2.10.90-build/udisks-2.10.90/modules/lvm2/udiskslinuxvolumegroup.c:1013:3: note: in expansion of macro 'UDISKS_DAEMON_CHECK_AUTHORIZATION' udisks2-2.10.90-build/udisks-2.10.90/modules/lvm2/udiskslinuxvolumegroup.c:1013:3: note: in expansion of macro 'UDISKS_DAEMON_CHECK_AUTHORIZATION' # 1124| } # 1125| # 1126|-> completion_function (_group, invocation, lv_objpath); # 1127| # 1128| out: Error: CPPCHECK_WARNING (CWE-476): [#def3] udisks2-2.10.90-build/udisks-2.10.90/src/tests/helper.c:71: error[nullPointer]: Null pointer dereference: p # 69| const gchar **p = NULL; # 70| /* coverity[var_deref_op] */ # 71|-> *p = "fail"; # 72| } # 73| g_assert_not_reached (); Error: GCC_ANALYZER_WARNING (CWE-476): [#def4] udisks2-2.10.90-build/udisks-2.10.90/src/tests/helper.c: scope_hint: In function ‘main’ udisks2-2.10.90-build/udisks-2.10.90/src/tests/helper.c:71:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’ # 69| const gchar **p = NULL; # 70| /* coverity[var_deref_op] */ # 71|-> *p = "fail"; # 72| } # 73| g_assert_not_reached (); Error: GCC_ANALYZER_WARNING (CWE-476): [#def5] udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c: scope_hint: In function 'udisks_linux_block_object_trigger_uevent' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1024:16: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' /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. /usr/include/glib-2.0/glib/gi18n-lib.h:23: included_from: Included from here. udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:22: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1021:3: note: in expansion of macro 'g_return_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.h:31:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1021:21: note: in expansion of macro 'UDISKS_IS_LINUX_BLOCK_OBJECT' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1021:3: note: in expansion of macro 'g_return_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.h:31:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1021:21: note: in expansion of macro 'UDISKS_IS_LINUX_BLOCK_OBJECT' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1021:3: note: in expansion of macro 'g_return_if_fail' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:363:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.h:31:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:363:25: note: in expansion of macro 'UDISKS_IS_LINUX_BLOCK_OBJECT' /usr/include/glib-2.0/glib.h:64: included_from: Included from here. udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:363:3: note: in expansion of macro 'g_return_val_if_fail' # 1022| # 1023| device = udisks_linux_block_object_get_device (object); # 1024|-> sysfs_path = g_udev_device_get_sysfs_path (device->udev_device); # 1025| udisks_daemon_util_trigger_uevent (object->daemon, NULL, sysfs_path); # 1026| g_object_unref (device); Error: GCC_ANALYZER_WARNING (CWE-476): [#def6] udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c: scope_hint: In function 'udisks_linux_block_object_trigger_uevent_sync' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1054:16: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1051:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.h:31:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1051:25: note: in expansion of macro 'UDISKS_IS_LINUX_BLOCK_OBJECT' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1051:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.h:31:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1051:25: note: in expansion of macro 'UDISKS_IS_LINUX_BLOCK_OBJECT' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1051:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:363:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.h:31:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:363:25: note: in expansion of macro 'UDISKS_IS_LINUX_BLOCK_OBJECT' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:363:3: note: in expansion of macro 'g_return_val_if_fail' # 1052| # 1053| device = udisks_linux_block_object_get_device (object); # 1054|-> sysfs_path = g_udev_device_get_sysfs_path (device->udev_device); # 1055| ret = udisks_daemon_util_trigger_uevent_sync (object->daemon, NULL, sysfs_path, timeout_seconds); # 1056| g_object_unref (device); Error: GCC_ANALYZER_WARNING (CWE-476): [#def7] udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c: scope_hint: In function 'udisks_linux_block_object_reread_partition_table' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1091:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1087:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.h:31:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1087:25: note: in expansion of macro 'UDISKS_IS_LINUX_BLOCK_OBJECT' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1087:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.h:31:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1087:25: note: in expansion of macro 'UDISKS_IS_LINUX_BLOCK_OBJECT' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1087:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:562:8: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:1088:3: note: in expansion of macro 'g_warn_if_fail' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:363:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.h:31:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:363:25: note: in expansion of macro 'UDISKS_IS_LINUX_BLOCK_OBJECT' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxblockobject.c:363:3: note: in expansion of macro 'g_return_val_if_fail' # 1089| # 1090| device = udisks_linux_block_object_get_device (object); # 1091|-> device_file = g_udev_device_get_device_file (device->udev_device); # 1092| fd = open (device_file, O_RDONLY); # 1093| if (fd == -1) Error: GCC_ANALYZER_WARNING (CWE-1341): [#def8] udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxdrive.c: scope_hint: In function 'handle_power_off' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxdrive.c:1690:11: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'open(udisks_block_get_device(udisks_object_peek_block(udisks_linux_drive_object_get_block(udisks_daemon_util_dup_object(_drive, & error), 0))), 2176)' /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. udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxdrive.c:22: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxdrive.c:1315:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxdrive.c:1316:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxdrive.c:1316:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxdrive.c:1316:3: note: in expansion of macro 'g_return_val_if_fail' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxdrive.c:45: included_from: Included from here. udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxdrive.c:1600:7: note: in expansion of macro 'udisks_warning' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxdrive.c:1315:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxdrive.c:1316:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxdrive.c:1316:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxdrive.c:1316:3: note: in expansion of macro 'g_return_val_if_fail' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxdrive.c:1613:7: note: in expansion of macro 'udisks_warning' # 1688| if (fd != -1) # 1689| { # 1690|-> if (close (fd) != 0) # 1691| { # 1692| udisks_warning ("Error closing device: %m"); Error: GCC_ANALYZER_WARNING (CWE-688): [#def9] udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxmanager.c: scope_hint: In function 'handle_mdraid_create' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxmanager.c:819:7: warning[-Wanalyzer-null-argument]: use of NULL 'raid_device_file' 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. /usr/include/glib-2.0/glib/gi18n-lib.h:23: included_from: Included from here. udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxmanager.c:22: included_from: Included from here. udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxmanager.c:796:24: note: in expansion of macro 'g_strdup' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxmanager.c: scope_hint: In function 'handle_mdraid_create' /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 # 817| } # 818| # 819|-> if (stat (raid_device_file, &statbuf) != 0) # 820| { # 821| g_dbus_method_invocation_return_error (invocation, Error: GCC_ANALYZER_WARNING (CWE-476): [#def10] udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxmountoptions.c: scope_hint: In function 'udisks_linux_calculate_mount_options' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxmountoptions.c:1276:21: warning[-Wanalyzer-null-dereference]: dereference of NULL 'd' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxmountoptions.c:437:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/glib.h:64: included_from: Included from here. udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxmountoptions.c:437:3: note: in expansion of macro 'g_return_val_if_fail' # 1274| # 1275| ptr_array = g_ptr_array_new_with_free_func ((GDestroyNotify) udisks_mount_options_entry_free); # 1276|-> for (d = drivers; *d; d++) # 1277| { # 1278| UDisksMountOptionsEntry *entry; Error: GCC_ANALYZER_WARNING (CWE-476): [#def11] udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxmountoptions.c:35: included_from: Included from here. udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxmountoptions.c: scope_hint: In function 'compute_drivers' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslogging.h:93:33: warning[-Wanalyzer-null-dereference]: dereference of NULL 'error' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxmountoptions.c:471:7: note: in expansion of macro 'udisks_warning' /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. /usr/include/glib-2.0/glib/gi18n-lib.h:23: included_from: Included from here. udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxmountoptions.c:23: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxmountoptions.c:437:3: note: in expansion of macro 'g_return_val_if_fail' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslogging.h:93:91: note: in definition of macro 'udisks_warning' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslogging.h:93:91: note: in definition of macro 'udisks_warning' udisks2-2.10.90-build/udisks-2.10.90/src/udiskslinuxmountoptions.c:471:7: note: in expansion of macro 'udisks_warning' # 91| * See #UDisksLogLevel for more details. # 92| */ # 93|-> #define udisks_warning(args...) udisks_log(UDISKS_LOG_LEVEL_WARNING, G_STRFUNC, G_STRLOC, args) # 94| # 95| /** Error: GCC_ANALYZER_WARNING (CWE-775): [#def12] udisks2-2.10.90-build/udisks-2.10.90/tools/udisksctl.c: scope_hint: In function ‘read_passphrase’ udisks2-2.10.90-build/udisks-2.10.90/tools/udisksctl.c:937:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tty_name, "r+")’ udisks2-2.10.90-build/udisks-2.10.90/tools/udisksctl.c: scope_hint: In function ‘read_passphrase’ udisks2-2.10.90-build/udisks-2.10.90/tools/udisksctl.c: scope_hint: In function ‘read_passphrase’ /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. /usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here. udisks2-2.10.90-build/udisks-2.10.90/tools/udisksctl.c:22: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ udisks2-2.10.90-build/udisks-2.10.90/tools/udisksctl.c:3248:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ udisks2-2.10.90-build/udisks-2.10.90/tools/udisksctl.c:3229:3: note: in expansion of macro ‘g_assert’ # 935| else if (c == EOF) # 936| { # 937|-> tcsetattr (fileno (tty), TCSAFLUSH, &ots); # 938| g_error ("Unexpected EOF while reading from controlling terminal."); # 939| abort (); Error: GCC_ANALYZER_WARNING (CWE-401): [#def13] udisks2-2.10.90-build/udisks-2.10.90/tools/udisksctl.c:937:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tty_name, "r+")’ udisks2-2.10.90-build/udisks-2.10.90/tools/udisksctl.c: scope_hint: In function ‘read_passphrase’ udisks2-2.10.90-build/udisks-2.10.90/tools/udisksctl.c: scope_hint: In function ‘read_passphrase’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ udisks2-2.10.90-build/udisks-2.10.90/tools/udisksctl.c:3248:3: note: in expansion of macro ‘g_assert’ /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’ udisks2-2.10.90-build/udisks-2.10.90/tools/udisksctl.c:3229:3: note: in expansion of macro ‘g_assert’ # 935| else if (c == EOF) # 936| { # 937|-> tcsetattr (fileno (tty), TCSAFLUSH, &ots); # 938| g_error ("Unexpected EOF while reading from controlling terminal."); # 939| abort (); Error: COMPILER_WARNING: [#def14] udisks2-2.10.90-build/udisks-2.10.90/udisks/tmp-introspect6x8mlsrj/UDisks-2.0.c: scope_hint: In function ‘dump_properties’ udisks2-2.10.90-build/udisks-2.10.90/udisks/tmp-introspect6x8mlsrj/UDisks-2.0.c:287:7: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code # 287 | const GValue *v = g_param_spec_get_default_value (prop); # | ^~~~~ Error: COMPILER_WARNING: [#def15] udisks2-2.10.90-build/udisks-2.10.90/udisks/tmp-introspect6x8mlsrj/UDisks-2.0.c: scope_hint: In function ‘dump_irepository’ udisks2-2.10.90-build/udisks-2.10.90/udisks/tmp-introspect6x8mlsrj/UDisks-2.0.c:654:3: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code # 654 | const char *input_filename = args[0]; # | ^~~~~ Error: GCC_ANALYZER_WARNING (CWE-476): [#def16] udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c: scope_hint: In function 'udisks_client_get_object_info_for_mdraid' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:391:16: warning[-Wanalyzer-null-dereference]: dereference of NULL 'info' /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. /usr/include/glib-2.0/glib/gi18n-lib.h:23: included_from: Included from here. udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:22: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:906:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksclient.h:35:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:906:25: note: in expansion of macro 'UDISKS_IS_CLIENT' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:906:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksclient.h:35:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:906:25: note: in expansion of macro 'UDISKS_IS_CLIENT' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:906:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisks-generated.h:9259:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisks-generated.h:9259:63: note: in expansion of macro 'UDISKS_TYPE_OBJECT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:25: note: in expansion of macro 'UDISKS_IS_OBJECT' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisks-generated.h:9259:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:25: note: in expansion of macro 'UDISKS_IS_OBJECT' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisks-generated.h:9259:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:25: note: in expansion of macro 'UDISKS_IS_OBJECT' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:131:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/glib.h:64: included_from: Included from here. udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:131:3: note: in expansion of macro 'g_return_val_if_fail' /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' # 389| s = strstr (name, ":"); # 390| if (s != NULL && strlen (s) > 1) # 391|-> info->name = g_strdup (s + 1); # 392| else # 393| info->name = g_strdup (name); Error: GCC_ANALYZER_WARNING (CWE-476): [#def17] udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:393:16: warning[-Wanalyzer-null-dereference]: dereference of NULL 'info' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:906:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksclient.h:35:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:906:25: note: in expansion of macro 'UDISKS_IS_CLIENT' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:906:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksclient.h:35:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:906:25: note: in expansion of macro 'UDISKS_IS_CLIENT' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:906:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisks-generated.h:9259:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisks-generated.h:9259:63: note: in expansion of macro 'UDISKS_TYPE_OBJECT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:25: note: in expansion of macro 'UDISKS_IS_OBJECT' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisks-generated.h:9259:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:25: note: in expansion of macro 'UDISKS_IS_OBJECT' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisks-generated.h:9259:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:25: note: in expansion of macro 'UDISKS_IS_OBJECT' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:131:3: note: in expansion of macro 'g_return_val_if_fail' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:131:3: note: in expansion of macro 'g_return_val_if_fail' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:393:18: note: in expansion of macro 'g_strdup' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c: scope_hint: In function 'udisks_client_get_object_info_for_mdraid' # 391| info->name = g_strdup (s + 1); # 392| else # 393|-> info->name = g_strdup (name); # 394| info->icon = g_themed_icon_new_with_default_fallbacks ("drive-multidisk"); # 395| info->icon_symbolic = g_themed_icon_new_with_default_fallbacks ("drive-multidisk-symbolic"); Error: GCC_ANALYZER_WARNING (CWE-476): [#def18] udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c: scope_hint: In function 'udisks_client_get_object_info_for_drive' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:556:14: warning[-Wanalyzer-null-dereference]: dereference of NULL 'info' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:906:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksclient.h:35:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:906:25: note: in expansion of macro 'UDISKS_IS_CLIENT' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:906:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksclient.h:35:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:906:25: note: in expansion of macro 'UDISKS_IS_CLIENT' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:906:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisks-generated.h:9259:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisks-generated.h:9259:63: note: in expansion of macro 'UDISKS_TYPE_OBJECT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:25: note: in expansion of macro 'UDISKS_IS_OBJECT' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisks-generated.h:9259:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:25: note: in expansion of macro 'UDISKS_IS_OBJECT' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisks-generated.h:9259:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:25: note: in expansion of macro 'UDISKS_IS_OBJECT' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:907:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:131:3: note: in expansion of macro 'g_return_val_if_fail' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:131:3: note: in expansion of macro 'g_return_val_if_fail' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:531:3: note: in expansion of macro 'g_return_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisks-generated.h:760:29: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:531:21: note: in expansion of macro 'UDISKS_IS_DRIVE' /usr/include/glib-2.0/glib/gmacros.h:1243:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:531:3: note: in expansion of macro 'g_return_if_fail' /usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro '_G_TYPE_CIT' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisks-generated.h:760:29: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:531:21: note: in expansion of macro 'UDISKS_IS_DRIVE' /usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL' /usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro '_G_BOOLEAN_EXPR' /usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro 'G_LIKELY' udisks2-2.10.90-build/udisks-2.10.90/udisks/udisksobjectinfo.c:531:3: note: in expansion of macro 'g_return_if_fail' # 554| if (strlen (model) == 0) # 555| model = NULL; # 556|-> info->name = g_strdup_printf ("%s%s%s", # 557| vendor != NULL ? vendor : "", # 558| vendor != NULL ? " " : "",
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-16.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | udisks2-2.10.90-1.fc42 |
store-results-to | /tmp/tmp714ngtyj/udisks2-2.10.90-1.fc42.tar.xz |
time-created | 2024-11-13 03:45:32 |
time-finished | 2024-11-13 03:52:15 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp714ngtyj/udisks2-2.10.90-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp714ngtyj/udisks2-2.10.90-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |