Error: COMPILER_WARNING (CWE-477): [#def1] gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space-helper.c: scope_hint: In function ‘gsd_should_ignore_unix_mount’ gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space-helper.c:115:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_fs_type’ is deprecated: Use 'g_unix_mount_entry_get_fs_type' instead # 115 | fs = g_unix_mount_get_fs_type (mount); # | ^~ gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space-helper.h:29: included_from: Included from here. gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space-helper.c:30: included_from: Included from here. /usr/include/gio-unix-2.0/gio/gunixmounts.h:115:16: note: declared here # 115 | const char * g_unix_mount_get_fs_type (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~~~~~~~~ # 113| }; # 114| # 115|-> fs = g_unix_mount_get_fs_type (mount); # 116| #if GLIB_CHECK_VERSION(2, 56, 0) # 117| if (g_unix_is_system_fs_type (fs)) Error: COMPILER_WARNING (CWE-477): [#def2] gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space-helper.c:128:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_device_path’ is deprecated: Use 'g_unix_mount_entry_get_device_path' instead # 128 | device = g_unix_mount_get_device_path (mount); # | ^~~~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:105:16: note: declared here # 105 | const char * g_unix_mount_get_device_path (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 126| return TRUE; # 127| # 128|-> device = g_unix_mount_get_device_path (mount); # 129| for (i = 0; ignore_devices[i] != NULL; i++) # 130| if (g_str_equal (ignore_devices[i], device)) Error: COMPILER_WARNING (CWE-477): [#def3] gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space-helper.c:133:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_guess_name’ is deprecated: Use 'g_unix_mount_entry_guess_name' instead # 133 | label = g_unix_mount_guess_name (mount); # | ^~~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:145:16: note: declared here # 145 | char * g_unix_mount_guess_name (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~~~~~~~ # 131| return TRUE; # 132| # 133|-> label = g_unix_mount_guess_name (mount); # 134| for (i = 0; ignore_labels[i] != NULL; i++) # 135| if (g_str_equal (ignore_labels[i], label)) Error: COMPILER_WARNING (CWE-477): [#def4] gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space-helper.c: scope_hint: In function ‘gsd_is_removable_mount’ gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space-helper.c:148:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 148 | mount_path = g_unix_mount_get_mount_path (mount); # | ^~~~~~~~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:100:16: note: declared here # 100 | const char * g_unix_mount_get_mount_path (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 146| char *path; # 147| # 148|-> mount_path = g_unix_mount_get_mount_path (mount); # 149| if (mount_path == NULL) # 150| return FALSE; Error: COMPILER_WARNING (CWE-477): [#def5] gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space.c: scope_hint: In function ‘ldsm_notify_for_mount’ gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space.c:685:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_guess_name’ is deprecated: Use 'g_unix_mount_entry_guess_name' instead # 685 | name = g_unix_mount_guess_name (mount->mount); # | ^~~~ gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space.c:32: included_from: Included from here. /usr/include/gio-unix-2.0/gio/gunixmounts.h:145:16: note: declared here # 145 | char * g_unix_mount_guess_name (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~~~~~~~ # 683| char *body; # 684| # 685|-> name = g_unix_mount_guess_name (mount->mount); # 686| path = g_unix_mount_get_mount_path (mount->mount); # 687| has_trash = ldsm_mount_has_trash (path); Error: COMPILER_WARNING (CWE-477): [#def6] gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space.c:686:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 686 | path = g_unix_mount_get_mount_path (mount->mount); # | ^~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:100:16: note: declared here # 100 | const char * g_unix_mount_get_mount_path (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 684| # 685| name = g_unix_mount_guess_name (mount->mount); # 686|-> path = g_unix_mount_get_mount_path (mount->mount); # 687| has_trash = ldsm_mount_has_trash (path); # 688| Error: COMPILER_WARNING (CWE-477): [#def7] gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space.c: scope_hint: In function ‘ldsm_free_mount_info’ gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space.c:774:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_free’ is deprecated: Use 'g_unix_mount_entry_free' instead # 774 | g_unix_mount_free (mount->mount); # | ^~~~~~~~~~~~~~~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:78:16: note: declared here # 78 | void g_unix_mount_free (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~ # 772| g_return_if_fail (mount != NULL); # 773| # 774|-> g_unix_mount_free (mount->mount); # 775| g_free (mount); # 776| } Error: COMPILER_WARNING (CWE-477): [#def8] gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space.c: scope_hint: In function ‘ldsm_maybe_warn_mounts’ gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space.c:802:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 802 | path = g_unix_mount_get_mount_path (mount_info->mount); # | ^~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:100:16: note: declared here # 100 | const char * g_unix_mount_get_mount_path (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 800| } # 801| # 802|-> path = g_unix_mount_get_mount_path (mount_info->mount); # 803| # 804| previous_mount_info = g_hash_table_lookup (ldsm_notified_hash, path); Error: COMPILER_WARNING (CWE-477): [#def9] gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space.c: scope_hint: In function ‘ldsm_check_all_mounts’ gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space.c:866:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_at’ is deprecated: Use 'g_unix_mount_entry_at' instead # 866 | mount = g_unix_mount_at (path, time_read); # | ^~~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:213:18: note: declared here # 213 | GUnixMountEntry *g_unix_mount_at (const char *mount_path, # | ^~~~~~~~~~~~~~~ # 864| # 865| path = g_unix_mount_point_get_mount_path (mount_point); # 866|-> mount = g_unix_mount_at (path, time_read); # 867| g_unix_mount_point_free (mount_point); # 868| if (mount == NULL) { Error: COMPILER_WARNING (CWE-477): [#def10] gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space.c:876:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 876 | path = g_unix_mount_get_mount_path (mount); # | ^~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:100:16: note: declared here # 100 | const char * g_unix_mount_get_mount_path (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 874| mount_info->mount = mount; # 875| # 876|-> path = g_unix_mount_get_mount_path (mount); # 877| # 878| if (g_unix_mount_is_readonly (mount)) { Error: COMPILER_WARNING (CWE-477): [#def11] gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space.c:878:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_is_readonly’ is deprecated: Use 'g_unix_mount_entry_is_readonly' instead # 878 | if (g_unix_mount_is_readonly (mount)) { # | ^~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:125:16: note: declared here # 125 | gboolean g_unix_mount_is_readonly (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~~~~~~~~ # 876| path = g_unix_mount_get_mount_path (mount); # 877| # 878|-> if (g_unix_mount_is_readonly (mount)) { # 879| ldsm_free_mount_info (mount_info); # 880| continue; Error: COMPILER_WARNING (CWE-477): [#def12] gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space.c:918:25: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 918 | g_hash_table_remove (ldsm_notified_hash, g_unix_mount_get_mount_path (mount_info->mount)); # | ^~~~~~~~~~~~~~~~~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:100:16: note: declared here # 100 | const char * g_unix_mount_get_mount_path (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 916| full_mounts = g_list_prepend (full_mounts, mount_info); # 917| } else { # 918|-> g_hash_table_remove (ldsm_notified_hash, g_unix_mount_get_mount_path (mount_info->mount)); # 919| ldsm_free_mount_info (mount_info); # 920| } Error: COMPILER_WARNING (CWE-477): [#def13] gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space.c: scope_hint: In function ‘ldsm_is_hash_item_not_in_mounts’ gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space.c:942:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 942 | path = g_unix_mount_get_mount_path (mount); # | ^~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:100:16: note: declared here # 100 | const char * g_unix_mount_get_mount_path (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 940| const char *path; # 941| # 942|-> path = g_unix_mount_get_mount_path (mount); # 943| # 944| if (strcmp (path, key) == 0) Error: COMPILER_WARNING (CWE-477): [#def14] gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space.c: scope_hint: In function ‘ldsm_mounts_changed’ gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space.c:958:9: warning[-Wdeprecated-declarations]: ‘g_unix_mounts_get’ is deprecated: Use 'g_unix_mount_entries_get' instead # 958 | mounts = g_unix_mounts_get (time_read); # | ^~~~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:199:16: note: declared here # 199 | GList * g_unix_mounts_get (guint64 *time_read); # | ^~~~~~~~~~~~~~~~~ # 956| # 957| /* remove the saved data for mounts that got removed */ # 958|-> mounts = g_unix_mounts_get (time_read); # 959| g_hash_table_foreach_remove (ldsm_notified_hash, # 960| ldsm_is_hash_item_not_in_mounts, mounts); Error: COMPILER_WARNING (CWE-477): [#def15] gnome-settings-daemon-48.1/plugins/housekeeping/gsd-disk-space.c:961:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_free’ is deprecated: Use 'g_unix_mount_entry_free' instead # 961 | g_list_free_full (mounts, (GDestroyNotify) g_unix_mount_free); # | ^~~~~~~~~~~~~~~~ /usr/include/gio-unix-2.0/gio/gunixmounts.h:78:16: note: declared here # 78 | void g_unix_mount_free (GUnixMountEntry *mount_entry); # | ^~~~~~~~~~~~~~~~~ # 959| g_hash_table_foreach_remove (ldsm_notified_hash, # 960| ldsm_is_hash_item_not_in_mounts, mounts); # 961|-> g_list_free_full (mounts, (GDestroyNotify) g_unix_mount_free); # 962| # 963| /* check the status now, for the new mounts */ Error: CPPCHECK_WARNING (CWE-457): [#def16] gnome-settings-daemon-48.1/plugins/media-keys/gsd-media-keys-manager.c:401: error[legacyUninitvar]: Uninitialized variable: binding # 399| # 400| array = g_ptr_array_new (); # 401|-> g_ptr_array_add (array, binding); # 402| g_ptr_array_add (array, NULL); # 403| Error: CPPCHECK_WARNING (CWE-457): [#def17] gnome-settings-daemon-48.1/plugins/power/gsd-power-manager.c:3254: error[legacyUninitvar]: Uninitialized variable: ret # 3252| # 3253| /* return value */ # 3254|-> if (!ret) { # 3255| g_dbus_method_invocation_take_error (invocation, # 3256| error); Error: GCC_ANALYZER_WARNING (CWE-476): [#def18] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/datetime/tz.c:195:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ gnome-settings-daemon-48.1/redhat-linux-build/../plugins/datetime/tz.c:189:1: enter_function: entry to ‘tz_location_get_utc_offset’ gnome-settings-daemon-48.1/redhat-linux-build/../plugins/datetime/tz.c:194:19: call_function: calling ‘tz_info_from_location’ from ‘tz_location_get_utc_offset’ gnome-settings-daemon-48.1/redhat-linux-build/../plugins/datetime/tz.c:194:19: return_function: returning to ‘tz_location_get_utc_offset’ from ‘tz_info_from_location’ gnome-settings-daemon-48.1/redhat-linux-build/../plugins/datetime/tz.c:195:9: danger: dereference of NULL ‘tz_info_from_location(loc)’ # 193| # 194| tz_info = tz_info_from_location (loc); # 195|-> offset = tz_info->utc_offset; # 196| tz_info_free (tz_info); # 197| return offset; Error: GCC_ANALYZER_WARNING (CWE-688): [#def19] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/datetime/tz.c:473:11: warning[-Wanalyzer-null-argument]: use of NULL ‘real’ where non-null expected gnome-settings-daemon-48.1/redhat-linux-build/../plugins/datetime/tz.c:436:6: branch_false: following ‘false’ branch... gnome-settings-daemon-48.1/redhat-linux-build/../plugins/datetime/tz.c:441:11: branch_false: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../plugins/datetime/tz.c:443:15: branch_true: following ‘true’ branch... gnome-settings-daemon-48.1/redhat-linux-build/../plugins/datetime/tz.c:449:11: branch_true: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../plugins/datetime/tz.c:449:10: branch_false: following ‘false’ branch... gnome-settings-daemon-48.1/redhat-linux-build/../plugins/datetime/tz.c:452:15: branch_false: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../plugins/datetime/tz.c:456:19: branch_false: following ‘false’ branch... gnome-settings-daemon-48.1/redhat-linux-build/../plugins/datetime/tz.c:469:11: branch_false: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../plugins/datetime/tz.c:469:10: branch_true: following ‘true’ branch... gnome-settings-daemon-48.1/redhat-linux-build/../plugins/datetime/tz.c:470:9: branch_true: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../plugins/datetime/tz.c:473:11: danger: argument 1 (‘real’) NULL where non-null expected # 471| # 472| /* We don't need more than one name for it */ # 473|-> if (g_str_equal (real, "Etc/UTC") || # 474| g_str_equal (real, "Etc/UCT")) # 475| real = "Etc/GMT"; Error: COMPILER_WARNING (CWE-477): [#def20] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-disk-space-helper.c:115:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_fs_type’ is deprecated: Use 'g_unix_mount_entry_get_fs_type' instead # 113| }; # 114| # 115|-> fs = g_unix_mount_get_fs_type (mount); # 116| #if GLIB_CHECK_VERSION(2, 56, 0) # 117| if (g_unix_is_system_fs_type (fs)) Error: COMPILER_WARNING (CWE-477): [#def21] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-disk-space-helper.c:128:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_device_path’ is deprecated: Use 'g_unix_mount_entry_get_device_path' instead # 126| return TRUE; # 127| # 128|-> device = g_unix_mount_get_device_path (mount); # 129| for (i = 0; ignore_devices[i] != NULL; i++) # 130| if (g_str_equal (ignore_devices[i], device)) Error: COMPILER_WARNING (CWE-477): [#def22] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-disk-space-helper.c:133:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_guess_name’ is deprecated: Use 'g_unix_mount_entry_guess_name' instead # 131| return TRUE; # 132| # 133|-> label = g_unix_mount_guess_name (mount); # 134| for (i = 0; ignore_labels[i] != NULL; i++) # 135| if (g_str_equal (ignore_labels[i], label)) Error: COMPILER_WARNING (CWE-477): [#def23] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-disk-space-helper.c:148:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 146| char *path; # 147| # 148|-> mount_path = g_unix_mount_get_mount_path (mount); # 149| if (mount_path == NULL) # 150| return FALSE; Error: COMPILER_WARNING (CWE-477): [#def24] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-disk-space.c:685:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_guess_name’ is deprecated: Use 'g_unix_mount_entry_guess_name' instead # 683| char *body; # 684| # 685|-> name = g_unix_mount_guess_name (mount->mount); # 686| path = g_unix_mount_get_mount_path (mount->mount); # 687| has_trash = ldsm_mount_has_trash (path); Error: COMPILER_WARNING (CWE-477): [#def25] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-disk-space.c:686:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 684| # 685| name = g_unix_mount_guess_name (mount->mount); # 686|-> path = g_unix_mount_get_mount_path (mount->mount); # 687| has_trash = ldsm_mount_has_trash (path); # 688| Error: COMPILER_WARNING (CWE-477): [#def26] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-disk-space.c:774:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_free’ is deprecated: Use 'g_unix_mount_entry_free' instead # 772| g_return_if_fail (mount != NULL); # 773| # 774|-> g_unix_mount_free (mount->mount); # 775| g_free (mount); # 776| } Error: COMPILER_WARNING (CWE-477): [#def27] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-disk-space.c:802:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 800| } # 801| # 802|-> path = g_unix_mount_get_mount_path (mount_info->mount); # 803| # 804| previous_mount_info = g_hash_table_lookup (ldsm_notified_hash, path); Error: COMPILER_WARNING (CWE-477): [#def28] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-disk-space.c:866:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_at’ is deprecated: Use 'g_unix_mount_entry_at' instead # 864| # 865| path = g_unix_mount_point_get_mount_path (mount_point); # 866|-> mount = g_unix_mount_at (path, time_read); # 867| g_unix_mount_point_free (mount_point); # 868| if (mount == NULL) { Error: COMPILER_WARNING (CWE-477): [#def29] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-disk-space.c:876:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 874| mount_info->mount = mount; # 875| # 876|-> path = g_unix_mount_get_mount_path (mount); # 877| # 878| if (g_unix_mount_is_readonly (mount)) { Error: COMPILER_WARNING (CWE-477): [#def30] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-disk-space.c:878:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_is_readonly’ is deprecated: Use 'g_unix_mount_entry_is_readonly' instead # 876| path = g_unix_mount_get_mount_path (mount); # 877| # 878|-> if (g_unix_mount_is_readonly (mount)) { # 879| ldsm_free_mount_info (mount_info); # 880| continue; Error: COMPILER_WARNING (CWE-477): [#def31] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-disk-space.c:918:25: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 916| full_mounts = g_list_prepend (full_mounts, mount_info); # 917| } else { # 918|-> g_hash_table_remove (ldsm_notified_hash, g_unix_mount_get_mount_path (mount_info->mount)); # 919| ldsm_free_mount_info (mount_info); # 920| } Error: COMPILER_WARNING (CWE-477): [#def32] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-disk-space.c:942:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead # 940| const char *path; # 941| # 942|-> path = g_unix_mount_get_mount_path (mount); # 943| # 944| if (strcmp (path, key) == 0) Error: COMPILER_WARNING (CWE-477): [#def33] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-disk-space.c:958:9: warning[-Wdeprecated-declarations]: ‘g_unix_mounts_get’ is deprecated: Use 'g_unix_mount_entries_get' instead # 956| # 957| /* remove the saved data for mounts that got removed */ # 958|-> mounts = g_unix_mounts_get (time_read); # 959| g_hash_table_foreach_remove (ldsm_notified_hash, # 960| ldsm_is_hash_item_not_in_mounts, mounts); Error: COMPILER_WARNING (CWE-477): [#def34] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-disk-space.c:961:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_free’ is deprecated: Use 'g_unix_mount_entry_free' instead # 959| g_hash_table_foreach_remove (ldsm_notified_hash, # 960| ldsm_is_hash_item_not_in_mounts, mounts); # 961|-> g_list_free_full (mounts, (GDestroyNotify) g_unix_mount_free); # 962| # 963| /* check the status now, for the new mounts */ Error: GCC_ANALYZER_WARNING (CWE-688): [#def35] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-systemd-notify.c:53:23: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-systemd-notify.c:51:12: branch_true: following ‘true’ branch (when ‘__result != 0’)... gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-systemd-notify.c:53:23: branch_true: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-systemd-notify.c:53:23: danger: argument 1 (‘<unknown>’) NULL where non-null expected #argument 1 of ‘__builtin_strchr’ must be non-null # 51| if (g_str_has_suffix (unit_copy, ".service")) { # 52| /* Find (first) @ character */ # 53|-> pos = strchr (unit_copy, '@'); # 54| if (pos) # 55| *pos = '\0'; Error: GCC_ANALYZER_WARNING (CWE-688): [#def36] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-systemd-notify.c:58:23: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-systemd-notify.c:51:12: branch_false: following ‘false’ branch (when ‘__result == 0’)... gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-systemd-notify.c:56:20: branch_false: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-systemd-notify.c:56:20: branch_true: following ‘true’ branch... gnome-settings-daemon-48.1/redhat-linux-build/../plugins/housekeeping/gsd-systemd-notify.c:58:23: danger: argument 1 (‘<unknown>’) NULL where non-null expected # 56| } else if (g_str_has_suffix (unit_copy, ".scope")) { # 57| /* Find last - character */ # 58|-> pos = strrchr (unit_copy, '-'); # 59| if (pos) # 60| *pos = '\0'; Error: GCC_ANALYZER_WARNING (CWE-688): [#def37] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/print-notifications/gsd-printer.c:664:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file’ where non-null expected gnome-settings-daemon-48.1/redhat-linux-build/../plugins/print-notifications/gsd-printer.c:635:12: branch_false: following ‘false’ branch... gnome-settings-daemon-48.1/redhat-linux-build/../plugins/print-notifications/gsd-printer.c:638:19: branch_false: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../plugins/print-notifications/gsd-printer.c:660:12: branch_true: following ‘true’ branch... gnome-settings-daemon-48.1/redhat-linux-build/../plugins/print-notifications/gsd-printer.c:663:24: branch_true: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../plugins/print-notifications/gsd-printer.c:663:24: acquire_memory: this call could return NULL gnome-settings-daemon-48.1/redhat-linux-build/../plugins/print-notifications/gsd-printer.c:664:17: danger: argument 4 (‘file’) from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected #argument 4 of ‘__builtin_fwrite’ must be non-null # 662| # 663| file = fdopen (fd, "w"); # 664|-> fprintf (file, "#CUPS-COMMAND\n"); # 665| fprintf (file, "%s\n", command); # 666| fclose (file); Error: GCC_ANALYZER_WARNING (CWE-476): [#def38] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/rfkill/rfkill-glib.c:452:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’ gnome-settings-daemon-48.1/redhat-linux-build/../plugins/rfkill/rfkill-glib.c:436:12: branch_false: following ‘false’ branch... gnome-settings-daemon-48.1/redhat-linux-build/../plugins/rfkill/rfkill-glib.c:439:24: branch_false: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../plugins/rfkill/rfkill-glib.c:439:12: branch_true: following ‘true’ branch... gnome-settings-daemon-48.1/redhat-linux-build/../plugins/rfkill/rfkill-glib.c:440:35: branch_true: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../plugins/rfkill/rfkill-glib.c:440:35: release_memory: ‘error’ is NULL gnome-settings-daemon-48.1/redhat-linux-build/../plugins/rfkill/rfkill-glib.c:451:20: branch_true: following ‘true’ branch... gnome-settings-daemon-48.1/redhat-linux-build/../plugins/rfkill/rfkill-glib.c:452:25: branch_true: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../plugins/rfkill/rfkill-glib.c:452:25: release_memory: ‘error’ is NULL gnome-settings-daemon-48.1/redhat-linux-build/../plugins/rfkill/rfkill-glib.c:452:25: danger: dereference of NULL ‘error’ # 450| # 451| if (!_cc_rfkill_glib_open (rfkill, &error)) # 452|-> g_warning ("Could not open rfkill device: %s", error->message); # 453| else # 454| g_debug ("Opened rfkill device after uevent"); Error: GCC_ANALYZER_WARNING (CWE-688): [#def39] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/smartcard/gsd-smartcard-utils.c:38:32: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected gnome-settings-daemon-48.1/redhat-linux-build/../plugins/smartcard/gsd-smartcard-utils.c:29:1: enter_function: entry to ‘dashed_string_to_studly_caps’ gnome-settings-daemon-48.1/redhat-linux-build/../plugins/smartcard/gsd-smartcard-utils.c:38:32: danger: argument 1 (‘<unknown>’) NULL where non-null expected #argument 1 of ‘__builtin_strlen’ must be non-null # 36| # 37| studly_string = g_strdup (dashed_string); # 38|-> studly_string_length = strlen (studly_string); # 39| # 40| studly_string[i] = g_ascii_toupper (studly_string[i]); Error: COMPILER_WARNING (CWE-252): [#def40] gnome-settings-daemon-48.1/redhat-linux-build/../plugins/smartcard/gsd-smartcard-utils.c:167:3: warning[-Wunused-result]: ignoring return value of ‘g_string_free_and_steal’ declared with attribute ‘[warn_unused_result](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-warn_005funused_005fresult-function-attribute)’ # 165| object_path = string->str; # 166| # 167|-> g_string_free (string, FALSE); # 168| # 169| return object_path; Error: GCC_ANALYZER_WARNING (CWE-688): [#def41] gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:317:13: warning[-Wanalyzer-null-argument]: use of NULL ‘profile_name’ where non-null expected gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:471:1: enter_function: entry to ‘gvc_mixer_ui_device_get_best_profile’ gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:480:9: branch_false: following ‘false’ branch (when ‘device’ is non-NULL)... gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:480:9: branch_false: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:481:9: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)... gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:483:13: branch_true: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:490:12: branch_false: following ‘false’ branch (when ‘selected’ is NULL)... gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:494:18: branch_false: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:494:52: branch_true: following ‘true’ branch (when ‘l’ is non-NULL)... gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:496:38: branch_true: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:497:34: call_function: calling ‘get_profile_canonical_name’ from ‘gvc_mixer_ui_device_get_best_profile’ gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:497:34: return_function: returning to ‘gvc_mixer_ui_device_get_best_profile’ from ‘get_profile_canonical_name’ gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:498:20: branch_true: following ‘true’ branch (when ‘canonical_name_selected’ is NULL)... gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:499:38: branch_true: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:494:52: branch_false: following ‘false’ branch (when ‘l’ is NULL)... gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:505:12: branch_false: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:505:12: branch_false: following ‘false’ branch (when ‘candidates’ is non-NULL)... branch_false: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:513:30: branch_true: following ‘true’ branch... gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:514:38: branch_true: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:515:20: branch_true: following ‘true’ branch (when the strings are equal)... branch_true: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:513:30: branch_false: following ‘false’ branch... gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:520:12: branch_false: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:520:12: branch_true: following ‘true’ branch (when ‘result’ is NULL)... gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:522:52: branch_true: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:523:42: call_function: calling ‘get_profile_canonical_name’ from ‘gvc_mixer_ui_device_get_best_profile’ gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:523:42: return_function: returning to ‘gvc_mixer_ui_device_get_best_profile’ from ‘get_profile_canonical_name’ gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:524:38: branch_true: following ‘true’ branch (when ‘l’ is non-NULL)... gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:526:46: branch_true: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/gvc-mixer-ui-device.c:527:37: call_function: calling ‘get_profile_canonical_name’ from ‘gvc_mixer_ui_device_get_best_profile’ #argument 1 of ‘__builtin_strstr’ must be non-null # 315| # 316| /* optimisation for the simple case. */ # 317|-> if (strstr (profile_name, skip_prefix) == NULL) # 318| return g_strdup (profile_name); # 319| Error: GCC_ANALYZER_WARNING (CWE-127): [#def42] gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/test-audio-device-selection.c:60:9: warning[-Wanalyzer-out-of-bounds]: buffer under-read gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/test-audio-device-selection.c:37:21: branch_true: following ‘true’ branch (when ‘i != 3’)... gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/test-audio-device-selection.c:38:31: branch_true: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/test-audio-device-selection.c:48:21: branch_true: following ‘true’ branch (when ‘i != 3’)... gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/test-audio-device-selection.c:51:17: branch_true: ...to here gnome-settings-daemon-48.1/redhat-linux-build/../subprojects/gvc/test-audio-device-selection.c:60:9: danger: out-of-bounds read from byte -32 till byte -29 but ‘audio_selection_choices’ starts at byte 0 # 58| } # 59| # 60|-> gvc_mixer_control_set_headset_port (volume, # 61| id, # 62| audio_selection_choices[response - 1].choice);
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
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-185.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | gnome-settings-daemon-48.1-1.fc43 |
store-results-to | /tmp/tmpy2yv9tav/gnome-settings-daemon-48.1-1.fc43.tar.xz |
time-created | 2025-04-25 12:54:41 |
time-finished | 2025-04-25 12:57:13 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpy2yv9tav/gnome-settings-daemon-48.1-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpy2yv9tav/gnome-settings-daemon-48.1-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |