qemu/target-arm
Stefan Weil 599d64f6dc target-arm: Fix potential buffer overflow
Report from smatch:

target-arm/helper.c:651 arm946_prbs_read(6) error:
 buffer overflow 'env->cp15.c6_region' 8 <= 8
target-arm/helper.c:661 arm946_prbs_write(6) error:
 buffer overflow 'env->cp15.c6_region' 8 <= 8

c7_region is an array with 8 elements, so the index must be less than 8.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2012-09-10 15:00:06 +02:00
..
arm-semi.c arm-semi: don't leak 1KB user string lock buffer upon TARGET_SYS_OPEN 2012-08-22 10:47:14 -05:00
cpu-qom.h target-arm: Convert cp15 crn=1 registers 2012-06-20 12:08:22 +00:00
cpu.c target-arm: Extend feature flags to 64 bits 2012-07-12 10:59:54 +00:00
cpu.h target-arm: Fix typos in comments 2012-08-10 14:37:28 +01:00
helper.c target-arm: Fix potential buffer overflow 2012-09-10 15:00:06 +02:00
helper.h target-arm: Remove remaining old cp15 infrastructure 2012-06-20 12:13:04 +00:00
iwmmxt_helper.c target-arm: Don't overuse CPUState 2012-03-14 22:20:24 +01:00
machine.c target-arm: Add 64 bit PAR, TTBR0, TTBR1 for LPAE 2012-07-12 10:59:54 +00:00
Makefile.objs build: move other target-*/ objects to nested Makefile.objs 2012-06-07 09:21:11 +02:00
neon_helper.c target-arm: Fix typos in comments 2012-08-10 14:37:28 +01:00
op_addsub.h Correct spelling of licensed 2011-07-23 11:26:12 -05:00
op_helper.c target-arm: Fix typos in comments 2012-08-10 14:37:28 +01:00
translate.c target-arm: Fix typos in comments 2012-08-10 14:37:28 +01:00