jasper-4.2.3-1.fc41

List of Defects

Error: COMPILER_WARNING (CWE-477): [#def1]
jasper-4.2.3-build/jasper-version-4.2.3/builder/CMakeFiles/CMakeScratch/TryCompile-X9UqU6/src.c: scope_hint: In function ‘main’
jasper-4.2.3-build/jasper-version-4.2.3/builder/CMakeFiles/CMakeScratch/TryCompile-X9UqU6/src.c:2:5: warning[-Wdeprecated-declarations]: ‘somefunc’ is deprecated
jasper-4.2.3-build/jasper-version-4.2.3/builder/CMakeFiles/CMakeScratch/TryCompile-X9UqU6/src.c:1:37: note: declared here

Error: CPPCHECK_WARNING: [#def2]
jasper-4.2.3-build/jasper-version-4.2.3/src/app/imgcmp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def3]
jasper-4.2.3-build/jasper-version-4.2.3/src/app/imgcmp.c:201:2: warning[deadcode.DeadStores]: Value stored to 'exit_status' is never read
#  199|   	reconimage = 0;
#  200|   
#  201|-> 	exit_status = EXIT_ERROR;
#  202|   	verbose = 0;
#  203|   	origpath = 0;

Error: CPPCHECK_WARNING: [#def4]
jasper-4.2.3-build/jasper-version-4.2.3/src/app/imginfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
jasper-4.2.3-build/jasper-version-4.2.3/src/app/jasper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
jasper-4.2.3-build/jasper-version-4.2.3/src/app/jasper.c: scope_hint: In function ‘main’
jasper-4.2.3-build/jasper-version-4.2.3/src/app/jasper.c:543:27: warning[-Wanalyzer-malloc-leak]: leak of ‘cmdopts_parse(argc,  argv)’
#  541|   	}
#  542|   
#  543|-> 	while (jas_optind < argc) {
#  544|   		fprintf(stderr,
#  545|   		  "warning: ignoring bogus command line argument %s\n",

Error: CPPCHECK_WARNING: [#def7]
jasper-4.2.3-build/jasper-version-4.2.3/src/app/jiv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def8]
jasper-4.2.3-build/jasper-version-4.2.3/src/app/multithread.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
jasper-4.2.3-build/jasper-version-4.2.3/src/app/test_1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
jasper-4.2.3-build/jasper-version-4.2.3/src/app/tmrdemo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/base/jas_cm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def12]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/base/jas_cm.c:254:13: warning[-Wstringop-overflow=]: ‘jas_cmshapmat_invmat’ accessing 96 bytes in a region of size 32
#  254 |         if (jas_cmshapmat_invmat(revshapmat->mat, fwdshapmat->mat)) {
#      |             ^
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/base/jas_cm.c:254:13: note: referencing argument 2 of type ‘jas_cmreal_t[3][4]’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/base/jas_cm.c: scope_hint: In function ‘jas_cmprof_createfromclrspc’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/base/jas_cm.c:1106:12: note: in a call to function ‘jas_cmshapmat_invmat’
# 1106 | static int jas_cmshapmat_invmat(jas_cmreal_t out[3][4], jas_cmreal_t in[3][4])
#      |            ^
#  252|   	revshapmat->useluts = 0;
#  253|   	revshapmat->usemat = 1;
#  254|-> 	if (jas_cmshapmat_invmat(revshapmat->mat, fwdshapmat->mat)) {
#  255|   		goto error;
#  256|   	}

Error: CLANG_WARNING: [#def13]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/base/jas_cm.c:988:2: warning[deadcode.DeadStores]: Value stored to 'gamma' is never read
#  986|   {
#  987|   	jas_cmreal_t gamma;
#  988|-> 	gamma = 0;
#  989|   	jas_cmshapmatlut_cleanup(lut);
#  990|   	if (curv->numents == 0) {

Error: CPPCHECK_WARNING: [#def14]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/base/jas_icc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def15]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/base/jas_icc.c:1852: warning[uninitvar]: Uninitialized variable: buf
# 1850|   	}
# 1851|   	*bufptr = '\0';
# 1852|-> 	return buf;
# 1853|   }
# 1854|   

Error: CPPCHECK_WARNING: [#def16]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/base/jas_image.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def17]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/base/jas_image.c:1158:3: warning[deadcode.DeadStores]: Value stored to 'cmpt' is never read
# 1156|   	if (newcmptno <= cmptno) {
# 1157|   		++cmptno;
# 1158|-> 		cmpt = image->cmpts_[cmptno];
# 1159|   	}
# 1160|   

Error: CPPCHECK_WARNING: [#def18]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/base/jas_init.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def19]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/base/jas_init.c:487:2: warning[deadcode.DeadStores]: Value stored to 'has_lock' is never read
#  485|   #if defined(JAS_THREADS)
#  486|   	jas_mutex_lock(&jas_global.lock);
#  487|-> 	has_lock = true;
#  488|   #endif
#  489|   

Error: CPPCHECK_WARNING: [#def20]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/base/jas_seq.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def21]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/base/jas_seq.c:313:4: warning[deadcode.DeadStores]: Value stored to 'data' is never read
#  311|   		for (i = matrix->numrows_, rowstart = matrix->rows_[0]; i > 0; --i,
#  312|   		  rowstart += rowstep) {
#  313|-> 			data = rowstart;
#  314|   			for (j = matrix->numcols_, data = rowstart; j > 0; --j,
#  315|   			  ++data) {

Error: CPPCHECK_WARNING: [#def22]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/base/jas_stream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def23]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c: scope_hint: In function ‘bmp_getinfo’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:411:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘palent’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_malloc.h:80: included_from: Included from here.
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_init.h:73: included_from: Included from here.
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:74: included_from: Included from here.
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:562:23: note: in expansion of macro ‘JAS_CAST’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:562:23: note: in expansion of macro ‘JAS_CAST’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:562:23: note: in expansion of macro ‘JAS_CAST’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:562:23: note: in expansion of macro ‘JAS_CAST’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:562:23: note: in expansion of macro ‘JAS_CAST’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:562:23: note: in expansion of macro ‘JAS_CAST’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:562:23: note: in expansion of macro ‘JAS_CAST’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:562:23: note: in expansion of macro ‘JAS_CAST’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:562:23: note: in expansion of macro ‘JAS_CAST’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:562:23: note: in expansion of macro ‘JAS_CAST’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:562:23: note: in expansion of macro ‘JAS_CAST’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:562:23: note: in expansion of macro ‘JAS_CAST’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:562:23: note: in expansion of macro ‘JAS_CAST’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:562:23: note: in expansion of macro ‘JAS_CAST’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:562:23: note: in expansion of macro ‘JAS_CAST’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:562:23: note: in expansion of macro ‘JAS_CAST’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c: scope_hint: In function ‘bmp_getinfo’
cc1: note: unrecognized command-line option ‘-Wno-tautological-constant-out-of-range-compare’ may have been intended to silence earlier diagnostics
#  409|   	for (i = 0; i < info->numcolors; ++i) {
#  410|   		palent = &info->palents[i];
#  411|-> 		if ((palent->blu = jas_stream_getc(in)) == EOF ||
#  412|   		  (palent->grn = jas_stream_getc(in)) == EOF ||
#  413|   		  (palent->red = jas_stream_getc(in)) == EOF ||

Error: CLANG_WARNING: [#def24]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_dec.c:506:5: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  504|   				jas_matrix_setv(cmpts[2], j, blu);
#  505|   			} else {
#  506|-> 				jas_matrix_setv(cmpts[0], j, red);
#  507|   			}
#  508|   		}

Error: CPPCHECK_WARNING: [#def25]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def26]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/bmp/bmp_enc.c:301:3: warning[core.uninitialized.ArraySubscript]: Array subscript is undefined
#  299|   	ret = 0;
#  300|   	for (i = 0; i < numcmpts; ++i) {
#  301|-> 		bufs[cmpts[i]] = 0;
#  302|   	}
#  303|   

Error: CPPCHECK_WARNING (CWE-457): [#def27]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_math.h:527: warning[uninitvar]: Uninitialized variable: result.valid
#  525|   		result.value = x.value + y.value;
#  526|   	}
#  527|-> 	return result;
#  528|   }
#  529|   

Error: CLANG_WARNING: [#def28]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/pnm/pnm_dec.c:76: included_from: Included from here.
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_init.h:74: included_from: Included from here.
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_image.h:81: included_from: Included from here.
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_seq.h:81: included_from: Included from here.
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_math.h:599:6: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
#  597|   {
#  598|   	jas_i32_t result;
#  599|-> 	if (x.valid && x.value >= JAS_I32_MIN && x.value <= JAS_I32_MAX) {
#  600|   		result = JAS_CAST(jas_i32_t, x.value);
#  601|   	} else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_math.h:82: included_from: Included from here.
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_seq.h:81: included_from: Included from here.
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_image.h:81: included_from: Included from here.
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_init.h:74: included_from: Included from here.
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/pnm/pnm_dec.c:76: included_from: Included from here.
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_seq.h: scope_hint: In function ‘jas_matrix_set’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_seq.h:226:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘matrix’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/pnm/pnm_dec.c:86: included_from: Included from here.
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_image.h:79: included_from: Included from here.
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/pnm/pnm_dec.c:379:50: note: in expansion of macro ‘jas_stream_getc’
#  224|   static inline void jas_matrix_set(jas_matrix_t *matrix, jas_matind_t i, jas_matind_t j, jas_seqent_t v)
#  225|   {
#  226|-> 	assert(i >= 0 && i < matrix->numrows_ && j >= 0 && j < matrix->numcols_);
#  227|   	matrix->rows_[i][j] = v;
#  228|   }

Error: CLANG_WARNING: [#def30]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/ras/ras_dec.c:76: included_from: Included from here.
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_init.h:74: included_from: Included from here.
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_image.h:81: included_from: Included from here.
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_seq.h:248:6: warning[core.NullDereference]: Access to field 'numrows_' results in a dereference of a null pointer (loaded from variable 'matrix')
#  246|   static inline void jas_matrix_setv(jas_matrix_t *matrix, jas_matind_t i, jas_seqent_t v)
#  247|   {
#  248|-> 	if (matrix->numrows_ == 1)
#  249|   		matrix->rows_[0][i] = v;
#  250|   	else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_seq.h:261:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/base/jas_seq.c: scope_hint: In function ‘jas_matrix_copy’
#  259|   static inline jas_seqent_t *jas_matrix_getref(const jas_matrix_t *matrix, jas_matind_t i, jas_matind_t j)
#  260|   {
#  261|-> 	return &matrix->rows_[i][j];
#  262|   }
#  263|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/include/jasper/jas_seq.h:261:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/base/jas_seq.c: scope_hint: In function ‘jas_matrix_copy’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/base/jas_seq.c: scope_hint: In function ‘jas_matrix_copy’
#  259|   static inline jas_seqent_t *jas_matrix_getref(const jas_matrix_t *matrix, jas_matind_t i, jas_matind_t j)
#  260|   {
#  261|-> 	return &matrix->rows_[i][j];
#  262|   }
#  263|   

Error: CPPCHECK_WARNING: [#def33]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jp2/jp2_cod.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def34]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_bs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def35]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_bs.c:173:8: warning[core.BitwiseShift]: Right shift overflows the capacity of 'uint_fast16_t'
#  171|   	int ret;
#  172|   	JAS_LOGDEBUGF(1000, "jpc_bitstream_getbit_func(%p)\n", bitstream);
#  173|-> 	ret = jpc_bitstream_getbit_macro(bitstream);
#  174|   	JAS_LOGDEBUGF(1000, "jpc_bitstream_getbit_func -> %d\n", ret);
#  175|   	return ret;

Error: CLANG_WARNING: [#def36]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_bs.c:424:3: warning[deadcode.DeadStores]: Value stored to 'n' is never read
#  422|   		v = filldata >> (7 - n);
#  423|   	} else {
#  424|-> 		n = 0;
#  425|   		v = 0;
#  426|   		return 0;

Error: CLANG_WARNING: [#def37]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_bs.c:425:3: warning[deadcode.DeadStores]: Value stored to 'v' is never read
#  423|   	} else {
#  424|   		n = 0;
#  425|-> 		v = 0;
#  426|   		return 0;
#  427|   	}

Error: CPPCHECK_WARNING: [#def38]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_cs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def39]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_dec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def40]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_dec.c:1432:54: warning[core.DivideZero]: Division by zero
# 1430|   		return -1;
# 1431|   	}
# 1432|-> 	if (dec->max_samples > 0 && size > dec->max_samples / dec->numcomps / 16) {
# 1433|   		/* another DoS check: since each tile allocates an
# 1434|   		   array of components, this check attempts to catch

Error: CPPCHECK_WARNING: [#def41]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def42]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_enc.c:462:11: warning[deadcode.DeadStores]: Although the value stored to 'ret' is used in the enclosing expression, the value is never actually read from 'ret'
#  460|   	}
#  461|   
#  462|-> 	while (!(ret = jas_tvparser_next(tvp))) {
#  463|   		switch (jas_taginfo_nonull(jas_taginfos_lookup(encopts,
#  464|   		  jas_tvparser_gettag(tvp)))->id) {

Error: CLANG_WARNING: [#def43]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_enc.c:1163:3: warning[deadcode.DeadStores]: Value stored to 'endcomps' is never read
# 1161|   		}
# 1162|   
# 1163|-> 		endcomps = &tile->tcmpts[tile->numtcmpts];
# 1164|   		for (cmptno = 0, comp = tile->tcmpts; cmptno < tile->numtcmpts; ++cmptno, ++comp) {
# 1165|   			if (!cp->ccps[cmptno].sgnd) {

Error: CLANG_WARNING: [#def44]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_enc.c:1224:6: warning[deadcode.DeadStores]: Value stored to 'actualnumbps' is never read
# 1222|   						continue;
# 1223|   					}
# 1224|-> 					actualnumbps = 0;
# 1225|   					mxmag = 0;
# 1226|   					for (jas_matind_t y = 0; y < jas_matrix_numrows(band->data); ++y) {

Error: CPPCHECK_WARNING: [#def45]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_qmfb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def46]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_t1dec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def47]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_t1enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def48]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_t1enc.c:587:4: warning[deadcode.DeadStores]: Value stored to 'fp' is never read
#  585|   				continue;
#  586|   			}
#  587|-> 			fp += frowstep;
#  588|   			dp += drowstep;
#  589|   

Error: CLANG_WARNING: [#def49]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_t1enc.c:588:4: warning[deadcode.DeadStores]: Value stored to 'dp' is never read
#  586|   			}
#  587|   			fp += frowstep;
#  588|-> 			dp += drowstep;
#  589|   
#  590|   		}

Error: CPPCHECK_WARNING: [#def50]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_t2cod.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def51]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_t2dec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def52]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_t2enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def53]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_tagtree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def54]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpc/jpc_util.c:100:7: warning[deadcode.DeadStores]: Although the value stored to 'cp' is used in the enclosing expression, the value is never actually read from 'cp'
#   98|   	n = 0;
#   99|   	char* saveptr = 0;
#  100|-> 	if ((cp = jas_strtok(buf, delim, &saveptr))) {
#  101|   		++n;
#  102|   		while ((cp = jas_strtok(0, delim, &saveptr))) {

Error: CPPCHECK_WARNING: [#def55]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpg/jpg_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def56]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/jpg/jpg_enc.c:173:7: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
#  171|   	}
#  172|   	for (cmptno = 0; cmptno < cinfo->input_components; ++cmptno) {
#  173|-> 		if (jas_image_readcmpt(sinfo->image, cmpts[cmptno], 0, sinfo->row, width, 1, sinfo->data)) {
#  174|   			;
#  175|   		}

Error: CPPCHECK_WARNING: [#def57]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/mif/mif_cod.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def58]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/mif/mif_cod.c:608:7: warning[deadcode.DeadStores]: Although the value stored to 'id' is used in the enclosing expression, the value is never actually read from 'id'
#  606|   
#  607|   	// Skip the component keyword
#  608|-> 	if ((id = jas_tvparser_next(tvp))) {
#  609|   		// This should never happen.
#  610|   		abort();

Error: CLANG_WARNING: [#def59]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/mif/mif_cod.c:614:11: warning[deadcode.DeadStores]: Although the value stored to 'id' is used in the enclosing expression, the value is never actually read from 'id'
#  612|   
#  613|   	// Process the tag-value pairs.
#  614|-> 	while (!(id = jas_tvparser_next(tvp))) {
#  615|   		switch (jas_taginfo_nonull(jas_taginfos_lookup(mif_tags,
#  616|   		  jas_tvparser_gettag(tvp)))->id) {

Error: CPPCHECK_WARNING: [#def60]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/pnm/pnm_dec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-121): [#def61]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/pnm/pnm_dec.c: scope_hint: In function ‘pnm_getdata’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/pnm/pnm_dec.c:370:36: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/pnm/pnm_dec.c:370:36: note: write of 8 bytes to beyond the end of ‘data’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/pnm/pnm_dec.c:370:36: note: valid subscripts for ‘data’ are ‘[0]’ to ‘[2]’
cc1: note: unrecognized command-line option ‘-Wno-tautological-constant-out-of-range-compare’ may have been intended to silence earlier diagnostics
#  368|   	data[2] = 0;
#  369|   	for (cmptno = 0; cmptno < hdr->numcmpts; ++cmptno) {
#  370|-> 		if (!(data[cmptno] = jas_matrix_create(1, hdr->width))) {
#  371|   			goto done;
#  372|   		}

Error: CPPCHECK_WARNING: [#def62]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/pnm/pnm_enc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-121): [#def63]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/pnm/pnm_enc.c: scope_hint: In function ‘pnm_putdata’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/pnm/pnm_enc.c:340:36: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/pnm/pnm_enc.c:340:36: note: write of 8 bytes to beyond the end of ‘data’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/pnm/pnm_enc.c:340:36: note: valid subscripts for ‘data’ are ‘[0]’ to ‘[2]’
cc1: note: unrecognized command-line option ‘-Wno-tautological-constant-out-of-range-compare’ may have been intended to silence earlier diagnostics
#  338|   	data[2] = 0;
#  339|   	for (cmptno = 0; cmptno < numcmpts; ++cmptno) {
#  340|-> 		if (!(data[cmptno] = jas_matrix_create(1, hdr->width))) {
#  341|   			goto done;
#  342|   		}

Error: CLANG_WARNING: [#def64]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/pnm/pnm_enc.c:392:4: warning[deadcode.DeadStores]: Value stored to 'linelen' is never read
#  390|   		if (fmt != PNM_FMT_BIN) {
#  391|   			jas_stream_printf(out, "\n");
#  392|-> 			linelen = 0;
#  393|   		}
#  394|   		if (jas_stream_error(out)) {

Error: CPPCHECK_WARNING: [#def65]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/ras/ras_dec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def66]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/ras/ras_dec.c:369:9: warning[deadcode.DeadStores]: Although the value stored to 'c' is used in the enclosing expression, the value is never actually read from 'c'
#  367|   		}
#  368|   		if (pad) {
#  369|-> 			if ((c = jas_stream_getc(in)) == EOF) {
#  370|   				goto error;
#  371|   			}

Error: CLANG_WARNING: [#def67]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/ras/ras_dec.c:374:8: warning[core.CallAndMessage]: 7th function call argument is an uninitialized value
#  372|   		}
#  373|   		for (unsigned i = 0; i < jas_image_numcmpts(image); ++i) {
#  374|-> 			if (jas_image_writecmpt(image, i, 0, y, hdr->width, 1,
#  375|   			  data[i])) {
#  376|   				goto error;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def68]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/ras/ras_dec.c: scope_hint: In function ‘ras_getdatastd’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/ras/ras_dec.c:382:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/ras/ras_dec.c:83: included_from: Included from here.
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/ras/ras_dec.c:382:17: note: read of 8 bytes from after the end of ‘data’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/ras/ras_dec.c:382:17: note: valid subscripts for ‘data’ are ‘[0]’ to ‘[2]’
#                                             └─────────────────────────────────────────┘
#                                                                  ^
#  380|   
#  381|   	for (unsigned i = 0; i < jas_image_numcmpts(image); ++i) {
#  382|-> 		jas_matrix_destroy(data[i]);
#  383|   		data[i] = 0;
#  384|   	}

Error: GCC_ANALYZER_WARNING (CWE-121): [#def69]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/ras/ras_dec.c:383:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/ras/ras_dec.c:383:25: note: write of 8 bytes to beyond the end of ‘data’
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/ras/ras_dec.c:383:25: note: valid subscripts for ‘data’ are ‘[0]’ to ‘[2]’
#  381|   	for (unsigned i = 0; i < jas_image_numcmpts(image); ++i) {
#  382|   		jas_matrix_destroy(data[i]);
#  383|-> 		data[i] = 0;
#  384|   	}
#  385|   

Error: CLANG_WARNING: [#def70]
jasper-4.2.3-build/jasper-version-4.2.3/src/libjasper/ras/ras_dec.c:441:19: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
#  439|   					break;
#  440|   				}
#  441|-> 				cmap->data[j] |= x;
#  442|   			}
#  443|   		}

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-242.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namejasper-4.2.3-1.fc41
store-results-to/tmp/tmpyd7laww1/jasper-4.2.3-1.fc41.tar.xz
time-created2024-07-03 13:28:21
time-finished2024-07-03 13:29:51
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpyd7laww1/jasper-4.2.3-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpyd7laww1/jasper-4.2.3-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9