coreboot-kgpe-d16/src/vendorcode/amd
Martin Roth fecc24af04 vendorcode/amd/agesa/f15tn: Fix out of bounds read on on memory voltage
I think this has a fairly low likelyhood of happening, but if AGESA
can't determine the voltage of the memory, it assignes a value of 255
to the variable that it later uses to read from an 3-value array.  There
is an assert, but that doesn't halt AGESA, so it would use some random
value.  If the voltage can't be determined, fall back to 1.5v as the
default value.

Fixes coverity warning 1294803 - Out-of-bounds read

Change-Id: Ib9e568175edbdf55a7a4c35055da7169ea7f2ede
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/12855
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2016-01-08 17:21:59 +01:00
..
agesa vendorcode/amd/agesa/f15tn: Fix out of bounds read on on memory voltage 2016-01-08 17:21:59 +01:00
cimx tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
pi commonlib: Add function to hash contents of a CBFS region. 2016-01-06 01:12:04 +01:00
Kconfig tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
Makefile.inc AMD Steppe Eagle: Add binary PI vendorcode files 2014-08-30 19:13:45 +02:00