diff options
author | Jacob Garber <jgarber1@ualberta.ca> | 2019-03-29 18:33:32 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-04-08 14:13:39 +0000 |
commit | 0decccb666245e38bfd0595e8c7e312c6937c465 (patch) | |
tree | ae8d2c6e7ba4bd15518051ae472ac78807459cab /Documentation/abi-data-consumption.md | |
parent | 42660cdda7020ab7056f219e9033c9d0f2f09239 (diff) |
soc/intel/baytrail: Correct array bounds check
If `gms == ARRAY_SIZE(gms_size_map)`, then we will have an
out of bounds read. Fix the check to exclude this case.
This was partially fixed in 04f68c1 (baytrail: fix range
check).
Found-by: Coverity Scan, CID 1229677 (OVERRUN)
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Change-Id: I8c8cd59df49beea066b46cde3cf00237816aff33
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32125
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'Documentation/abi-data-consumption.md')
0 files changed, 0 insertions, 0 deletions