coreboot/src
Edward O'Callaghan 5cfef13f8d cpu/intel: Fix out-of-bounds read due to off-by-one in condition
If power_limit_1_time > 129 is false then power_limit_1_time can have a
value of up to 129 leading to an out-of-bounds illegal read indexing the
power_limit_time_sec_to_msr[] array. Thankfully all call sites have been
doing the right thing up until now so the issue has not been visible.

Change-Id: Ic029d1af7fe43ca7da271043c2b08fe3088714af
Found-by: Coverity Scan
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/6478
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
2014-08-04 13:58:14 +02:00
..
arch arch/x86/Makefile.inc: trivial: fix indent of informative output about bootblock 2014-08-03 09:58:06 +02:00
console src/console/Kconfig: Fix choice for showing POST codes on console 2014-07-30 20:34:08 +02:00
cpu cpu/intel: Fix out-of-bounds read due to off-by-one in condition 2014-08-04 13:58:14 +02:00
device device/oprom/realmode/x86.c: Move includes to top of file 2014-07-30 23:39:04 +02:00
drivers x230: Deploy VBT 2014-07-29 01:34:09 +02:00
ec chrome ec: Add Methods for new EC events 2014-08-04 09:32:22 +02:00
include timer: Add functions to initialize absolute timer structures. 2014-07-31 18:32:52 +02:00
lib lib: Trivial - drop trailing blank lines at EOF 2014-07-08 13:52:15 +02:00
mainboard falco: Re-read critical temperatures in ACPI _TMP 2014-08-04 09:32:20 +02:00
northbridge nehalem: Make UMA size configurable in CMOS. 2014-08-03 15:47:00 +02:00
soc fsp_baytrail/.../gpio.h: Add GPIO_NC1 for GPIOS on func 1 2014-08-01 00:52:23 +02:00
southbridge intel/fsp_bd82x6x: Fix cycle error 2014-08-03 15:19:28 +02:00
superio superio/f71869ad: fix documentation of io_info mask values 2014-07-18 20:00:06 +02:00
vendorcode vendorcode/intel/fsp/rangeley/include: Missing 'fsptypes.h' 2014-08-01 02:41:18 +02:00
Kconfig src/.../Kconfig: various small fixes to texts 2014-07-23 09:07:47 +02:00