Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
epiphany-50.1/lib/contrib/gnome-languages.c:326:28: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
epiphany-50.1/lib/contrib/gnome-languages.c:1241:1: enter_function: entry to ‘gnome_get_all_locales’
epiphany-50.1/lib/contrib/gnome-languages.c:1247:12: branch_true: following ‘true’ branch...
epiphany-50.1/lib/contrib/gnome-languages.c:1248:17: branch_true: ...to here
epiphany-50.1/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): [#def2]
epiphany-50.1/lib/contrib/gnome-languages.c:326:28: warning[-Wanalyzer-null-argument]: use of NULL ‘langinfo_codeset’ where non-null expected
epiphany-50.1/lib/contrib/gnome-languages.c:1162:1: enter_function: entry to ‘gnome_get_country_from_locale’
epiphany-50.1/lib/contrib/gnome-languages.c:1166:26: release_memory: ‘language_code’ is NULL
epiphany-50.1/lib/contrib/gnome-languages.c:1167:26: release_memory: ‘language_code’ is NULL
epiphany-50.1/lib/contrib/gnome-languages.c:1168:26: release_memory: ‘language_code’ is NULL
epiphany-50.1/lib/contrib/gnome-languages.c:1169:26: release_memory: ‘language_code’ is NULL
epiphany-50.1/lib/contrib/gnome-languages.c:1174:9: branch_true: following ‘true’ branch (when ‘locale’ is non-NULL)...
epiphany-50.1/lib/contrib/gnome-languages.c:1175:9: branch_true: ...to here
epiphany-50.1/lib/contrib/gnome-languages.c:1175:9: branch_true: following ‘true’ branch...
epiphany-50.1/lib/contrib/gnome-languages.c:1177:21: branch_true: ...to here
epiphany-50.1/lib/contrib/gnome-languages.c:1180:9: call_function: calling ‘territories_init’ from ‘gnome_get_country_from_locale’
epiphany-50.1/lib/contrib/gnome-languages.c:1180:9: return_function: returning to ‘gnome_get_country_from_locale’ from ‘territories_init’
epiphany-50.1/lib/contrib/gnome-languages.c:1182:9: call_function: calling ‘gnome_parse_locale’ from ‘gnome_get_country_from_locale’
epiphany-50.1/lib/contrib/gnome-languages.c:1182:9: return_function: returning to ‘gnome_get_country_from_locale’ from ‘gnome_parse_locale’
epiphany-50.1/lib/contrib/gnome-languages.c:1188:12: branch_false: following ‘false’ branch...
epiphany-50.1/lib/contrib/gnome-languages.c:1192:32: branch_false: ...to here
epiphany-50.1/lib/contrib/gnome-languages.c:1192:32: call_function: calling ‘get_translated_territory’ from ‘gnome_get_country_from_locale’
epiphany-50.1/lib/contrib/gnome-languages.c:1192:32: return_function: returning to ‘gnome_get_country_from_locale’ from ‘get_translated_territory’
epiphany-50.1/lib/contrib/gnome-languages.c:1195:13: call_function: inlined call to ‘is_unique_territory’ from ‘gnome_get_country_from_locale’
#  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): [#def3]
epiphany-50.1/lib/ephy-web-app-utils.c:434:7: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
epiphany-50.1/lib/ephy-web-app-utils.c:423:1: enter_function: entry to ‘ephy_web_application_ensure_for_app_info’
epiphany-50.1/lib/ephy-web-app-utils.c:431:17: call_function: calling ‘ephy_web_application_get_profile_directory’ from ‘ephy_web_application_ensure_for_app_info’
epiphany-50.1/lib/ephy-web-app-utils.c:431:17: return_function: returning to ‘ephy_web_application_ensure_for_app_info’ from ‘ephy_web_application_get_profile_directory’
epiphany-50.1/lib/ephy-web-app-utils.c:434: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
#  432|   
#  433|     /* Create the profile directory, populate it. */
#  434|->   if (g_mkdir (profile_dir, 488) == -1) {
#  435|       if (errno == EEXIST)
#  436|         return g_steal_pointer (&profile_dir);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def4]
epiphany-50.1/src/webextension/ephy-web-extension.c:1583:7: warning[-Wanalyzer-null-argument]: use of NULL ‘permission_path’ where non-null expected
epiphany-50.1/src/webextension/ephy-web-extension.c:1639:1: enter_function: entry to ‘ephy_web_extension_rule_matches_uri’
epiphany-50.1/src/webextension/ephy-web-extension.c:1650:6: branch_false: following ‘false’ branch...
epiphany-50.1/src/webextension/ephy-web-extension.c:1655:17: branch_false: ...to here
epiphany-50.1/src/webextension/ephy-web-extension.c:1663:6: branch_false: following ‘false’ branch...
epiphany-50.1/src/webextension/ephy-web-extension.c:1666:37: branch_false: ...to here
epiphany-50.1/src/webextension/ephy-web-extension.c:1666:8: call_function: calling ‘scheme_matches’ from ‘ephy_web_extension_rule_matches_uri’
epiphany-50.1/src/webextension/ephy-web-extension.c:1666:8: return_function: returning to ‘ephy_web_extension_rule_matches_uri’ from ‘scheme_matches’
epiphany-50.1/src/webextension/ephy-web-extension.c:1666:6: branch_false: following ‘false’ branch...
epiphany-50.1/src/webextension/ephy-web-extension.c:1669:49: branch_false: ...to here
epiphany-50.1/src/webextension/ephy-web-extension.c:1669:6: branch_false: following ‘false’ branch...
epiphany-50.1/src/webextension/ephy-web-extension.c:1672:25: branch_false: ...to here
epiphany-50.1/src/webextension/ephy-web-extension.c:1672:25: call_function: calling ‘join_path_and_query’ from ‘ephy_web_extension_rule_matches_uri’
epiphany-50.1/src/webextension/ephy-web-extension.c:1672:25: return_function: returning to ‘ephy_web_extension_rule_matches_uri’ from ‘join_path_and_query’
epiphany-50.1/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|   

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-35.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameepiphany-51~alpha-4.fc45
diffbase-store-results-to/tmp/tmp5rlx9q2y/epiphany-51~alpha-4.fc45.tar.xz
diffbase-time-created2026-08-03 14:07:05
diffbase-time-finished2026-08-03 14:14:47
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp5rlx9q2y/epiphany-51~alpha-4.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp5rlx9q2y/epiphany-51~alpha-4.fc45.src.rpm'
diffbase-tool-versioncsmock-3.8.7.HEAD-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-35.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameepiphany-50.1-1.fc44
store-results-to/tmp/tmpvxxph86q/epiphany-50.1-1.fc44.tar.xz
time-created2026-08-03 13:58:11
time-finished2026-08-03 14:06:48
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpvxxph86q/epiphany-50.1-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpvxxph86q/epiphany-50.1-1.fc44.src.rpm'
tool-versioncsmock-3.8.7.HEAD-1.el9