]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
hw/timer/arm_timer: Avoid array overrun for bad addresses
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 26 Feb 2014 17:19:58 +0000 (17:19 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 26 Feb 2014 17:19:58 +0000 (17:19 +0000)
commitcba933b2257ef0ad241756a0ff86bc0acda685ca
tree35868822a83885717fbba7376769024a54b62e56
parent106a73b6d200035c5156f90b5f9b6a53d3adb43b
hw/timer/arm_timer: Avoid array overrun for bad addresses

The integrator's timer read/write functions log an error for
bad addresses in guest accesses, but were falling through and
using an out of bounds array index rather than returning early.
Fix this.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Message-id: 1392647854-8067-4-git-send-email-peter.maydell@linaro.org
Cc: qemu-stable@nongnu.org
hw/timer/arm_timer.c