]> git.ipfire.org Git - thirdparty/qemu.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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 27 Feb 2014 15:37:58 +0000 (09:37 -0600)
commit5444df15819cc1fa5a95876967d726b80f594e31
treee8ab90ed88b44cd3edfffa5a8e2516eedb49413f
parente498311693377ee6aa599a37c643d364f7072170
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
(cherry picked from commit cba933b2257ef0ad241756a0ff86bc0acda685ca)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/timer/arm_timer.c