coreboot_scanbuild - scan-build results

User:coreboot@5ed558fa954b
Working Directory:/home/coreboot/slave-root/workspace/coreboot_scanbuild
Command Line:make V=0 DOTCONFIG=/cb-build/coreboot_scanbuild.0/AMD_TORPEDO/config.build obj=/cb-build/coreboot_scanbuild.0/AMD_TORPEDO objutil=/cb-build/coreboot_scanbuild.0/sharedutils BUILD_TIMELESS=1
Clang Version:coreboot toolchain vd70f5fae1c 2019-05-26 - clang version 8.0.0 (tags/RELEASE_800/final) (based on LLVM 8.0.0)
Date:Thu Sep 19 10:38:07 2019

Bug Summary

Bug TypeQuantityDisplay?
All Bugs134
Dead store
Dead assignment46
Dead increment1
Logic error
Assigned value is garbage or undefined9
Branch condition evaluates to a garbage value1
Called function pointer is an uninitialized pointer value8
Dereference of null pointer25
Division by zero1
Result of operation is garbage or undefined40
Uninitialized argument value2
Unix API1

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length
Logic errorAssigned value is garbage or undefinedvendorcode/amd/agesa/f12/Proc/Mem/Ps/mpmaxfreq.cMemPGetMaxFreqSupported21425View Report
Logic errorAssigned value is garbage or undefinedvendorcode/amd/agesa/f12/Proc/Mem/Ps/mpmaxfreq.cMemPGetMaxFreqSupported21022View Report
Logic errorAssigned value is garbage or undefinedvendorcode/amd/agesa/f12/Proc/Mem/Ps/mpmaxfreq.cMemPGetMaxFreqSupported20720View Report
Logic errorAssigned value is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/cpuF12Utilities.cF12GetNbPstateInfo3356View Report
Logic errorAssigned value is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/cpuF12Utilities.cF12GetNbPstateInfo3283View Report
Logic errorAssigned value is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/cpuF12Utilities.cF12GetTscRate2465View Report
Logic errorAssigned value is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/cpuF12Pstate.cF12GetPstateMaxState3921View Report
Logic errorAssigned value is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/cpuF12PowerPlane.cF12PmVrmLowPowerModeEnable25415View Report
Logic errorAssigned value is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/cpuF12Dmi.cDmiF12GetVoltage1911View Report
Logic errorBranch condition evaluates to a garbage valuevendorcode/amd/agesa/f12/Proc/Mem/Main/mmExcludeDimm.cMemMRASExcludeDIMM21716View Report
Logic errorCalled function pointer is an uninitialized pointer valuevendorcode/amd/agesa/f12/Proc/CPU/cpuApicUtilities.cApEntry42615View Report
Logic errorCalled function pointer is an uninitialized pointer valuevendorcode/amd/agesa/f12/Proc/CPU/cpuApicUtilities.cApEntry42315View Report
Logic errorCalled function pointer is an uninitialized pointer valuevendorcode/amd/agesa/f12/Proc/CPU/cpuApicUtilities.cApEntry42015View Report
Logic errorCalled function pointer is an uninitialized pointer valuevendorcode/amd/agesa/f12/Proc/CPU/cpuApicUtilities.cApEntry41715View Report
Logic errorCalled function pointer is an uninitialized pointer valuevendorcode/amd/agesa/f12/Proc/CPU/cpuApicUtilities.cApEntry41415View Report
Logic errorCalled function pointer is an uninitialized pointer valuevendorcode/amd/agesa/f12/Proc/CPU/cpuApicUtilities.cApEntry41115View Report
Logic errorCalled function pointer is an uninitialized pointer valuevendorcode/amd/agesa/f12/Proc/CPU/cpuApicUtilities.cApEntry40815View Report
Logic errorCalled function pointer is an uninitialized pointer valuevendorcode/amd/agesa/f12/Proc/CPU/cpuApicUtilities.cApEntry40515View Report
Dead storeDead assignmentvendorcode/amd/cimx/sb900/Sata.csataGpioPorcedure2601View Report
Dead storeDead assignmentvendorcode/amd/cimx/sb900/EcFanLib.cWriteECmsg671View Report
Dead storeDead assignmentvendorcode/amd/cimx/sb900/EcFanLib.cReadECmsg501View Report
Dead storeDead assignmentvendorcode/amd/cimx/sb900/AmdLib.cgetNumberOfCpuCores391View Report
Dead storeDead assignmentvendorcode/amd/cimx/sb900/AcpiLib.cACPI_SetTableChecksum1021View Report
Dead storeDead assignmentvendorcode/amd/cimx/sb900/Sata.csataGpioPorcedure2601View Report
Dead storeDead assignmentvendorcode/amd/cimx/sb900/EcFanLib.cWriteECmsg671View Report
Dead storeDead assignmentvendorcode/amd/cimx/sb900/EcFanLib.cReadECmsg501View Report
Dead storeDead assignmentvendorcode/amd/cimx/sb900/AmdLib.cgetNumberOfCpuCores391View Report
Dead storeDead assignmentvendorcode/amd/cimx/sb900/AcpiLib.cACPI_SetTableChecksum1021View Report
Dead storeDead assignmentdevice/dram/ddr4.cspd_decode_ddr41221View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/Mem/Ps/mpsao.cMemPGetSAO1361View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/Mem/Ps/mprtt.cMemPGetRttNomWr1411View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/Mem/Ps/mprc2ibt.cMemPGetRC2IBT1401View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/Mem/Ps/mprc10opspd.cMemPGetRC10OpSpd1311View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/Mem/Ps/mpodtpat.cMemPGetODTPattern1321View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/Mem/Ps/mpmaxfreq.cMemPGetMaxFreqSupported1511View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/Mem/Ps/mplribt.cMemPGetLRIBT1371View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/Mem/Ps/mp.cMemPPSCGen4651View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/Mem/Ps/mp.cMemPConstructRankTypeMap3281View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/Mem/Ps/mp.cMemPConstructRankTypeMap3271View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/Mem/Main/mmMemRestore.cMemMSetCSRNb4811View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/Mem/Main/mmConditionalPso.cMemPSODoActionGetFreqLimit6311View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/Mem/Feat/TABLE/mftds.cSetTableValues1911View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/Mem/Feat/S3/mfs3.cMemS3Deallocate1921View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/Mem/Feat/S3/mfs3.cMemS3Deallocate1881View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/Mem/Feat/MEMCLR/mfmemclr.cMemFMctMemClr_Sync1321View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/GNB/PCIe/Feature/PciePowerGate.cPciePowerGateFeature3481View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/GNB/PCIe/Family/LN/F12PcieWrapperServices.cPcieFmGetLinkSpeedCap5681View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/GNB/Modules/GnbPcieInitLibV1/PcieUtilityLib.cPcieUtilGlobalGenCapabilityCallback6011View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/GNB/Modules/GnbPcieInitLibV1/PcieUtilityLib.cPcieUtilGetDdiEngineLaneBitMap3571View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/GNB/Modules/GnbPcieInitLibV1/PcieUtilityLib.cPcieUtilGetDdiEngineLaneBitMap3561View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/GNB/Modules/GnbPcieInitLibV1/PcieAspm.cPcieAspmCallback1541View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/GNB/Modules/GnbPcieAlibV1/PcieAlib.cPcieAlibBuildAcpiTable2531View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/GNB/Modules/GnbGfxInitLibV1/GfxEnumConnectors.cGfxIntegratedEnumConnectorsForDevice4811View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/GNB/Modules/GnbGfxInitLibV1/GfxEnumConnectors.cGfxIntegratedEnumConnectorsForDevice4751View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/Common/AmdS3Save.cAmdS3Save2101View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/CPU/cpuGeneralServices.cGetComputeUnitMapping11141View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/CPU/Feature/cpuPstateTables.cCreatePStateAcpiTables4851View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/CPU/Feature/cpuPstateTables.cGenerateSsdt2761View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/CPU/Feature/cpuPstateLeveling.cPStateLevelingMain2371View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/CPU/Feature/cpuPstateLeveling.cPStateLevelingMain2361View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/CPU/Feature/cpuCpb.cInitializeCpbFeature1471View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/CPU/Feature/PreserveMailbox.cPreserveMailboxes2061View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/cpuCommonF12Utilities.cF12NbPstateInit4681View Report
Dead storeDead assignmentvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/cpuCommonF12Utilities.cF12NbPstateInit4591View Report
Dead storeDead incrementvendorcode/amd/agesa/f12/Proc/GNB/Nb/NbSmuLib.cNbSmuReadEfuseField5381View Report
Logic errorDereference of null pointerdevice/device_util.cadd_more_links6948View Report
Logic errorDereference of null pointerdevice/oprom/realmode/x86.csetup_realmode_idt1894View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/Mem/Main/mm.cMemSocketScan1674View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/HT/htInterfaceNonCoherent.cGetManualBuidSwapList14411View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/GNB/Modules/GnbNbInitLibV1/GnbNbInitLibV1.cGnbLocateLowestVidCode3965View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/GNB/Modules/GnbNbInitLibV1/GnbNbInitLibV1.cGnbLocateHighestVidCode3735View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/GNB/Modules/GnbGfxInitLibV1/GfxEnumConnectors.cGfxIntegratedEnumConnectorsForDevice4639View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/CPU/cpuGeneralServices.cGetComputeUnitMapping11269View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/CPU/cpuGeneralServices.cGetNumberOfCompUnitsInCurrentModule6837View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/CPU/cpuApicUtilities.cApUtilTransmitBuffer97120View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/CPU/S3.cRestoreConditionalMsrDevice106810View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/CPU/S3.cRestoreMsrDevice101510View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/CPU/S3.cRestoreConditionalPciDevice92110View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/CPU/S3.cRestorePciDevice81510View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/CPU/S3.cGetWorstCaseContextSize6379View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/CPU/S3.cGetWorstCaseContextSize6269View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/CPU/S3.cGetWorstCaseContextSize6159View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/CPU/S3.cGetWorstCaseContextSize6049View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/CPU/S3.cSaveConditionalMsrDevice54811View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/CPU/S3.cSaveMsrDevice50511View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/CPU/S3.cSaveConditionalPciDevice42411View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/CPU/S3.cSavePciDevice33211View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/CPU/Feature/PreserveMailbox.cPreserveMailboxes19819View Report
Logic errorDereference of null pointervendorcode/amd/agesa/f12/Proc/CPU/Feature/PreserveMailbox.cPreserveMailboxes17323View Report
Logic errorDereference of null pointervendorcode/amd/agesa/common/amdlib.cLibAmdPciFindNextCap10374View Report
Logic errorDivision by zerovendorcode/amd/agesa/f12/Proc/Mem/Tech/DDR3/mtlrdimm3.cMemTLrdimmRankMultiplication95920View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/cimx/sb900/PmioLib.cRWPMIO1249View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/cimx/sb900/Pmio2Lib.cRWPMIO21259View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/cimx/sb900/MemLib.cRWMEM897View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/cimx/sb900/IoLib.cRWIO907View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/cimx/sb900/PmioLib.cRWPMIO1249View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/cimx/sb900/Pmio2Lib.cRWPMIO21259View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/cimx/sb900/MemLib.cRWMEM897View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/cimx/sb900/IoLib.cRWIO907View Report
Logic errorResult of operation is garbage or undefineddevice/dram/ddr2.cspd_decode_ddr247726View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/Mem/Ps/mpsao.cMemPGetSAO18119View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/Mem/Ps/mprtt.cMemPGetRttNomWr18619View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/Mem/Ps/mprc2ibt.cMemPGetRC2IBT17017View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/Mem/Ps/mplribt.cMemPGetLRIBT16717View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/Mem/NB/mnS3.cMemNS3SetDisAutoCompUnb82312View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/GNB/Modules/GnbPcieInitLibV1/PcieTopologyServices.cPcieWrapSetTxS1CtrlForLaneMux68741View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/GNB/Modules/GnbPcieInitLibV1/PcieTopologyServices.cPcieWrapSetTxS1CtrlForLaneMux68737View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/GNB/Modules/GnbPcieInitLibV1/PcieTopologyServices.cPcieWrapSetTxS1CtrlForLaneMux68733View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/GNB/Modules/GnbPcieInitLibV1/PcieTopologyServices.cPcieWrapSetTxS1CtrlForLaneMux68729View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/GNB/Modules/GnbPcieInitLibV1/PcieTopologyServices.cPcieWrapSetTxS1CtrlForLaneMux68725View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/GNB/Modules/GnbPcieInitLibV1/PcieTopologyServices.cPcieWrapSetTxS1CtrlForLaneMux68721View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/cpuGeneralServices.cGetCurrentNodeNum5532View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/cpuGeneralServices.cIdentifyCore3073View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Feature/cpuCoreLeveling.cCoreLevelingAtEarly30912View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Feature/cpuCoreLeveling.cCoreLevelingAtEarly24312View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/cpuF12Utilities.cF12GetProcIddMax5423View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/cpuF12Utilities.cF12IsNbPstateEnabled3681View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/cpuF12Utilities.cF12TransitionPstate2001View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/cpuF12SoftwareThermal.cF12PmThermalInit1101View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/cpuF12Pstate.cF12GetPstateRegisterInfo4443View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/cpuF12Pstate.cF12GetPstatePower3313View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/cpuF12Pstate.cF12GetPstateFrequency2363View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/cpuF12PowerPlane.cF12PmPwrPlaneInit18931View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/cpuF12PowerCheck.cF12PmPwrCheck1774View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/cpuF12EarlyNbPstateInit.cF12NbPstateEarlyInit1081View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/F12IoCstate.cF12InitializeIoCstate1164View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/F12C6State.cF12InitializeC61502View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/F12C6State.cF12IsC6Supported1141View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/common/amdlib.cLibAmdMemPoll7409View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/common/amdlib.cLibAmdMemRMW7069View Report
Logic errorResult of operation is garbage or undefinedvendorcode/amd/agesa/common/amdlib.cLibAmdIoPoll6019View Report
Logic errorUninitialized argument valuecpu/x86/mtrr/mtrr.ccommit_fixed_mtrrs35818View Report
Logic errorUninitialized argument valuevendorcode/amd/agesa/f12/Proc/CPU/cpuApicUtilities.cApUtilTransmitBuffer93916View Report
Logic errorUnix APIsecurity/memory/memory_clear.cclear_memory15314View Report

Analyzer Failures

The analyzer had problems processing the following files:

ProblemSource FilePreprocessed FileSTDERR Output
Other Errorlib/coreboot_table.cclang_other_error_3_FoLc.iclang_other_error_3_FoLc.i.stderr.txt
Other Errorlib/bootmode.cclang_other_error_SgM_25.iclang_other_error_SgM_25.i.stderr.txt
Other Errorarch/x86/bootblock_simple.cclang_other_error_Sm5UEJ.iclang_other_error_Sm5UEJ.i.stderr.txt
Other Errorlib/bootmode.cclang_other_error_Y7FR0q.iclang_other_error_Y7FR0q.i.stderr.txt
Other Errorlib/bootmode.cclang_other_error_d6RZhM.iclang_other_error_d6RZhM.i.stderr.txt
Other Errorlib/bootmode.cclang_other_error_f3n01k.iclang_other_error_f3n01k.i.stderr.txt

Please consider submitting preprocessed files as bug reports.