summary refs log tree commit diff stats
path: root/rust/qemu-api/src/chardev.rs
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2025-03-07 10:08:19 +0000
committerPeter Maydell <peter.maydell@linaro.org>2025-03-07 10:08:19 +0000
commit3b2e22c0bbe2ce07123d93961d52f17644562cd7 (patch)
tree943cbdc13c12388ab8105f3e2dee0bcd21c55ff4 /rust/qemu-api/src/chardev.rs
parenta674db604db3fc4ef5267243dc991852f1f1bebc (diff)
downloadfocaccia-qemu-3b2e22c0bbe2ce07123d93961d52f17644562cd7.tar.gz
focaccia-qemu-3b2e22c0bbe2ce07123d93961d52f17644562cd7.zip
hw/gpio: npcm7xx: fixup out-of-bounds access
The reg isn't validated to be a possible register before
it's dereferenced for one case.  The mmio space registered
for the gpio device is 4KiB but there aren't that many
registers in the struct.

Cc: qemu-stable@nongnu.org
Fixes: 526dbbe0874 ("hw/gpio: Add GPIO model for Nuvoton NPCM7xx")
Signed-off-by: Patrick Venture <venture@google.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20250226024603.493148-1-venture@google.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'rust/qemu-api/src/chardev.rs')
0 files changed, 0 insertions, 0 deletions