gnome-settings-daemon-46.0-1.fc41
List of Defects
Error: CPPCHECK_WARNING: [#def1]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/color/gcm-self-test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/color/gsd-night-light.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def3]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/common/gsd-shell-helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/datetime/tz.c: scope_hint: In function ‘tz_location_get_utc_offset’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/datetime/tz.c:195: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.
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/datetime/tz.c:25: 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’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/datetime/tz.c:208:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/datetime/tz.c:208:9: note: in expansion of macro ‘g_return_val_if_fail’
# 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: CLANG_WARNING: [#def5]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/datetime/tz.c:473:11: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 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: CPPCHECK_WARNING: [#def6]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/housekeeping/gsd-disk-space.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def7]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/housekeeping/gsd-disk-space.c:212:9: warning[deadcode.DeadStores]: Value stored to 'should_purge' is never read
# 210| gboolean should_purge;
# 211|
# 212|-> should_purge = FALSE;
# 213|
# 214| info = g_file_query_info (file,
Error: CPPCHECK_WARNING: [#def8]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/housekeeping/gsd-housekeeping-manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def9]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/housekeeping/gsd-systemd-notify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def10]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/housekeeping/gsd-systemd-notify.c: scope_hint: In function ‘notify_oom_kill’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/housekeeping/gsd-systemd-notify.c:53:23: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: 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): [#def11]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/housekeeping/gsd-systemd-notify.c:58:23: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/housekeeping/gsd-systemd-notify.h:22: included_from: Included from here.
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/housekeeping/gsd-systemd-notify.c:21: 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:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/housekeeping/gsd-systemd-notify.c:56:20: note: in expansion of macro ‘g_str_has_suffix’
/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:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/housekeeping/gsd-systemd-notify.c:56:20: note: in expansion of macro ‘g_str_has_suffix’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/housekeeping/gsd-systemd-notify.c:19: included_from: Included from here.
/usr/include/string.h:273:14: note: argument 1 of ‘strrchr’ must be non-null
# 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: CLANG_WARNING: [#def12]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/housekeeping/gsd-systemd-notify.c:146:32: warning[unix.Malloc]: Potential leak of memory pointed to by 'r'
# 144| c1 = unhexchar (*path);
# 145| if (c1 < 0)
# 146|-> return NULL;
# 147| path += 1;
# 148| c2 = unhexchar (*path);
Error: CPPCHECK_WARNING: [#def13]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/media-keys/bus-watch-namespace.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def14]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/media-keys/gsd-media-keys-manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def15]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/media-keys/gsd-media-keys-manager.c:398: error[legacyUninitvar]: Uninitialized variable: binding
# 396|
# 397| array = g_ptr_array_new ();
# 398|-> g_ptr_array_add (array, binding);
# 399| g_ptr_array_add (array, NULL);
# 400|
Error: CLANG_WARNING: [#def16]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/media-keys/gsd-media-keys-manager.c:1049:11: warning[unix.Malloc]: Potential leak of memory pointed to by 'p'
# 1047| *p = '\0';
# 1048|
# 1049|-> app_info = g_app_info_create_from_commandline (escaped, NULL, G_APP_INFO_CREATE_NONE, NULL);
# 1050| launch_app (manager, app_info, timestamp);
# 1051| g_object_unref (app_info);
Error: CLANG_WARNING: [#def17]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/media-keys/gsd-media-keys-manager.c:1167:25: warning[deadcode.DeadStores]: Value stored to 'score' is never read
# 1165| if (score < SCORE_HAS_MEDIA) {
# 1166| fav_drive = drive;
# 1167|-> score = SCORE_HAS_MEDIA;
# 1168| break;
# 1169| }
Error: CLANG_WARNING: [#def18]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/media-keys/gsd-media-keys-manager.c:3326:37: warning[deadcode.DeadStores]: Value stored to 'priv' during its initialization is never read
# 3324| gsd_media_keys_manager_init (GsdMediaKeysManager *manager)
# 3325| {
# 3326|-> GsdMediaKeysManagerPrivate *priv = GSD_MEDIA_KEYS_MANAGER_GET_PRIVATE (manager);
# 3327| GError *error;
# 3328| GDBusConnection *bus;
Error: CPPCHECK_WARNING: [#def19]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/media-keys/mpris-controller.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def20]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/power/gpm-common.c:239:9: warning[deadcode.DeadStores]: Value stored to 'desired_server_timeout' is never read
# 237| ¤t_allow_exp);
# 238|
# 239|-> desired_server_timeout = current_server_timeout;
# 240| desired_server_interval = current_server_interval;
# 241| desired_prefer_blank = current_prefer_blank;
Error: CLANG_WARNING: [#def21]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/power/gpm-common.c:240:9: warning[deadcode.DeadStores]: Value stored to 'desired_server_interval' is never read
# 238|
# 239| desired_server_timeout = current_server_timeout;
# 240|-> desired_server_interval = current_server_interval;
# 241| desired_prefer_blank = current_prefer_blank;
# 242| desired_allow_exp = current_allow_exp;
Error: CLANG_WARNING: [#def22]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/power/gpm-common.c:242:9: warning[deadcode.DeadStores]: Value stored to 'desired_allow_exp' is never read
# 240| desired_server_interval = current_server_interval;
# 241| desired_prefer_blank = current_prefer_blank;
# 242|-> desired_allow_exp = current_allow_exp;
# 243|
# 244| desired_server_interval = 0;
Error: CPPCHECK_WARNING: [#def23]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/power/gsd-power-manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def24]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/power/gsd-power-manager.c: scope_hint: In function ‘lid_state_changed_cb’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/power/gsd-power-manager.c:1560:9: warning[-Wdeprecated-declarations]: ‘up_client_get_lid_is_closed’ is deprecated
/usr/include/libupower-glib/upower.h:38: included_from: Included from here.
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/power/gsd-power-manager.c:29: included_from: Included from here.
/usr/include/libupower-glib/up-client.h:98:18: note: declared here
# 1558|
# 1559| /* same lid state */
# 1560|-> tmp = up_client_get_lid_is_closed (manager->up_client);
# 1561| if (manager->lid_is_closed == tmp)
# 1562| return;
Error: COMPILER_WARNING (CWE-477): [#def25]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/power/gsd-power-manager.c: scope_hint: In function ‘gsd_power_manager_start’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/power/gsd-power-manager.c:3071:9: warning[-Wdeprecated-declarations]: ‘up_client_get_lid_is_present’ is deprecated
/usr/include/libupower-glib/up-client.h:100:18: note: declared here
# 3069| /* Check whether we have a lid first */
# 3070| manager->up_client = up_client_new ();
# 3071|-> manager->lid_is_present = up_client_get_lid_is_present (manager->up_client);
# 3072| if (manager->lid_is_present)
# 3073| manager->lid_is_closed = up_client_get_lid_is_closed (manager->up_client);
Error: COMPILER_WARNING (CWE-477): [#def26]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/power/gsd-power-manager.c:3073:17: warning[-Wdeprecated-declarations]: ‘up_client_get_lid_is_closed’ is deprecated
/usr/include/libupower-glib/up-client.h:98:18: note: declared here
# 3071| manager->lid_is_present = up_client_get_lid_is_present (manager->up_client);
# 3072| if (manager->lid_is_present)
# 3073|-> manager->lid_is_closed = up_client_get_lid_is_closed (manager->up_client);
# 3074|
# 3075| /* Set up the logind proxy */
Error: CPPCHECK_WARNING (CWE-457): [#def27]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/power/gsd-power-manager.c:3230: error[legacyUninitvar]: Uninitialized variable: ret
# 3228|
# 3229| /* return value */
# 3230|-> if (!ret) {
# 3231| g_dbus_method_invocation_take_error (invocation,
# 3232| error);
Error: CPPCHECK_WARNING: [#def28]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-print-notifications-manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def29]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-print-notifications-manager.c: scope_hint: In function ‘process_cups_notification’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-print-notifications-manager.c:661:17: warning[-Wdeprecated-declarations]: ‘httpConnectEncrypt’ is deprecated: Use httpConnect2 instead.
/usr/include/cups/ipp.h:19: included_from: Included from here.
/usr/include/cups/cups.h:28: included_from: Included from here.
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-print-notifications-manager.c:36: included_from: Included from here.
/usr/include/cups/http.h:478:26: note: declared here
# 659|
# 660| if (notify_job_id > 0) {
# 661|-> if ((http = httpConnectEncrypt (cupsServer (), ippPort (),
# 662| cupsEncryption ())) == NULL) {
# 663| g_debug ("Connection to CUPS server \'%s\' failed.", cupsServer ());
Error: COMPILER_WARNING (CWE-477): [#def30]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-print-notifications-manager.c:989:41: warning[-Wdeprecated-declarations]: ‘cupsGetPPD’ is deprecated: Use cupsCopyDestInfo and friends instead.
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-print-notifications-manager.c:37: included_from: Included from here.
/usr/include/cups/ppd.h:359:26: note: declared here
# 987| char buffer[8192];
# 988|
# 989|-> ppd_file_name = g_strdup (cupsGetPPD (printer_name));
# 990| if (ppd_file_name) {
# 991| ppd_file = ppdOpenFile (ppd_file_name);
Error: COMPILER_WARNING (CWE-477): [#def31]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-print-notifications-manager.c:991:49: warning[-Wdeprecated-declarations]: ‘ppdOpenFile’ is deprecated: Use cupsCopyDestInfo and friends instead.
/usr/include/cups/ppd.h:390:26: note: declared here
# 989| ppd_file_name = g_strdup (cupsGetPPD (printer_name));
# 990| if (ppd_file_name) {
# 991|-> ppd_file = ppdOpenFile (ppd_file_name);
# 992| if (ppd_file) {
# 993| gchar **tmpv;
Error: COMPILER_WARNING (CWE-477): [#def32]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-print-notifications-manager.c:1001:65: warning[-Wdeprecated-declarations]: ‘ppdLocalizeIPPReason’ is deprecated: Use cupsCopyDestInfo and friends instead.
/usr/include/cups/ppd.h:439:26: note: declared here
# 999| i = 0;
# 1000| for (j = 0; j < G_N_ELEMENTS (schemes); j++) {
# 1001|-> if (ppdLocalizeIPPReason (ppd_file, data, schemes[j], buffer, sizeof (buffer))) {
# 1002| tmpv[i++] = g_strdup (buffer);
# 1003| }
Error: COMPILER_WARNING (CWE-477): [#def33]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-print-notifications-manager.c:1010:57: warning[-Wdeprecated-declarations]: ‘ppdClose’ is deprecated: Use cupsCopyDestInfo and friends instead.
/usr/include/cups/ppd.h:365:25: note: declared here
# 1008| g_strfreev (tmpv);
# 1009|
# 1010|-> ppdClose (ppd_file);
# 1011| }
# 1012|
Error: COMPILER_WARNING (CWE-477): [#def34]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-print-notifications-manager.c: scope_hint: In function ‘cancel_subscription’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-print-notifications-manager.c:1281:13: warning[-Wdeprecated-declarations]: ‘httpConnectEncrypt’ is deprecated: Use httpConnect2 instead.
/usr/include/cups/http.h:478:26: note: declared here
# 1279|
# 1280| if (id >= 0 &&
# 1281|-> ((http = httpConnectEncrypt (cupsServer (), ippPort (),
# 1282| cupsEncryption ())) != NULL)) {
# 1283| request = ippNewRequest (IPP_CANCEL_SUBSCRIPTION);
Error: COMPILER_WARNING (CWE-477): [#def35]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-print-notifications-manager.c: scope_hint: In function ‘renew_subscription’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-print-notifications-manager.c:1313:9: warning[-Wdeprecated-declarations]: ‘httpConnectEncrypt’ is deprecated: Use httpConnect2 instead.
/usr/include/cups/http.h:478:26: note: declared here
# 1311| "printer-state-changed"};
# 1312|
# 1313|-> if ((http = httpConnectEncrypt (cupsServer (), ippPort (),
# 1314| cupsEncryption ())) == NULL) {
# 1315| g_debug ("Connection to CUPS server \'%s\' failed.", cupsServer ());
Error: CPPCHECK_WARNING: [#def36]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-printer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def37]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-printer.c: scope_hint: In function ‘execute_maintenance_command’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-printer.c:628:9: warning[-Wdeprecated-declarations]: ‘httpConnectEncrypt’ is deprecated: Use httpConnect2 instead.
# 628 | http = httpConnectEncrypt (cupsServer (),
# | ^~~~
/usr/include/cups/ipp.h:19: included_from: Included from here.
/usr/include/cups/cups.h:28: included_from: Included from here.
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-printer.c:27: included_from: Included from here.
/usr/include/cups/http.h:478:26: note: declared here
# 478 | extern http_t *httpConnectEncrypt(const char *host, int port, http_encryption_t encryption) _CUPS_DEPRECATED_1_7_MSG("Use httpConnect2 instead.");
# | ^~~~~~~~~~~~~~~~~~
# 626| int fd = -1;
# 627|
# 628|-> http = httpConnectEncrypt (cupsServer (),
# 629| ippPort (),
# 630| cupsEncryption ());
Error: GCC_ANALYZER_WARNING (CWE-688): [#def38]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-printer.c: scope_hint: In function ‘execute_maintenance_command’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-printer.c:661:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file’ where non-null expected
<built-in>: note: argument 4 of ‘__builtin_fwrite’ must be non-null
# 659|
# 660| file = fdopen (fd, "w");
# 661|-> fprintf (file, "#CUPS-COMMAND\n");
# 662| fprintf (file, "%s\n", command);
# 663| fclose (file);
Error: COMPILER_WARNING (CWE-477): [#def39]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-printer.c: scope_hint: In function ‘setup_printer’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-printer.c:840:17: warning[-Wdeprecated-declarations]: ‘cupsGetPPD’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 840 | ppd_file_name = cupsGetPPD (printer_name);
# | ^~~~~~~~~~~~~
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-printer.c:28: included_from: Included from here.
/usr/include/cups/ppd.h:359:26: note: declared here
# 359 | extern const char *cupsGetPPD(const char *name) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
# | ^~~~~~~~~~
# 838| printer_autoconfigure (printer_name);
# 839|
# 840|-> ppd_file_name = cupsGetPPD (printer_name);
# 841|
# 842| if (ppd_file_name) {
Error: COMPILER_WARNING (CWE-477): [#def40]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-printer.c: scope_hint: In function ‘handle_method_call’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/print-notifications/gsd-printer.c:946:25: warning[-Wdeprecated-declarations]: ‘cupsGetPPD’ is deprecated: Use cupsCopyDestInfo and friends instead.
# 946 | ppd_file_name = cupsGetPPD (name);
# | ^~~~~~~~~~~~~
/usr/include/cups/ppd.h:359:26: note: declared here
# 359 | extern const char *cupsGetPPD(const char *name) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
# | ^~~~~~~~~~
# 944| const char *ppd_file_name;
# 945|
# 946|-> ppd_file_name = cupsGetPPD (name);
# 947| if (ppd_file_name) {
# 948| GHashTable *executables;
Error: CPPCHECK_WARNING: [#def41]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/rfkill/gsd-rfkill-manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def42]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/rfkill/rfkill-glib.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def43]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/screensaver-proxy/gsd-screensaver-proxy-manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def44]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/sharing/gsd-sharing-manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def45]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/smartcard/gsd-smartcard-manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def46]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/smartcard/gsd-smartcard-manager.c:192:13: warning[core.NullDereference]: Access to field 'total_private_memory' results in a dereference of a null pointer (loaded from variable 'a')
# 190| if ((a && !b) || (!a && b))
# 191| return FALSE;
# 192|-> if (a->total_private_memory != b->total_private_memory)
# 193| return FALSE;
# 194| if (a->total_public_memory != b->total_public_memory)
Error: CLANG_WARNING: [#def47]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/smartcard/gsd-smartcard-manager.c:433:9: warning[deadcode.DeadStores]: Value stored to 'locked' is never read
# 431| g_autoptr(GMutexLocker) locked = NULL;
# 432|
# 433|-> locked = g_mutex_locker_new (&G_LOCK_NAME (gsd_smartcards_watch_tasks));
# 434| self->smartcards_watch_tasks = g_list_remove (self->smartcards_watch_tasks,
# 435| freed_task);
Error: CLANG_WARNING: [#def48]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/smartcard/gsd-smartcard-manager.c:808:9: warning[deadcode.DeadStores]: Value stored to 'locked' is never read
# 806| GList *node;
# 807|
# 808|-> locked = g_mutex_locker_new (&G_LOCK_NAME (gsd_smartcards_watch_tasks));
# 809| node = self->smartcards_watch_tasks;
# 810| while (node != NULL) {
Error: CLANG_WARNING: [#def49]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/smartcard/gsd-smartcard-manager.c:851:9: warning[deadcode.DeadStores]: Value stored to 'locked' is never read
# 849| GList *inserted_tokens = NULL, *node;
# 850|
# 851|-> locked = g_mutex_locker_new (&G_LOCK_NAME (gsd_smartcards_watch_tasks));
# 852| for (node = self->smartcards_watch_tasks; node != NULL; node = node->next) {
# 853| GTask *task = node->data;
Error: CPPCHECK_WARNING: [#def50]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/smartcard/gsd-smartcard-service.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def51]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/smartcard/gsd-smartcard-service.c:547:9: warning[deadcode.DeadStores]: Value stored to 'locked' is never read
# 545| object_path = get_object_path_for_token (self, card_slot);
# 546|
# 547|-> locked = g_mutex_locker_new (&G_LOCK_NAME (gsd_smartcard_tokens));
# 548| interface = g_hash_table_lookup (self->tokens, object_path);
# 549|
Error: GCC_ANALYZER_WARNING (CWE-688): [#def52]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/smartcard/gsd-smartcard-utils.c: scope_hint: In function ‘dashed_string_to_studly_caps’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/smartcard/gsd-smartcard-utils.c:38:32: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/smartcard/gsd-smartcard-utils.c:37:25: note: in expansion of macro ‘g_strdup’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/smartcard/gsd-smartcard-utils.c: scope_hint: In function ‘dashed_string_to_studly_caps’
<built-in>: note: 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: CPPCHECK_WARNING: [#def53]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/usb-protection/gsd-usb-protection-manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def54]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/wacom/gsd-wacom-oled-helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def55]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/wacom/gsd-wacom-oled.c:83:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 81| token_len[i] = g_utf8_strlen (token[i], LABEL_SIZE);
# 82|
# 83|-> length = token_len[0];
# 84| i = 0;
# 85| while ((length + token_len[i + 1] + 1) <= MAX_1ST_LINE_LEN) {
Error: CLANG_WARNING: [#def56]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/wacom/gsd-wacom-oled.c:85:17: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value
# 83| length = token_len[0];
# 84| i = 0;
# 85|-> while ((length + token_len[i + 1] + 1) <= MAX_1ST_LINE_LEN) {
# 86| i++;
# 87| length = length + token_len[i] + 1;
Error: CPPCHECK_WARNING: [#def57]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/wwan/cc-wwan-device.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-477): [#def58]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/wwan/cc-wwan-device.c:39: included_from: Included from here.
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/wwan/cc-wwan-errors-private.h:73:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated
# 71| { MM_MOBILE_EQUIPMENT_ERROR_CORP_PUK, "Corporate personalization PUK required" },
# 72| { MM_MOBILE_EQUIPMENT_ERROR_UNKNOWN, N_("Unknown error") },
# 73|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ILLEGAL_MS, "Illegal MS" },
# 74| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ILLEGAL_ME, "Illegal ME" },
# 75| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_NOT_ALLOWED, "GPRS services not allowed" },
Error: COMPILER_WARNING (CWE-477): [#def59]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/wwan/cc-wwan-errors-private.h:74:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated
# 72| { MM_MOBILE_EQUIPMENT_ERROR_UNKNOWN, N_("Unknown error") },
# 73| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ILLEGAL_MS, "Illegal MS" },
# 74|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ILLEGAL_ME, "Illegal ME" },
# 75| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_NOT_ALLOWED, "GPRS services not allowed" },
# 76| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_PLMN_NOT_ALLOWED, "PLMN not allowed" },
Error: COMPILER_WARNING (CWE-477): [#def60]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/wwan/cc-wwan-errors-private.h:75:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated
# 73| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ILLEGAL_MS, "Illegal MS" },
# 74| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ILLEGAL_ME, "Illegal ME" },
# 75|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_NOT_ALLOWED, "GPRS services not allowed" },
# 76| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_PLMN_NOT_ALLOWED, "PLMN not allowed" },
# 77| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_LOCATION_NOT_ALLOWED, "Location area not allowed" },
Error: COMPILER_WARNING (CWE-477): [#def61]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/wwan/cc-wwan-errors-private.h:76:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated
# 74| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ILLEGAL_ME, "Illegal ME" },
# 75| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_NOT_ALLOWED, "GPRS services not allowed" },
# 76|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_PLMN_NOT_ALLOWED, "PLMN not allowed" },
# 77| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_LOCATION_NOT_ALLOWED, "Location area not allowed" },
# 78| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ROAMING_NOT_ALLOWED, "Roaming not allowed in this location area" },
Error: COMPILER_WARNING (CWE-477): [#def62]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/wwan/cc-wwan-errors-private.h:77:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated
# 75| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_NOT_ALLOWED, "GPRS services not allowed" },
# 76| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_PLMN_NOT_ALLOWED, "PLMN not allowed" },
# 77|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_LOCATION_NOT_ALLOWED, "Location area not allowed" },
# 78| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ROAMING_NOT_ALLOWED, "Roaming not allowed in this location area" },
# 79| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUPPORTED, "Service option not supported" },
Error: COMPILER_WARNING (CWE-477): [#def63]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/wwan/cc-wwan-errors-private.h:78:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated
# 76| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_PLMN_NOT_ALLOWED, "PLMN not allowed" },
# 77| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_LOCATION_NOT_ALLOWED, "Location area not allowed" },
# 78|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ROAMING_NOT_ALLOWED, "Roaming not allowed in this location area" },
# 79| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUPPORTED, "Service option not supported" },
# 80| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUBSCRIBED, "Requested service option not subscribed" },
Error: COMPILER_WARNING (CWE-477): [#def64]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/wwan/cc-wwan-errors-private.h:79:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated
# 77| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_LOCATION_NOT_ALLOWED, "Location area not allowed" },
# 78| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ROAMING_NOT_ALLOWED, "Roaming not allowed in this location area" },
# 79|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUPPORTED, "Service option not supported" },
# 80| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUBSCRIBED, "Requested service option not subscribed" },
# 81| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_OUT_OF_ORDER, "Service option temporarily out of order" },
Error: COMPILER_WARNING (CWE-477): [#def65]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/wwan/cc-wwan-errors-private.h:80:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated
# 78| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_ROAMING_NOT_ALLOWED, "Roaming not allowed in this location area" },
# 79| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUPPORTED, "Service option not supported" },
# 80|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUBSCRIBED, "Requested service option not subscribed" },
# 81| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_OUT_OF_ORDER, "Service option temporarily out of order" },
# 82| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_UNKNOWN, "Unspecified GPRS error" },
Error: COMPILER_WARNING (CWE-477): [#def66]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/wwan/cc-wwan-errors-private.h:81:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated
# 79| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUPPORTED, "Service option not supported" },
# 80| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_NOT_SUBSCRIBED, "Requested service option not subscribed" },
# 81|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_OUT_OF_ORDER, "Service option temporarily out of order" },
# 82| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_UNKNOWN, "Unspecified GPRS error" },
# 83| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_PDP_AUTH_FAILURE, "PDP authentication failure" },
Error: COMPILER_WARNING (CWE-477): [#def67]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/wwan/cc-wwan-errors-private.h:83:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated
# 81| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_SERVICE_OPTION_OUT_OF_ORDER, "Service option temporarily out of order" },
# 82| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_UNKNOWN, "Unspecified GPRS error" },
# 83|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_PDP_AUTH_FAILURE, "PDP authentication failure" },
# 84| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_INVALID_MOBILE_CLASS, "Invalid mobile class" },
# 85| };
Error: COMPILER_WARNING (CWE-477): [#def68]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/wwan/cc-wwan-errors-private.h:84:3: warning[-Wdeprecated-declarations]: ‘MMMobileEquipmentErrorDeprecated’ is deprecated
# 82| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_UNKNOWN, "Unspecified GPRS error" },
# 83| { MM_MOBILE_EQUIPMENT_ERROR_GPRS_PDP_AUTH_FAILURE, "PDP authentication failure" },
# 84|-> { MM_MOBILE_EQUIPMENT_ERROR_GPRS_INVALID_MOBILE_CLASS, "Invalid mobile class" },
# 85| };
# 86|
Error: CPPCHECK_WARNING: [#def69]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/wwan/gsd-wwan-manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def70]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/xsettings/gsd-xsettings-manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def71]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/plugins/xsettings/wm-button-layout-translation.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def72]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/redhat-linux-build/gnome-settings-daemon/gsd-screen-saver-glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def73]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/redhat-linux-build/gnome-settings-daemon/gsd-session-manager-glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def74]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/redhat-linux-build/gnome-settings-daemon/gsd-shell-glue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def75]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/redhat-linux-build/plugins/datetime/timedated.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def76]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/redhat-linux-build/plugins/media-keys/shell-key-grabber.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def77]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/redhat-linux-build/plugins/smartcard/org.gnome.SettingsDaemon.Smartcard.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def78]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/gvc-mixer-control.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def79]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/gvc-mixer-ui-device.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def80]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/gvc-mixer-ui-device.c: scope_hint: In function ‘get_profile_canonical_name’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/gvc-mixer-ui-device.c:310:13: warning[-Wanalyzer-null-argument]: use of NULL ‘profile_name’ where non-null expected
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/gvc-mixer-ui-device.h:22: included_from: Included from here.
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/gvc-mixer-ui-device.c:23: 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’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/gvc-mixer-ui-device.c:470:9: 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’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/gvc-mixer-ui-device.h:30:47: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/gvc-mixer-ui-device.c:470:31: note: in expansion of macro ‘GVC_IS_MIXER_UI_DEVICE’
/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’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/gvc-mixer-ui-device.c:470:9: 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’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/gvc-mixer-ui-device.h:30:47: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/gvc-mixer-ui-device.c:470:31: note: in expansion of macro ‘GVC_IS_MIXER_UI_DEVICE’
/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’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/gvc-mixer-ui-device.c:471:9: 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.
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/gvc-mixer-ui-device.c:311:24: note: in expansion of macro ‘g_strdup’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/gvc-mixer-ui-device.c: scope_hint: In function ‘get_profile_canonical_name’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/gvc-mixer-ui-device.c:311:24: note: in expansion of macro ‘g_strdup’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/gvc-mixer-ui-device.c: scope_hint: In function ‘get_profile_canonical_name’
<built-in>: note: argument 1 of ‘__builtin_strstr’ must be non-null
# 308|
# 309| /* optimisation for the simple case. */
# 310|-> if (strstr (profile_name, skip_prefix) == NULL)
# 311| return g_strdup (profile_name);
# 312|
Error: CPPCHECK_WARNING: [#def81]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/test-audio-device-selection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-127): [#def82]
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/test-audio-device-selection.c: scope_hint: In function ‘audio_selection_needed.part.0’
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/test-audio-device-selection.c:60:9: warning[-Wanalyzer-out-of-bounds]: buffer under-read
gnome-settings-daemon-46.0-build/gnome-settings-daemon-46.0/subprojects/gvc/test-audio-device-selection.c:60:9: note: valid subscripts for ‘audio_selection_choices’ are ‘[0]’ to ‘[2]’
# └────────────────────────────────────────┘
# ^
# 58| }
# 59|
# 60|-> gvc_mixer_control_set_headset_port (volume,
# 61| id,
# 62| audio_selection_choices[response - 1].choice);
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-238.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | gnome-settings-daemon-46.0-1.fc41 |
store-results-to | /tmp/tmpx55ez5jl/gnome-settings-daemon-46.0-1.fc41.tar.xz |
time-created | 2024-07-03 13:05:17 |
time-finished | 2024-07-03 13:07:52 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpx55ez5jl/gnome-settings-daemon-46.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpx55ez5jl/gnome-settings-daemon-46.0-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |