Task #130847 - fixed.err

back to task #130847
download
Error: GCC_ANALYZER_WARNING (CWE-688):
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):
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):
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):
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|