dmidecode-3.6-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
dmidecode-3.6-build/dmidecode-3.6/biosdecode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
dmidecode-3.6-build/dmidecode-3.6/dmidecode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-758): [#def3]
dmidecode-3.6-build/dmidecode-3.6/dmidecode.c:403: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  401|   
#  402|   	for (i = 4; i <= 31; i++)
#  403|-> 		if (code.l & (1 << i))
#  404|   			pr_list_item("%s", characteristics[i - 3]);
#  405|   }

Error: CLANG_WARNING: [#def4]
dmidecode-3.6-build/dmidecode-3.6/dmidecode.c:3358:3: warning[deadcode.DeadStores]: Value stored to 'off' is never read
# 3356|   		off += sprintf(time + off, ":*");
# 3357|   	if (dmi_bcd_range(p[4], 0x00, 0x59))
# 3358|-> 		off += sprintf(time + off, ":%02X", p[4]);
# 3359|   	else
# 3360|   		off += sprintf(time + off, ":*");

Error: CLANG_WARNING: [#def5]
dmidecode-3.6-build/dmidecode-3.6/dmidecode.c:3360:3: warning[deadcode.DeadStores]: Value stored to 'off' is never read
# 3358|   		off += sprintf(time + off, ":%02X", p[4]);
# 3359|   	else
# 3360|-> 		off += sprintf(time + off, ":*");
# 3361|   
# 3362|   	pr_attr("Next Scheduled Power-on", time);

Error: CPPCHECK_WARNING: [#def6]
dmidecode-3.6-build/dmidecode-3.6/dmioem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def7]
dmidecode-3.6-build/dmidecode-3.6/ownership.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def8]
dmidecode-3.6-build/dmidecode-3.6/vpddecode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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-153.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namedmidecode-3.6-1.fc41
store-results-to/tmp/tmpo2vkpdfi/dmidecode-3.6-1.fc41.tar.xz
time-created2024-07-03 12:30:02
time-finished2024-07-03 12:30:54
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpo2vkpdfi/dmidecode-3.6-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpo2vkpdfi/dmidecode-3.6-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9