coreboot-kgpe-d16/src/soc/intel
Jacob Garber 0decccb666 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>
2019-04-08 14:13:39 +00:00
..
apollolake src: Use #include <timer.h> when appropriate 2019-04-06 16:02:49 +00:00
baytrail soc/intel/baytrail: Correct array bounds check 2019-04-08 14:13:39 +00:00
braswell {src,util}: Correct typo in comment and debug string 2019-04-08 14:10:20 +00:00
broadwell src: Use include <delay.h> when appropriate 2019-04-06 16:09:12 +00:00
cannonlake src/soc/intel/cannonlake: Remove ITSS IPC restore 2019-04-08 10:39:44 +00:00
common src: Use include <delay.h> when appropriate 2019-04-06 16:09:12 +00:00
denverton_ns {northbridge, soc, southbridge}/intel: Make use of pci_dev_set_subsystem() 2019-03-21 16:18:05 +00:00
fsp_baytrail src/soc/intel/fsp_baytrail/smm.c: add bootstate entry for locking SMI 2019-04-08 14:11:04 +00:00
fsp_broadwell_de src: Use include <delay.h> when appropriate 2019-04-06 16:09:12 +00:00
icelake src: Use include <delay.h> when appropriate 2019-04-06 16:09:12 +00:00
quark src: Use include <delay.h> when appropriate 2019-04-06 16:09:12 +00:00
skylake soc/skl: Update SkipExtGfxScan in UPD from devtree 2019-04-08 14:12:15 +00:00
Kconfig src/cpu: Remove dead sourced lines 2018-11-15 10:25:20 +00:00