coreboot/src/soc/intel/common
John Zhao 2bb432ece6 soc/intel/common: Check bios_size and window_size after MIN operation
Clang Static Analyzer version 8.0.0 detects that log2_ceil(bios_size)
and log2_ceil(window_size) are garbage or undefined if the value of
bios_size and window_size is zero. Check bios_size and window_size after
MIN operation to prevent error.

TEST=Built and boot up to kernel.

Change-Id: Ifc3f3da52d129ef5d6063a46b045603a236be759
Signed-off-by: John Zhao <john.zhao@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32924
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
2019-05-29 20:08:04 +00:00
..
acpi soc/intel/common/acpi: Remove EC PTS/WAK dynamic loading 2019-05-09 00:25:35 +00:00
basecode soc/intel/common: Make infrastructure ready for Intel common stage files 2018-06-21 15:54:48 +00:00
block soc/intel/common: Check bios_size and window_size after MIN operation 2019-05-29 20:08:04 +00:00
pch src: Use 'include <string.h>' when appropriate 2019-03-20 20:27:51 +00:00
acpi.h soc/intel/common/block: Common ACPI 2017-09-08 19:01:04 +00:00
acpi_wake_source.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
hda_verb.c device/mmio.h: Add include file for MMIO ops 2019-03-04 15:57:39 +00:00
hda_verb.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
Kconfig soc/intel/common/acpi: Remove EC PTS/WAK dynamic loading 2019-05-09 00:25:35 +00:00
Makefile.inc soc/intel/common: Bring DISPLAY_MTRRS into the light 2018-11-23 08:34:16 +00:00
mma.c src: Use 'include <string.h>' when appropriate 2019-03-20 20:27:51 +00:00
mma.h intel MMA: Enable MMA with FSP2.0 2016-12-13 18:00:43 +01:00
nhlt.c lib/nhlt: add support for setting the oem_revision 2016-12-01 08:17:42 +01:00
reset.c intel: Use CF9 reset (part 2) 2018-10-22 08:35:32 +00:00
reset.h intel: Use CF9 reset (part 2) 2018-10-22 08:35:32 +00:00
smbios.c soc/intel: Fill DIMM serial number from SPD 2019-05-18 20:32:42 +00:00
smbios.h soc/intel: Fill DIMM serial number from SPD 2019-05-18 20:32:42 +00:00
tpm_tis.c security/tpm: Change TPM naming for different layers. 2018-01-18 01:45:35 +00:00
vbt.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
vbt.h drivers/intel/gma, soc/intel/common: improve cooperation 2018-05-09 13:48:07 +00:00