Task #51966 - fixed.err

back to task #51966
download
Error: GCC_ANALYZER_WARNING (CWE-688):
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1603:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘s’ where non-null expected
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1523:1: enter_function: entry to ‘IA__FcDirCacheClean’
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1536:8: branch_false: following ‘false’ branch...
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1539:15: branch_false: ...to here
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1544:8: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1550:9: branch_false: ...to here
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1550:8: branch_false: following ‘false’ branch...
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1557:8: branch_false: ...to here
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1560:8: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1566:12: branch_true: following ‘true’ branch...
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1571:13: branch_true: ...to here
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1571:12: branch_false: following ‘false’ branch...
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1575:20: branch_false: ...to here
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1575:12: branch_false: following ‘false’ branch...
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1576:13: branch_false: ...to here
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1575:13: branch_false: following ‘false’ branch (when the strings are equal)...
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1579:21: branch_false: ...to here
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1580:12: branch_false: following ‘false’ branch...
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1587:17: branch_false: ...to here
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1587:17: call_function: calling ‘IA__FcDirCacheLoadFile’ from ‘IA__FcDirCacheClean’
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1587:17: return_function: returning to ‘IA__FcDirCacheClean’ from ‘IA__FcDirCacheLoadFile’
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1588:12: branch_false: following ‘false’ branch...
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1598:26: branch_false: ...to here
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1599:16: branch_false: following ‘false’ branch...
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1602:21: branch_false: ...to here
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1602:21: acquire_memory: this call could return NULL
fontconfig-2.16.0/redhat-linux-build/../src/fccache.c:1603:17: danger: argument 1 (‘s’) from [(43)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/42) could be NULL where non-null expected
# 1601|   	    else
# 1602|   		s = FcStrdup (target_dir);
# 1603|-> 	    if (stat ((char *) s, &target_stat) < 0)
# 1604|   	    {
# 1605|   		if (verbose || FcDebug () & FC_DBG_CACHE)

Error: GCC_ANALYZER_WARNING (CWE-457):
fontconfig-2.16.0/redhat-linux-build/../src/fclang.c:601:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘lang[2]’
fontconfig-2.16.0/redhat-linux-build/../src/fclang.c:823:1: enter_function: entry to ‘FcNameParseLangSet’
fontconfig-2.16.0/redhat-linux-build/../src/fclang.c:829:10: call_function: calling ‘IA__FcLangSetCreate’ from ‘FcNameParseLangSet’
fontconfig-2.16.0/redhat-linux-build/../src/fclang.c:829:10: return_function: returning to ‘FcNameParseLangSet’ from ‘IA__FcLangSetCreate’
fontconfig-2.16.0/redhat-linux-build/../src/fclang.c:830:8: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
fontconfig-2.16.0/redhat-linux-build/../src/fclang.c:835:20: branch_true: following ‘true’ branch (when ‘i != 31’)...
fontconfig-2.16.0/redhat-linux-build/../src/fclang.c:837:18: branch_true: ...to here
fontconfig-2.16.0/redhat-linux-build/../src/fclang.c:838:15: branch_true: following ‘true’ branch...
fontconfig-2.16.0/redhat-linux-build/../src/fclang.c:842:9: branch_true: ...to here
fontconfig-2.16.0/redhat-linux-build/../src/fclang.c:843:14: call_function: calling ‘IA__FcLangSetAdd’ from ‘FcNameParseLangSet’
#  599|   	    if (cmp == 0 &&
#  600|   		(fcLangCharSets[mid].lang[2] != '\0' ||
#  601|-> 		 lang[2] != '\0'))
#  602|   	    {
#  603|   		cmp = FcStrCmpIgnoreCase(fcLangCharSets[mid].lang+2,

Error: GCC_ANALYZER_WARNING (CWE-476):
fontconfig-2.16.0/redhat-linux-build/../src/fclang.c:630:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ls’
fontconfig-2.16.0/redhat-linux-build/../src/fclang.c:1113:1: enter_function: entry to ‘IA__FcLangSetUnion’
fontconfig-2.16.0/redhat-linux-build/../src/fclang.c:1115:12: call_function: calling ‘FcLangSetOperate’ from ‘IA__FcLangSetUnion’
#  628|   	return FcTrue;
#  629|       }
#  630|->     if (!ls->extra)
#  631|       {
#  632|   	ls->extra = FcStrSetCreate ();

Error: GCC_ANALYZER_WARNING (CWE-476):
fontconfig-2.16.0/redhat-linux-build/../src/fclang.c:649:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ls’
fontconfig-2.16.0/redhat-linux-build/../src/fclang.c:1119:1: enter_function: entry to ‘IA__FcLangSetSubtract’
fontconfig-2.16.0/redhat-linux-build/../src/fclang.c:1121:12: call_function: calling ‘FcLangSetOperate’ from ‘IA__FcLangSetSubtract’
#  647|   	FcLangSetBitReset (ls, id);
#  648|       }
#  649|->     else if (ls->extra)
#  650|       {
#  651|   	FcStrSetDel (ls->extra, lang);