diff options
author | John Zhao <john.zhao@intel.com> | 2019-05-21 19:32:51 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-05-29 20:08:04 +0000 |
commit | 2bb432ece634af05aade44ea55755ae3e6637acf (patch) | |
tree | a1391ea84010f27292d4230d12f98e9a4a4b2734 /src/soc/imgtec/pistachio/soc.c | |
parent | 64fb5aa9c3e50a49d2ecc153ff8c597e203475bc (diff) |
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>
Diffstat (limited to 'src/soc/imgtec/pistachio/soc.c')
0 files changed, 0 insertions, 0 deletions