qemu-e2k/target-cris
Stefan Weil c001ed15f7 target-cris: Fix buffer overflow
Report from smatch:

target-cris/translate.c:3464 cpu_dump_state(32) error:
 buffer overflow 'env->sregs' 4 <= 255

sregs is declared 'uint32_t sregs[4][16]', so the first index must be
less than 4 or ARRAY_SIZE(env->sregs).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2012-09-08 06:30:25 +02:00
..
cpu-qom.h target-cris: QOM'ify CPU 2012-04-24 16:04:56 +02:00
cpu.c target-cris: Start QOM'ifying CPU init 2012-04-24 16:04:56 +02:00
cpu.h cris: Fix NMI-flag handling on crisv10. 2012-06-15 13:21:32 +02:00
crisv10-decode.h Update to a hopefully more future proof FSF address 2010-03-07 15:48:43 +00:00
crisv32-decode.h
helper.c cris: Fix NMI-flag handling on crisv10. 2012-06-15 13:21:32 +02:00
helper.h
machine.c
Makefile.objs build: move other target-*/ objects to nested Makefile.objs 2012-06-07 09:21:11 +02:00
mmu.c target-cris: Don't overuse CPUState 2012-03-14 22:20:25 +01:00
mmu.h target-cris: Don't overuse CPUState 2012-03-14 22:20:25 +01:00
op_helper.c cris: Fix NMI-flag handling on crisv10. 2012-06-15 13:21:32 +02:00
opcode-cris.h target-cris/opcode-cris.h: rename REG_PC/SP to CRIS_REG_PC/SP 2011-08-20 01:41:01 +02:00
translate_v10.c cris: Add break support for v10. 2012-06-14 15:29:11 +02:00
translate.c target-cris: Fix buffer overflow 2012-09-08 06:30:25 +02:00