qemu-e2k/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
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
iwmmxt_helper.c
machine.c target-arm: Add 64 bit PAR, TTBR0, TTBR1 for LPAE 2012-07-12 10:59:54 +00:00
Makefile.objs
neon_helper.c target-arm: Fix typos in comments 2012-08-10 14:37:28 +01:00
op_addsub.h
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