Task #90391 - added.err

back to task #90391
download
Error: GCC_ANALYZER_WARNING (CWE-775):
evolution-data-server-3.59.1/iconv-detect.c:139:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/evolution-data-server-3.59.1/redhat-linux-build/iconv-detect.h", "w")’
evolution-data-server-3.59.1/iconv-detect.c:127:12: branch_false: following ‘false’ branch...
evolution-data-server-3.59.1/iconv-detect.c:130:14: branch_false: ...to here
evolution-data-server-3.59.1/iconv-detect.c:130:14: acquire_resource: opened here
evolution-data-server-3.59.1/iconv-detect.c:131:12: branch_false: following ‘false’ branch...
evolution-data-server-3.59.1/iconv-detect.c:134:9: branch_false: ...to here
evolution-data-server-3.59.1/iconv-detect.c:139:21: branch_true: following ‘true’ branch...
evolution-data-server-3.59.1/iconv-detect.c:140:38: branch_true: ...to here
evolution-data-server-3.59.1/iconv-detect.c:140:22: throw: if ‘iconv_open’ throws an exception...
evolution-data-server-3.59.1/iconv-detect.c:139:21: danger: ‘fopen("/builddir/build/BUILD/evolution-data-server-3.59.1/redhat-linux-build/iconv-detect.h", "w")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  137|   	info = iso8859_tests;
#  138|   	/*printf ("#define DEFAULT_ISO_FORMAT(iso,codepage)\t");*/
#  139|-> 	for (i = 0; i < num_iso8859_tests; i++) {
#  140|   		cd = iconv_open (info[i].charset, "UTF-8");
#  141|   		if (cd != (iconv_t) -1) {

Error: GCC_ANALYZER_WARNING (CWE-401):
evolution-data-server-3.59.1/iconv-detect.c:139:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/evolution-data-server-3.59.1/redhat-linux-build/iconv-detect.h", "w")’
evolution-data-server-3.59.1/iconv-detect.c:127:12: branch_false: following ‘false’ branch...
evolution-data-server-3.59.1/iconv-detect.c:130:14: branch_false: ...to here
evolution-data-server-3.59.1/iconv-detect.c:130:14: acquire_memory: allocated here
evolution-data-server-3.59.1/iconv-detect.c:131:12: branch_false: following ‘false’ branch...
evolution-data-server-3.59.1/iconv-detect.c:134:9: branch_false: ...to here
evolution-data-server-3.59.1/iconv-detect.c:139:21: branch_true: following ‘true’ branch...
evolution-data-server-3.59.1/iconv-detect.c:140:38: branch_true: ...to here
evolution-data-server-3.59.1/iconv-detect.c:140:22: throw: if ‘iconv_open’ throws an exception...
evolution-data-server-3.59.1/iconv-detect.c:139:21: danger: ‘fopen("/builddir/build/BUILD/evolution-data-server-3.59.1/redhat-linux-build/iconv-detect.h", "w")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  137|   	info = iso8859_tests;
#  138|   	/*printf ("#define DEFAULT_ISO_FORMAT(iso,codepage)\t");*/
#  139|-> 	for (i = 0; i < num_iso8859_tests; i++) {
#  140|   		cd = iconv_open (info[i].charset, "UTF-8");
#  141|   		if (cd != (iconv_t) -1) {