gnome-control-center-46.2-1.fc41
List of Defects
Error: CPPCHECK_WARNING: [#def1]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-applications-panel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def2]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-applications-panel.c: scope_hint: In function ‘get_portal_permissions’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-applications-panel.c:223:11: warning[-Wanalyzer-null-argument]: use of NULL ‘app_id’ where non-null expected
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-applications-panel.c: scope_hint: In function ‘get_portal_permissions’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-applications-panel.c: scope_hint: In function ‘get_portal_permissions’
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-applications-panel.c:25: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-applications-panel.c:382:17: note: in expansion of macro ‘GPOINTER_TO_INT’
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
/usr/include/malcontent-0/libmalcontent/app-filter.h:26: included_from: Included from here.
/usr/include/malcontent-0/libmalcontent/malcontent.h:25: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-applications-panel.c:27: included_from: Included from here.
/usr/include/glib-2.0/gobject/gtype.h:2656:57: note: in definition of macro ‘_G_TYPE_CIC’
/usr/include/gtk-4.0/gtk/gtkwidget.h:44:44: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-applications-panel.c:910:31: note: in expansion of macro ‘GTK_WIDGET’
/usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:52: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-applications-panel.c:703:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/gobject/gobject.h:767:32: note: in definition of macro ‘g_set_object’
/usr/include/glib-2.0/gobject/gobject.h:770:50: note: in definition of macro ‘g_set_object’
/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-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-applications-panel.c:445:15: note: in expansion of macro ‘g_strdup’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-applications-panel.c: scope_hint: In function ‘get_portal_permissions’
/usr/include/glib-2.0/gobject/gobject.h:770:50: note: in definition of macro ‘g_set_object’
/usr/include/glib-2.0/glib/galloca.h:35: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
# 221| while (g_variant_iter_loop (iter, "{&s^a&s}", &key, &val))
# 222| {
# 223|-> if (strcmp (key, app_id) == 0 && result == NULL)
# 224| result = g_strdupv (val);
# 225| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-applications-panel.c: scope_hint: In function ‘munge_app_id’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-applications-panel.c:454:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-applications-panel.c:1437:3: note: in expansion of macro ‘g_clear_pointer’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-applications-panel.c:1438:3: note: in expansion of macro ‘g_clear_pointer’
/usr/include/glib-2.0/gobject/gobject.h:767:32: note: in definition of macro ‘g_set_object’
/usr/include/glib-2.0/gobject/gobject.h:770:50: note: in definition of macro ‘g_set_object’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-applications-panel.c:445:15: note: in expansion of macro ‘g_strdup’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-applications-panel.c: scope_hint: In function ‘munge_app_id’
# 452| "-",
# 453| '-');
# 454|-> for (i = 0; id[i] != '\0'; i++)
# 455| id[i] = g_ascii_tolower (id[i]);
# 456|
Error: CPPCHECK_WARNING: [#def4]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-default-apps-row.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def5]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-removable-media-settings.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-9001): [#def6]
/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-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-removable-media-settings.c:24: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-removable-media-settings.c: scope_hint: In function ‘cc_removable_media_settings_dispose’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-removable-media-settings.c:525:20: warning[-Wstrict-aliasing]: dereferencing type-punned pointer will break strict-aliasing rules
# 525 | g_clear_pointer ((GtkWindow **) &self->other_type_dialog, gtk_window_destroy);
/usr/include/glib-2.0/glib/gmacros.h:871:47: note: in definition of macro ‘G_STATIC_ASSERT’
# 871 | #define G_STATIC_ASSERT(expr) _Static_assert (expr, "Expression evaluates to false")
# | ^~~~
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/cc-removable-media-settings.c:525:3: note: in expansion of macro ‘g_clear_pointer’
# 525 | g_clear_pointer ((GtkWindow **) &self->other_type_dialog, gtk_window_destroy);
# | ^~~~~~~~~~~~~~~
# 523| CcRemovableMediaSettings *self = CC_REMOVABLE_MEDIA_SETTINGS (object);
# 524|
# 525|-> g_clear_pointer ((GtkWindow **) &self->other_type_dialog, gtk_window_destroy);
# 526|
# 527| G_OBJECT_CLASS (cc_removable_media_settings_parent_class)->dispose (object);
Error: CPPCHECK_WARNING: [#def7]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def8]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/utils.c: scope_hint: In function ‘get_app_id’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/applications/utils.c:254:12: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 252|
# 253| if (g_str_has_suffix (app_id, ".desktop"))
# 254|-> app_id[strlen (app_id) - strlen (".desktop")] = '\0';
# 255|
# 256| return app_id;
Error: CPPCHECK_WARNING: [#def9]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/background/cc-background-item.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def10]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/background/cc-background-panel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def11]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/background/cc-background-xml.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def12]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/color/cc-color-calibrate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def13]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/color/cc-color-calibrate.c:269:7: warning[unix.Malloc]: Potential leak of memory pointed to by 'blue'
# 267| if (crtc == NULL)
# 268| {
# 269|-> g_set_error (error,
# 270| CD_SESSION_ERROR,
# 271| CD_SESSION_ERROR_INTERNAL,
Error: CLANG_WARNING: [#def14]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/color/cc-color-calibrate.c:269:7: warning[unix.Malloc]: Potential leak of memory pointed to by 'green'
# 267| if (crtc == NULL)
# 268| {
# 269|-> g_set_error (error,
# 270| CD_SESSION_ERROR,
# 271| CD_SESSION_ERROR_INTERNAL,
Error: CLANG_WARNING: [#def15]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/color/cc-color-calibrate.c:269:7: warning[unix.Malloc]: Potential leak of memory pointed to by 'red'
# 267| if (crtc == NULL)
# 268| {
# 269|-> g_set_error (error,
# 270| CD_SESSION_ERROR,
# 271| CD_SESSION_ERROR_INTERNAL,
Error: CLANG_WARNING: [#def16]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/color/cc-color-calibrate.c:443:3: warning[deadcode.DeadStores]: Value stored to 'widget' is never read
# 441| "button_resume"));
# 442| gtk_widget_set_visible (widget, FALSE);
# 443|-> widget = GTK_WIDGET (gtk_builder_get_object (calibrate->builder,
# 444| "button_done"));
# 445|
Error: CLANG_WARNING: [#def17]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/color/cc-color-calibrate.c:866:3: warning[deadcode.DeadStores]: Value stored to 'widget' is never read
# 864|
# 865| /* show correct buttons */
# 866|-> widget = GTK_WIDGET (gtk_builder_get_object (calibrate->builder,
# 867| "button_cancel"));
# 868| widget = GTK_WIDGET (gtk_builder_get_object (calibrate->builder,
Error: CLANG_WARNING: [#def18]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/color/cc-color-calibrate.c:868:3: warning[deadcode.DeadStores]: Value stored to 'widget' is never read
# 866| widget = GTK_WIDGET (gtk_builder_get_object (calibrate->builder,
# 867| "button_cancel"));
# 868|-> widget = GTK_WIDGET (gtk_builder_get_object (calibrate->builder,
# 869| "button_start"));
# 870| widget = GTK_WIDGET (gtk_builder_get_object (calibrate->builder,
Error: CPPCHECK_WARNING: [#def19]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/color/cc-color-panel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def20]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/color/cc-color-panel.c:1232:8: warning[deadcode.DeadStores]: Although the value stored to 's' is used in the enclosing expression, the value is never actually read from 's'
# 1230| /* allow getting profile info */
# 1231| if (cd_profile_get_filename (profile) != NULL &&
# 1232|-> (s = g_find_program_in_path ("gcm-viewer")) != NULL)
# 1233| gtk_widget_set_sensitive (self->toolbutton_profile_view, TRUE);
# 1234| else
Error: COMPILER_WARNING (CWE-9001): [#def21]
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/color/cc-color-panel.c:23: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/color/cc-color-panel.c: scope_hint: In function ‘cc_color_panel_dispose’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/color/cc-color-panel.c:1849:20: warning[-Wstrict-aliasing]: dereferencing type-punned pointer will break strict-aliasing rules
# 1849 | g_clear_pointer ((GtkWindow **)&self->dialog_assign, gtk_window_destroy);
/usr/include/glib-2.0/glib/gmacros.h:871:47: note: in definition of macro ‘G_STATIC_ASSERT’
# 871 | #define G_STATIC_ASSERT(expr) _Static_assert (expr, "Expression evaluates to false")
# | ^~~~
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/color/cc-color-panel.c:1849:3: note: in expansion of macro ‘g_clear_pointer’
# 1849 | g_clear_pointer ((GtkWindow **)&self->dialog_assign, gtk_window_destroy);
# | ^~~~~~~~~~~~~~~
# 1847| g_clear_pointer (&self->sensors, g_ptr_array_unref);
# 1848| g_clear_pointer (&self->list_box_filter, g_free);
# 1849|-> g_clear_pointer ((GtkWindow **)&self->dialog_assign, gtk_window_destroy);
# 1850|
# 1851| G_OBJECT_CLASS (cc_color_panel_parent_class)->dispose (object);
Error: CPPCHECK_WARNING: [#def22]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/common/cc-hostname.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def23]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/common/cc-language-chooser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def24]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/common/cc-time-entry.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def25]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/common/cc-vertical-row.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-9001): [#def26]
/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/gtk-4.0/gtk/css/gtkcss.h:29: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:29: included_from: Included from here.
/usr/include/libadwaita-1/adwaita.h:9: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/common/cc-vertical-row.h:25: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/common/cc-vertical-row.c:23: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/common/cc-vertical-row.c: scope_hint: In function ‘cc_vertical_row_dispose’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/common/cc-vertical-row.c:192:20: warning[-Wstrict-aliasing]: dereferencing type-punned pointer will break strict-aliasing rules
# 192 | g_clear_pointer ((GtkWidget**)&priv->header, gtk_widget_unparent);
/usr/include/glib-2.0/glib/gmacros.h:871:47: note: in definition of macro ‘G_STATIC_ASSERT’
# 871 | #define G_STATIC_ASSERT(expr) _Static_assert (expr, "Expression evaluates to false")
# | ^~~~
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/common/cc-vertical-row.c:192:3: note: in expansion of macro ‘g_clear_pointer’
# 192 | g_clear_pointer ((GtkWidget**)&priv->header, gtk_widget_unparent);
# | ^~~~~~~~~~~~~~~
# 190|
# 191| cc_vertical_row_set_activatable_widget (self, NULL);
# 192|-> g_clear_pointer ((GtkWidget**)&priv->header, gtk_widget_unparent);
# 193|
# 194| G_OBJECT_CLASS (cc_vertical_row_parent_class)->dispose (object);
Error: CPPCHECK_WARNING: [#def27]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/common/gsd-device-manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def28]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/common/hostname-helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def29]
/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-control-center-46.2-build/gnome-control-center-46.2/panels/common/hostname-helper.c:19: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/common/hostname-helper.c: scope_hint: In function ‘pretty_hostname_to_ssid’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/common/hostname-helper.c:178:27: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/common/hostname-helper.c:178:17: note: in expansion of macro ‘g_assert’
/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-control-center-46.2-build/gnome-control-center-46.2/panels/common/hostname-helper.c:177:30: note: in expansion of macro ‘g_strdup’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/common/hostname-helper.c: scope_hint: In function ‘pretty_hostname_to_ssid’
/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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/common/hostname-helper.c:178:17: note: in expansion of macro ‘g_assert’
/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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/common/hostname-helper.c:178:17: note: in expansion of macro ‘g_assert’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 176| /* translators: This is the default hotspot name, need to be less than 32-bytes */
# 177| gchar *ret = g_strdup (C_("hotspot", "Hotspot"));
# 178|-> g_assert (strlen (ret) <= SSID_MAX_LEN);
# 179| return ret;
# 180| }
Error: CPPCHECK_WARNING: [#def30]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/display/cc-display-arrangement.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def31]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/display/cc-display-config-dbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def32]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/display/cc-display-config-dbus.c:1394:3: warning[deadcode.DeadStores]: Value stored to 'mode_scales' is never read
# 1392| int i;
# 1393|
# 1394|-> mode_scales = cc_display_mode_get_supported_scales (mode);
# 1395| i = 0;
# 1396| while (i < supported_scales->len)
Error: CPPCHECK_WARNING: [#def33]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/display/cc-display-panel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def34]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/display/cc-display-settings.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def35]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-input-chooser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def36]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-input-list-box.c:691:24: warning[core.NullDereference]: Array access (from variable 'layouts') results in a null pointer dereference
# 689| n = 0;
# 690|
# 691|-> for (i = 0; i < n && layouts[i][0]; i++) {
# 692| const char *variant = variants ? variants[i] : NULL;
# 693| g_autoptr(CcInputSourceXkb) source = cc_input_source_xkb_new (self->xkb_info, layouts[i], variant);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-input-list-box.c: scope_hint: In function ‘add_input_sources_from_localed’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-input-list-box.c:691:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/gnome-desktop-4.0/libgnome-desktop/gnome-xkb-info.h:31: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-input-list-box.c:26: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:936:23: note: in definition of macro ‘MIN’
# 689| n = 0;
# 690|
# 691|-> for (i = 0; i < n && layouts[i][0]; i++) {
# 692| const char *variant = variants ? variants[i] : NULL;
# 693| g_autoptr(CcInputSourceXkb) source = cc_input_source_xkb_new (self->xkb_info, layouts[i], variant);
Error: CPPCHECK_WARNING: [#def38]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-keyboard-item.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-keyboard-item.c: scope_hint: In function ‘translate_above_tab’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-keyboard-item.c:543:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘str’
# 541| char **str;
# 542|
# 543|-> for (str = original_bindings; *str && !needs_translation; str++)
# 544| needs_translation = strstr (*str, "Above_Tab") != NULL;
# 545|
Error: CLANG_WARNING: [#def40]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-keyboard-item.c:543:33: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'str')
# 541| char **str;
# 542|
# 543|-> for (str = original_bindings; *str && !needs_translation; str++)
# 544| needs_translation = strstr (*str, "Above_Tab") != NULL;
# 545|
Error: CLANG_WARNING: [#def41]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-keyboard-item.c:603:24: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'str')
# 601| }
# 602|
# 603|-> for (str = bindings; *str; str++)
# 604| {
# 605| g_autofree CcKeyCombo *combo = g_new (CcKeyCombo, 1);
Error: CLANG_WARNING: [#def42]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-keyboard-item.c:910:13: warning[unix.Malloc]: Potential leak of memory pointed to by 'strv'
# 908| if (combo_equal (l->data, combo))
# 909| // This combo is already in the list
# 910|-> return;
# 911| strv[i] = combo_get_accelerator (l->data);
# 912| }
Error: CLANG_WARNING: [#def43]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-keyboard-item.c:971:3: warning[unix.Malloc]: Potential leak of memory pointed to by 'strv'
# 969| }
# 970|
# 971|-> binding_changed (self, self->key);
# 972| }
# 973|
Error: CPPCHECK_WARNING: [#def44]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-keyboard-manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def45]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-keyboard-manager.c:734:3: warning[unix.Malloc]: Potential leak of memory pointed to by 'wm_keybindings'
# 732| }
# 733|
# 734|-> g_hash_table_destroy (loaded_files);
# 735|
# 736| /* Load custom keybindings */
Error: COMPILER_WARNING (CWE-9001): [#def46]
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-keyboard-shortcut-dialog.c:30: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-keyboard-shortcut-dialog.c: scope_hint: In function ‘cc_keyboard_shortcut_dialog_finalize’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-keyboard-shortcut-dialog.c:518:20: warning[-Wstrict-aliasing]: dereferencing type-punned pointer will break strict-aliasing rules
# 518 | g_clear_pointer ((GtkWindow**)&self->shortcut_editor, gtk_window_destroy);
/usr/include/glib-2.0/glib/gmacros.h:871:47: note: in definition of macro ‘G_STATIC_ASSERT’
# 871 | #define G_STATIC_ASSERT(expr) _Static_assert (expr, "Expression evaluates to false")
# | ^~~~
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-keyboard-shortcut-dialog.c:518:3: note: in expansion of macro ‘g_clear_pointer’
# 518 | g_clear_pointer ((GtkWindow**)&self->shortcut_editor, gtk_window_destroy);
# | ^~~~~~~~~~~~~~~
# 516| g_clear_object (&self->sections);
# 517| g_clear_object (&self->filtered_shortcuts);
# 518|-> g_clear_pointer ((GtkWindow**)&self->shortcut_editor, gtk_window_destroy);
# 519|
# 520| G_OBJECT_CLASS (cc_keyboard_shortcut_dialog_parent_class)->finalize (object);
Error: CPPCHECK_WARNING: [#def47]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-keyboard-shortcut-editor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-xkb-modifier-dialog.c: scope_hint: In function ‘update_active_radio’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-xkb-modifier-dialog.c:110:83: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 108| {
# 109| default_option = get_xkb_option_from_name(self->modifier, self->modifier->default_option);
# 110|-> rightalt_radio = get_radio_button_from_xkb_option_name (self, default_option->xkb_option);
# 111| gtk_check_button_set_active (GTK_CHECK_BUTTON (rightalt_radio), TRUE);
# 112| gtk_switch_set_active (self->enabled_switch, TRUE);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-xkb-modifier-dialog.c: scope_hint: In function ‘xcb_modifier_transform_binding_to_label’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/cc-xkb-modifier-dialog.c:351:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entry’
# 349|
# 350| g_value_set_string (value,
# 351|-> g_dpgettext2 (NULL, "keyboard key", entry->label));
# 352| return TRUE;
# 353| }
Error: CPPCHECK_WARNING: [#def50]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/keyboard/keyboard-shortcuts.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def51]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/cc-qr-code.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def52]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/cc-wifi-connection-list.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def53]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/cc-wifi-connection-row.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def54]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/cc-wifi-hotspot-dialog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def55]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/cc-wifi-hotspot-dialog.c:244:16: warning[deadcode.DeadStores]: Although the value stored to 'valid_password' is used in the enclosing expression, the value is never actually read from 'valid_password'
# 242| g_assert (CC_IS_WIFI_HOTSPOT_DIALOG (self));
# 243|
# 244|-> valid_ssid = valid_password = FALSE;
# 245| ssid = gtk_editable_get_text (GTK_EDITABLE (self->name_entry));
# 246| password = gtk_editable_get_text (GTK_EDITABLE (self->password_entry));
Error: CPPCHECK_WARNING: [#def56]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/cc-wifi-panel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-9001): [#def57]
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/connection-editor/ce-page-8021x-security.c:25: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/connection-editor/ce-page-8021x-security.c: scope_hint: In function ‘ce_page_8021x_security_dispose’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/connection-editor/ce-page-8021x-security.c:157:26: warning[-Wstrict-aliasing]: dereferencing type-punned pointer will break strict-aliasing rules
# 157 | g_clear_pointer ((GtkWidget **) &self->security, gtk_widget_unparent);
/usr/include/glib-2.0/glib/gmacros.h:871:47: note: in definition of macro ‘G_STATIC_ASSERT’
# 871 | #define G_STATIC_ASSERT(expr) _Static_assert (expr, "Expression evaluates to false")
# | ^~~~
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/connection-editor/ce-page-8021x-security.c:157:9: note: in expansion of macro ‘g_clear_pointer’
# 157 | g_clear_pointer ((GtkWidget **) &self->security, gtk_widget_unparent);
# | ^~~~~~~~~~~~~~~
# 155|
# 156| g_clear_object (&self->connection);
# 157|-> g_clear_pointer ((GtkWidget **) &self->security, gtk_widget_unparent);
# 158| g_clear_object (&self->group);
# 159|
Error: CPPCHECK_WARNING: [#def58]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/connection-editor/ce-page-details.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def59]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/connection-editor/ce-page-ethernet.c: scope_hint: In function ‘mtu_output_cb’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/connection-editor/ce-page-ethernet.c:73:13: warning[-Wanalyzer-null-argument]: use of NULL ‘buf’ where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/connection-editor/ce-page-ethernet.c:24: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/connection-editor/ce-page-ethernet.c:69:33: note: in expansion of macro ‘_’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/connection-editor/ce-page-ethernet.c:69:23: note: in expansion of macro ‘g_strdup’
/usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
/usr/include/libnm/NetworkManager.h:11: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/connection-editor/ce-page-ethernet.c:26: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/connection-editor/ce-page-ethernet.c: scope_hint: In function ‘mtu_output_cb’
/usr/include/glib-2.0/gobject/gtype.h:2656:57: note: in definition of macro ‘_G_TYPE_CIC’
/usr/include/gtk-4.0/gtk/gtkeditable.h:38:40: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/connection-editor/ce-page-ethernet.c:73:49: note: in expansion of macro ‘GTK_EDITABLE’
/usr/include/glib-2.0/glib/galloca.h:35: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
# 71| buf = g_strdup_printf ("%d", val);
# 72|
# 73|-> if (strcmp (buf, gtk_editable_get_text (GTK_EDITABLE (self->mtu_spin))))
# 74| gtk_editable_set_text (GTK_EDITABLE (self->mtu_spin), buf);
# 75| }
Error: CPPCHECK_WARNING: [#def60]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/connection-editor/ce-page-ip4.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def61]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/connection-editor/ce-page-ip6.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def62]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/connection-editor/ce-page-security.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def63]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/connection-editor/ce-page.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def64]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/connection-editor/net-connection-editor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def65]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/net-device-ethernet.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def66]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/net-device-ethernet.c:373:30: warning[core.NullDereference]: Access to field 'data' results in a dereference of a null pointer (loaded from variable 'connections')
# 371| GTK_WIDGET (self->connection_list));
# 372| } else if (n_connections == 1) {
# 373|-> connection = connections->data;
# 374| gtk_stack_set_visible_child (self->connection_stack,
# 375| GTK_WIDGET (self->details_listbox));
Error: CPPCHECK_WARNING: [#def67]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/net-device-mobile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def68]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/net-device-wifi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def69]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/panel-common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def70]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/cc-qr-code.c:33: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/network/qrcodegen.c:187:24: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
# 185| assert(0 <= numBits && numBits <= 16 && (unsigned long)val >> numBits == 0);
# 186| for (int i = numBits - 1; i >= 0; i--, (*bitLen)++)
# 187|-> buffer[*bitLen >> 3] |= ((val >> i) & 1) << (7 - (*bitLen & 7));
# 188| }
# 189|
Error: GCC_ANALYZER_WARNING (CWE-688): [#def71]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/notifications/cc-notifications-panel.c: scope_hint: In function ‘app_info_get_id’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/notifications/cc-notifications-panel.c:364:7: warning[-Wanalyzer-null-argument]: use of NULL ‘ret’ 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/gtk-4.0/gtk/css/gtkcss.h:29: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:29: included_from: Included from here.
/usr/include/libadwaita-1/adwaita.h:9: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/notifications/cc-notifications-panel.c:22: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/notifications/cc-notifications-panel.c:361:7: note: in expansion of macro ‘G_UNLIKELY’
/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-control-center-46.2-build/gnome-control-center-46.2/panels/notifications/cc-notifications-panel.c:361:19: note: in expansion of macro ‘g_str_has_suffix’
/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:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/notifications/cc-notifications-panel.c:361:7: note: in expansion of macro ‘G_UNLIKELY’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/notifications/cc-notifications-panel.c:361:19: 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’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/notifications/cc-notifications-panel.c:361:7: note: in expansion of macro ‘G_UNLIKELY’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 362| return NULL;
# 363|
# 364|-> l = strlen (ret);
# 365| *(ret + l - strlen(".desktop")) = '\0';
# 366| return g_steal_pointer (&ret);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/notifications/cc-notifications-panel.c: scope_hint: In function ‘process_app_info’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/notifications/cc-notifications-panel.c:386:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 384| "-",
# 385| '-');
# 386|-> for (i = 0; app_id[i] != '\0'; i++)
# 387| app_id[i] = g_ascii_tolower (app_id[i]);
# 388|
Error: GCC_ANALYZER_WARNING (CWE-688): [#def73]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/notifications/cc-notifications-panel.c: scope_hint: In function ‘select_app’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/notifications/cc-notifications-panel.c:479:12: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 477| app_id = g_strdup (g_app_info_get_id (app->app_info));
# 478| if (g_str_has_suffix (app_id, ".desktop"))
# 479|-> app_id[strlen (app_id) - strlen (".desktop")] = '\0';
# 480|
# 481| dialog = cc_app_notifications_dialog_new (app_id, g_app_info_get_name (app->app_info), app->settings, self->master_settings, self->perm_store);
Error: CLANG_WARNING: [#def74]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/power/cc-battery-row.c:83:12: warning[deadcode.DeadStores]: Although the value stored to 'timestring' is used in the enclosing expression, the value is never actually read from 'timestring'
# 81|
# 82| if (minutes < 60)
# 83|-> return timestring = g_strdup_printf (ngettext ("%i minute",
# 84| "%i minutes",
# 85| minutes), minutes);
Error: CLANG_WARNING: [#def75]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/power/cc-battery-row.c:91:12: warning[deadcode.DeadStores]: Although the value stored to 'timestring' is used in the enclosing expression, the value is never actually read from 'timestring'
# 89|
# 90| if (minutes == 0)
# 91|-> return timestring = g_strdup_printf (ngettext (
# 92| "%i hour",
# 93| "%i hours",
Error: CLANG_WARNING: [#def76]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/power/cc-battery-row.c:98:10: warning[deadcode.DeadStores]: Although the value stored to 'timestring' is used in the enclosing expression, the value is never actually read from 'timestring'
# 96| /* TRANSLATOR: "%i %s %i %s" are "%i hours %i minutes"
# 97| * Swap order with "%2$s %2$i %1$s %1$i if needed */
# 98|-> return timestring = g_strdup_printf (_("%i %s %i %s"),
# 99| hours, ngettext ("hour", "hours", hours),
# 100| minutes, ngettext ("minute", "minutes", minutes));
Error: CPPCHECK_WARNING: [#def77]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/power/cc-power-panel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def78]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/cc-printers-panel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def79]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/cc-printers-panel.c:455:13: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 453| g_autoptr(PpJob) job = NULL;
# 454|
# 455|-> job = pp_job_new (job_id, NULL, 0, JOB_DEFAULT_PRIORITY, NULL);
# 456| pp_job_get_attributes_async (job,
# 457| requested_attrs,
Error: CLANG_WARNING: [#def80]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/cc-printers-panel.c:808:17: warning[core.NullDereference]: Access to field 'dests' results in a dereference of a null pointer (loaded from variable 'cups_dests')
# 806|
# 807| free_dests (self);
# 808|-> self->dests = cups_dests->dests;
# 809| self->num_dests = cups_dests->num_of_dests;
# 810| g_free (cups_dests);
Error: CPPCHECK_WARNING: [#def81]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-cups.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def82]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-host.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def83]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-host.c:236:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'buffer'
# 234| words[j++] = g_strdup (buffer);
# 235|
# 236|-> result = g_strdupv (words);
# 237| g_strfreev (words);
# 238|
Error: CLANG_WARNING: [#def84]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-host.c:599:23: warning[deadcode.DeadStores]: Value stored to 'bytes_written' is never read
# 597| length = g_snprintf (buffer, BUFFER_LENGTH, "\1\n");
# 598|
# 599|-> bytes_written = g_output_stream_write (output,
# 600| buffer,
# 601| length,
Error: CLANG_WARNING: [#def85]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-job.c:68:3: warning[deadcode.DeadStores]: Value stored to 'output' is never read
# 66| g_autoptr(GVariant) output = NULL;
# 67|
# 68|-> output = g_dbus_connection_call_finish (G_DBUS_CONNECTION (source_object),
# 69| res,
# 70| NULL);
Error: CLANG_WARNING: [#def86]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-job.c:174:3: warning[deadcode.DeadStores]: Value stored to 'output' is never read
# 172| g_autoptr(GVariant) output = NULL;
# 173|
# 174|-> output = g_dbus_connection_call_finish (G_DBUS_CONNECTION (source_object),
# 175| res,
# 176| NULL);
Error: CPPCHECK_WARNING: [#def87]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-jobs-dialog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def88]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-maintenance-command.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def89]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-maintenance-command.c: scope_hint: In function ‘_pp_maintenance_command_execute_thread’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-maintenance-command.c:232:11: 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
# 230|
# 231| file = fdopen (fd, "w");
# 232|-> fprintf (file, "#CUPS-COMMAND\n");
# 233| fprintf (file, "%s", self->command);
# 234| if (self->parameters)
Error: CPPCHECK_WARNING: [#def90]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-new-printer-dialog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def91]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-new-printer-dialog.c:695:26: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')
# 693| {
# 694| if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
# 695|-> g_warning ("%s", error->message);
# 696| }
# 697|
Error: CPPCHECK_WARNING: [#def92]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-new-printer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def93]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-options-dialog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def94]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-ppd-option-widget.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def95]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-ppd-selection-dialog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def96]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-printer-entry.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def97]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-printer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def98]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-printer.c:533:47: warning[core.NullDereference]: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'dest')
# 531| print_file_data = g_task_get_task_data (task);
# 532|
# 533|-> job_id = cupsPrintFile2 (CUPS_HTTP_DEFAULT, dest->name, print_file_data->filename, print_file_data->job_name, dest->num_options, dest->options);
# 534|
# 535| if (job_id < 1)
Error: CPPCHECK_WARNING: [#def99]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-samba.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def100]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def101]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-utils.c:130:19: warning[deadcode.DeadStores]: Value stored to 'k' is never read
# 128| {
# 129| res[j] = ' ';
# 130|-> k = j++;
# 131| res[j] = tmp[i];
# 132| k = j++;
Error: CLANG_WARNING: [#def102]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-utils.c:154:18: warning[unix.Malloc]: Potential leak of memory pointed to by 'res'
# 152| res[j] = '\0';
# 153|
# 154|-> result = g_strdup (res);
# 155| }
# 156| }
Error: CLANG_WARNING: [#def103]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-utils.c:449:6: warning[unix.Malloc]: Potential leak of memory pointed to by 'member_names'
# 447| if (!bus)
# 448| {
# 449|-> g_warning ("Failed to get system bus: %s", error->message);
# 450| }
# 451| else
Error: CLANG_WARNING: [#def104]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/printers/pp-utils.c:2638:19: warning[deadcode.DeadStores]: Value stored to 'list' is never read
# 2636| if (list)
# 2637| {
# 2638|-> list = g_list_append (list, item);
# 2639| }
# 2640| else
Error: CPPCHECK_WARNING: [#def105]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/privacy/bolt-client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-9001): [#def106]
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/privacy/cc-bolt-page.c:22: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/privacy/cc-bolt-page.c: scope_hint: In function ‘cc_bolt_page_dispose’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/privacy/cc-bolt-page.c:947:20: warning[-Wstrict-aliasing]: dereferencing type-punned pointer will break strict-aliasing rules
# 947 | g_clear_pointer ((GtkWindow **) &self->device_dialog, gtk_window_destroy);
/usr/include/glib-2.0/glib/gmacros.h:871:47: note: in definition of macro ‘G_STATIC_ASSERT’
# 871 | #define G_STATIC_ASSERT(expr) _Static_assert (expr, "Expression evaluates to false")
# | ^~~~
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/privacy/cc-bolt-page.c:947:3: note: in expansion of macro ‘g_clear_pointer’
# 947 | g_clear_pointer ((GtkWindow **) &self->device_dialog, gtk_window_destroy);
# | ^~~~~~~~~~~~~~~
# 945| /* Must be destroyed in dispose, not finalize. */
# 946| cc_bolt_device_dialog_set_device (self->device_dialog, NULL, NULL);
# 947|-> g_clear_pointer ((GtkWindow **) &self->device_dialog, gtk_window_destroy);
# 948|
# 949| G_OBJECT_CLASS (cc_bolt_page_parent_class)->dispose (object);
Error: CPPCHECK_WARNING: [#def107]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/privacy/cc-camera-page.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def108]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/privacy/cc-firmware-security-dialog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def109]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/privacy/cc-firmware-security-utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def110]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/search/cc-search-locations-dialog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def111]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/search/cc-search-locations-dialog.c:504:3: warning[deadcode.DeadStores]: Value stored to 'info' is never read
# 502| Place *place;
# 503|
# 504|-> info = g_file_query_info_finish (G_FILE (source), res, &error);
# 505|
# 506| if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))
Error: CPPCHECK_WARNING: [#def112]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/search/cc-search-panel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def113]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/sharing/cc-media-sharing.c:68:7: warning[deadcode.DeadStores]: Value stored to 'orig_list' is never read
# 66| str_list = g_key_file_get_string_list (file, "MediaExport", "uris",
# 67| &length, NULL);
# 68|-> orig_list = str_list;
# 69| array = g_ptr_array_new ();
# 70|
Error: CPPCHECK_WARNING: [#def114]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/sharing/cc-sharing-networks.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def115]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/sharing/file-share-properties.c: scope_hint: In function ‘file_share_write_out_password’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/sharing/file-share-properties.c:50:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_build_filename(g_get_user_config_dir(), "user-share", "passwd", 0), "w")’
# 48| filename = g_build_filename (g_get_user_config_dir (), "user-share", "passwd", NULL);
# 49|
# 50|-> file = fopen (filename, "w");
# 51| if (file != NULL) {
# 52| fwrite (line, strlen (line), 1, file);
Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/sharing/file-share-properties.c:50:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_build_filename(g_get_user_config_dir(), "user-share", "passwd", 0), "w")’
# 48| filename = g_build_filename (g_get_user_config_dir (), "user-share", "passwd", NULL);
# 49|
# 50|-> file = fopen (filename, "w");
# 51| if (file != NULL) {
# 52| fwrite (line, strlen (line), 1, file);
Error: GCC_ANALYZER_WARNING (CWE-775): [#def117]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/sharing/file-share-properties.c:52:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_build_filename(g_get_user_config_dir(), "user-share", "passwd", 0), "w")’
# 50| file = fopen (filename, "w");
# 51| if (file != NULL) {
# 52|-> fwrite (line, strlen (line), 1, file);
# 53| fclose (file);
# 54| }
Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/sharing/file-share-properties.c:52:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_build_filename(g_get_user_config_dir(), "user-share", "passwd", 0), "w")’
# 50| file = fopen (filename, "w");
# 51| if (file != NULL) {
# 52|-> fwrite (line, strlen (line), 1, file);
# 53| fclose (file);
# 54| }
Error: COMPILER_WARNING (CWE-9001): [#def119]
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/sound/cc-volume-slider.c:18: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/sound/cc-volume-slider.c: scope_hint: In function ‘cc_volume_slider_dispose’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/sound/cc-volume-slider.c:207:20: warning[-Wstrict-aliasing]: dereferencing type-punned pointer will break strict-aliasing rules
# 207 | g_clear_pointer ((GtkWidget **) &self->volume_scale, gtk_widget_unparent);
/usr/include/glib-2.0/glib/gmacros.h:871:47: note: in definition of macro ‘G_STATIC_ASSERT’
# 871 | #define G_STATIC_ASSERT(expr) _Static_assert (expr, "Expression evaluates to false")
# | ^~~~
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/sound/cc-volume-slider.c:207:3: note: in expansion of macro ‘g_clear_pointer’
# 207 | g_clear_pointer ((GtkWidget **) &self->volume_scale, gtk_widget_unparent);
# | ^~~~~~~~~~~~~~~
# 205| CcVolumeSlider *self = CC_VOLUME_SLIDER (object);
# 206|
# 207|-> g_clear_pointer ((GtkWidget **) &self->volume_scale, gtk_widget_unparent);
# 208| g_clear_pointer ((GtkWidget **) &self->mute_button, gtk_widget_unparent);
# 209|
Error: COMPILER_WARNING (CWE-9001): [#def120]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/sound/cc-volume-slider.c:208:20: warning[-Wstrict-aliasing]: dereferencing type-punned pointer will break strict-aliasing rules
# 208 | g_clear_pointer ((GtkWidget **) &self->mute_button, gtk_widget_unparent);
/usr/include/glib-2.0/glib/gmacros.h:871:47: note: in definition of macro ‘G_STATIC_ASSERT’
# 871 | #define G_STATIC_ASSERT(expr) _Static_assert (expr, "Expression evaluates to false")
# | ^~~~
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/sound/cc-volume-slider.c:208:3: note: in expansion of macro ‘g_clear_pointer’
# 208 | g_clear_pointer ((GtkWidget **) &self->mute_button, gtk_widget_unparent);
# | ^~~~~~~~~~~~~~~
# 206|
# 207| g_clear_pointer ((GtkWidget **) &self->volume_scale, gtk_widget_unparent);
# 208|-> g_clear_pointer ((GtkWidget **) &self->mute_button, gtk_widget_unparent);
# 209|
# 210| g_clear_object (&self->mixer_control);
Error: CPPCHECK_WARNING: [#def121]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/about/cc-system-details-window.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def122]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/cc-password-utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def123]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/cc-system-panel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def124]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/cc-datetime-page.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def125]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/cc-tz-item.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def126]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/date-endian.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def127]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c: scope_hint: In function ‘tz_load_db’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c:61:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tz_data_file_get(), "r")’
# 59| return NULL;
# 60| }
# 61|-> tzfile = fopen (tz_data_file, "r");
# 62| if (!tzfile) {
# 63| g_warning ("Could not open *%s*\n", tz_data_file);
Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c:61:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tz_data_file_get(), "r")’
# 59| return NULL;
# 60| }
# 61|-> tzfile = fopen (tz_data_file, "r");
# 62| if (!tzfile) {
# 63| g_warning ("Could not open *%s*\n", tz_data_file);
Error: GCC_ANALYZER_WARNING (CWE-775): [#def129]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c:68:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tz_data_file_get(), "r")’
/usr/include/glib-2.0/glib/gmem.h:332:57: note: in expansion of macro ‘_G_NEW’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c:67:17: note: in expansion of macro ‘g_new0’
# 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): [#def130]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c:68:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tz_data_file_get(), "r")’
/usr/include/glib-2.0/glib/gmem.h:332:57: note: in expansion of macro ‘_G_NEW’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c:67:17: note: in expansion of macro ‘g_new0’
# 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): [#def131]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c:70:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tz_data_file_get(), "r")’
/usr/include/glib-2.0/glib/gmem.h:332:57: note: in expansion of macro ‘_G_NEW’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c:67:17: note: in expansion of macro ‘g_new0’
# 68| tz_db->locations = g_ptr_array_new ();
# 69|
# 70|-> while (fgets (buf, sizeof(buf), tzfile))
# 71| {
# 72| g_auto(GStrv) tmpstrarr = NULL;
Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c:70:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tz_data_file_get(), "r")’
/usr/include/glib-2.0/glib/gmem.h:332:57: note: in expansion of macro ‘_G_NEW’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c:67:17: note: in expansion of macro ‘g_new0’
# 68| tz_db->locations = g_ptr_array_new ();
# 69|
# 70|-> while (fgets (buf, sizeof(buf), tzfile))
# 71| {
# 72| g_auto(GStrv) tmpstrarr = NULL;
Error: GCC_ANALYZER_WARNING (CWE-775): [#def133]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c:78:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tz_data_file_get(), "r")’
/usr/include/glib-2.0/glib/gmem.h:332:57: note: in expansion of macro ‘_G_NEW’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c:67:17: note: in expansion of macro ‘g_new0’
# 76| TzLocation *loc;
# 77|
# 78|-> if (*buf == '#') continue;
# 79|
# 80| g_strchomp(buf);
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c:78:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tz_data_file_get(), "r")’
/usr/include/glib-2.0/glib/gmem.h:332:57: note: in expansion of macro ‘_G_NEW’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c:67:17: note: in expansion of macro ‘g_new0’
# 76| TzLocation *loc;
# 77|
# 78|-> if (*buf == '#') continue;
# 79|
# 80| g_strchomp(buf);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def135]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c: scope_hint: In function ‘tz_location_get_base_utc_offset’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c:215:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/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-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c:235: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-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c:235:9: note: in expansion of macro ‘g_return_val_if_fail’
# 213|
# 214| tz_info = tz_info_from_location (loc);
# 215|-> offset = tz_info->utc_offset + (tz_info->daylight ? -3600 : 0);
# 216|
# 217| for (i = 0; i < G_N_ELEMENTS (base_offset_overrides); i++) {
Error: CLANG_WARNING: [#def136]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/datetime/tz.c:485:11: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 483|
# 484| /* We don't need more than one name for it */
# 485|-> if (g_str_equal (real, "Etc/UTC") ||
# 486| g_str_equal (real, "Etc/UCT"))
# 487| real = "Etc/GMT";
Error: GCC_ANALYZER_WARNING (CWE-775): [#def137]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/remote-desktop/cc-remote-session-page.c: scope_hint: In function ‘on_tls_certificate_generated’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/remote-desktop/cc-remote-session-page.c:274:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(g_build_filename(*(CcRemoteSessionPage *)user_data.temp_cert_dir, "rdp-tls.crt", 0), 0)’
# 272| fd_list = g_unix_fd_list_new ();
# 273|
# 274|-> certificate_fd = open (certificate_path, O_RDONLY);
# 275| key_fd = open (key_path, O_RDONLY);
# 276|
Error: GCC_ANALYZER_WARNING (CWE-775): [#def138]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/remote-desktop/cc-remote-session-page.c:275:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(g_build_filename(*(CcRemoteSessionPage *)user_data.temp_cert_dir, "rdp-tls.key", 0), 0)’
# 273|
# 274| certificate_fd = open (certificate_path, O_RDONLY);
# 275|-> key_fd = open (key_path, O_RDONLY);
# 276|
# 277| if (certificate_fd != -1 && key_fd != -1)
Error: CPPCHECK_WARNING: [#def139]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/remote-desktop/cc-systemd-service.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def140]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/remote-desktop/cc-systemd-service.c:216:3: warning[deadcode.DeadStores]: Value stored to 'disable_result' is never read
# 214| }
# 215|
# 216|-> disable_result = g_dbus_connection_call_sync (connection,
# 217| "org.freedesktop.systemd1",
# 218| "/org/freedesktop/systemd1",
Error: CPPCHECK_WARNING: [#def141]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/remote-desktop/cc-tls-certificate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def142]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/remote-desktop/cc-tls-certificate.c:150:3: warning[deadcode.DeadStores]: Value stored to 'certptr' is never read
# 148|
# 149| HANDLE_FAILURE (gnutls_x509_crt_init (&cert));
# 150|-> certptr = &cert;
# 151| HANDLE_FAILURE (gnutls_x509_crt_set_version (cert, 3));
# 152| HANDLE_FAILURE (gnutls_x509_crt_set_activation_time (cert, time (NULL)));
Error: CLANG_WARNING: [#def143]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/remote-desktop/cc-tls-certificate.c:159:3: warning[deadcode.DeadStores]: Value stored to 'privkeyptr' is never read
# 157| HANDLE_FAILURE (gnutls_x509_crt_set_expiration_time (cert, time (NULL) + DEFAULT_EXPIRATION));
# 158| HANDLE_FAILURE (gnutls_x509_privkey_init (&privkey));
# 159|-> privkeyptr = &privkey;
# 160| HANDLE_FAILURE (gnutls_x509_privkey_generate (privkey, GNUTLS_PK_RSA, DEFAULT_KEY_SIZE, 0));
# 161| HANDLE_FAILURE (gnutls_x509_crt_set_key (cert, privkey));
Error: CLANG_WARNING: [#def144]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/remote-login/cc-remote-login.c:131:7: warning[unix.Malloc]: Potential leak of memory pointed to by 'callback_data'
# 129| else
# 130| {
# 131|-> g_warning ("Cannot create '%s' permission: %s",
# 132| "org.gnome.controlcenter.remote-login-helper",
# 133| error->message);
Error: CPPCHECK_WARNING: [#def145]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/remote-login/cc-systemd-service.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def146]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/remote-login/cc-systemd-service.c:216:3: warning[deadcode.DeadStores]: Value stored to 'disable_result' is never read
# 214| }
# 215|
# 216|-> disable_result = g_dbus_connection_call_sync (connection,
# 217| "org.freedesktop.systemd1",
# 218| "/org/freedesktop/systemd1",
Error: CPPCHECK_WARNING: [#def147]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-add-user-dialog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def148]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-avatar-chooser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def149]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-enterprise-login-dialog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def150]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-enterprise-login-dialog.c:290:7: warning[deadcode.DeadStores]: Value stored to 'message' is never read
# 288| g_message ("Authenticating as admin is not supported by the realm");
# 289|
# 290|-> message = _("No supported way to authenticate with this domain");
# 291| }
# 292|
Error: CLANG_WARNING: [#def151]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-enterprise-login-dialog.c:376:7: warning[deadcode.DeadStores]: Value stored to 'kerberos' is never read
# 374| const gchar *name;
# 375|
# 376|-> kerberos = cc_realm_object_get_kerberos (self->selected_realm);
# 377| membership = cc_realm_object_get_kerberos_membership (self->selected_realm);
# 378| name = cc_realm_kerberos_membership_get_suggested_administrator (membership);
Error: CPPCHECK_WARNING: [#def152]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-fingerprint-dialog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def153]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-fingerprint-dialog.c: scope_hint: In function ‘fingerprint_menu_button’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-fingerprint-dialog.c:398:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘button’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-fingerprint-dialog.c:23: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-fingerprint-dialog.c:339:3: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-fingerprint-dialog.c:339:3: note: in expansion of macro ‘g_return_val_if_fail’
# 396| gtk_flow_box_child_set_child (GTK_FLOW_BOX_CHILD (flowbox_child), box);
# 397|
# 398|-> g_object_set_data (G_OBJECT (flowbox_child), "button", button);
# 399| g_object_set_data (G_OBJECT (flowbox_child), "icon",
# 400| GTK_IMAGE (gtk_menu_button_get_child (GTK_MENU_BUTTON (button))));
Error: CLANG_WARNING: [#def154]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-fingerprint-dialog.c:495:3: warning[deadcode.DeadStores]: Value stored to 'state_remover' is never read
# 493| return;
# 494|
# 495|-> state_remover = auto_state_remover (self, DIALOG_STATE_DEVICE_PRINTS_LISTING);
# 496|
# 497| gtk_widget_set_sensitive (GTK_WIDGET (self->add_print_icon), TRUE);
Error: CLANG_WARNING: [#def155]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-fingerprint-dialog.c:497:3: warning[unix.Malloc]: Potential leak of memory pointed to by 'state_remover'
# 495| state_remover = auto_state_remover (self, DIALOG_STATE_DEVICE_PRINTS_LISTING);
# 496|
# 497|-> gtk_widget_set_sensitive (GTK_WIDGET (self->add_print_icon), TRUE);
# 498|
# 499| if (self->dialog_state & DIALOG_STATE_DEVICE_CLAIMED)
Error: CLANG_WARNING: [#def156]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-fingerprint-dialog.c:807:3: warning[deadcode.DeadStores]: Value stored to 'state_remover' is never read
# 805| return;
# 806|
# 807|-> state_remover = auto_state_remover (self, DIALOG_STATE_DEVICE_ENROLL_STARTING);
# 808|
# 809| if (error)
Error: CLANG_WARNING: [#def157]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-fingerprint-dialog.c:811:40: warning[unix.Malloc]: Potential leak of memory pointed to by 'state_remover'
# 809| if (error)
# 810| {
# 811|-> g_autofree char *error_message = NULL;
# 812|
# 813| remove_dialog_state (self, DIALOG_STATE_DEVICE_ENROLLING);
Error: CLANG_WARNING: [#def158]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-fingerprint-dialog.c:845:3: warning[deadcode.DeadStores]: Value stored to 'state_remover' is never read
# 843| return;
# 844|
# 845|-> state_remover = auto_state_remover (self, DIALOG_STATE_DEVICE_ENROLLING |
# 846| DIALOG_STATE_DEVICE_ENROLL_STOPPING);
# 847| gtk_widget_set_sensitive (self->enrollment_view, TRUE);
Error: CLANG_WARNING: [#def159]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-fingerprint-dialog.c:847:3: warning[unix.Malloc]: Potential leak of memory pointed to by 'state_remover'
# 845| state_remover = auto_state_remover (self, DIALOG_STATE_DEVICE_ENROLLING |
# 846| DIALOG_STATE_DEVICE_ENROLL_STOPPING);
# 847|-> gtk_widget_set_sensitive (self->enrollment_view, TRUE);
# 848| gtk_stack_set_visible_child (self->stack, self->prints_manager);
# 849|
Error: CLANG_WARNING: [#def160]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-fingerprint-dialog.c:1162:3: warning[deadcode.DeadStores]: Value stored to 'state_remover' is never read
# 1160| return;
# 1161|
# 1162|-> state_remover = auto_state_remover (self, DIALOG_STATE_DEVICE_CLAIMING);
# 1163|
# 1164| if (error)
Error: CLANG_WARNING: [#def161]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-fingerprint-dialog.c:1182:8: warning[unix.Malloc]: Potential leak of memory pointed to by 'state_remover'
# 1180| }
# 1181|
# 1182|-> if (!add_dialog_state (self, DIALOG_STATE_DEVICE_CLAIMED))
# 1183| return;
# 1184|
Error: CLANG_WARNING: [#def162]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-fingerprint-dialog.c:1316:3: warning[deadcode.DeadStores]: Value stored to 'state_remover' is never read
# 1314| return;
# 1315|
# 1316|-> state_remover = auto_state_remover (self, DIALOG_STATE_DEVICES_LISTING);
# 1317|
# 1318| if (fprintd_devices == NULL)
Error: CLANG_WARNING: [#def163]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-fingerprint-dialog.c:1332:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'state_remover'
# 1330| gtk_stack_set_visible_child (self->stack, GTK_WIDGET (self->no_devices_found));
# 1331| }
# 1332|-> else if (fprintd_devices->next == NULL)
# 1333| {
# 1334| /* We have just one device... Skip devices selection */
Error: CPPCHECK_WARNING: [#def164]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-realm-manager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def165]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-users-page.c:219: warning[uninitvar]: Uninitialized variable: n_users
# 217| /* Increase the user count for all accounts except for "system" accounts, such
# 218| * as "root" or "nobody". */
# 219|-> n_users++;
# 220| if (act_user_get_uid (user) == getuid ()) {
# 221| cc_user_page_set_user (self->current_user_page, user, self->permission);
Error: CLANG_WARNING: [#def166]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/cc-users-page.c:219:9: warning[core.uninitialized.Assign]: The expression is an uninitialized value. The computed value will also be garbage
# 217| /* Increase the user count for all accounts except for "system" accounts, such
# 218| * as "root" or "nobody". */
# 219|-> n_users++;
# 220| if (act_user_get_uid (user) == getuid ()) {
# 221| cc_user_page_set_user (self->current_user_page, user, self->permission);
Error: CLANG_WARNING: [#def167]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/system/users/run-passwd.c:540:41: warning[deadcode.DeadStores]: Value stored to 'pw' is never read
# 538| /* since passwd didn't ask for our old password
# 539| * in this case, simply remove it from the queue */
# 540|-> pw = g_queue_pop_head (passwd_handler->backend_stdin_queue);
# 541|
# 542| /* Pop the IO queue, i.e. send new password */
Error: CPPCHECK_WARNING: [#def168]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/universal-access/cc-ua-zoom-page.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def169]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/wacom/calibrator/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def170]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/wacom/calibrator/main.c: scope_hint: In function ‘CalibratorXorgPrint’
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/wacom/calibrator/main.c:177:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘c’
# 175| {
# 176| struct Calib* c = (struct Calib*)calloc(1, sizeof(struct Calib));
# 177|-> c->threshold_misclick = thr_misclick;
# 178| c->threshold_doubleclick = thr_doubleclick;
# 179|
Error: CLANG_WARNING: [#def171]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/wacom/calibrator/main.c:383:3: warning[deadcode.DeadStores]: Value stored to 'success' is never read
# 381| {
# 382| cc_calib_area_get_axis (area, &axis, &swap_xy);
# 383|-> success = finish_data (axis, swap_xy);
# 384| }
# 385| else
Error: CPPCHECK_WARNING: [#def172]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/wacom/cc-tablet-tool-map.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def173]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/wacom/cc-wacom-ekr-page.c:54:2: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 52| g_autoptr(GVariant) result = NULL;
# 53|
# 54|-> result = g_dbus_proxy_call_finish (G_DBUS_PROXY (source_object), res, &error);
# 55|
# 56| if (error && !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
Error: CPPCHECK_WARNING: [#def174]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/wacom/cc-wacom-page.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def175]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/wacom/cc-wacom-panel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def176]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/wacom/gsd-wacom-key-shortcut-button.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def177]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/wwan/cc-wwan-data.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def178]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/wwan/cc-wwan-device-page.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def179]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/wwan/cc-wwan-device-page.c:254:16: warning[deadcode.DeadStores]: Value stored to 'pin' during its initialization is never read
# 252| GcrPrompt *prompt;
# 253| const gchar *password, *warning;
# 254|-> const gchar *pin = "";
# 255| const gchar *puk = "";
# 256| MMModemLock lock;
Error: CPPCHECK_WARNING: [#def180]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/wwan/cc-wwan-device.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def181]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/wwan/cc-wwan-network-dialog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def182]
gnome-control-center-46.2-build/gnome-control-center-46.2/panels/wwan/cc-wwan-panel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def183]
gnome-control-center-46.2-build/gnome-control-center-46.2/redhat-linux-build/panels/sharing/org.gnome.SettingsDaemon.Sharing.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def184]
gnome-control-center-46.2-build/gnome-control-center-46.2/redhat-linux-build/panels/system/datetime/timedated.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def185]
gnome-control-center-46.2-build/gnome-control-center-46.2/redhat-linux-build/panels/system/org.gnome.SettingsDaemon.Sharing.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def186]
gnome-control-center-46.2-build/gnome-control-center-46.2/redhat-linux-build/panels/system/remote-desktop/org.gnome.RemoteDesktop.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def187]
gnome-control-center-46.2-build/gnome-control-center-46.2/redhat-linux-build/panels/system/users/cc-fprintd-generated.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def188]
gnome-control-center-46.2-build/gnome-control-center-46.2/redhat-linux-build/panels/system/users/cc-realm-generated.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def189]
gnome-control-center-46.2-build/gnome-control-center-46.2/redhat-linux-build/search-provider/cc-shell-search-provider-generated.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def190]
gnome-control-center-46.2-build/gnome-control-center-46.2/shell/cc-application.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def191]
gnome-control-center-46.2-build/gnome-control-center-46.2/shell/cc-application.c:185:10: warning[unix.Malloc]: Potential leak of memory pointed to by 'desktops'
# 183| }
# 184|
# 185|-> return FALSE;
# 186| }
# 187|
Error: CPPCHECK_WARNING: [#def192]
gnome-control-center-46.2-build/gnome-control-center-46.2/shell/cc-log.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def193]
gnome-control-center-46.2-build/gnome-control-center-46.2/shell/cc-object-storage.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def194]
gnome-control-center-46.2-build/gnome-control-center-46.2/shell/cc-panel-list.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def195]
gnome-control-center-46.2-build/gnome-control-center-46.2/shell/cc-panel-list.c:1081:45: warning[deadcode.DeadStores]: Although the value stored to 'visibility' is used in the enclosing expression, the value is never actually read from 'visibility'
# 1079|
# 1080| gtk_widget_set_visible (data->row, visibility == CC_PANEL_VISIBLE);
# 1081|-> gtk_widget_set_visible (search_data->row, visibility =! CC_PANEL_HIDDEN);
# 1082| }
# 1083|
Error: CPPCHECK_WARNING: [#def196]
gnome-control-center-46.2-build/gnome-control-center-46.2/shell/cc-panel-loader.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def197]
gnome-control-center-46.2-build/gnome-control-center-46.2/shell/cc-window.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def198]
gnome-control-center-46.2-build/gnome-control-center-46.2/subprojects/gvc/gvc-mixer-control.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def199]
gnome-control-center-46.2-build/gnome-control-center-46.2/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): [#def200]
gnome-control-center-46.2-build/gnome-control-center-46.2/subprojects/gvc/gvc-mixer-ui-device.c: scope_hint: In function ‘get_profile_canonical_name’
gnome-control-center-46.2-build/gnome-control-center-46.2/subprojects/gvc/gvc-mixer-ui-device.c:317: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-control-center-46.2-build/gnome-control-center-46.2/subprojects/gvc/gvc-mixer-ui-device.h:22: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/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-control-center-46.2-build/gnome-control-center-46.2/subprojects/gvc/gvc-mixer-ui-device.c:480: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-control-center-46.2-build/gnome-control-center-46.2/subprojects/gvc/gvc-mixer-ui-device.h:30:47: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
gnome-control-center-46.2-build/gnome-control-center-46.2/subprojects/gvc/gvc-mixer-ui-device.c:480: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-control-center-46.2-build/gnome-control-center-46.2/subprojects/gvc/gvc-mixer-ui-device.c:480: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-control-center-46.2-build/gnome-control-center-46.2/subprojects/gvc/gvc-mixer-ui-device.h:30:47: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
gnome-control-center-46.2-build/gnome-control-center-46.2/subprojects/gvc/gvc-mixer-ui-device.c:480: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-control-center-46.2-build/gnome-control-center-46.2/subprojects/gvc/gvc-mixer-ui-device.c:481: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-control-center-46.2-build/gnome-control-center-46.2/subprojects/gvc/gvc-mixer-ui-device.c:318:24: note: in expansion of macro ‘g_strdup’
gnome-control-center-46.2-build/gnome-control-center-46.2/subprojects/gvc/gvc-mixer-ui-device.c: scope_hint: In function ‘get_profile_canonical_name’
gnome-control-center-46.2-build/gnome-control-center-46.2/subprojects/gvc/gvc-mixer-ui-device.c:318:24: note: in expansion of macro ‘g_strdup’
gnome-control-center-46.2-build/gnome-control-center-46.2/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
# 315|
# 316| /* optimisation for the simple case. */
# 317|-> if (strstr (profile_name, skip_prefix) == NULL)
# 318| return g_strdup (profile_name);
# 319|
Error: CPPCHECK_WARNING: [#def201]
gnome-control-center-46.2-build/gnome-control-center-46.2/tests/network/nm-utils/nm-test-utils-impl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def202]
gnome-control-center-46.2-build/gnome-control-center-46.2/tests/network/test-network-panel.c:39: included_from: Included from here.
gnome-control-center-46.2-build/gnome-control-center-46.2/tests/network/nmtst-helpers.h:39:10: warning[deadcode.DeadStores]: Although the value stored to 'uuid_free' is used in the enclosing expression, the value is never actually read from 'uuid_free'
# 37| g_assert (nm_utils_is_uuid (uuid));
# 38| else
# 39|-> uuid = uuid_free = nm_utils_uuid_generate ();
# 40|
# 41| if (type) {
Error: CPPCHECK_WARNING: [#def203]
gnome-control-center-46.2-build/gnome-control-center-46.2/tests/network/test-network-panel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def204]
gnome-control-center-46.2-build/gnome-control-center-46.2/tests/network/test-wifi-text.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def205]
gnome-control-center-46.2-build/gnome-control-center-46.2/tests/printers/test-shift.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
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-55.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | gnome-control-center-46.2-1.fc41 |
store-results-to | /tmp/tmpcgnsv3qp/gnome-control-center-46.2-1.fc41.tar.xz |
time-created | 2024-07-03 12:59:40 |
time-finished | 2024-07-03 13:09:33 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpcgnsv3qp/gnome-control-center-46.2-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpcgnsv3qp/gnome-control-center-46.2-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |