gnome-settings-daemon-49.1-1.fc44

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1]
gnome-settings-daemon-49.1/gnome-settings-daemon/gnome-settings-profile.c:50:29: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gnome-settings-daemon-49.1/gnome-settings-daemon/gnome-settings-profile.c:46:12: branch_false: following ‘false’ branch (when ‘format’ is non-NULL)...
gnome-settings-daemon-49.1/gnome-settings-daemon/gnome-settings-profile.c:49:17: branch_false: ...to here
gnome-settings-daemon-49.1/gnome-settings-daemon/gnome-settings-profile.c:49:17: acquire_resource: ‘va_start’ called here
gnome-settings-daemon-49.1/gnome-settings-daemon/gnome-settings-profile.c:50:29: throw: if ‘g_strdup_vprintf’ throws an exception...
gnome-settings-daemon-49.1/gnome-settings-daemon/gnome-settings-profile.c:50:29: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   48|           } else {
#   49|                   va_start (args, format);
#   50|->                 formatted = g_strdup_vprintf (format, args);
#   51|                   va_end (args);
#   52|           }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def2]
gnome-settings-daemon-49.1/plugins/color/gsd-night-light.h:29:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘nlight’
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:52:1: enter_function: entry to ‘gcm_test_night_light’
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:66:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:67:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:94:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:95:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:98:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:101:15: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:103:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:104:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:104:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:105:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:116:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:117:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:125:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:128:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:131:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:132:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:132:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:133:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:139:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:140:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:140:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:141:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:154:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:155:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:158:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:161:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:162:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:163:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:177:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:178:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:183:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:186:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:228:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:229:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:233:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:234:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:238:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:239:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:63:30: call_function: inlined call to ‘glib_autoptr_cleanup_GSettings’ from ‘gcm_test_night_light’
gnome-settings-daemon-49.1/plugins/color/gcm-self-test.c:62:34: call_function: inlined call to ‘glib_autoptr_cleanup_GsdNightLight’ from ‘gcm_test_night_light’
#   27|   
#   28|   #define GSD_TYPE_NIGHT_LIGHT (gsd_night_light_get_type ())
#   29|-> G_DECLARE_FINAL_TYPE (GsdNightLight, gsd_night_light, GSD, NIGHT_LIGHT, GObject)
#   30|   
#   31|   GsdNightLight   *gsd_night_light_new                    (void);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def3]
gnome-settings-daemon-49.1/plugins/datetime/tz.c:67:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tz_data_file_get(), "r")’
gnome-settings-daemon-49.1/plugins/datetime/tz.c:60:18: acquire_resource: opened here
gnome-settings-daemon-49.1/plugins/datetime/tz.c:61:12: branch_false: following ‘false’ branch...
gnome-settings-daemon-49.1/plugins/datetime/tz.c:67:17: branch_false: ...to here
gnome-settings-daemon-49.1/plugins/datetime/tz.c:67:17: throw: if ‘g_malloc0’ throws an exception...
gnome-settings-daemon-49.1/plugins/datetime/tz.c:67:17: danger: ‘fopen(tz_data_file_get(), "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   65|   	}
#   66|   
#   67|-> 	tz_db = g_new0 (TzDB, 1);
#   68|   	tz_db->locations = g_ptr_array_new ();
#   69|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
gnome-settings-daemon-49.1/plugins/datetime/tz.c:67:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tz_data_file_get(), "r")’
gnome-settings-daemon-49.1/plugins/datetime/tz.c:60:18: acquire_memory: allocated here
gnome-settings-daemon-49.1/plugins/datetime/tz.c:61:12: branch_false: following ‘false’ branch...
gnome-settings-daemon-49.1/plugins/datetime/tz.c:67:17: branch_false: ...to here
gnome-settings-daemon-49.1/plugins/datetime/tz.c:67:17: throw: if ‘g_malloc0’ throws an exception...
gnome-settings-daemon-49.1/plugins/datetime/tz.c:67:17: danger: ‘fopen(tz_data_file_get(), "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   65|   	}
#   66|   
#   67|-> 	tz_db = g_new0 (TzDB, 1);
#   68|   	tz_db->locations = g_ptr_array_new ();
#   69|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
gnome-settings-daemon-49.1/plugins/datetime/tz.c:68:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tz_data_file_get(), "r")’
gnome-settings-daemon-49.1/plugins/datetime/tz.c:60:18: acquire_resource: opened here
gnome-settings-daemon-49.1/plugins/datetime/tz.c:61:12: branch_false: following ‘false’ branch...
gnome-settings-daemon-49.1/plugins/datetime/tz.c:67:17: branch_false: ...to here
gnome-settings-daemon-49.1/plugins/datetime/tz.c:68:28: throw: if ‘g_ptr_array_new’ throws an exception...
gnome-settings-daemon-49.1/plugins/datetime/tz.c:68:28: danger: ‘fopen(tz_data_file_get(), "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   66|   
#   67|   	tz_db = g_new0 (TzDB, 1);
#   68|-> 	tz_db->locations = g_ptr_array_new ();
#   69|   
#   70|   	while (fgets (buf, sizeof(buf), tzfile))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
gnome-settings-daemon-49.1/plugins/datetime/tz.c:68:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tz_data_file_get(), "r")’
gnome-settings-daemon-49.1/plugins/datetime/tz.c:60:18: acquire_memory: allocated here
gnome-settings-daemon-49.1/plugins/datetime/tz.c:61:12: branch_false: following ‘false’ branch...
gnome-settings-daemon-49.1/plugins/datetime/tz.c:67:17: branch_false: ...to here
gnome-settings-daemon-49.1/plugins/datetime/tz.c:68:28: throw: if ‘g_ptr_array_new’ throws an exception...
gnome-settings-daemon-49.1/plugins/datetime/tz.c:68:28: danger: ‘fopen(tz_data_file_get(), "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   66|   
#   67|   	tz_db = g_new0 (TzDB, 1);
#   68|-> 	tz_db->locations = g_ptr_array_new ();
#   69|   
#   70|   	while (fgets (buf, sizeof(buf), tzfile))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
gnome-settings-daemon-49.1/plugins/datetime/tz.c:76:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tz_data_file_get(), "r")’
gnome-settings-daemon-49.1/plugins/datetime/tz.c:60:18: acquire_resource: opened here
gnome-settings-daemon-49.1/plugins/datetime/tz.c:61:12: branch_false: following ‘false’ branch...
gnome-settings-daemon-49.1/plugins/datetime/tz.c:67:17: branch_false: ...to here
gnome-settings-daemon-49.1/plugins/datetime/tz.c:70:16: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/datetime/tz.c:76:21: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/datetime/tz.c:78:17: throw: if ‘g_strchomp’ throws an exception...
gnome-settings-daemon-49.1/plugins/datetime/tz.c:76:21: danger: ‘fopen(tz_data_file_get(), "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#   74|   		TzLocation *loc;
#   75|   
#   76|-> 		if (*buf == '#') continue;
#   77|   
#   78|   		g_strchomp(buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
gnome-settings-daemon-49.1/plugins/datetime/tz.c:76:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tz_data_file_get(), "r")’
gnome-settings-daemon-49.1/plugins/datetime/tz.c:60:18: acquire_memory: allocated here
gnome-settings-daemon-49.1/plugins/datetime/tz.c:61:12: branch_false: following ‘false’ branch...
gnome-settings-daemon-49.1/plugins/datetime/tz.c:67:17: branch_false: ...to here
gnome-settings-daemon-49.1/plugins/datetime/tz.c:70:16: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/datetime/tz.c:76:21: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/datetime/tz.c:78:17: throw: if ‘g_strchomp’ throws an exception...
gnome-settings-daemon-49.1/plugins/datetime/tz.c:76:21: danger: ‘fopen(tz_data_file_get(), "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#   74|   		TzLocation *loc;
#   75|   
#   76|-> 		if (*buf == '#') continue;
#   77|   
#   78|   		g_strchomp(buf);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def9]
gnome-settings-daemon-49.1/plugins/datetime/tz.c:473:11: warning[-Wanalyzer-null-argument]: use of NULL ‘real’ where non-null expected
gnome-settings-daemon-49.1/plugins/datetime/tz.c:436:6: branch_false: following ‘false’ branch...
gnome-settings-daemon-49.1/plugins/datetime/tz.c:441:11: branch_false: ...to here
gnome-settings-daemon-49.1/plugins/datetime/tz.c:443:15: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/datetime/tz.c:449:11: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/datetime/tz.c:469:10: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/datetime/tz.c:470:9: branch_true: ...to here
gnome-settings-daemon-49.1/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): [#def10]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space-helper.c: scope_hint: In function ‘gsd_should_ignore_unix_mount’
gnome-settings-daemon-49.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-49.1/plugins/housekeeping/gsd-disk-space-helper.h:29: included_from: Included from here.
gnome-settings-daemon-49.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): [#def11]
gnome-settings-daemon-49.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
#  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): [#def12]
gnome-settings-daemon-49.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): [#def13]
gnome-settings-daemon-49.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
#  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): [#def14]
gnome-settings-daemon-49.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): [#def15]
gnome-settings-daemon-49.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
#  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): [#def16]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space-helper.c: scope_hint: In function ‘gsd_is_removable_mount’
gnome-settings-daemon-49.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): [#def17]
gnome-settings-daemon-49.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
#  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): [#def18]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c: scope_hint: In function ‘ldsm_notify_for_mount’
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:683:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_guess_name’ is deprecated: Use 'g_unix_mount_entry_guess_name' instead
#  683 |         name = g_unix_mount_guess_name (mount->mount);
#      |         ^~~~
gnome-settings-daemon-49.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);
#      |                ^~~~~~~~~~~~~~~~~~~~~~~
#  681|           char *body;
#  682|   
#  683|->         name = g_unix_mount_guess_name (mount->mount);
#  684|           path = g_unix_mount_get_mount_path (mount->mount);
#  685|           has_trash = ldsm_mount_has_trash (path);

Error: COMPILER_WARNING (CWE-477): [#def19]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:683:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_guess_name’ is deprecated: Use 'g_unix_mount_entry_guess_name' instead
#  681|           char *body;
#  682|   
#  683|->         name = g_unix_mount_guess_name (mount->mount);
#  684|           path = g_unix_mount_get_mount_path (mount->mount);
#  685|           has_trash = ldsm_mount_has_trash (path);

Error: COMPILER_WARNING (CWE-477): [#def20]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:684:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
#  684 |         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);
#      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  682|   
#  683|           name = g_unix_mount_guess_name (mount->mount);
#  684|->         path = g_unix_mount_get_mount_path (mount->mount);
#  685|           has_trash = ldsm_mount_has_trash (path);
#  686|   

Error: COMPILER_WARNING (CWE-477): [#def21]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:684:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
#  682|   
#  683|           name = g_unix_mount_guess_name (mount->mount);
#  684|->         path = g_unix_mount_get_mount_path (mount->mount);
#  685|           has_trash = ldsm_mount_has_trash (path);
#  686|   

Error: COMPILER_WARNING (CWE-477): [#def22]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c: scope_hint: In function ‘ldsm_free_mount_info’
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:772:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_free’ is deprecated: Use 'g_unix_mount_entry_free' instead
#  772 |         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);
#      |                ^~~~~~~~~~~~~~~~~
#  770|           g_return_if_fail (mount != NULL);
#  771|   
#  772|->         g_unix_mount_free (mount->mount);
#  773|           g_free (mount);
#  774|   }

Error: COMPILER_WARNING (CWE-477): [#def23]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:772:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_free’ is deprecated: Use 'g_unix_mount_entry_free' instead
#  770|           g_return_if_fail (mount != NULL);
#  771|   
#  772|->         g_unix_mount_free (mount->mount);
#  773|           g_free (mount);
#  774|   }

Error: COMPILER_WARNING (CWE-477): [#def24]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c: scope_hint: In function ‘ldsm_maybe_warn_mounts’
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:800:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
#  800 |                 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);
#      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  798|                   }
#  799|   
#  800|->                 path = g_unix_mount_get_mount_path (mount_info->mount);
#  801|   
#  802|                   previous_mount_info = g_hash_table_lookup (ldsm_notified_hash, path);

Error: COMPILER_WARNING (CWE-477): [#def25]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:800:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
#  798|                   }
#  799|   
#  800|->                 path = g_unix_mount_get_mount_path (mount_info->mount);
#  801|   
#  802|                   previous_mount_info = g_hash_table_lookup (ldsm_notified_hash, path);

Error: COMPILER_WARNING (CWE-477): [#def26]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c: scope_hint: In function ‘ldsm_check_all_mounts’
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:864:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_at’ is deprecated: Use 'g_unix_mount_entry_at' instead
#  864 |                 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,
#      |                  ^~~~~~~~~~~~~~~
#  862|   
#  863|                   path = g_unix_mount_point_get_mount_path (mount_point);
#  864|->                 mount = g_unix_mount_at (path, time_read);
#  865|                   g_unix_mount_point_free (mount_point);
#  866|                   if (mount == NULL) {

Error: COMPILER_WARNING (CWE-477): [#def27]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:864:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_at’ is deprecated: Use 'g_unix_mount_entry_at' instead
#  862|   
#  863|                   path = g_unix_mount_point_get_mount_path (mount_point);
#  864|->                 mount = g_unix_mount_at (path, time_read);
#  865|                   g_unix_mount_point_free (mount_point);
#  866|                   if (mount == NULL) {

Error: COMPILER_WARNING (CWE-477): [#def28]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:874:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
#  874 |                 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);
#      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  872|                   mount_info->mount = mount;
#  873|   
#  874|->                 path = g_unix_mount_get_mount_path (mount);
#  875|   
#  876|                   if (g_unix_mount_is_readonly (mount)) {

Error: COMPILER_WARNING (CWE-477): [#def29]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:874:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
#  872|                   mount_info->mount = mount;
#  873|   
#  874|->                 path = g_unix_mount_get_mount_path (mount);
#  875|   
#  876|                   if (g_unix_mount_is_readonly (mount)) {

Error: COMPILER_WARNING (CWE-477): [#def30]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:876:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_is_readonly’ is deprecated: Use 'g_unix_mount_entry_is_readonly' instead
#  876 |                 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);
#      |                ^~~~~~~~~~~~~~~~~~~~~~~~
#  874|                   path = g_unix_mount_get_mount_path (mount);
#  875|   
#  876|->                 if (g_unix_mount_is_readonly (mount)) {
#  877|                           ldsm_free_mount_info (mount_info);
#  878|                           continue;

Error: COMPILER_WARNING (CWE-477): [#def31]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:876:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_is_readonly’ is deprecated: Use 'g_unix_mount_entry_is_readonly' instead
#  874|                   path = g_unix_mount_get_mount_path (mount);
#  875|   
#  876|->                 if (g_unix_mount_is_readonly (mount)) {
#  877|                           ldsm_free_mount_info (mount_info);
#  878|                           continue;

Error: COMPILER_WARNING (CWE-477): [#def32]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:916:25: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
#  916 |                         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);
#      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  914|                           full_mounts = g_list_prepend (full_mounts, mount_info);
#  915|                   } else {
#  916|->                         g_hash_table_remove (ldsm_notified_hash, g_unix_mount_get_mount_path (mount_info->mount));
#  917|                           ldsm_free_mount_info (mount_info);
#  918|                   }

Error: COMPILER_WARNING (CWE-477): [#def33]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:916:25: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
#  914|                           full_mounts = g_list_prepend (full_mounts, mount_info);
#  915|                   } else {
#  916|->                         g_hash_table_remove (ldsm_notified_hash, g_unix_mount_get_mount_path (mount_info->mount));
#  917|                           ldsm_free_mount_info (mount_info);
#  918|                   }

Error: COMPILER_WARNING (CWE-477): [#def34]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c: scope_hint: In function ‘ldsm_is_hash_item_not_in_mounts’
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:940:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
#  940 |                 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);
#      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  938|                   const char *path;
#  939|   
#  940|->                 path = g_unix_mount_get_mount_path (mount);
#  941|   
#  942|                   if (strcmp (path, key) == 0)

Error: COMPILER_WARNING (CWE-477): [#def35]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:940:17: warning[-Wdeprecated-declarations]: ‘g_unix_mount_get_mount_path’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
#  938|                   const char *path;
#  939|   
#  940|->                 path = g_unix_mount_get_mount_path (mount);
#  941|   
#  942|                   if (strcmp (path, key) == 0)

Error: COMPILER_WARNING (CWE-477): [#def36]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c: scope_hint: In function ‘ldsm_mounts_changed’
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:956:9: warning[-Wdeprecated-declarations]: ‘g_unix_mounts_get’ is deprecated: Use 'g_unix_mount_entries_get' instead
#  956 |         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);
#      |                ^~~~~~~~~~~~~~~~~
#  954|   
#  955|           /* remove the saved data for mounts that got removed */
#  956|->         mounts = g_unix_mounts_get (time_read);
#  957|           g_hash_table_foreach_remove (ldsm_notified_hash,
#  958|                                        ldsm_is_hash_item_not_in_mounts, mounts);

Error: COMPILER_WARNING (CWE-477): [#def37]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:956:9: warning[-Wdeprecated-declarations]: ‘g_unix_mounts_get’ is deprecated: Use 'g_unix_mount_entries_get' instead
#  954|   
#  955|           /* remove the saved data for mounts that got removed */
#  956|->         mounts = g_unix_mounts_get (time_read);
#  957|           g_hash_table_foreach_remove (ldsm_notified_hash,
#  958|                                        ldsm_is_hash_item_not_in_mounts, mounts);

Error: COMPILER_WARNING (CWE-477): [#def38]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:959:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_free’ is deprecated: Use 'g_unix_mount_entry_free' instead
#  959 |         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);
#      |                ^~~~~~~~~~~~~~~~~
#  957|           g_hash_table_foreach_remove (ldsm_notified_hash,
#  958|                                        ldsm_is_hash_item_not_in_mounts, mounts);
#  959|->         g_list_free_full (mounts, (GDestroyNotify) g_unix_mount_free);
#  960|   
#  961|           /* check the status now, for the new mounts */

Error: COMPILER_WARNING (CWE-477): [#def39]
gnome-settings-daemon-49.1/plugins/housekeeping/gsd-disk-space.c:959:9: warning[-Wdeprecated-declarations]: ‘g_unix_mount_free’ is deprecated: Use 'g_unix_mount_entry_free' instead
#  957|           g_hash_table_foreach_remove (ldsm_notified_hash,
#  958|                                        ldsm_is_hash_item_not_in_mounts, mounts);
#  959|->         g_list_free_full (mounts, (GDestroyNotify) g_unix_mount_free);
#  960|   
#  961|           /* check the status now, for the new mounts */

Error: CPPCHECK_WARNING (CWE-457): [#def40]
gnome-settings-daemon-49.1/plugins/media-keys/gsd-media-keys-manager.c:395: error[legacyUninitvar]: Uninitialized variable: binding
#  393|   
#  394|           array = g_ptr_array_new ();
#  395|->         g_ptr_array_add (array, binding);
#  396|           g_ptr_array_add (array, NULL);
#  397|   

Error: CPPCHECK_WARNING (CWE-457): [#def41]
gnome-settings-daemon-49.1/plugins/power/gsd-power-manager.c:3332: error[legacyUninitvar]: Uninitialized variable: ret
# 3330|   
# 3331|           /* return value */
# 3332|->         if (!ret) {
# 3333|                   g_dbus_method_invocation_take_error (invocation,
# 3334|                                                        error);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def42]
gnome-settings-daemon-49.1/plugins/print-notifications/gsd-printer.c:667:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file’ where non-null expected
gnome-settings-daemon-49.1/plugins/print-notifications/gsd-printer.c:638:12: branch_false: following ‘false’ branch...
gnome-settings-daemon-49.1/plugins/print-notifications/gsd-printer.c:641:19: branch_false: ...to here
gnome-settings-daemon-49.1/plugins/print-notifications/gsd-printer.c:663:12: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/print-notifications/gsd-printer.c:666:24: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/print-notifications/gsd-printer.c:666:24: acquire_memory: this call could return NULL
gnome-settings-daemon-49.1/plugins/print-notifications/gsd-printer.c:667: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
#  665|   
#  666|                   file = fdopen (fd, "w");
#  667|->                 fprintf (file, "#CUPS-COMMAND\n");
#  668|                   fprintf (file, "%s\n", command);
#  669|                   fclose (file);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
gnome-settings-daemon-49.1/plugins/rfkill/rfkill-glib.c:405:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*rfkill.device_file, 2)’
gnome-settings-daemon-49.1/plugins/rfkill/rfkill-glib.c:393:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/rfkill/rfkill-glib.c:394:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/rfkill/rfkill-glib.c:394:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/rfkill/rfkill-glib.c:395:9: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/rfkill/rfkill-glib.c:395:9: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/rfkill/rfkill-glib.c:397:14: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/rfkill/rfkill-glib.c:397:14: acquire_resource: opened here
gnome-settings-daemon-49.1/plugins/rfkill/rfkill-glib.c:399:12: branch_false: following ‘false’ branch...
gnome-settings-daemon-49.1/plugins/rfkill/rfkill-glib.c:405:15: branch_false: ...to here
gnome-settings-daemon-49.1/plugins/rfkill/rfkill-glib.c:405:15: throw: if ‘fcntl’ throws an exception...
gnome-settings-daemon-49.1/plugins/rfkill/rfkill-glib.c:405:15: danger: ‘open(*rfkill.device_file, 2)’ leaks here; was opened at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  403|   	}
#  404|   
#  405|-> 	ret = fcntl(fd, F_SETFL, O_NONBLOCK);
#  406|   	if (ret < 0) {
#  407|   		g_set_error_literal (error, G_IO_ERROR, g_io_error_from_errno (errno),

Error: GCC_ANALYZER_WARNING (CWE-688): [#def44]
gnome-settings-daemon-49.1/plugins/smartcard/gsd-smartcard-utils.c:38:32: warning[-Wanalyzer-null-argument]: use of NULL ‘studly_suffix’ where non-null expected
gnome-settings-daemon-49.1/plugins/smartcard/gsd-smartcard-utils.c:104:1: enter_function: entry to ‘gsd_smartcard_utils_register_error_domain’
gnome-settings-daemon-49.1/plugins/smartcard/gsd-smartcard-utils.c:108:26: release_memory: ‘type_name’ is NULL
gnome-settings-daemon-49.1/plugins/smartcard/gsd-smartcard-utils.c:115:21: call_function: calling ‘dashed_string_to_studly_caps’ from ‘gsd_smartcard_utils_register_error_domain’
gnome-settings-daemon-49.1/plugins/smartcard/gsd-smartcard-utils.c:115:21: return_function: returning to ‘gsd_smartcard_utils_register_error_domain’ from ‘dashed_string_to_studly_caps’
gnome-settings-daemon-49.1/plugins/smartcard/gsd-smartcard-utils.c:115:9: release_memory: ‘type_name’ is NULL
gnome-settings-daemon-49.1/plugins/smartcard/gsd-smartcard-utils.c:120:21: branch_true: following ‘true’ branch...
gnome-settings-daemon-49.1/plugins/smartcard/gsd-smartcard-utils.c:121:34: branch_true: ...to here
gnome-settings-daemon-49.1/plugins/smartcard/gsd-smartcard-utils.c:121:34: release_memory: ‘type_name’ is NULL
gnome-settings-daemon-49.1/plugins/smartcard/gsd-smartcard-utils.c:123:37: call_function: calling ‘dashed_string_to_dbus_error_string’ from ‘gsd_smartcard_utils_register_error_domain’
#   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: GCC_ANALYZER_WARNING (CWE-688): [#def45]
gnome-settings-daemon-49.1/plugins/smartcard/gsd-smartcard-utils.c:38:32: warning[-Wanalyzer-null-argument]: use of NULL ‘type_name’ where non-null expected
gnome-settings-daemon-49.1/plugins/smartcard/gsd-smartcard-utils.c:104:1: enter_function: entry to ‘gsd_smartcard_utils_register_error_domain’
gnome-settings-daemon-49.1/plugins/smartcard/gsd-smartcard-utils.c:108:26: release_memory: ‘type_name’ is NULL
gnome-settings-daemon-49.1/plugins/smartcard/gsd-smartcard-utils.c:115:21: call_function: calling ‘dashed_string_to_studly_caps’ from ‘gsd_smartcard_utils_register_error_domain’
#   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): [#def46]
gnome-settings-daemon-49.1/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;

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-114.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namegnome-settings-daemon-49.1-1.fc44
store-results-to/tmp/tmpq2eoibsd/gnome-settings-daemon-49.1-1.fc44.tar.xz
time-created2026-01-08 16:42:40
time-finished2026-01-08 16:45:00
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpq2eoibsd/gnome-settings-daemon-49.1-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpq2eoibsd/gnome-settings-daemon-49.1-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9