Peter Maydell ec1efab957 hw/misc/arm_sysctl: Fix bad boundary check on mb clock accesses
Fix incorrect use of sizeof() rather than ARRAY_SIZE() to guard
accesses into the mb_clock[] array, which was allowing a malicious
guest to overwrite the end of the array.

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-2-git-send-email-peter.maydell@linaro.org
Cc: qemu-stable@nongnu.org
2014-02-26 17:19:57 +00:00
..
2014-02-02 22:09:16 +05:30
2014-02-21 15:04:58 +00:00
2014-02-25 10:50:11 +00:00
2013-12-24 18:02:18 +01:00
2014-02-03 14:04:00 +00:00
2014-02-24 13:00:52 +01:00
2014-02-14 16:22:32 +01:00
2014-02-14 16:22:31 +01:00
2014-02-14 16:22:32 +01:00
2014-02-21 15:04:58 +00:00
2014-02-14 16:22:31 +01:00
2014-02-26 14:54:45 +10:00
2013-09-03 12:31:07 -05:00
2013-07-29 21:07:01 +02:00
2013-08-22 19:10:27 +02:00
2014-02-20 15:25:05 +00:00