gnome-control-center-49.2.2-1.fc44

List of Findings

Error: COMPILER_WARNING (CWE-704): [#def1]
gnome-control-center-49.2.2/panels/applications/cc-applications-panel.c: scope_hint: In function ‘add_scheme’
gnome-control-center-49.2.2/panels/applications/cc-applications-panel.c:1080:10: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1080 |   scheme = strrchr (type, '/') + 1;
#      |          ^
# 1078|     gchar *scheme;
# 1079|   
# 1080|->   scheme = strrchr (type, '/') + 1;
# 1081|     title = g_strdup_printf ("%s://", scheme);
# 1082|   

Error: COMPILER_WARNING (CWE-704): [#def2]
gnome-control-center-49.2.2/panels/applications/cc-applications-panel.c:1080:10: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1078|     gchar *scheme;
# 1079|   
# 1080|->   scheme = strrchr (type, '/') + 1;
# 1081|     title = g_strdup_printf ("%s://", scheme);
# 1082|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def3]
gnome-control-center-49.2.2/panels/applications/cc-snapd-client.h:28:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘client’
gnome-control-center-49.2.2/panels/applications/cc-applications-panel.c:740:1: enter_function: entry to ‘add_snap_permissions’
gnome-control-center-49.2.2/panels/applications/cc-applications-panel.c:752:6: branch_false: following ‘false’ branch (when ‘__result != 0’)...
gnome-control-center-49.2.2/panels/applications/cc-applications-panel.c:754:3: branch_false: ...to here
gnome-control-center-49.2.2/panels/applications/cc-applications-panel.c:746:24: call_function: inlined call to ‘glib_autoptr_cleanup_JsonArray’ from ‘add_snap_permissions’
gnome-control-center-49.2.2/panels/applications/cc-applications-panel.c:745:28: call_function: inlined call to ‘glib_autoptr_cleanup_CcSnapdClient’ from ‘add_snap_permissions’
#   26|   
#   27|   #define CC_TYPE_SNAPD_CLIENT (cc_snapd_client_get_type())
#   28|-> G_DECLARE_FINAL_TYPE (CcSnapdClient, cc_snapd_client, CC, SNAPD_CLIENT, GObject)
#   29|   
#   30|   // Creates a client to contact snapd.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def4]
gnome-control-center-49.2.2/panels/applications/utils.c:254:12: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gnome-control-center-49.2.2/panels/applications/utils.c:253:6: branch_true: following ‘true’ branch (when ‘__result != 0’)...
gnome-control-center-49.2.2/panels/applications/utils.c:254:12: branch_true: ...to here
gnome-control-center-49.2.2/panels/applications/utils.c:254:12: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#  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: GCC_ANALYZER_WARNING (CWE-457): [#def5]
gnome-control-center-49.2.2/panels/background/cc-background-item.h:31:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘item’
gnome-control-center-49.2.2/panels/background/bg-recent-source.c:66:1: enter_function: entry to ‘add_file_from_info’
gnome-control-center-49.2.2/panels/background/bg-recent-source.c:81:6: branch_false: following ‘false’ branch...
gnome-control-center-49.2.2/panels/background/bg-recent-source.c:72:21: call_function: calling ‘g_autoptr_cleanup_generic_gfree’ from ‘add_file_from_info’
gnome-control-center-49.2.2/panels/background/bg-recent-source.c:71:21: call_function: calling ‘g_autoptr_cleanup_generic_gfree’ from ‘add_file_from_info’
gnome-control-center-49.2.2/panels/background/bg-recent-source.c:70:31: call_function: inlined call to ‘glib_autoptr_cleanup_CcBackgroundItem’ from ‘add_file_from_info’
#   29|   
#   30|   #define CC_TYPE_BACKGROUND_ITEM (cc_background_item_get_type ())
#   31|-> G_DECLARE_FINAL_TYPE (CcBackgroundItem, cc_background_item, CC, BACKGROUND_ITEM, GObject)
#   32|   
#   33|   typedef enum {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def6]
gnome-control-center-49.2.2/panels/background/cc-background-item.h:31:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tmp’
gnome-control-center-49.2.2/panels/background/bg-recent-source.c:110:3: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/background/bg-recent-source.c:111:3: branch_true: ...to here
gnome-control-center-49.2.2/panels/background/bg-recent-source.c:111:3: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/background/bg-recent-source.c:113:9: branch_true: ...to here
gnome-control-center-49.2.2/panels/background/bg-recent-source.c:118:15: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/background/bg-recent-source.c:122:13: branch_true: ...to here
gnome-control-center-49.2.2/panels/background/bg-recent-source.c:122:13: throw: if ‘g_list_model_get_item’ throws an exception...
gnome-control-center-49.2.2/panels/background/bg-recent-source.c:120:35: call_function: inlined call to ‘glib_autoptr_cleanup_CcBackgroundItem’ from ‘remove_item’
#   29|   
#   30|   #define CC_TYPE_BACKGROUND_ITEM (cc_background_item_get_type ())
#   31|-> G_DECLARE_FINAL_TYPE (CcBackgroundItem, cc_background_item, CC, BACKGROUND_ITEM, GObject)
#   32|   
#   33|   typedef enum {

Error: COMPILER_WARNING (CWE-457): [#def7]
gnome-control-center-49.2.2/panels/common/cc-number-row.c: scope_hint: In function ‘number_row_settings_changed_cb’
gnome-control-center-49.2.2/panels/common/cc-number-row.c:688:14: warning[-Wmaybe-uninitialized]: ‘value’ may be used uninitialized
#  688 |         if (!cc_number_row_has_value (self, value, &position))
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gnome-control-center-49.2.2/panels/common/cc-number-row.c:664:9: note: ‘value’ was declared here
#  664 |     int value;
#      |         ^~~~~
#  686|       g_signal_handler_block (self, self->number_row_selected_changed_id);
#  687|       if (position != GTK_INVALID_LIST_POSITION)
#  688|->         if (!cc_number_row_has_value (self, value, &position))
#  689|               position = cc_number_row_add_value (self, value);
#  690|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def8]
gnome-control-center-49.2.2/panels/common/hostname-helper.c:222:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
gnome-control-center-49.2.2/panels/common/hostname-helper.c:209:1: enter_function: entry to ‘pretty_hostname_to_ssid’
gnome-control-center-49.2.2/panels/common/hostname-helper.c:222:17: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#  220|   		/* translators: This is the default hotspot name, need to be less than 32-bytes */
#  221|   		gchar *ret = g_strdup (C_("hotspot", "Hotspot"));
#  222|-> 		g_assert (strlen (ret) <= SSID_MAX_LEN);
#  223|   		return ret;
#  224|   	}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def9]
gnome-control-center-49.2.2/panels/display/cc-display-config.h:92:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘clone_modes’
gnome-control-center-49.2.2/panels/display/cc-display-settings.c:1064:1: enter_function: entry to ‘cc_display_settings_set_has_accelerometer’
gnome-control-center-49.2.2/panels/display/cc-display-settings.c:1069:3: call_function: calling ‘cc_display_settings_rebuild_ui’ from ‘cc_display_settings_set_has_accelerometer’
#   90|   
#   91|   #define CC_TYPE_DISPLAY_MODE (cc_display_mode_get_type ())
#   92|-> G_DECLARE_FINAL_TYPE (CcDisplayMode, cc_display_mode,
#   93|                         CC, DISPLAY_MODE, GObject)
#   94|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def10]
gnome-control-center-49.2.2/panels/display/cc-display-config.h:92:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘m’
gnome-control-center-49.2.2/panels/display/cc-display-settings.c:1064:1: enter_function: entry to ‘cc_display_settings_set_has_accelerometer’
gnome-control-center-49.2.2/panels/display/cc-display-settings.c:1069:3: call_function: calling ‘cc_display_settings_rebuild_ui’ from ‘cc_display_settings_set_has_accelerometer’
#   90|   
#   91|   #define CC_TYPE_DISPLAY_MODE (cc_display_mode_get_type ())
#   92|-> G_DECLARE_FINAL_TYPE (CcDisplayMode, cc_display_mode,
#   93|                         CC, DISPLAY_MODE, GObject)
#   94|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def11]
gnome-control-center-49.2.2/panels/display/cc-display-config.h:104:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘config’
gnome-control-center-49.2.2/panels/wacom/cc-wacom-page.c:235:19: throw: if ‘gdk_display_get_default’ throws an exception...
gnome-control-center-49.2.2/panels/wacom/cc-wacom-page.c:229:37: call_function: inlined call to ‘glib_autoptr_cleanup_CcDisplayConfig’ from ‘calibrate’
#  102|   
#  103|   #define CC_TYPE_DISPLAY_CONFIG (cc_display_config_get_type ())
#  104|-> G_DECLARE_FINAL_TYPE (CcDisplayConfig, cc_display_config,
#  105|                         CC, DISPLAY_CONFIG, GObject)
#  106|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def12]
gnome-control-center-49.2.2/panels/keyboard/cc-input-source.h:26:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘source’
gnome-control-center-49.2.2/panels/keyboard/cc-input-list-box.c:689:1: enter_function: entry to ‘cc_input_list_box_init’
gnome-control-center-49.2.2/panels/keyboard/cc-input-list-box.c:720:3: call_function: calling ‘add_input_sources_from_settings’ from ‘cc_input_list_box_init’
#   24|   
#   25|   #define CC_TYPE_INPUT_SOURCE (cc_input_source_get_type ())
#   26|-> G_DECLARE_DERIVABLE_TYPE (CcInputSource, cc_input_source, CC, INPUT_SOURCE, GObject)
#   27|   
#   28|   struct _CcInputSourceClass

Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
gnome-control-center-49.2.2/panels/keyboard/cc-keyboard-item.c:555:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘str’
gnome-control-center-49.2.2/panels/keyboard/cc-keyboard-item.c:1105:6: enter_function: entry to ‘cc_keyboard_item_disable’
gnome-control-center-49.2.2/panels/keyboard/cc-keyboard-item.c:1107:6: branch_false: following ‘false’ branch...
gnome-control-center-49.2.2/panels/keyboard/cc-keyboard-item.c:1115:8: branch_false: ...to here
gnome-control-center-49.2.2/panels/keyboard/cc-keyboard-item.c:1128:3: call_function: calling ‘binding_changed’ from ‘cc_keyboard_item_disable’
#  553|     char **str;
#  554|   
#  555|->   for (str = original_bindings; *str && !needs_translation; str++)
#  556|       needs_translation = strstr (*str, "Above_Tab") != NULL;
#  557|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def14]
gnome-control-center-49.2.2/panels/keyboard/cc-keyboard-item.h:28:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘item’
gnome-control-center-49.2.2/panels/keyboard/cc-keyboard-shortcut-group.c:113:3: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/keyboard/cc-keyboard-shortcut-group.c:115:7: branch_true: ...to here
gnome-control-center-49.2.2/panels/keyboard/cc-keyboard-shortcut-group.c:115:6: branch_false: following ‘false’ branch...
gnome-control-center-49.2.2/panels/keyboard/cc-keyboard-shortcut-group.c:118:13: branch_false: ...to here
gnome-control-center-49.2.2/panels/keyboard/cc-keyboard-shortcut-group.c:120:21: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/keyboard/cc-keyboard-shortcut-group.c:124:14: branch_true: ...to here
gnome-control-center-49.2.2/panels/keyboard/cc-keyboard-shortcut-group.c:124:14: throw: if ‘g_list_model_get_item’ throws an exception...
gnome-control-center-49.2.2/panels/keyboard/cc-keyboard-shortcut-group.c:122:33: call_function: inlined call to ‘glib_autoptr_cleanup_CcKeyboardItem’ from ‘shortcut_group_update_modified_text’
#   26|   
#   27|   #define CC_TYPE_KEYBOARD_ITEM (cc_keyboard_item_get_type ())
#   28|-> G_DECLARE_FINAL_TYPE (CcKeyboardItem, cc_keyboard_item, CC, KEYBOARD_ITEM, GObject)
#   29|   
#   30|   typedef enum

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
gnome-control-center-49.2.2/panels/keyboard/cc-xkb-modifier-page.c:112:69: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gnome-control-center-49.2.2/panels/keyboard/cc-xkb-modifier-page.c:179:1: enter_function: entry to ‘on_xkb_options_changed_cb’
gnome-control-center-49.2.2/panels/keyboard/cc-xkb-modifier-page.c:181:6: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/keyboard/cc-xkb-modifier-page.c:182:5: branch_true: ...to here
gnome-control-center-49.2.2/panels/keyboard/cc-xkb-modifier-page.c:182:5: call_function: calling ‘update_active_radio’ from ‘on_xkb_options_changed_cb’
#  110|       {
#  111|         default_option = get_xkb_option_from_name(self->modifier, self->modifier->default_option);
#  112|->       rightalt_radio = get_radio_button_from_xkb_option_name (self, default_option->xkb_option);
#  113|         gtk_check_button_set_active (GTK_CHECK_BUTTON (rightalt_radio), TRUE);
#  114|         adw_switch_row_set_active (self->switch_row, TRUE);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def16]
gnome-control-center-49.2.2/panels/network/cc-qr-code.h:35:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘qr_code’
gnome-control-center-49.2.2/panels/network/cc-qr-code-dialog.c:85:1: enter_function: entry to ‘cc_qr_code_dialog_constructed’
gnome-control-center-49.2.2/panels/network/cc-qr-code-dialog.c:110:10: branch_false: following ‘false’ branch...
gnome-control-center-49.2.2/panels/network/cc-qr-code-dialog.c:128:13: branch_false: ...to here
gnome-control-center-49.2.2/panels/network/cc-qr-code-dialog.c:88:24: call_function: inlined call to ‘glib_autoptr_cleanup_GVariant’ from ‘cc_qr_code_dialog_constructed’
gnome-control-center-49.2.2/panels/network/cc-qr-code-dialog.c:87:24: call_function: inlined call to ‘glib_autoptr_cleanup_CcQrCode’ from ‘cc_qr_code_dialog_constructed’
#   33|   
#   34|   #define CC_TYPE_QR_CODE (cc_qr_code_get_type ())
#   35|-> G_DECLARE_FINAL_TYPE (CcQrCode, cc_qr_code, CC, QR_CODE, GObject)
#   36|   
#   37|   CcQrCode     *cc_qr_code_new         (void);

Error: COMPILER_WARNING (CWE-704): [#def17]
gnome-control-center-49.2.2/panels/network/cc-wifi-connection-row.c: scope_hint: In function ‘update_ui’
gnome-control-center-49.2.2/panels/network/cc-wifi-connection-row.c:207:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  207 |       ssid_pos = strstr (name, ssid_str);
#      |                ^
#  205|         name = nm_connection_get_id (NM_CONNECTION (self->connection));
#  206|   
#  207|->       ssid_pos = strstr (name, ssid_str);
#  208|         if (ssid_pos == name && strlen (name) == strlen (ssid_str))
#  209|           {

Error: COMPILER_WARNING (CWE-704): [#def18]
gnome-control-center-49.2.2/panels/network/cc-wifi-connection-row.c:207:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  205|         name = nm_connection_get_id (NM_CONNECTION (self->connection));
#  206|   
#  207|->       ssid_pos = strstr (name, ssid_str);
#  208|         if (ssid_pos == name && strlen (name) == strlen (ssid_str))
#  209|           {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def19]
gnome-control-center-49.2.2/panels/network/connection-editor/ce-page-ethernet.c:73:13: warning[-Wanalyzer-null-argument]: use of NULL ‘buf’ where non-null expected
gnome-control-center-49.2.2/panels/network/connection-editor/ce-page-ethernet.c:60:1: enter_function: entry to ‘mtu_output_cb’
gnome-control-center-49.2.2/panels/network/connection-editor/ce-page-ethernet.c:68:12: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/network/connection-editor/ce-page-ethernet.c:69:23: branch_true: ...to here
gnome-control-center-49.2.2/panels/network/connection-editor/ce-page-ethernet.c:73:13: release_memory: ‘buf’ is NULL
gnome-control-center-49.2.2/panels/network/connection-editor/ce-page-ethernet.c:73:13: danger: argument 1 (‘buf’) NULL where non-null expected
#   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: COMPILER_WARNING (CWE-704): [#def20]
gnome-control-center-49.2.2/panels/network/connection-editor/ce-page.c: scope_hint: In function ‘ce_page_trim_address’
gnome-control-center-49.2.2/panels/network/connection-editor/ce-page.c:224:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  224 |         space = strchr (addr, ' ');
#      |               ^
#  222|                   return NULL;
#  223|   
#  224|->         space = strchr (addr, ' ');
#  225|           if (space != NULL)
#  226|                   return g_strndup (addr, space - addr);

Error: COMPILER_WARNING (CWE-704): [#def21]
gnome-control-center-49.2.2/panels/network/connection-editor/ce-page.c:224:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  222|                   return NULL;
#  223|   
#  224|->         space = strchr (addr, ' ');
#  225|           if (space != NULL)
#  226|                   return g_strndup (addr, space - addr);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
gnome-control-center-49.2.2/panels/notifications/cc-notifications-panel.c:373:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘path’
gnome-control-center-49.2.2/panels/notifications/cc-notifications-panel.c:395:1: enter_function: entry to ‘load_apps’
gnome-control-center-49.2.2/panels/notifications/cc-notifications-panel.c:401:21: branch_true: following ‘true’ branch (when ‘iter’ is non-NULL)...
gnome-control-center-49.2.2/panels/notifications/cc-notifications-panel.c:405:7: branch_true: ...to here
gnome-control-center-49.2.2/panels/notifications/cc-notifications-panel.c:406:10: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/notifications/cc-notifications-panel.c:407:13: branch_true: ...to here
gnome-control-center-49.2.2/panels/notifications/cc-notifications-panel.c:407:12: branch_false: following ‘false’ branch...
gnome-control-center-49.2.2/panels/notifications/cc-notifications-panel.c:412:9: branch_false: ...to here
gnome-control-center-49.2.2/panels/notifications/cc-notifications-panel.c:412:9: call_function: calling ‘process_app_info’ from ‘load_apps’
#  371|                 "-",
#  372|                 '-');
#  373|->   for (i = 0; app_id[i] != '\0'; i++)
#  374|       app_id[i] = g_ascii_tolower (app_id[i]);
#  375|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def23]
gnome-control-center-49.2.2/panels/notifications/cc-notifications-panel.c:461:12: warning[-Wanalyzer-null-argument]: use of NULL ‘app_id’ where non-null expected
gnome-control-center-49.2.2/panels/notifications/cc-notifications-panel.c:450:1: enter_function: entry to ‘select_app’
gnome-control-center-49.2.2/panels/notifications/cc-notifications-panel.c:460:7: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/notifications/cc-notifications-panel.c:461:12: danger: argument 1 (‘<unknown>’) NULL where non-null expected
#  459|     app_id = g_strdup (g_app_info_get_id (app->app_info));
#  460|     if (g_str_has_suffix (app_id, ".desktop"))
#  461|->     app_id[strlen (app_id) - strlen (".desktop")] = '\0';
#  462|   
#  463|     page = cc_app_notifications_page_new (app_id, g_app_info_get_name (app->app_info), app->settings, self->master_settings, self->perm_store);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def24]
gnome-control-center-49.2.2/panels/printers/pp-cups.h:30:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cups’
gnome-control-center-49.2.2/panels/printers/pp-new-printer-dialog.c:1579:1: enter_function: entry to ‘populate_devices_list’
gnome-control-center-49.2.2/panels/printers/pp-new-printer-dialog.c:1585:30: call_function: inlined call to ‘glib_autoptr_cleanup_GIcon’ from ‘populate_devices_list’
gnome-control-center-49.2.2/panels/printers/pp-new-printer-dialog.c:1584:30: call_function: inlined call to ‘glib_autoptr_cleanup_PpCups’ from ‘populate_devices_list’
#   28|   
#   29|   #define PP_TYPE_CUPS (pp_cups_get_type ())
#   30|-> G_DECLARE_FINAL_TYPE (PpCups, pp_cups, PP, CUPS, GObject)
#   31|   
#   32|   typedef struct{

Error: GCC_ANALYZER_WARNING (CWE-457): [#def25]
gnome-control-center-49.2.2/panels/printers/pp-new-printer.h:29:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘new_printer’
gnome-control-center-49.2.2/panels/printers/cc-printers-panel.c:941:6: branch_true: following ‘true’ branch (when ‘response_id == -5’)...
gnome-control-center-49.2.2/panels/printers/cc-printers-panel.c:943:21: branch_true: ...to here
gnome-control-center-49.2.2/panels/printers/cc-printers-panel.c:944:7: throw: if ‘g_object_get’ throws an exception...
gnome-control-center-49.2.2/panels/printers/cc-printers-panel.c:939:28: call_function: inlined call to ‘glib_autoptr_cleanup_PpNewPrinter’ from ‘new_printer_dialog_response_cb’
#   27|   
#   28|   #define PP_TYPE_NEW_PRINTER (pp_new_printer_get_type ())
#   29|-> G_DECLARE_FINAL_TYPE (PpNewPrinter, pp_new_printer, PP, NEW_PRINTER, GObject)
#   30|   
#   31|   PpNewPrinter *pp_new_printer_new        (void);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def26]
gnome-control-center-49.2.2/panels/printers/pp-samba.h:29:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘samba’
gnome-control-center-49.2.2/panels/printers/pp-new-printer-dialog.c:1579:1: enter_function: entry to ‘populate_devices_list’
gnome-control-center-49.2.2/panels/printers/pp-new-printer-dialog.c:1583:30: call_function: inlined call to ‘glib_autoptr_cleanup_GEmblem’ from ‘populate_devices_list’
gnome-control-center-49.2.2/panels/printers/pp-new-printer-dialog.c:1582:30: call_function: inlined call to ‘glib_autoptr_cleanup_PpSamba’ from ‘populate_devices_list’
#   27|   
#   28|   #define PP_TYPE_SAMBA (pp_samba_get_type ())
#   29|-> G_DECLARE_FINAL_TYPE (PpSamba, pp_samba, PP, SAMBA, PpHost)
#   30|   
#   31|   PpSamba       *pp_samba_new                (const gchar         *hostname);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def27]
gnome-control-center-49.2.2/panels/printers/pp-utils.c:1801:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data’
gnome-control-center-49.2.2/panels/printers/pp-utils.c:2096:1: enter_function: entry to ‘get_device_attributes_async_dbus_cb’
gnome-control-center-49.2.2/panels/printers/pp-utils.c:2107:12: throw: if ‘g_dbus_connection_call_finish’ throws an exception...
gnome-control-center-49.2.2/panels/printers/pp-utils.c:2103:23: call_function: inlined call to ‘glib_autoptr_cleanup_GError’ from ‘get_device_attributes_async_dbus_cb’
gnome-control-center-49.2.2/panels/printers/pp-utils.c:2102:23: call_function: inlined call to ‘glib_autoptr_cleanup_GDAData’ from ‘get_device_attributes_async_dbus_cb’
# 1799|   }
# 1800|   
# 1801|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDAData, gda_data_free)
# 1802|   
# 1803|   typedef struct

Error: GCC_ANALYZER_WARNING (CWE-457): [#def28]
gnome-control-center-49.2.2/panels/printers/pp-utils.c:1847:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data’
gnome-control-center-49.2.2/panels/printers/pp-utils.c:1878:1: enter_function: entry to ‘get_ppd_names_async_dbus_scb’
gnome-control-center-49.2.2/panels/printers/pp-utils.c:1897:12: throw: if ‘g_dbus_connection_call_finish’ throws an exception...
gnome-control-center-49.2.2/panels/printers/pp-utils.c:1886:23: call_function: inlined call to ‘glib_autoptr_cleanup_GError’ from ‘get_ppd_names_async_dbus_scb’
gnome-control-center-49.2.2/panels/printers/pp-utils.c:1885:23: call_function: inlined call to ‘glib_autoptr_cleanup_GPNData’ from ‘get_ppd_names_async_dbus_scb’
# 1845|   }
# 1846|   
# 1847|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC (GPNData, gpn_data_free)
# 1848|   
# 1849|   static void

Error: GCC_ANALYZER_WARNING (CWE-457): [#def29]
gnome-control-center-49.2.2/panels/printers/pp-utils.c:3190:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data’
gnome-control-center-49.2.2/panels/printers/pp-utils.c:3212:1: enter_function: entry to ‘get_cups_devices_async_dbus_cb’
gnome-control-center-49.2.2/panels/printers/pp-utils.c:3223:12: throw: if ‘g_dbus_connection_call_finish’ throws an exception...
gnome-control-center-49.2.2/panels/printers/pp-utils.c:3220:23: call_function: inlined call to ‘glib_autoptr_cleanup_GError’ from ‘get_cups_devices_async_dbus_cb’
gnome-control-center-49.2.2/panels/printers/pp-utils.c:3219:23: call_function: inlined call to ‘glib_autoptr_cleanup_GCDData’ from ‘get_cups_devices_async_dbus_cb’
# 3188|   }
# 3189|   
# 3190|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC (GCDData, gcd_data_free)
# 3191|   
# 3192|   static gint

Error: GCC_ANALYZER_WARNING (CWE-457): [#def30]
gnome-control-center-49.2.2/panels/search/cc-search-locations-page.c:176:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘place’
gnome-control-center-49.2.2/panels/search/cc-search-locations-page.c:690:1: enter_function: entry to ‘add_file_chooser_response’
gnome-control-center-49.2.2/panels/search/cc-search-locations-page.c:702:6: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/search/cc-search-locations-page.c:704:16: branch_true: ...to here
gnome-control-center-49.2.2/panels/search/cc-search-locations-page.c:698:21: call_function: inlined call to ‘glib_autoptr_cleanup_GError’ from ‘add_file_chooser_response’
gnome-control-center-49.2.2/panels/search/cc-search-locations-page.c:696:20: call_function: inlined call to ‘glib_autoptr_cleanup_Place’ from ‘add_file_chooser_response’
#  174|   }
#  175|   
#  176|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC (Place, place_free)
#  177|   
#  178|   static GList *

Error: GCC_ANALYZER_WARNING (CWE-457): [#def31]
gnome-control-center-49.2.2/panels/system/about/cc-system-details-window.c:178:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘graphics_hardware_list’
gnome-control-center-49.2.2/panels/system/about/cc-system-details-window.c:908:1: enter_function: entry to ‘cc_system_details_window_init’
gnome-control-center-49.2.2/panels/system/about/cc-system-details-window.c:912:3: call_function: calling ‘system_details_window_setup_overview’ from ‘cc_system_details_window_init’
#  176|   }
#  177|   
#  178|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC (GpuData, gpu_data_free)
#  179|   
#  180|   static int

Error: GCC_ANALYZER_WARNING (CWE-457): [#def32]
gnome-control-center-49.2.2/panels/system/datetime/cc-tz-item.h:34:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘item’
gnome-control-center-49.2.2/panels/system/datetime/cc-tz-dialog.c:124:3: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/system/datetime/cc-tz-dialog.c:126:17: branch_true: ...to here
gnome-control-center-49.2.2/panels/system/datetime/cc-tz-dialog.c:127:3: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/system/datetime/cc-tz-dialog.c:129:15: branch_true: ...to here
gnome-control-center-49.2.2/panels/system/datetime/cc-tz-dialog.c:130:3: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/system/datetime/cc-tz-dialog.c:130:3: branch_true: ...to here
gnome-control-center-49.2.2/panels/system/datetime/cc-tz-dialog.c:132:21: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/system/datetime/cc-tz-dialog.c:137:18: branch_true: ...to here
gnome-control-center-49.2.2/panels/system/datetime/cc-tz-dialog.c:138:14: throw: if ‘cc_tz_item_new’ throws an exception...
gnome-control-center-49.2.2/panels/system/datetime/cc-tz-dialog.c:134:27: call_function: inlined call to ‘glib_autoptr_cleanup_CcTzItem’ from ‘load_tz’
#   32|   
#   33|   #define CC_TYPE_TZ_ITEM (cc_tz_item_get_type ())
#   34|-> G_DECLARE_FINAL_TYPE (CcTzItem, cc_tz_item, CC, TZ_ITEM, GObject)
#   35|   
#   36|   CcTzItem   *cc_tz_item_new            (TzLocation *location);

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
gnome-control-center-49.2.2/panels/system/datetime/tz.c:78:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tz_data_file_get(), "r")’
gnome-control-center-49.2.2/panels/system/datetime/tz.c:61:18: acquire_resource: opened here
gnome-control-center-49.2.2/panels/system/datetime/tz.c:62:12: branch_false: following ‘false’ branch...
gnome-control-center-49.2.2/panels/system/datetime/tz.c:67:17: branch_false: ...to here
gnome-control-center-49.2.2/panels/system/datetime/tz.c:70:16: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/system/datetime/tz.c:73:35: branch_true: ...to here
gnome-control-center-49.2.2/panels/system/datetime/tz.c:80:17: throw: if ‘g_strchomp’ throws an exception...
gnome-control-center-49.2.2/panels/system/datetime/tz.c:78:21: danger: ‘fopen(tz_data_file_get(), "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#   76|   		TzLocation *loc;
#   77|   
#   78|-> 		if (*buf == '#') continue;
#   79|   
#   80|   		g_strchomp(buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
gnome-control-center-49.2.2/panels/system/datetime/tz.c:78:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tz_data_file_get(), "r")’
gnome-control-center-49.2.2/panels/system/datetime/tz.c:61:18: acquire_memory: allocated here
gnome-control-center-49.2.2/panels/system/datetime/tz.c:62:12: branch_false: following ‘false’ branch...
gnome-control-center-49.2.2/panels/system/datetime/tz.c:67:17: branch_false: ...to here
gnome-control-center-49.2.2/panels/system/datetime/tz.c:70:16: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/system/datetime/tz.c:73:35: branch_true: ...to here
gnome-control-center-49.2.2/panels/system/datetime/tz.c:80:17: throw: if ‘g_strchomp’ throws an exception...
gnome-control-center-49.2.2/panels/system/datetime/tz.c:78:21: danger: ‘fopen(tz_data_file_get(), "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#   76|   		TzLocation *loc;
#   77|   
#   78|-> 		if (*buf == '#') continue;
#   79|   
#   80|   		g_strchomp(buf);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
gnome-control-center-49.2.2/panels/system/datetime/tz.c:216:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  214|   
#  215|   	tz_info = tz_info_from_location (loc);
#  216|-> 	offset = tz_info->utc_offset + (tz_info->daylight ? -3600 : 0);
#  217|   
#  218|   	for (i = 0; i < G_N_ELEMENTS (base_offset_overrides); i++) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def40]
gnome-control-center-49.2.2/panels/system/datetime/tz.c:486:11: warning[-Wanalyzer-null-argument]: use of NULL ‘real’ where non-null expected
gnome-control-center-49.2.2/panels/system/datetime/tz.c:456:15: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/system/datetime/tz.c:462:11: branch_true: ...to here
gnome-control-center-49.2.2/panels/system/datetime/tz.c:482:10: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/system/datetime/tz.c:483:9: branch_true: ...to here
gnome-control-center-49.2.2/panels/system/datetime/tz.c:486:11: danger: argument 1 (‘real’) NULL where non-null expected
#  484|   
#  485|         /* We don't need more than one name for it */
#  486|->       if (g_str_equal (real, "Etc/UTC") ||
#  487|             g_str_equal (real, "Etc/UCT"))
#  488|           real = "Etc/GMT";

Error: GCC_ANALYZER_WARNING (CWE-457): [#def41]
gnome-control-center-49.2.2/panels/system/users/cc-fingerprint-dialog.c:223:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘state_remover’
gnome-control-center-49.2.2/panels/system/users/cc-fingerprint-dialog.c:1294:1: enter_function: entry to ‘on_devices_list’
gnome-control-center-49.2.2/panels/system/users/cc-fingerprint-dialog.c:1304:21: throw: if ‘cc_fingerprint_manager_get_devices_finish’ throws an exception...
gnome-control-center-49.2.2/panels/system/users/cc-fingerprint-dialog.c:1300:21: call_function: inlined call to ‘glib_autoptr_cleanup_GError’ from ‘on_devices_list’
gnome-control-center-49.2.2/panels/system/users/cc-fingerprint-dialog.c:1299:33: call_function: inlined call to ‘glib_autoptr_cleanup_DialogStateRemover’ from ‘on_devices_list’
#  221|   }
#  222|   
#  223|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC (DialogStateRemover, auto_state_remover_cleanup);
#  224|   
#  225|   static const char *

Error: GCC_ANALYZER_WARNING (CWE-457): [#def42]
gnome-control-center-49.2.2/panels/wacom/cc-wacom-device.h:31:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘device’
gnome-control-center-49.2.2/panels/wacom/cc-wacom-panel.c:593:23: throw: if ‘gsd_device_get_device_type’ throws an exception...
gnome-control-center-49.2.2/panels/wacom/cc-wacom-panel.c:586:34: call_function: inlined call to ‘glib_autoptr_cleanup_CcWacomDevice’ from ‘add_known_device’
#   29|   
#   30|   #define CC_TYPE_WACOM_DEVICE (cc_wacom_device_get_type ())
#   31|-> G_DECLARE_FINAL_TYPE (CcWacomDevice, cc_wacom_device, CC, WACOM_DEVICE, GObject)
#   32|   
#   33|   WacomDeviceDatabase *

Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
gnome-control-center-49.2.2/panels/wellbeing/cc-screen-time-statistics-row.c:873:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘model_screen_time_per_day’
gnome-control-center-49.2.2/panels/wellbeing/cc-screen-time-statistics-row.c:1205:1: enter_function: entry to ‘history_file_update_timeout_cb’
gnome-control-center-49.2.2/panels/wellbeing/cc-screen-time-statistics-row.c:1211:3: call_function: calling ‘update_model’ from ‘history_file_update_timeout_cb’
#  871|      * index. This will automatically create the indices between, and initialise
#  872|      * them to zero, which is what we want. */
#  873|->   if (diff_days >= model_screen_time_per_day->len)
#  874|       {
#  875|         const double new_val = 0.0;

Error: CPPCHECK_WARNING (CWE-457): [#def44]
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1278: error[legacyUninitvar]: Uninitialized variable: apn_name
# 1276|       }
# 1277|   
# 1278|->   return apn_name;
# 1279|   }
# 1280|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def45]
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1278:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘apn_name’
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1266:6: branch_false: following ‘false’ branch...
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1273:12: branch_false: ...to here
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1273:11: branch_false: following ‘false’ branch...
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1278:10: branch_false: ...to here
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1278:10: danger: use of uninitialized value ‘apn_name’ here
# 1276|       }
# 1277|   
# 1278|->   return apn_name;
# 1279|   }
# 1280|   

Error: COMPILER_WARNING (CWE-457): [#def46]
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c: scope_hint: In function ‘cc_wwan_data_apn_get_apn’
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1278:10: warning[-Wmaybe-uninitialized]: ‘apn_name’ may be used uninitialized
# 1278 |   return apn_name;
#      |          ^~~~~~~~
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1264:16: note: ‘apn_name’ was declared here
# 1264 |   const gchar *apn_name;
#      |                ^~~~~~~~
# 1276|       }
# 1277|   
# 1278|->   return apn_name;
# 1279|   }
# 1280|   

Error: CPPCHECK_WARNING (CWE-457): [#def47]
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1341: error[legacyUninitvar]: Uninitialized variable: username
# 1339|       }
# 1340|   
# 1341|->   return username;
# 1342|   }
# 1343|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def48]
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1341:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘username’
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1329:6: branch_false: following ‘false’ branch...
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1336:12: branch_false: ...to here
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1336:11: branch_false: following ‘false’ branch...
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1341:10: branch_false: ...to here
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1341:10: danger: use of uninitialized value ‘username’ here
# 1339|       }
# 1340|   
# 1341|->   return username;
# 1342|   }
# 1343|   

Error: COMPILER_WARNING (CWE-457): [#def49]
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c: scope_hint: In function ‘cc_wwan_data_apn_get_username’
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1341:10: warning[-Wmaybe-uninitialized]: ‘username’ may be used uninitialized
# 1341 |   return username;
#      |          ^~~~~~~~
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1327:16: note: ‘username’ was declared here
# 1327 |   const gchar *username;
#      |                ^~~~~~~~
# 1339|       }
# 1340|   
# 1341|->   return username;
# 1342|   }
# 1343|   

Error: CPPCHECK_WARNING (CWE-457): [#def50]
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1421: error[legacyUninitvar]: Uninitialized variable: password
# 1419|       }
# 1420|   
# 1421|->   return password;
# 1422|   }
# 1423|   

Error: COMPILER_WARNING (CWE-457): [#def51]
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c: scope_hint: In function ‘cc_wwan_data_apn_get_password’
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1421:10: warning[-Wmaybe-uninitialized]: ‘password’ may be used uninitialized
# 1421 |   return password;
#      |          ^~~~~~~~
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1388:16: note: ‘password’ was declared here
# 1388 |   const gchar *password;
#      |                ^~~~~~~~
# 1419|       }
# 1420|   
# 1421|->   return password;
# 1422|   }
# 1423|   

Error: CPPCHECK_WARNING (CWE-457): [#def52]
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1484: warning[uninitvar]: Uninitialized variable: apn_name
# 1482|     */
# 1483|   
# 1484|->   return apn_name;
# 1485|   }
# 1486|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def53]
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1484:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘apn_name’
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1470:6: branch_false: following ‘false’ branch...
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1484:10: branch_false: ...to here
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1484:10: danger: use of uninitialized value ‘apn_name’ here
# 1482|     */
# 1483|   
# 1484|->   return apn_name;
# 1485|   }
# 1486|   

Error: COMPILER_WARNING (CWE-457): [#def54]
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c: scope_hint: In function ‘cc_wwan_data_apn_get_initial_eps_apn’
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1484:10: warning[-Wmaybe-uninitialized]: ‘apn_name’ may be used uninitialized
# 1484 |   return apn_name;
#      |          ^~~~~~~~
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1468:16: note: ‘apn_name’ was declared here
# 1468 |   const gchar *apn_name;
#      |                ^~~~~~~~
# 1482|     */
# 1483|   
# 1484|->   return apn_name;
# 1485|   }
# 1486|   

Error: CPPCHECK_WARNING (CWE-457): [#def55]
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1542: warning[uninitvar]: Uninitialized variable: username
# 1540|     }
# 1541|   
# 1542|->   return username;
# 1543|   }
# 1544|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def56]
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1542:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘username’
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1534:6: branch_false: following ‘false’ branch...
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1542:10: branch_false: ...to here
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1542:10: danger: use of uninitialized value ‘username’ here
# 1540|     }
# 1541|   
# 1542|->   return username;
# 1543|   }
# 1544|   

Error: COMPILER_WARNING (CWE-457): [#def57]
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c: scope_hint: In function ‘cc_wwan_data_apn_get_initial_eps_username’
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1542:10: warning[-Wmaybe-uninitialized]: ‘username’ may be used uninitialized
# 1542 |   return username;
#      |          ^~~~~~~~
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1532:16: note: ‘username’ was declared here
# 1532 |   const gchar *username;
#      |                ^~~~~~~~
# 1540|     }
# 1541|   
# 1542|->   return username;
# 1543|   }
# 1544|   

Error: CPPCHECK_WARNING (CWE-457): [#def58]
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1624: warning[uninitvar]: Uninitialized variable: password
# 1622|     */
# 1623|   
# 1624|->   return password;
# 1625|   }
# 1626|   

Error: COMPILER_WARNING (CWE-457): [#def59]
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c: scope_hint: In function ‘cc_wwan_data_apn_get_initial_eps_password’
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1624:10: warning[-Wmaybe-uninitialized]: ‘password’ may be used uninitialized
# 1624 |   return password;
#      |          ^~~~~~~~
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:1589:16: note: ‘password’ was declared here
# 1589 |   const gchar *password;
#      |                ^~~~~~~~
# 1622|     */
# 1623|   
# 1624|->   return password;
# 1625|   }
# 1626|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def60]
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.h:37:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘apn’
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:328:1: enter_function: entry to ‘wwan_data_update_apn_list’
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:333:6: branch_false: following ‘false’ branch...
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:340:6: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:342:24: branch_true: ...to here
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:344:19: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:348:17: branch_true: ...to here
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:348:17: call_function: calling ‘cc_wwan_data_apn_new’ from ‘wwan_data_update_apn_list’
gnome-control-center-49.2.2/panels/wwan/cc-wwan-data.c:346:36: call_function: inlined call to ‘glib_autoptr_cleanup_CcWwanDataApn’ from ‘wwan_data_update_apn_list’
#   35|   
#   36|   #define CC_TYPE_WWAN_DATA_APN (cc_wwan_data_apn_get_type())
#   37|-> G_DECLARE_FINAL_TYPE (CcWwanDataApn, cc_wwan_data_apn, CC, WWAN_DATA_APN, GObject)
#   38|   
#   39|   #define CC_TYPE_WWAN_DATA (cc_wwan_data_get_type())

Error: GCC_ANALYZER_WARNING (CWE-457): [#def61]
gnome-control-center-49.2.2/panels/wwan/cc-wwan-device.h:49:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘device’
gnome-control-center-49.2.2/panels/wwan/cc-wwan-panel.c:479:15: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/wwan/cc-wwan-panel.c:483:53: branch_true: ...to here
gnome-control-center-49.2.2/panels/wwan/cc-wwan-panel.c:483:16: throw: if ‘g_list_model_get_item’ throws an exception...
gnome-control-center-49.2.2/panels/wwan/cc-wwan-panel.c:481:31: call_function: inlined call to ‘glib_autoptr_cleanup_CcWwanDevice’ from ‘cc_wwan_panel_update_data_connections’
#   47|   
#   48|   #define CC_TYPE_WWAN_DEVICE (cc_wwan_device_get_type())
#   49|-> G_DECLARE_FINAL_TYPE (CcWwanDevice, cc_wwan_device, CC, WWAN_DEVICE, GObject)
#   50|   
#   51|   CcWwanDevice  *cc_wwan_device_new                (MMObject            *mm_object,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def62]
gnome-control-center-49.2.2/redhat-linux-build/panels/system/users/cc-fprintd-generated.h:108:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fprintd_devices’
gnome-control-center-49.2.2/panels/system/users/cc-fingerprint-dialog.c:1294:1: enter_function: entry to ‘on_devices_list’
gnome-control-center-49.2.2/panels/system/users/cc-fingerprint-dialog.c:1307:6: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/system/users/cc-fingerprint-dialog.c:1300:21: call_function: inlined call to ‘glib_autoptr_cleanup_GError’ from ‘on_devices_list’
gnome-control-center-49.2.2/panels/system/users/cc-fingerprint-dialog.c:1298:32: call_function: inlined call to ‘glib_listautoptr_cleanup_CcFprintdDevice’ from ‘on_devices_list’
#  106|   
#  107|   #if GLIB_CHECK_VERSION(2, 44, 0)
#  108|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC (CcFprintdDevice, g_object_unref)
#  109|   #endif
#  110|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def63]
gnome-control-center-49.2.2/redhat-linux-build/panels/system/users/cc-fprintd-generated.h:108:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fprintd_device’
gnome-control-center-49.2.2/panels/system/users/cc-fingerprint-manager.c:238:1: enter_function: entry to ‘on_device_proxy’
gnome-control-center-49.2.2/panels/system/users/cc-fingerprint-manager.c:249:6: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/system/users/cc-fingerprint-manager.c:251:10: branch_true: ...to here
gnome-control-center-49.2.2/panels/system/users/cc-fingerprint-manager.c:241:20: call_function: inlined call to ‘glib_autoptr_cleanup_GTask’ from ‘on_device_proxy’
gnome-control-center-49.2.2/panels/system/users/cc-fingerprint-manager.c:240:30: call_function: inlined call to ‘glib_autoptr_cleanup_CcFprintdDevice’ from ‘on_device_proxy’
#  106|   
#  107|   #if GLIB_CHECK_VERSION(2, 44, 0)
#  108|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC (CcFprintdDevice, g_object_unref)
#  109|   #endif
#  110|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def64]
gnome-control-center-49.2.2/redhat-linux-build/panels/system/users/cc-fprintd-generated.h:505:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fprintd_manager’
gnome-control-center-49.2.2/panels/system/users/cc-fingerprint-manager.c:316:1: enter_function: entry to ‘on_manager_proxy’
gnome-control-center-49.2.2/panels/system/users/cc-fingerprint-manager.c:322:21: throw: if ‘cc_fprintd_manager_proxy_new_for_bus_finish’ throws an exception...
gnome-control-center-49.2.2/panels/system/users/cc-fingerprint-manager.c:320:21: call_function: inlined call to ‘glib_autoptr_cleanup_GError’ from ‘on_manager_proxy’
gnome-control-center-49.2.2/panels/system/users/cc-fingerprint-manager.c:319:31: call_function: inlined call to ‘glib_autoptr_cleanup_CcFprintdManager’ from ‘on_manager_proxy’
#  503|   
#  504|   #if GLIB_CHECK_VERSION(2, 44, 0)
#  505|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC (CcFprintdManager, g_object_unref)
#  506|   #endif
#  507|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def65]
gnome-control-center-49.2.2/redhat-linux-build/panels/system/users/cc-realm-generated.h:872:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘membership’
gnome-control-center-49.2.2/panels/system/users/cc-enterprise-login-dialog.c:370:6: branch_true: following ‘true’ branch...
gnome-control-center-49.2.2/panels/system/users/cc-enterprise-login-dialog.c:376:18: branch_true: ...to here
gnome-control-center-49.2.2/panels/system/users/cc-enterprise-login-dialog.c:376:18: throw: if ‘cc_realm_object_get_kerberos’ throws an exception...
gnome-control-center-49.2.2/panels/system/users/cc-enterprise-login-dialog.c:372:44: call_function: inlined call to ‘glib_autoptr_cleanup_CcRealmKerberosMembership’ from ‘show_enroll_page’
#  870|   
#  871|   #if GLIB_CHECK_VERSION(2, 44, 0)
#  872|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC (CcRealmKerberosMembership, g_object_unref)
#  873|   #endif
#  874|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def66]
gnome-control-center-49.2.2/redhat-linux-build/subprojects/libgxdp/src/gxdp-dbus.h:42:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘proxy’
gnome-control-center-49.2.2/subprojects/libgxdp/src/gxdp-wayland.c:94:1: enter_function: entry to ‘gxdp_wayland_init’
gnome-control-center-49.2.2/subprojects/libgxdp/src/gxdp-wayland.c:112:6: branch_false: following ‘false’ branch...
gnome-control-center-49.2.2/subprojects/libgxdp/src/gxdp-wayland.c:120:8: branch_false: ...to here
gnome-control-center-49.2.2/subprojects/libgxdp/src/gxdp-wayland.c:102:20: call_function: calling ‘g_autoptr_cleanup_generic_gfree’ from ‘gxdp_wayland_init’
gnome-control-center-49.2.2/subprojects/libgxdp/src/gxdp-wayland.c:100:26: call_function: inlined call to ‘glib_autoptr_cleanup_GUnixFDList’ from ‘gxdp_wayland_init’
gnome-control-center-49.2.2/subprojects/libgxdp/src/gxdp-wayland.c:99:23: call_function: inlined call to ‘glib_autoptr_cleanup_GVariant’ from ‘gxdp_wayland_init’
gnome-control-center-49.2.2/subprojects/libgxdp/src/gxdp-wayland.c:98:43: call_function: inlined call to ‘glib_autoptr_cleanup_GxdpDBusMutterServiceChannel’ from ‘gxdp_wayland_init’
#   40|   
#   41|   #if GLIB_CHECK_VERSION(2, 44, 0)
#   42|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC (GxdpDBusMutterServiceChannel, g_object_unref)
#   43|   #endif
#   44|   

Scan Properties

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