qemu-e2k/target/microblaze
AlexChen f25c7ca0ce target/microblaze: Fix possible array out of bounds in mmu_write()
The size of env->mmu.regs is 3, but the range of 'rn' is [0, 5].
To avoid data access out of bounds, only if 'rn' is less than 3, we
can print env->mmu.regs[rn]. In other cases, we can print
env->mmu.regs[MMU_R_TLBX].

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Alex Chen <alex.chen@huawei.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-Id: <5FA10ABA.1080109@huawei.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2020-11-17 09:45:24 +01:00
..
cpu-param.h target/microblaze: Reduce linux-user address space to 32-bit 2020-09-01 07:43:35 -07:00
cpu-qom.h qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros 2020-09-18 14:12:32 -04:00
cpu.c target/microblaze: Fill in VMStateDescription for cpu 2020-09-07 12:58:08 -07:00
cpu.h microblaze tcg cpus: Fix Lesser GPL version number 2020-11-15 16:39:21 +01:00
gdbstub.c microblaze tcg cpus: Fix Lesser GPL version number 2020-11-15 16:39:21 +01:00
helper.c microblaze tcg cpus: Fix Lesser GPL version number 2020-11-15 16:39:21 +01:00
helper.h
insns.decode
machine.c microblaze tcg cpus: Fix Lesser GPL version number 2020-11-15 16:39:21 +01:00
meson.build target/microblaze: Fill in VMStateDescription for cpu 2020-09-07 12:58:08 -07:00
mmu.c target/microblaze: Fix possible array out of bounds in mmu_write() 2020-11-17 09:45:24 +01:00
mmu.h microblaze tcg cpus: Fix Lesser GPL version number 2020-11-15 16:39:21 +01:00
op_helper.c microblaze tcg cpus: Fix Lesser GPL version number 2020-11-15 16:39:21 +01:00
translate.c microblaze tcg cpus: Fix Lesser GPL version number 2020-11-15 16:39:21 +01:00