coreboot_scanbuild - scan-build results

User:coreboot@f7d0bd87af6a
Working Directory:/home/coreboot/node-root/workspace/coreboot_scanbuild
Command Line:make -j 96 DOTCONFIG=/tmp/tmp.zJgvKmaH2w obj=/cb-build/coreboot_scanbuild.0/temp objutil=/cb-build/coreboot_scanbuild.0/sharedutils tools
Clang Version:coreboot toolchain v2024-03-30_cccada28f7 - clang version 17.0.6 (https://review.coreboot.org/coreboot 619535778cf7c6b141f8c13b967995327108a50a)
Date:Thu May 9 07:30:03 2024

Bug Summary

Bug TypeQuantityDisplay?
All Bugs42
API
Argument with 'nonnull' attribute passed null3
Logic error
Assigned value is garbage or undefined3
Dereference of null pointer2
Result of operation is garbage or undefined6
Stack address stored into global variable3
Memory error
Memory leak9
Offset free1
Unix API
Allocator sizeof operand mismatch4
Unused code
Dead assignment5
Dead increment3
Dead initialization2
Dead nested assignment1

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length
Unix APIAllocator sizeof operand mismatch3rdparty/vboot/cgpt/cgpt_common.cGptLoad1681View Report
Unix APIAllocator sizeof operand mismatch3rdparty/vboot/firmware/lib/gpt_misc.cAllocAndReadGptData361View Report
Unix APIAllocator sizeof operand mismatch3rdparty/vboot/firmware/lib/gpt_misc.cAllocAndReadGptData351View Report
Unix APIAllocator sizeof operand mismatch3rdparty/vboot/cgpt/cgpt_common.cGptLoad1691View Report
APIArgument with 'nonnull' attribute passed null3rdparty/vboot/futility/file_type_rwsig.cft_sign_rwsig32218View Report
APIArgument with 'nonnull' attribute passed null3rdparty/vboot/firmware/lib/tpm_lite/tlcl.cTlclWrite6376View Report
APIArgument with 'nonnull' attribute passed null3rdparty/vboot/host/lib/subprocess.csubprocess_run32824View Report
Logic errorAssigned value is garbage or undefinedutil/cbfstool/elfheaders.cwrite_phdrs99330View Report
Logic errorAssigned value is garbage or undefinedutil/cbfstool/elfheaders.cwrite_phdrs99028View Report
Logic errorAssigned value is garbage or undefinedutil/cbfstool/elfheaders.cwrite_phdrs99230View Report
Unused codeDead assignment3rdparty/vboot/futility/cmd_gbb_utility.cdo_gbb6461View Report
Unused codeDead assignment3rdparty/vboot/cgpt/cgpt_common.cUTF16ToUTF85091View Report
Unused codeDead assignment3rdparty/vboot/firmware/2lib/2load_kernel.cvb2_verify_kernel_vblock3031View Report
Unused codeDead assignment3rdparty/vboot/firmware/lib/cgptlib/cgptlib_internal.cGptValidityCheck3021View Report
Unused codeDead assignmentutil/nvidia/cbootimage/src/data_layout.cwrite_block_raw9801View Report
Unused codeDead increment3rdparty/vboot/futility/cmd_gbb_utility.ccreate_gbb2211View Report
Unused codeDead increment3rdparty/vboot/firmware/lib/tpm_lite/tlcl.cAddRequestAuthBlock3181View Report
Unused codeDead increment3rdparty/vboot/futility/cmd_vbutil_firmware.cdo_verify2681View Report
Unused codeDead initialization3rdparty/vboot/futility/futility.cdo_help2301View Report
Unused codeDead initializationutil/sconfig/main.cupdate_device18011View Report
Unused codeDead nested assignmentutil/supermicro/smcbiosinfo/smcbiosinfo.cget_line811View Report
Logic errorDereference of null pointerutil/cbfstool/cbfs_image.ccbfs_fix_legacy_size9722View Report
Logic errorDereference of null pointerutil/cbfstool/fmd.cvalidate_and_complete_info20418View Report
Memory errorMemory leak3rdparty/vboot/host/lib/host_key2.cvb2_read_private_key1368View Report
Memory errorMemory leakutil/amdfwtool/amdfwtool.cmain163114View Report
Memory errorMemory leakutil/amdfwtool/amdfwtool.cmain16148View Report
Memory errorMemory leakutil/ifdtool/ifdtool.cmain249638View Report
Memory errorMemory leakutil/cbfstool/cbfs-mkstage.cparse_elf_to_xip_stage37628View Report
Memory errorMemory leakutil/nvidia/cbootimage/src/data_layout.cwrite_image60439View Report
Memory errorMemory leakutil/amdfwtool/amdfwtool.cmain16148View Report
Memory errorMemory leakutil/cbfstool/cbfs-mkstage.cfind_loadable_segments30926View Report
Memory errorMemory leakutil/nvramtool/cmos_lowlevel.ccmos_read1338View Report
Memory errorOffset free3rdparty/vboot/host/lib/util_misc.cvb_keyb_from_modulus16011View Report
Logic errorResult of operation is garbage or undefinedutil/nvramtool/cmos_lowlevel.cget_bits6317View Report
Logic errorResult of operation is garbage or undefinedutil/ifdtool/ifdtool.clock_descriptor147865View Report
Logic errorResult of operation is garbage or undefined3rdparty/vboot/host/arch/x86/lib/crossystem_arch.cVbSharedDataRead40854View Report
Logic errorResult of operation is garbage or undefinedutil/nvramtool/cmos_lowlevel.ccmos_read_bits30519View Report
Logic errorResult of operation is garbage or undefinedutil/ifdtool/ifdtool.cdecode_flmstr83258View Report
Logic errorResult of operation is garbage or undefinedutil/ifdtool/ifdtool.cnew_layout205610View Report
Logic errorStack address stored into global variable3rdparty/vboot/futility/cmd_show.cdo_show83121View Report
Logic errorStack address stored into global variable3rdparty/vboot/futility/cmd_show.cdo_show77510View Report
Logic errorStack address stored into global variable3rdparty/vboot/futility/cmd_show.cdo_show79817View Report