udisks2-2.10.1-5.fc41

List of Defects

Error: CLANG_WARNING: [#def1]
udisks-2.10.1/doc/udisks2-scan.c:342:16: warning[deadcode.DeadStores]: Although the value stored to 'event_num' is used in the enclosing expression, the value is never actually read from 'event_num'

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
udisks-2.10.1/modules/lsm/lsm_data.c: scope_hint: In function '_fill_pl_id_2_lsm_pl_data_hash'
udisks-2.10.1/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): [#def3]
udisks-2.10.1/modules/lvm2/udiskslinuxvolumegroup.c: scope_hint: In function 'handle_create_volume'
udisks-2.10.1/modules/lvm2/udiskslinuxvolumegroup.c:1109:3: warning[-Wanalyzer-jump-through-null]: jump through null pointer
udisks-2.10.1/modules/lvm2/udiskslinuxvolumegroup.c:42: included_from: Included from here.
udisks-2.10.1/modules/lvm2/udiskslinuxvolumegroup.c:996:3: note: in expansion of macro 'UDISKS_DAEMON_CHECK_AUTHORIZATION'
udisks-2.10.1/modules/lvm2/udiskslinuxvolumegroup.c:996:3: note: in expansion of macro 'UDISKS_DAEMON_CHECK_AUTHORIZATION'
# 1107|       }
# 1108|   
# 1109|->   completion_function (_group, invocation, lv_objpath);
# 1110|   
# 1111|    out:

Error: COMPILER_WARNING (CWE-477): [#def4]
udisks-2.10.1/modules/lvm2/udiskslvm2daemonutil.c: scope_hint: In function 'run_sync'
udisks-2.10.1/modules/lvm2/udiskslvm2daemonutil.c:126:3: warning[-Wdeprecated-declarations]: 'g_spawn_check_exit_status' is deprecated: Use 'g_spawn_check_wait_status' instead
#  126 |   if (!g_spawn_check_exit_status (exit_status, error))
#      |   ^~
/usr/include/glib-2.0/glib.h:84: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n-lib.h:23: included_from: Included from here.
udisks-2.10.1/modules/lvm2/udiskslvm2daemonutil.c:22: included_from: Included from here.
/usr/include/glib-2.0/glib/gspawn.h:315:10: note: declared here
#  315 | gboolean g_spawn_check_exit_status (gint      wait_status,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
#  124|       return FALSE;
#  125|   
#  126|->   if (!g_spawn_check_exit_status (exit_status, error))
#  127|       {
#  128|         g_prefix_error (error, "stdout: '%s', stderr: '%s', ", standard_output, standard_error);

Error: CLANG_WARNING: [#def5]
udisks-2.10.1/src/tests/helper.c:35:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#   33|     gint ret;
#   34|   
#   35|->   ret = 1;
#   36|   
#   37|     g_assert_cmpint (argc, ==, 2);

Error: CPPCHECK_WARNING (CWE-476): [#def6]
udisks-2.10.1/src/tests/helper.c:66: error[nullPointer]: Null pointer dereference: p
#   64|           const gchar **p = NULL;
#   65|           /* coverity[var_deref_op] */
#   66|->         *p = "fail";
#   67|         }
#   68|         g_assert_not_reached ();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
udisks-2.10.1/src/tests/helper.c: scope_hint: In function ‘main’
udisks-2.10.1/src/tests/helper.c:66:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#   64|           const gchar **p = NULL;
#   65|           /* coverity[var_deref_op] */
#   66|->         *p = "fail";
#   67|         }
#   68|         g_assert_not_reached ();

Error: CLANG_WARNING: [#def8]
udisks-2.10.1/src/tests/helper.c:66:12: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'p')
#   64|           const gchar **p = NULL;
#   65|           /* coverity[var_deref_op] */
#   66|->         *p = "fail";
#   67|         }
#   68|         g_assert_not_reached ();

Error: CLANG_WARNING: [#def9]
udisks-2.10.1/src/udiskslinuxblock.c:745:23: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
#  743|       {
#  744|         udisks_warning ("Error loading configuration: %s (%s, %d)",
#  745|->                       error->message, g_quark_to_string (error->domain), error->code);
#  746|         g_clear_error (&error);
#  747|         configuration = g_variant_new ("a(sa{sv})", NULL);

Error: CLANG_WARNING: [#def10]
udisks-2.10.1/src/udiskslinuxblock.c:821:23: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
#  819|       {
#  820|         udisks_warning ("Error loading configuration: %s (%s, %d)",
#  821|->                       error->message, g_quark_to_string (error->domain), error->code);
#  822|         g_clear_error (&error);
#  823|         res = g_variant_new ("a(sa{sv})", NULL);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
udisks-2.10.1/src/udiskslinuxblockobject.c: scope_hint: In function 'udisks_linux_block_object_trigger_uevent'
udisks-2.10.1/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.
udisks-2.10.1/src/udiskslinuxblockobject.c:22: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/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'
udisks-2.10.1/src/udiskslinuxblockobject.h:31:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/src/udiskslinuxblockobject.c:1021:21: note: in expansion of macro 'UDISKS_IS_LINUX_BLOCK_OBJECT'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/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'
udisks-2.10.1/src/udiskslinuxblockobject.h:31:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/src/udiskslinuxblockobject.c:1021:21: note: in expansion of macro 'UDISKS_IS_LINUX_BLOCK_OBJECT'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/src/udiskslinuxblockobject.c:1021:3: note: in expansion of macro 'g_return_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/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'
udisks-2.10.1/src/udiskslinuxblockobject.h:31:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/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.
udisks-2.10.1/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): [#def12]
udisks-2.10.1/src/udiskslinuxblockobject.c: scope_hint: In function 'udisks_linux_block_object_trigger_uevent_sync'
udisks-2.10.1/src/udiskslinuxblockobject.c:1054:16: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/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'
udisks-2.10.1/src/udiskslinuxblockobject.h:31:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/src/udiskslinuxblockobject.c:1051:25: note: in expansion of macro 'UDISKS_IS_LINUX_BLOCK_OBJECT'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/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'
udisks-2.10.1/src/udiskslinuxblockobject.h:31:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/src/udiskslinuxblockobject.c:1051:25: note: in expansion of macro 'UDISKS_IS_LINUX_BLOCK_OBJECT'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/src/udiskslinuxblockobject.c:1051:3: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/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'
udisks-2.10.1/src/udiskslinuxblockobject.h:31:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/src/udiskslinuxblockobject.c:363:25: note: in expansion of macro 'UDISKS_IS_LINUX_BLOCK_OBJECT'
udisks-2.10.1/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): [#def13]
udisks-2.10.1/src/udiskslinuxblockobject.c: scope_hint: In function 'udisks_linux_block_object_reread_partition_table'
udisks-2.10.1/src/udiskslinuxblockobject.c:1091:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/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'
udisks-2.10.1/src/udiskslinuxblockobject.h:31:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/src/udiskslinuxblockobject.c:1087:25: note: in expansion of macro 'UDISKS_IS_LINUX_BLOCK_OBJECT'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/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'
udisks-2.10.1/src/udiskslinuxblockobject.h:31:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/src/udiskslinuxblockobject.c:1087:25: note: in expansion of macro 'UDISKS_IS_LINUX_BLOCK_OBJECT'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/src/udiskslinuxblockobject.c:1087:3: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/src/udiskslinuxblockobject.c:1088:3: note: in expansion of macro 'g_warn_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/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'
udisks-2.10.1/src/udiskslinuxblockobject.h:31:42: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/src/udiskslinuxblockobject.c:363:25: note: in expansion of macro 'UDISKS_IS_LINUX_BLOCK_OBJECT'
udisks-2.10.1/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): [#def14]
udisks-2.10.1/src/udiskslinuxdrive.c: scope_hint: In function 'handle_power_off'
udisks-2.10.1/src/udiskslinuxdrive.c:1651: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.
udisks-2.10.1/src/udiskslinuxdrive.c:22: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/src/udiskslinuxdrive.c:1276:3: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/src/udiskslinuxdrive.c:1277:3: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/src/udiskslinuxdrive.c:1277:3: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/src/udiskslinuxdrive.c:1277:3: note: in expansion of macro 'g_return_val_if_fail'
udisks-2.10.1/src/udiskslinuxdrive.c:45: included_from: Included from here.
udisks-2.10.1/src/udiskslinuxdrive.c:1561:7: note: in expansion of macro 'udisks_warning'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/src/udiskslinuxdrive.c:1276:3: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/src/udiskslinuxdrive.c:1277:3: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/src/udiskslinuxdrive.c:1277:3: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/src/udiskslinuxdrive.c:1277:3: note: in expansion of macro 'g_return_val_if_fail'
udisks-2.10.1/src/udiskslinuxdrive.c:1574:7: note: in expansion of macro 'udisks_warning'
# 1649|     if (fd != -1)
# 1650|       {
# 1651|->       if (close (fd) != 0)
# 1652|           {
# 1653|             udisks_warning ("Error closing device: %m");

Error: GCC_ANALYZER_WARNING (CWE-688): [#def15]
udisks-2.10.1/src/udiskslinuxmanager.c: scope_hint: In function 'handle_mdraid_create'
udisks-2.10.1/src/udiskslinuxmanager.c:817: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.
udisks-2.10.1/src/udiskslinuxmanager.c:22: included_from: Included from here.
udisks-2.10.1/src/udiskslinuxmanager.c:794:24: note: in expansion of macro 'g_strdup'
udisks-2.10.1/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.
/usr/lib/gcc/x86_64-redhat-linux/14/include/limits.h:210: included_from: Included from here.
/usr/lib/gcc/x86_64-redhat-linux/14/include/syslimits.h:7: included_from: Included from here.
/usr/lib/gcc/x86_64-redhat-linux/14/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
#  815|       }
#  816|   
#  817|->   if (stat (raid_device_file, &statbuf) != 0)
#  818|       {
#  819|         g_dbus_method_invocation_return_error (invocation,

Error: CLANG_WARNING: [#def16]
udisks-2.10.1/src/udiskslinuxmountoptions.c:380:23: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
#  378|       {
#  379|         udisks_warning ("Error getting udev mount options: %s",
#  380|->                       error->message);
#  381|         g_clear_error (&error);
#  382|       }

Error: CLANG_WARNING: [#def17]
udisks-2.10.1/src/udiskslinuxmountoptions.c:472:23: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
#  470|       {
#  471|         udisks_warning ("Error getting udev mount options: %s",
#  472|->                       error->message);
#  473|         g_clear_error (&error);
#  474|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
udisks-2.10.1/src/udiskslinuxmountoptions.c: scope_hint: In function 'udisks_linux_calculate_mount_options'
udisks-2.10.1/src/udiskslinuxmountoptions.c:1276:21: warning[-Wanalyzer-null-dereference]: dereference of NULL 'd'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/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.
udisks-2.10.1/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: CLANG_WARNING: [#def19]
udisks-2.10.1/src/udiskslinuxnvmecontroller.c:228:20: warning[deadcode.DeadStores]: Value stored to 'status' during its initialization is never read
#  226|     if (sanitize_log != NULL)
#  227|       {
#  228|->       const gchar *status = "success";
#  229|         gint compl = -1;
#  230|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
udisks-2.10.1/src/udiskslinuxmountoptions.c:35: included_from: Included from here.
udisks-2.10.1/src/udiskslinuxmountoptions.c: scope_hint: In function 'compute_drivers'
udisks-2.10.1/src/udiskslogging.h:93:33: warning[-Wanalyzer-null-dereference]: dereference of NULL 'error'
udisks-2.10.1/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.
udisks-2.10.1/src/udiskslinuxmountoptions.c:23: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/src/udiskslinuxmountoptions.c:437:3: note: in expansion of macro 'g_return_val_if_fail'
udisks-2.10.1/src/udiskslogging.h:93:91: note: in definition of macro 'udisks_warning'
udisks-2.10.1/src/udiskslogging.h:93:91: note: in definition of macro 'udisks_warning'
udisks-2.10.1/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-476): [#def21]
udisks-2.10.1/modules/lvm2/udiskslvm2daemonutil.c:46: included_from: Included from here.
udisks-2.10.1/modules/lvm2/udiskslvm2daemonutil.c: scope_hint: In function 'udisks_daemon_util_lvm2_wipe_block'
udisks-2.10.1/src/udiskslogging.h:93:33: warning[-Wanalyzer-null-dereference]: dereference of NULL 'local_error'
udisks-2.10.1/modules/lvm2/udiskslvm2daemonutil.c:235:7: note: in expansion of macro 'udisks_warning'
udisks-2.10.1/src/udiskslogging.h:93:91: note: in definition of macro 'udisks_warning'
udisks-2.10.1/src/udiskslogging.h:93:91: note: in definition of macro 'udisks_warning'
udisks-2.10.1/modules/lvm2/udiskslvm2daemonutil.c:235: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): [#def22]
udisks-2.10.1/tools/udisksctl.c: scope_hint: In function ‘read_passphrase’
udisks-2.10.1/tools/udisksctl.c:937:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tty_name, "r+")’
udisks-2.10.1/tools/udisksctl.c: scope_hint: In function ‘read_passphrase’
udisks-2.10.1/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.
udisks-2.10.1/tools/udisksctl.c:22: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244: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’
udisks-2.10.1/tools/udisksctl.c:3248:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244: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’
udisks-2.10.1/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): [#def23]
udisks-2.10.1/tools/udisksctl.c:937:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tty_name, "r+")’
udisks-2.10.1/tools/udisksctl.c: scope_hint: In function ‘read_passphrase’
udisks-2.10.1/tools/udisksctl.c: scope_hint: In function ‘read_passphrase’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244: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’
udisks-2.10.1/tools/udisksctl.c:3248:3: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244: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’
udisks-2.10.1/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: [#def24]
udisks-2.10.1/udisks/tmp-introspect65qy4dmg/UDisks-2.0.c: scope_hint: In function ‘dump_properties’
udisks-2.10.1/udisks/tmp-introspect65qy4dmg/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: [#def25]
udisks-2.10.1/udisks/tmp-introspect65qy4dmg/UDisks-2.0.c: scope_hint: In function ‘dump_irepository’
udisks-2.10.1/udisks/tmp-introspect65qy4dmg/UDisks-2.0.c:641:3: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code
#  641 |   const char *input_filename = args[0];
#      |   ^~~~~

Error: CLANG_WARNING: [#def26]
udisks-2.10.1/udisks/tmp-introspect65qy4dmg/UDisks-2.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
udisks-2.10.1/udisks/udisksobjectinfo.c: scope_hint: In function 'udisks_client_get_object_info_for_mdraid'
udisks-2.10.1/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.
udisks-2.10.1/udisks/udisksobjectinfo.c:22: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:908: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'
udisks-2.10.1/udisks/udisksclient.h:35:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/udisks/udisksobjectinfo.c:908:25: note: in expansion of macro 'UDISKS_IS_CLIENT'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:908: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'
udisks-2.10.1/udisks/udisksclient.h:35:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/udisks/udisksobjectinfo.c:908:25: note: in expansion of macro 'UDISKS_IS_CLIENT'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:908:3: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:909: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'
udisks-2.10.1/udisks/udisks-generated.h:9103:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/udisks/udisks-generated.h:9103:63: note: in expansion of macro 'UDISKS_TYPE_OBJECT'
udisks-2.10.1/udisks/udisksobjectinfo.c:909:25: note: in expansion of macro 'UDISKS_IS_OBJECT'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:909: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'
udisks-2.10.1/udisks/udisks-generated.h:9103:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/udisks/udisksobjectinfo.c:909:25: note: in expansion of macro 'UDISKS_IS_OBJECT'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:909: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'
udisks-2.10.1/udisks/udisks-generated.h:9103:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/udisks/udisksobjectinfo.c:909:25: note: in expansion of macro 'UDISKS_IS_OBJECT'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:909:3: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/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.
udisks-2.10.1/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): [#def28]
udisks-2.10.1/udisks/udisksobjectinfo.c:393:16: warning[-Wanalyzer-null-dereference]: dereference of NULL 'info'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:908: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'
udisks-2.10.1/udisks/udisksclient.h:35:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/udisks/udisksobjectinfo.c:908:25: note: in expansion of macro 'UDISKS_IS_CLIENT'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:908: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'
udisks-2.10.1/udisks/udisksclient.h:35:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/udisks/udisksobjectinfo.c:908:25: note: in expansion of macro 'UDISKS_IS_CLIENT'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:908:3: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:909: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'
udisks-2.10.1/udisks/udisks-generated.h:9103:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/udisks/udisks-generated.h:9103:63: note: in expansion of macro 'UDISKS_TYPE_OBJECT'
udisks-2.10.1/udisks/udisksobjectinfo.c:909:25: note: in expansion of macro 'UDISKS_IS_OBJECT'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:909: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'
udisks-2.10.1/udisks/udisks-generated.h:9103:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/udisks/udisksobjectinfo.c:909:25: note: in expansion of macro 'UDISKS_IS_OBJECT'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:909: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'
udisks-2.10.1/udisks/udisks-generated.h:9103:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/udisks/udisksobjectinfo.c:909:25: note: in expansion of macro 'UDISKS_IS_OBJECT'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:909:3: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:131:3: note: in expansion of macro 'g_return_val_if_fail'
udisks-2.10.1/udisks/udisksobjectinfo.c:131:3: note: in expansion of macro 'g_return_val_if_fail'
udisks-2.10.1/udisks/udisksobjectinfo.c:393:18: note: in expansion of macro 'g_strdup'
udisks-2.10.1/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): [#def29]
udisks-2.10.1/udisks/udisksobjectinfo.c: scope_hint: In function 'udisks_client_get_object_info_for_drive'
udisks-2.10.1/udisks/udisksobjectinfo.c:558:14: warning[-Wanalyzer-null-dereference]: dereference of NULL 'info'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:908: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'
udisks-2.10.1/udisks/udisksclient.h:35:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/udisks/udisksobjectinfo.c:908:25: note: in expansion of macro 'UDISKS_IS_CLIENT'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:908: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'
udisks-2.10.1/udisks/udisksclient.h:35:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/udisks/udisksobjectinfo.c:908:25: note: in expansion of macro 'UDISKS_IS_CLIENT'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:908:3: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:909: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'
udisks-2.10.1/udisks/udisks-generated.h:9103:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/udisks/udisks-generated.h:9103:63: note: in expansion of macro 'UDISKS_TYPE_OBJECT'
udisks-2.10.1/udisks/udisksobjectinfo.c:909:25: note: in expansion of macro 'UDISKS_IS_OBJECT'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:909: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'
udisks-2.10.1/udisks/udisks-generated.h:9103:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/udisks/udisksobjectinfo.c:909:25: note: in expansion of macro 'UDISKS_IS_OBJECT'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:909: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'
udisks-2.10.1/udisks/udisks-generated.h:9103:30: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/udisks/udisksobjectinfo.c:909:25: note: in expansion of macro 'UDISKS_IS_OBJECT'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:909:3: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:131:3: note: in expansion of macro 'g_return_val_if_fail'
udisks-2.10.1/udisks/udisksobjectinfo.c:131:3: note: in expansion of macro 'g_return_val_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:533: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'
udisks-2.10.1/udisks/udisks-generated.h:760:29: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/udisks/udisksobjectinfo.c:533:21: note: in expansion of macro 'UDISKS_IS_DRIVE'
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:533: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'
udisks-2.10.1/udisks/udisks-generated.h:760:29: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_TYPE'
udisks-2.10.1/udisks/udisksobjectinfo.c:533:21: note: in expansion of macro 'UDISKS_IS_DRIVE'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244: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'
udisks-2.10.1/udisks/udisksobjectinfo.c:533:3: note: in expansion of macro 'g_return_if_fail'
#  556|     if (strlen (model) == 0)
#  557|       model = NULL;
#  558|->   info->name = g_strdup_printf ("%s%s%s",
#  559|                                   vendor != NULL ? vendor : "",
#  560|                                   vendor != NULL ? " " : "",

Scan Properties

analyzer-version-clang18.1.3
analyzer-version-cppcheck2.13.0
analyzer-version-gcc14.0.1
analyzer-version-gcc-analyzer14.0.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-5.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameudisks2-2.10.1-5.fc41
store-results-to/tmp/tmpmh4k6jwj/udisks2-2.10.1-5.fc41.tar.xz
time-created2024-04-22 11:26:57
time-finished2024-04-22 11:33:54
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpmh4k6jwj/udisks2-2.10.1-5.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpmh4k6jwj/udisks2-2.10.1-5.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9