dmidecode-3.5-3.fc40

List of Defects

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

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

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

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

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

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

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

Error: CPPCHECK_WARNING: [#def8]
dmidecode-3.5-build/dmidecode-3.5/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.5-3.fc40
store-results-to/tmp/tmpab9g18an/dmidecode-3.5-3.fc40.tar.xz
time-created2024-07-03 12:28:20
time-finished2024-07-03 12:29:36
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpab9g18an/dmidecode-3.5-3.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpab9g18an/dmidecode-3.5-3.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9