coreboot/src
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
arch arch/x86: Do not add properties to null DP packages 2019-05-29 16:42:36 +00:00
commonlib Renumber cbtable tag MMC_INFO 2019-05-23 10:43:30 +00:00
console console: Move poor-man's atoi() into string.h 2019-05-23 08:43:12 +00:00
cpu src/cpu/x86/lapic/lapic.c: Add missing newline 2019-05-28 09:24:39 +00:00
device vboot: remove OPROM-related code 2019-05-15 17:50:08 +00:00
drivers drivers/intel/fsp2_0: Dont' use CAR_GLOBAL 2019-05-29 20:06:26 +00:00
ec ec/google/wilco: Fix radio control command 2019-05-24 16:43:57 +00:00
include src/arch/x86: Add automatic type41 entry creation 2019-05-28 11:52:27 +00:00
lib coreboot_tables: pass the early_mmc_wake_hw status to payload 2019-05-23 09:04:41 +00:00
mainboard Clean up unused arch/early_variables.h header 2019-05-29 20:03:14 +00:00
northbridge intel/sandybridge: Make timC training more robust. 2019-05-29 20:02:40 +00:00
security post_code: add post code for failure to load next stage 2019-05-22 14:21:57 +00:00
soc soc/intel/common: Check bios_size and window_size after MIN operation 2019-05-29 20:08:04 +00:00
southbridge sb/intel/common/smi.c: Remove unused functions 2019-05-27 17:26:15 +00:00
superio superio/fintek/f71863fg: Remove variable set but not used 2019-05-25 18:20:15 +00:00
vendorcode AGESA binaryPI: Add AGESA entry timestamps 2019-05-25 08:39:05 +00:00
Kconfig src/Kconfig: Move DRAM section to src/lib/Kconfig 2019-05-20 10:58:56 +00:00