summaryrefslogtreecommitdiffstats
path: root/hw/timer/arm_mptimer.c
diff options
context:
space:
mode:
authorAlexander Graf2015-06-04 00:52:44 +0200
committerAlexander Graf2015-06-05 01:38:00 +0200
commit9814fed0afa73f5c37f04e02ec17c915a5d59303 (patch)
treefa2bb7c8e673f857834cff32be2c3d8f8dadd6d9 /hw/timer/arm_mptimer.c
parenttarget-s390x: fix MVC instruction when areas overlap (diff)
downloadqemu-9814fed0afa73f5c37f04e02ec17c915a5d59303.tar.gz
qemu-9814fed0afa73f5c37f04e02ec17c915a5d59303.tar.xz
qemu-9814fed0afa73f5c37f04e02ec17c915a5d59303.zip
target-s390x: Only access allocated storage keys
We allocate ram_size / PAGE_SIZE storage keys, so we need to make sure that we only access that many. Unfortunately the code can overrun this array by one, potentially overwriting unrelated memory. Fix it by limiting storage keys to their scope. Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/timer/arm_mptimer.c')
0 files changed, 0 insertions, 0 deletions