« Previous | Next » 

Revision ec1efab9

IDec1efab95767312ff4afb816d0d4b548e093b031

Added by Peter Maydell about 10 years ago

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 <>
Reviewed-by: Paolo Bonzini <>
Reviewed-by: Andreas Färber <>
Message-id:
Cc:

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences