Task #130896 - added.err

back to task #130896
download
Error: GCC_ANALYZER_WARNING (CWE-457):
file-5.47/src/softmagic.c:258:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'bb.flen'
file-5.47/src/softmagic.c:1619:1: enter_function: entry to 'mget'
file-5.47/src/softmagic.c:1635:12: branch_false: following 'false' branch...
file-5.47/src/softmagic.c:1641:13: branch_false: ...to here
file-5.47/src/softmagic.c:1641:12: branch_false: following 'false' branch...
file-5.47/src/softmagic.c:1648:13: branch_false: ...to here
file-5.47/src/softmagic.c:1965:20: branch_false: following 'false' branch...
file-5.47/src/softmagic.c:1967:17: branch_false: ...to here
file-5.47/src/softmagic.c:1968:20: branch_false: following 'false' branch...
file-5.47/src/softmagic.c:1972:21: branch_false: ...to here
file-5.47/src/softmagic.c:1972:20: branch_false: following 'false' branch...
file-5.47/src/softmagic.c:1976:21: branch_false: ...to here
file-5.47/src/softmagic.c:1976:21: call_function: calling 'save_cont' from 'mget'
file-5.47/src/softmagic.c:1976:21: return_function: returning to 'mget' from 'save_cont'
file-5.47/src/softmagic.c:1976:20: branch_false: following 'false' branch...
file-5.47/src/softmagic.c:1981:17: branch_false: ...to here
file-5.47/src/softmagic.c:1988:22: call_function: calling 'match' from 'mget'
#  256|   
#  257|   		/* if main entry matches, print it... */
#  258|-> 		switch (mget(ms, m, b, CAST(const unsigned char *, bb.fbuf),
#  259|   		    bb.flen, offset, cont_level,
#  260|   		    mode, text, flip, indir_count, name_count,

Error: GCC_ANALYZER_WARNING (CWE-457):
file-5.47/src/softmagic.c:1587:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*bb.elen'
file-5.47/src/softmagic.c:1619:1: enter_function: entry to 'mget'
file-5.47/src/softmagic.c:1635:12: branch_false: following 'false' branch...
file-5.47/src/softmagic.c:1641:13: branch_false: ...to here
file-5.47/src/softmagic.c:1641:12: branch_false: following 'false' branch...
file-5.47/src/softmagic.c:1648:13: branch_false: ...to here
file-5.47/src/softmagic.c:1965:20: branch_false: following 'false' branch...
file-5.47/src/softmagic.c:1967:17: branch_false: ...to here
file-5.47/src/softmagic.c:1968:20: branch_false: following 'false' branch...
file-5.47/src/softmagic.c:1972:21: branch_false: ...to here
file-5.47/src/softmagic.c:1972:20: branch_false: following 'false' branch...
file-5.47/src/softmagic.c:1976:21: branch_false: ...to here
file-5.47/src/softmagic.c:1976:21: call_function: calling 'save_cont' from 'mget'
file-5.47/src/softmagic.c:1976:21: return_function: returning to 'mget' from 'save_cont'
file-5.47/src/softmagic.c:1976:20: branch_false: following 'false' branch...
file-5.47/src/softmagic.c:1981:17: branch_false: ...to here
file-5.47/src/softmagic.c:1988:22: call_function: calling 'match' from 'mget'
# 1585|   	}
# 1586|   	if ((ms->flags & MAGIC_DEBUG) != 0) {
# 1587|-> 		fprintf(stderr, "bb=[%p,%" SIZE_T_FORMAT "u,%"
# 1588|   		    SIZE_T_FORMAT "u], %d [b=%p,%"
# 1589|   		    SIZE_T_FORMAT "u,%" SIZE_T_FORMAT "u], [o=%#x, c=%d]\n",