coreboot-kgpe-d16/src/vendorcode/amd
Edward O'Callaghan cb0dd58b37 amd/agesa/f*/Lib/amdlib.c: Integer overflow in loop construct
As is the case in commit:

 3312ed7 amd/agesa/f1?/Lib/amdlib.c: Integer overflow in loop construct

The semantics of this loop relies on an integer overflow in Index >=0
that implies a return value of (UINT8)-1 which around wraps to 0xFF, or
VOLT_UNSUPPORTED.

Also fix an infinite loop.

Change-Id: Iced3eff3ae7b8935db3bdd6147372cf3b540883c
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/7676
Reviewed-by: Bruce Griffith <Bruce.Griffith@se-eng.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2014-12-16 17:21:44 +01:00
..
agesa amd/agesa/f*/Lib/amdlib.c: Integer overflow in loop construct 2014-12-16 17:21:44 +01:00
cimx src: Too many terminators ';;' at end of stmts, stop Skynet 2014-11-09 12:26:34 +01:00
pi vendorcode/amd/pi/00730F01/Lib/amdlib.c: Remove optimize attribute 2014-12-12 08:02:13 +01:00
Kconfig AMD: Isolate AGESA and PI build environments 2014-11-20 19:02:37 +01:00
Makefile.inc AMD Steppe Eagle: Add binary PI vendorcode files 2014-08-30 19:13:45 +02:00