qemu-e2k/target-s390x
zhanghailiang 1a71992376 target-s390x: fix possible out of bounds read
Array index starts at 0, so the valid index of ext_queue array,
io_queue array, mchk_queue array should be MAX_EXT_QUEUE - 1,
MAX_IO_QUEUE - 1, MAX_MCHK_QUEUE - 1.

The original checks missed the invalid bound value, which will lead
possible out of bounds read in the follow codes.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2014-12-10 11:14:44 +03:00
..
Makefile.objs s390x/migration: migrate CPU state 2014-10-10 13:31:51 +02:00
arch_dump.c target-s390x: Add missing 'static' and 'const' attributes 2014-03-27 19:22:48 +04:00
cc_helper.c tcg: Invert the inclusion of helper.h 2014-05-28 09:33:54 -07:00
cpu-qom.h s390x/migration: migrate CPU state 2014-10-10 13:31:51 +02:00
cpu.c s390x/migration: migrate CPU state 2014-10-10 13:31:51 +02:00
cpu.h s390x/kvm: reuse kvm_s390_reset_vcpu() to get rid of ifdefs 2014-10-10 10:37:47 +02:00
fpu_helper.c softmmu: introduce cpu_ldst.h 2014-06-05 16:10:33 +02:00
gdbstub.c s390x/gdb: coding style fixes 2014-09-01 09:45:19 +02:00
helper.c target-s390x: fix possible out of bounds read 2014-12-10 11:14:44 +03:00
helper.h tcg: Invert the inclusion of helper.h 2014-05-28 09:33:54 -07:00
insn-data.def s390x: Implement SAM{24,31,64} 2014-11-05 12:01:28 +01:00
insn-format.def target-s390: Add format based disassassmbly infrastructure 2013-01-05 12:00:27 -08:00
int_helper.c tcg: Invert the inclusion of helper.h 2014-05-28 09:33:54 -07:00
interrupt.c s390x: Fix sclp console input 2014-11-05 12:01:28 +01:00
ioinst.c s390x/ioinst: CHSC has to set a condition code 2013-12-18 14:24:11 +01:00
ioinst.h s390x/css: support format-0 ccws 2014-09-23 14:10:17 +02:00
kvm.c s390x/kvm: Fix compile error 2014-11-26 12:11:27 +01:00
machine.c s390x/migration: migrate CPU state 2014-10-10 13:31:51 +02:00
mem_helper.c softmmu: introduce cpu_ldst.h 2014-06-05 16:10:33 +02:00
misc_helper.c s390x/kvm: run guest triggered resets on the target vcpu thread 2014-09-01 09:23:02 +02:00
translate.c s390x: Implement SAM{24,31,64} 2014-11-05 12:01:28 +01:00