qemu-e2k/target-cris
zhanghailiang fae38221e7 target-cris/translate.c: fix out of bounds read
In function t_gen_mov_TN_preg and t_gen_mov_preg_TN, The begin check about the
validity of in-parameter 'r' is useless. We still access cpu_PR[r] in the
follow code if it is invalid. Which will be an out-of-bounds read error.

Fix it by using assert() to ensure it is valid before using it.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-11-17 13:59:23 +01:00
..
cpu-qom.h target-cris: Use cpu_exec_interrupt qom hook 2014-09-25 18:54:21 +01:00
cpu.c gdbstub: Allow target CPUs to specify watchpoint STOP_BEFORE_ACCESS flag 2014-10-06 14:25:43 +01:00
cpu.h
crisv10-decode.h
crisv32-decode.h
gdbstub.c
helper.c target-cris: Use cpu_exec_interrupt qom hook 2014-09-25 18:54:21 +01:00
helper.h
machine.c
Makefile.objs
mmu.c
mmu.h
op_helper.c
opcode-cris.h
translate_v10.c
translate.c target-cris/translate.c: fix out of bounds read 2014-11-17 13:59:23 +01:00