Error: CPPCHECK_WARNING (CWE-476): [#def1] epiphany-48.3/embed/ephy-reader-handler.c:97: warning[nullPointer]: Possible null pointer dereference: data # 95| webkit_uri_scheme_request_finish_error (request->scheme_request, error); # 96| } else { # 97|-> data_length = MIN (strlen (data), G_MAXSSIZE); # 98| stream = g_memory_input_stream_new_from_data (data, data_length, g_free); # 99| webkit_uri_scheme_request_finish (request->scheme_request, stream, data_length, "text/html"); Error: CPPCHECK_WARNING (CWE-476): [#def2] epiphany-48.3/embed/ephy-view-source-handler.c:94: warning[nullPointer]: Possible null pointer dereference: data # 92| webkit_uri_scheme_request_finish_error (request->scheme_request, error); # 93| } else { # 94|-> data_length = MIN (strlen (data), G_MAXSSIZE); # 95| stream = g_memory_input_stream_new_from_data (data, data_length, g_free); # 96| webkit_uri_scheme_request_finish (request->scheme_request, stream, data_length, "text/html"); Error: GCC_ANALYZER_WARNING (CWE-688): [#def3] epiphany-48.3/redhat-linux-build/../embed/ephy-client-certificate-manager.c:268:79: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected epiphany-48.3/redhat-linux-build/../embed/ephy-client-certificate-manager.c:253:1: enter_function: entry to ‘certificate_pin_response’ epiphany-48.3/redhat-linux-build/../embed/ephy-client-certificate-manager.c:261:6: branch_false: following ‘false’ branch (when the strings are non-equal)... epiphany-48.3/redhat-linux-build/../embed/ephy-client-certificate-manager.c:266:3: branch_false: ...to here epiphany-48.3/redhat-linux-build/../embed/ephy-client-certificate-manager.c:266:3: branch_true: following ‘true’ branch... epiphany-48.3/redhat-linux-build/../embed/ephy-client-certificate-manager.c:267:20: call_function: inlined call to ‘g_strdup_inline’ from ‘certificate_pin_response’ epiphany-48.3/redhat-linux-build/../embed/ephy-client-certificate-manager.c:268:79: danger: argument 1 (‘<unknown>’) NULL where non-null expected #argument 1 of ‘__builtin_strlen’ must be non-null # 266| g_assert (!self->password); # 267| self->password = g_strdup (password); # 268|-> gck_session_login_async (self->session, CKU_USER, (guint8 *)self->password, strlen (self->password), self->cancellable, logged_in_cb, self); # 269| } # 270| Error: GCC_ANALYZER_WARNING (CWE-476): [#def4] epiphany-48.3/redhat-linux-build/../embed/ephy-find-toolbar.c:186:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*toolbar.find_string’ epiphany-48.3/redhat-linux-build/../embed/ephy-find-toolbar.c:179:1: enter_function: entry to ‘update_find_string’ epiphany-48.3/redhat-linux-build/../embed/ephy-find-toolbar.c:182:3: release_memory: ‘*toolbar.find_string’ is NULL epiphany-48.3/redhat-linux-build/../embed/ephy-find-toolbar.c:184:3: branch_false: following ‘false’ branch (when ‘_handle_id == 0’)... epiphany-48.3/redhat-linux-build/../embed/ephy-find-toolbar.c:186:15: branch_false: ...to here epiphany-48.3/redhat-linux-build/../embed/ephy-find-toolbar.c:186:15: release_memory: ‘*toolbar.find_string’ is NULL epiphany-48.3/redhat-linux-build/../embed/ephy-find-toolbar.c:186:7: danger: dereference of NULL ‘*toolbar.find_string’ # 184| g_clear_handle_id (&toolbar->find_source_id, g_source_remove); # 185| # 186|-> if (strlen (toolbar->find_string) == 0) { # 187| clear_status (toolbar); # 188| return; Error: GCC_ANALYZER_WARNING (CWE-688): [#def5] epiphany-48.3/redhat-linux-build/../lib/contrib/gnome-languages.c:326:28: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected epiphany-48.3/redhat-linux-build/../lib/contrib/gnome-languages.c:1241:1: enter_function: entry to ‘gnome_get_all_locales’ epiphany-48.3/redhat-linux-build/../lib/contrib/gnome-languages.c:1247:12: branch_true: following ‘true’ branch... epiphany-48.3/redhat-linux-build/../lib/contrib/gnome-languages.c:1248:17: branch_true: ...to here epiphany-48.3/redhat-linux-build/../lib/contrib/gnome-languages.c:1248:17: call_function: calling ‘collect_locales’ from ‘gnome_get_all_locales’ # 324| g_autofree char *normalized_codeset = normalize_codeset (codeset); # 325| # 326|-> *is_utf8 = strcmp (normalized_codeset, "UTF-8") == 0; # 327| } # 328| Error: GCC_ANALYZER_WARNING (CWE-688): [#def6] epiphany-48.3/redhat-linux-build/../lib/ephy-file-helpers.c:238:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected epiphany-48.3/redhat-linux-build/../lib/ephy-file-helpers.c:229:1: enter_function: entry to ‘ephy_file_tmp_filename’ epiphany-48.3/redhat-linux-build/../lib/ephy-file-helpers.c:237:6: branch_true: following ‘true’ branch... epiphany-48.3/redhat-linux-build/../lib/ephy-file-helpers.c:238:5: branch_true: ...to here epiphany-48.3/redhat-linux-build/../lib/ephy-file-helpers.c:238:5: danger: argument 1 (‘<unknown>’) NULL where non-null expected # 236| # 237| if (fd != -1) { # 238|-> unlink (name); # 239| close (fd); # 240| } else { Error: GCC_ANALYZER_WARNING (CWE-688): [#def7] epiphany-48.3/redhat-linux-build/../lib/ephy-langs.c:172:18: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected epiphany-48.3/redhat-linux-build/../lib/ephy-langs.c:161:1: enter_function: entry to ‘ephy_langs_normalize_locale’ epiphany-48.3/redhat-linux-build/../lib/ephy-langs.c:172:18: danger: argument 1 (‘<unknown>’) NULL where non-null expected #argument 1 of ‘__builtin_strchr’ must be non-null # 170| * lowercase. # 171| */ # 172|-> for (char *p = strchr (result, '-'); p != NULL && *p != '\0'; p++) # 173| *p = g_ascii_toupper (*p); # 174| Error: GCC_ANALYZER_WARNING (CWE-688): [#def8] epiphany-48.3/redhat-linux-build/../lib/ephy-permissions-manager.c:127:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected epiphany-48.3/redhat-linux-build/../lib/ephy-permissions-manager.c:109:1: enter_function: entry to ‘ephy_permissions_manager_get_settings_for_origin’ epiphany-48.3/redhat-linux-build/../lib/ephy-permissions-manager.c:127:9: danger: argument 1 (‘<unknown>’) NULL where non-null expected #argument 1 of ‘__builtin_strchr’ must be non-null # 125| security_origin = webkit_security_origin_new_for_uri (origin); # 126| trimmed_protocol = g_strdup (webkit_security_origin_get_protocol (security_origin)); # 127|-> pos = strchr (trimmed_protocol, '/'); # 128| if (pos != NULL) # 129| *pos = '\0'; Error: GCC_ANALYZER_WARNING (CWE-688): [#def9] epiphany-48.3/redhat-linux-build/../lib/ephy-time-helpers.c:92:15: warning[-Wanalyzer-null-argument]: use of NULL ‘remainder’ where non-null expected epiphany-48.3/redhat-linux-build/../lib/ephy-time-helpers.c:68:1: enter_function: entry to ‘eel_strdup_strftime’ epiphany-48.3/redhat-linux-build/../lib/ephy-time-helpers.c:84:6: branch_true: following ‘true’ branch... epiphany-48.3/redhat-linux-build/../lib/ephy-time-helpers.c:85:17: call_function: inlined call to ‘g_strdup_inline’ from ‘eel_strdup_strftime’ epiphany-48.3/redhat-linux-build/../lib/ephy-time-helpers.c:92:15: danger: argument 1 (‘remainder’) NULL where non-null expected #argument 1 of ‘__builtin_strchr’ must be non-null # 90| /* Walk from % character to % character. */ # 91| for (;;) { # 92|-> percent = strchr (remainder, '%'); # 93| if (percent == NULL) { # 94| g_string_append (string, remainder); Error: GCC_ANALYZER_WARNING (CWE-688): [#def10] epiphany-48.3/redhat-linux-build/../lib/ephy-web-app-utils.c:432:7: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected epiphany-48.3/redhat-linux-build/../lib/ephy-web-app-utils.c:421:1: enter_function: entry to ‘ephy_web_application_ensure_for_app_info’ epiphany-48.3/redhat-linux-build/../lib/ephy-web-app-utils.c:429:17: call_function: calling ‘ephy_web_application_get_profile_directory’ from ‘ephy_web_application_ensure_for_app_info’ epiphany-48.3/redhat-linux-build/../lib/ephy-web-app-utils.c:429:17: return_function: returning to ‘ephy_web_application_ensure_for_app_info’ from ‘ephy_web_application_get_profile_directory’ epiphany-48.3/redhat-linux-build/../lib/ephy-web-app-utils.c:432:7: danger: argument 1 (‘ephy_web_application_get_profile_directory(ephy_web_application_get_app_id_from_name(g_app_info_get_name(app_info)))’) NULL where non-null expected # 430| # 431| /* Create the profile directory, populate it. */ # 432|-> if (g_mkdir (profile_dir, 488) == -1) { # 433| if (errno == EEXIST) # 434| return g_steal_pointer (&profile_dir); Error: GCC_ANALYZER_WARNING (CWE-688): [#def11] epiphany-48.3/redhat-linux-build/../lib/sync/debug/ephy-sync-debug.c:474:47: warning[-Wanalyzer-null-argument]: use of NULL ‘storage_endpoint’ where non-null expected epiphany-48.3/redhat-linux-build/../lib/sync/debug/ephy-sync-debug.c:951:1: enter_function: entry to ‘ephy_sync_debug_view_configuration_info’ epiphany-48.3/redhat-linux-build/../lib/sync/debug/ephy-sync-debug.c:955:14: call_function: calling ‘ephy_sync_debug_send_request’ from ‘ephy_sync_debug_view_configuration_info’ #argument 1 of ‘__builtin_strlen’ must be non-null # 472| msg = ephy_sync_debug_prepare_soup_message (url, method, body, storage_id, # 473| (const guint8 *)storage_key, # 474|-> strlen (storage_key)); # 475| session = soup_session_new (); # 476| response_body = soup_session_send_and_read (session, msg, NULL, NULL); Error: GCC_ANALYZER_WARNING (CWE-688): [#def12] epiphany-48.3/redhat-linux-build/../lib/sync/debug/ephy-sync-debug.c:474:47: warning[-Wanalyzer-null-argument]: use of NULL ‘storage_id’ where non-null expected epiphany-48.3/redhat-linux-build/../lib/sync/debug/ephy-sync-debug.c:951:1: enter_function: entry to ‘ephy_sync_debug_view_configuration_info’ epiphany-48.3/redhat-linux-build/../lib/sync/debug/ephy-sync-debug.c:955:14: call_function: calling ‘ephy_sync_debug_send_request’ from ‘ephy_sync_debug_view_configuration_info’ #argument 1 of ‘__builtin_strlen’ must be non-null # 472| msg = ephy_sync_debug_prepare_soup_message (url, method, body, storage_id, # 473| (const guint8 *)storage_key, # 474|-> strlen (storage_key)); # 475| session = soup_session_new (); # 476| response_body = soup_session_send_and_read (session, msg, NULL, NULL); Error: GCC_ANALYZER_WARNING (CWE-688): [#def13] epiphany-48.3/redhat-linux-build/../lib/sync/debug/ephy-sync-debug.c:474:47: warning[-Wanalyzer-null-argument]: use of NULL ‘storage_key’ where non-null expected epiphany-48.3/redhat-linux-build/../lib/sync/debug/ephy-sync-debug.c:951:1: enter_function: entry to ‘ephy_sync_debug_view_configuration_info’ epiphany-48.3/redhat-linux-build/../lib/sync/debug/ephy-sync-debug.c:955:14: call_function: calling ‘ephy_sync_debug_send_request’ from ‘ephy_sync_debug_view_configuration_info’ #argument 1 of ‘__builtin_strlen’ must be non-null # 472| msg = ephy_sync_debug_prepare_soup_message (url, method, body, storage_id, # 473| (const guint8 *)storage_key, # 474|-> strlen (storage_key)); # 475| session = soup_session_new (); # 476| response_body = soup_session_send_and_read (session, msg, NULL, NULL); Error: GCC_ANALYZER_WARNING (CWE-476): [#def14] epiphany-48.3/redhat-linux-build/../src/ephy-history-dialog.c:760:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ epiphany-48.3/redhat-linux-build/../src/ephy-history-dialog.c:750:6: branch_false: following ‘false’ branch... epiphany-48.3/redhat-linux-build/../src/ephy-history-dialog.c:756:7: branch_false: ...to here epiphany-48.3/redhat-linux-build/../src/ephy-history-dialog.c:756:6: branch_true: following ‘true’ branch... epiphany-48.3/redhat-linux-build/../src/ephy-history-dialog.c:759:20: branch_true: ...to here epiphany-48.3/redhat-linux-build/../src/ephy-history-dialog.c:760:48: danger: dereference of NULL ‘get_checked_rows(self)’ # 758| * that one and the currently clicked row */ # 759| gint index_a = gtk_list_box_row_get_index (activated_row); # 760|-> gint index_b = gtk_list_box_row_get_index (checked_rows->data); # 761| # 762| check_rows_interval (GTK_LIST_BOX (self->listbox), index_a, index_b); Error: GCC_ANALYZER_WARNING (CWE-688): [#def15] epiphany-48.3/redhat-linux-build/../src/preferences/prefs-general-page.c:499:18: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected epiphany-48.3/redhat-linux-build/../src/preferences/prefs-general-page.c:488:1: enter_function: entry to ‘normalize_locale’ epiphany-48.3/redhat-linux-build/../src/preferences/prefs-general-page.c:499:18: danger: argument 1 (‘<unknown>’) NULL where non-null expected #argument 1 of ‘__builtin_strchr’ must be non-null # 497| * lowercase. # 498| */ # 499|-> for (char *p = strchr (result, '-'); p != NULL && *p != '\0'; p++) # 500| *p = g_ascii_toupper (*p); # 501| Error: GCC_ANALYZER_WARNING (CWE-476): [#def16] epiphany-48.3/redhat-linux-build/../src/webextension/api/alarms.c:120:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘alarm’ epiphany-48.3/redhat-linux-build/../src/webextension/api/alarms.c:115:1: enter_function: entry to ‘emit_alarm’ epiphany-48.3/redhat-linux-build/../src/webextension/api/alarms.c:118:27: call_function: calling ‘alarm_to_json’ from ‘emit_alarm’ epiphany-48.3/redhat-linux-build/../src/webextension/api/alarms.c:118:27: return_function: returning to ‘emit_alarm’ from ‘alarm_to_json’ epiphany-48.3/redhat-linux-build/../src/webextension/api/alarms.c:120:3: danger: dereference of NULL ‘alarm’ # 118| g_autofree char *json = alarm_to_json (alarm); # 119| # 120|-> ephy_web_extension_manager_emit_in_extension_views (manager, alarm->web_extension, "alarms.onAlarm", json); # 121| } # 122| Error: GCC_ANALYZER_WARNING (CWE-688): [#def17] epiphany-48.3/redhat-linux-build/../src/webextension/api/downloads.c:353:39: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected epiphany-48.3/redhat-linux-build/../src/webextension/api/downloads.c:652:1: enter_function: entry to ‘downloads_handler_erase’ epiphany-48.3/redhat-linux-build/../src/webextension/api/downloads.c:664:6: branch_false: following ‘false’ branch... epiphany-48.3/redhat-linux-build/../src/webextension/api/downloads.c:669:11: branch_false: ...to here epiphany-48.3/redhat-linux-build/../src/webextension/api/downloads.c:669:11: call_function: calling ‘download_query_new’ from ‘downloads_handler_erase’ epiphany-48.3/redhat-linux-build/../src/webextension/api/downloads.c:669:11: return_function: returning to ‘downloads_handler_erase’ from ‘download_query_new’ epiphany-48.3/redhat-linux-build/../src/webextension/api/downloads.c:670:15: call_function: calling ‘filter_downloads’ from ‘downloads_handler_erase’ #argument 1 of ‘__builtin_strstr’ must be non-null # 351| const char *string = g_ptr_array_index (query->query, i); # 352| if (*string == '-') { # 353|-> if (strstr (url, string + 1) || strstr (filename, string + 1)) # 354| return FALSE; # 355| } else { Error: GCC_ANALYZER_WARNING (CWE-688): [#def18] epiphany-48.3/redhat-linux-build/../src/webextension/api/downloads.c:356:37: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected epiphany-48.3/redhat-linux-build/../src/webextension/api/downloads.c:652:1: enter_function: entry to ‘downloads_handler_erase’ epiphany-48.3/redhat-linux-build/../src/webextension/api/downloads.c:664:6: branch_false: following ‘false’ branch... epiphany-48.3/redhat-linux-build/../src/webextension/api/downloads.c:669:11: branch_false: ...to here epiphany-48.3/redhat-linux-build/../src/webextension/api/downloads.c:669:11: call_function: calling ‘download_query_new’ from ‘downloads_handler_erase’ epiphany-48.3/redhat-linux-build/../src/webextension/api/downloads.c:669:11: return_function: returning to ‘downloads_handler_erase’ from ‘download_query_new’ epiphany-48.3/redhat-linux-build/../src/webextension/api/downloads.c:670:15: call_function: calling ‘filter_downloads’ from ‘downloads_handler_erase’ #argument 1 of ‘__builtin_strstr’ must be non-null # 354| return FALSE; # 355| } else { # 356|-> if (!strstr (url, string) && !strstr (filename, string)) # 357| return FALSE; # 358| } Error: GCC_ANALYZER_WARNING (CWE-688): [#def19] epiphany-48.3/redhat-linux-build/../src/webextension/ephy-web-extension.c:1583:7: warning[-Wanalyzer-null-argument]: use of NULL ‘permission_path’ where non-null expected epiphany-48.3/redhat-linux-build/../src/webextension/ephy-web-extension.c:1639:1: enter_function: entry to ‘ephy_web_extension_rule_matches_uri’ epiphany-48.3/redhat-linux-build/../src/webextension/ephy-web-extension.c:1650:6: branch_false: following ‘false’ branch... epiphany-48.3/redhat-linux-build/../src/webextension/ephy-web-extension.c:1655:17: branch_false: ...to here epiphany-48.3/redhat-linux-build/../src/webextension/ephy-web-extension.c:1663:6: branch_false: following ‘false’ branch... epiphany-48.3/redhat-linux-build/../src/webextension/ephy-web-extension.c:1666:37: branch_false: ...to here epiphany-48.3/redhat-linux-build/../src/webextension/ephy-web-extension.c:1666:8: call_function: calling ‘scheme_matches’ from ‘ephy_web_extension_rule_matches_uri’ epiphany-48.3/redhat-linux-build/../src/webextension/ephy-web-extension.c:1666:8: return_function: returning to ‘ephy_web_extension_rule_matches_uri’ from ‘scheme_matches’ epiphany-48.3/redhat-linux-build/../src/webextension/ephy-web-extension.c:1666:6: branch_false: following ‘false’ branch... epiphany-48.3/redhat-linux-build/../src/webextension/ephy-web-extension.c:1669:49: branch_false: ...to here epiphany-48.3/redhat-linux-build/../src/webextension/ephy-web-extension.c:1669:6: branch_false: following ‘false’ branch... epiphany-48.3/redhat-linux-build/../src/webextension/ephy-web-extension.c:1672:25: branch_false: ...to here epiphany-48.3/redhat-linux-build/../src/webextension/ephy-web-extension.c:1672:25: call_function: calling ‘join_path_and_query’ from ‘ephy_web_extension_rule_matches_uri’ epiphany-48.3/redhat-linux-build/../src/webextension/ephy-web-extension.c:1672:25: return_function: returning to ‘ephy_web_extension_rule_matches_uri’ from ‘join_path_and_query’ epiphany-48.3/redhat-linux-build/../src/webextension/ephy-web-extension.c:1675:8: call_function: calling ‘path_matches’ from ‘ephy_web_extension_rule_matches_uri’ # 1581| # 1582| /* https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns#path */ # 1583|-> if (strcmp (permission_path, "*") == 0) # 1584| return TRUE; # 1585| Error: GCC_ANALYZER_WARNING (CWE-476): [#def20] epiphany-48.3/redhat-linux-build/../src/window-commands.c:455:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ epiphany-48.3/redhat-linux-build/../src/window-commands.c:454:6: branch_true: following ‘true’ branch (when ‘num_profiles == 1’)... epiphany-48.3/redhat-linux-build/../src/window-commands.c:455:61: branch_true: ...to here epiphany-48.3/redhat-linux-build/../src/window-commands.c:455:61: danger: dereference of NULL ‘get_firefox_profiles()’ # 453| num_profiles = g_slist_length (profiles); # 454| if (num_profiles == 1) { # 455|-> imported = ephy_bookmarks_import_from_firefox (manager, profiles->data, &error); # 456| # 457| show_import_export_result (parent, FALSE, imported, error, Error: CPPCHECK_WARNING (CWE-457): [#def21] epiphany-48.3/src/ephy-action-bar-start.c:342: error[legacyUninitvar]: Uninitialized variable: direction # 340| g_assert_not_reached (); # 341| # 342|-> build_history_menu (action_bar_start, widget, direction); # 343| # 344| gtk_popover_popup (GTK_POPOVER (action_bar_start->history_menu)); Error: CPPCHECK_WARNING (CWE-457): [#def22] epiphany-48.3/src/ephy-action-bar-start.c:413: error[legacyUninitvar]: Uninitialized variable: action_name # 411| window = EPHY_WINDOW (gtk_widget_get_root (widget)); # 412| action_group = ephy_window_get_action_group (window, "toolbar"); # 413|-> action = g_action_map_lookup_action (G_ACTION_MAP (action_group), action_name); # 414| g_action_activate (action, NULL); # 415| } Error: CPPCHECK_WARNING (CWE-457): [#def23] epiphany-48.3/src/ephy-window.c:2562: warning[uninitvar]: Uninitialized variable: n_pinned_pages # 2560| action = g_action_map_lookup_action (G_ACTION_MAP (action_group), # 2561| "close-left"); # 2562|-> g_simple_action_set_enabled (G_SIMPLE_ACTION (action), !page || position > n_pinned_pages); # 2563| # 2564| action = g_action_map_lookup_action (G_ACTION_MAP (action_group), Error: CPPCHECK_WARNING (CWE-457): [#def24] epiphany-48.3/src/ephy-window.c:2562: warning[uninitvar]: Uninitialized variable: position # 2560| action = g_action_map_lookup_action (G_ACTION_MAP (action_group), # 2561| "close-left"); # 2562|-> g_simple_action_set_enabled (G_SIMPLE_ACTION (action), !page || position > n_pinned_pages); # 2563| # 2564| action = g_action_map_lookup_action (G_ACTION_MAP (action_group), Error: CPPCHECK_WARNING (CWE-457): [#def25] epiphany-48.3/src/ephy-window.c:2566: warning[uninitvar]: Uninitialized variable: n_pages # 2564| action = g_action_map_lookup_action (G_ACTION_MAP (action_group), # 2565| "close-right"); # 2566|-> g_simple_action_set_enabled (G_SIMPLE_ACTION (action), !page || (position < n_pages - 1 && !pinned)); # 2567| # 2568| action = g_action_map_lookup_action (G_ACTION_MAP (action_group), Error: CPPCHECK_WARNING (CWE-457): [#def26] epiphany-48.3/src/ephy-window.c:2566: warning[uninitvar]: Uninitialized variable: pinned # 2564| action = g_action_map_lookup_action (G_ACTION_MAP (action_group), # 2565| "close-right"); # 2566|-> g_simple_action_set_enabled (G_SIMPLE_ACTION (action), !page || (position < n_pages - 1 && !pinned)); # 2567| # 2568| action = g_action_map_lookup_action (G_ACTION_MAP (action_group), Error: CPPCHECK_WARNING (CWE-786): [#def27] epiphany-48.3/src/window-commands.c:169: error[negativeIndex]: Array 'import_options[4]' accessed at index -1, which is out of bounds. # 167| # 168| g_assert (option_found != FALSE); # 169|-> if (import_options[i].type == IMPORT_TYPE_CHOOSE) # 170| gtk_button_set_label (button, _("_Select File")); # 171| else if (import_options[i].type == IMPORT_TYPE_IMPORT) Error: CPPCHECK_WARNING (CWE-476): [#def28] epiphany-48.3/src/window-commands.c:504: error[ctunullpointer]: Null pointer dereference: option_id # 502| GtkWindow *window) # 503| { # 504|-> if (strcmp (option_id, IMPORT_FROM_HTML_ID) == 0) # 505| dialog_bookmarks_import_from_html (window); # 506| else if (strcmp (option_id, IMPORT_FROM_FIREFOX_ID) == 0) Error: CPPCHECK_WARNING (CWE-476): [#def29] epiphany-48.3/src/window-commands.c:504: warning[nullPointer]: Possible null pointer dereference: option_id # 502| GtkWindow *window) # 503| { # 504|-> if (strcmp (option_id, IMPORT_FROM_HTML_ID) == 0) # 505| dialog_bookmarks_import_from_html (window); # 506| else if (strcmp (option_id, IMPORT_FROM_FIREFOX_ID) == 0) Error: CPPCHECK_WARNING (CWE-476): [#def30] epiphany-48.3/src/window-commands.c:833: error[ctunullpointer]: Null pointer dereference: option_id # 831| manager = ephy_embed_shell_get_password_manager (ephy_embed_shell_get_default ()); # 832| # 833|-> if (strcmp (option_id, IMPORT_FROM_CHROME_ID) == 0) # 834| ephy_password_import_from_chrome_async (manager, CHROME, dialog_password_import_cb, window); # 835| else if (strcmp (option_id, IMPORT_FROM_CHROMIUM_ID) == 0) Error: CPPCHECK_WARNING (CWE-476): [#def31] epiphany-48.3/src/window-commands.c:833: warning[nullPointer]: Possible null pointer dereference: option_id # 831| manager = ephy_embed_shell_get_password_manager (ephy_embed_shell_get_default ()); # 832| # 833|-> if (strcmp (option_id, IMPORT_FROM_CHROME_ID) == 0) # 834| ephy_password_import_from_chrome_async (manager, CHROME, dialog_password_import_cb, window); # 835| else if (strcmp (option_id, IMPORT_FROM_CHROMIUM_ID) == 0) Error: CPPCHECK_WARNING (CWE-786): [#def32] epiphany-48.3/src/window-commands.c:887: error[negativeIndex]: Array 'import_passwords_options[3]' accessed at index -1, which is out of bounds. # 885| # 886| g_assert (option_found != FALSE); # 887|-> if (import_passwords_options[i].type == IMPORT_TYPE_CHOOSE) # 888| gtk_button_set_label (button, _("_Select File")); # 889| else if (import_passwords_options[i].type == IMPORT_TYPE_IMPORT)
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-28.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | epiphany-48.3-1.fc43 |
store-results-to | /tmp/tmpnfs_o70d/epiphany-48.3-1.fc43.tar.xz |
time-created | 2025-04-25 12:30:36 |
time-finished | 2025-04-25 12:38:23 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpnfs_o70d/epiphany-48.3-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpnfs_o70d/epiphany-48.3-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |