coreboot-kgpe-d16/src/soc/intel
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
..
apollolake soc/intel/apollolake: Don't use CAR_GLOBAL 2019-05-29 20:02:57 +00:00
baytrail soc/{baytrail/braswell/broadwell}: fix flashconsole on platform 2019-05-22 10:06:50 +00:00
braswell soc/intel/braswell: Don't use CAR_GLOBAL 2019-05-29 20:03:28 +00:00
broadwell Clean up unused arch/early_variables.h header 2019-05-29 20:03:14 +00:00
cannonlake soc/intel/cannonlake: Dump ME status info before notify EndOfFirmware 2019-05-28 20:13:59 +00:00
common soc/intel/common: Check bios_size and window_size after MIN operation 2019-05-29 20:08:04 +00:00
denverton_ns soc/intel/denverton_ns: Remove variable set but not used 2019-05-23 08:54:02 +00:00
fsp_baytrail soc/intel/fsp_baytrail/romstage: Remove variable set but not used 2019-05-23 08:58:33 +00:00
fsp_broadwell_de soc/intel/fsp_broadwell_de/romstage: Remove variable set but not used 2019-05-23 08:58:15 +00:00
icelake post_code: add post code for hardware initialization failure 2019-05-22 17:44:53 +00:00
quark soc/intel/quark: Don't use CAR_GLOBAL 2019-05-29 20:05:06 +00:00
skylake Clean up unused arch/early_variables.h header 2019-05-29 20:03:14 +00:00
Kconfig src/cpu: Remove dead sourced lines 2018-11-15 10:25:20 +00:00