summaryrefslogtreecommitdiff
path: root/src/cpu/intel/haswell/smmrelocate.c
diff options
context:
space:
mode:
authorJohn Zhao <john.zhao@intel.com>2019-07-09 14:27:28 -0700
committerMartin Roth <martinroth@google.com>2019-07-11 15:00:13 +0000
commit1ceac4efcfa3a9ccc0d44f77855f4949f59305b5 (patch)
tree946954147db100c61463e1642ff6d3814cf078ca /src/cpu/intel/haswell/smmrelocate.c
parentb8501c7c5f00a664ff644324af363d43c5af1bc2 (diff)
downloadcoreboot-1ceac4efcfa3a9ccc0d44f77855f4949f59305b5.tar.xz
soc/intel/common: Check bios_size and window_size after MIN operation
Clang Static Analyzer version 8.0.0 detects that the result of log2_ceil(bios_size) and log2_ceil(window_size) is undefined if the value of bios_size and window_size are negative. Add negative value Check for bios_size and window_size after MIN operation. Change-Id: I28577b6e0ba0ab45bb7804c17ba1f26c4b078b15 Signed-off-by: John Zhao <john.zhao@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34182 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/cpu/intel/haswell/smmrelocate.c')
0 files changed, 0 insertions, 0 deletions