diff options
author | Jacob Garber <jgarber1@ualberta.ca> | 2019-04-08 17:54:35 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-04-11 11:27:41 +0000 |
commit | f74f6cbde5b51bb85fa3b20b80f482ef41eb7e9b (patch) | |
tree | f86bee2e4a97d56ec764f48244e9a3240db56b5c /src/mainboard/google/sarien/variants | |
parent | 94d61ecab035fbef7e93db8cfbdbabd7c41a264d (diff) | |
download | coreboot-f74f6cbde5b51bb85fa3b20b80f482ef41eb7e9b.tar.xz |
nb/intel/{gm45,i945,x4x}: Correct array bounds checks
There will be an out of bounds read if the index is equal
to the array size. Fix the checks to exclude this case.
Found-by: Coverity Scan, CID 1347350, 1347351
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Change-Id: I5b4e8febb68dfd244faf597dfe5cdf509af7a2ae
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32244
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/mainboard/google/sarien/variants')
0 files changed, 0 insertions, 0 deletions