ima-evm-utils-1.6.2-3.fc42

List of Findings

Error: SHELLCHECK_WARNING (CWE-457): [#def1]
/usr/bin/ima-setup:36:10: warning[SC2154]: policy_file is referenced but not assigned.
#   34|   		ima_policy_path=${_opt#*=}
#   35|   		if [[ ! -e $ima_policy_path ]]; then
#   36|-> 			echo "$policy_file doesn't exist"
#   37|   			exit 1
#   38|   		fi

Error: SHELLCHECK_WARNING (CWE-563): [#def2]
/usr/bin/ima-setup:41:3: warning[SC2034]: reinstall_threshold appears unused. Verify use (or export if used externally).
#   39|   		;;
#   40|   	--reinstall_threshold=*)
#   41|-> 		reinstall_threshold=${_opt#*=}
#   42|   		;;
#   43|   	*)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
ima-evm-utils-1.6.2-build/ima-evm-utils-1.6.2/src/libimaevm.c:51: included_from: Included from here.
ima-evm-utils-1.6.2-build/ima-evm-utils-1.6.2/src/libimaevm.c: scope_hint: In function 'find_keyid'
ima-evm-utils-1.6.2-build/ima-evm-utils-1.6.2/src/imaevm.h:47:15: warning[-Wanalyzer-malloc-leak]: leak of 'entry'
ima-evm-utils-1.6.2-build/ima-evm-utils-1.6.2/src/imaevm.h:67:41: note: in expansion of macro 'do_log'
ima-evm-utils-1.6.2-build/ima-evm-utils-1.6.2/src/libimaevm.c:392:9: note: in expansion of macro 'log_err'
ima-evm-utils-1.6.2-build/ima-evm-utils-1.6.2/src/imaevm.h:67:41: note: in expansion of macro 'do_log'
ima-evm-utils-1.6.2-build/ima-evm-utils-1.6.2/src/libimaevm.c:392:9: note: in expansion of macro 'log_err'
ima-evm-utils-1.6.2-build/ima-evm-utils-1.6.2/src/imaevm.h:67:41: note: in expansion of macro 'do_log'
ima-evm-utils-1.6.2-build/ima-evm-utils-1.6.2/src/libimaevm.c:392:9: note: in expansion of macro 'log_err'
#   45|   #ifdef USE_FPRINTF
#   46|   #define do_log(level, fmt, args...)	\
#   47|-> 	({ if (level <= imaevm_params.verbose) fprintf(stderr, fmt, ##args); })
#   48|   #define do_log_dump(level, p, len, cr)	\
#   49|   	({ if (level <= imaevm_params.verbose) imaevm_do_hexdump(stderr, p, len, cr); })

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-144.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameima-evm-utils-1.6.2-3.fc42
store-results-to/tmp/tmpftz9okcf/ima-evm-utils-1.6.2-3.fc42.tar.xz
time-created2024-11-13 00:16:51
time-finished2024-11-13 00:18:50
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpftz9okcf/ima-evm-utils-1.6.2-3.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpftz9okcf/ima-evm-utils-1.6.2-3.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9