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);

Scan Properties

analyzer-version-clippy1.95.0
analyzer-version-cppcheck2.20.0
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.95.0
diffbase-analyzer-version-cppcheck2.20.0
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-233.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-50.4-1.fc45
diffbase-store-results-to/tmp/tmp2g3lmgg5/epiphany-50.4-1.fc45.tar.xz
diffbase-time-created2026-06-01 11:59:59
diffbase-time-finished2026-06-01 12:08:25
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmp2g3lmgg5/epiphany-50.4-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp2g3lmgg5/epiphany-50.4-1.fc45.src.rpm'
diffbase-tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-233.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/tmprksp42wo/epiphany-50.1-1.fc44.tar.xz
time-created2026-06-01 11:50:44
time-finished2026-06-01 11:59:36
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmprksp42wo/epiphany-50.1-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmprksp42wo/epiphany-50.1-1.fc44.src.rpm'
tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9