Fixed findings

List of Findings

Error: COMPILER_WARNING: [#def1]
ima-evm-utils-1.6.2/src/evmctl.c: scope_hint: In function ‘read_one_bank’
ima-evm-utils-1.6.2/src/evmctl.c:2014:39: warning[-Wformat-overflow=]: ‘%2.2d’ directive writing between 2 and 11 bytes into a region of size 4
# 2014 |                 sprintf(pcr_str, "PCR-%2.2d", i);
#      |                                       ^~~~~
ima-evm-utils-1.6.2/src/evmctl.c:2014:34: note: directive argument in the range [-2147483648, 23]
# 2014 |                 sprintf(pcr_str, "PCR-%2.2d", i);
#      |                                  ^~~~~~~~~~~
/usr/include/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 7 and 16 bytes into a destination of size 8
#   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   31 |                                   __glibc_objsize (__s), __fmt,
#      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   32 |                                   __va_arg_pack ());
#      |                                   ~~~~~~~~~~~~~~~~~
# 2012|   		if (!p || i >= NUM_PCRS)
# 2013|   			break;
# 2014|-> 		sprintf(pcr_str, "PCR-%2.2d", i);
# 2015|   		if (!strncmp(p, pcr_str, 6))
# 2016|   			hex2bin(tpm_bank->pcr[i++], p + 7, tpm_bank->digest_size);

Scan Properties

analyzer-version-clippy1.95.0
analyzer-version-cppcheck2.20.0
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.95.0
diffbase-analyzer-version-cppcheck2.20.0
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-144.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameima-evm-utils-1.6.2-10.fc45
diffbase-store-results-to/tmp/tmpgc82a9uo/ima-evm-utils-1.6.2-10.fc45.tar.xz
diffbase-time-created2026-06-01 13:04:20
diffbase-time-finished2026-06-01 13:05:42
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpgc82a9uo/ima-evm-utils-1.6.2-10.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpgc82a9uo/ima-evm-utils-1.6.2-10.fc45.src.rpm'
diffbase-tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-144.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameima-evm-utils-1.6.2-8.fc44
store-results-to/tmp/tmpajm3vpb9/ima-evm-utils-1.6.2-8.fc44.tar.xz
time-created2026-06-01 13:02:17
time-finished2026-06-01 13:04:10
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpajm3vpb9/ima-evm-utils-1.6.2-8.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpajm3vpb9/ima-evm-utils-1.6.2-8.fc44.src.rpm'
tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9