aboutsummaryrefslogtreecommitdiff
path: root/hw/net/rtl8139.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2024-07-31 18:22:46 +0100
committerPeter Maydell <peter.maydell@linaro.org>2024-08-01 10:59:01 +0100
commit5e8e4f098d872818aa9a138a171200068b81c8d1 (patch)
tree47e9575673b794170f0522301c02942846fe6fae /hw/net/rtl8139.c
parent55f9f4ee018c5ccea81d8c8c586756d7711ae46f (diff)
downloadqemu-5e8e4f098d872818aa9a138a171200068b81c8d1.zip
qemu-5e8e4f098d872818aa9a138a171200068b81c8d1.tar.gz
qemu-5e8e4f098d872818aa9a138a171200068b81c8d1.tar.bz2
target/xtensa: Correct assert condition in handle_interrupt()
In commit ad18376b90c8101 we added an assert that the level value was in-bounds for the array we're about to index into. However, the assert condition is wrong -- env->config->interrupt_vector is an array of uint32_t, so we should bounds check the index against ARRAY_SIZE(...), not against sizeof(). Resolves: Coverity CID 1507131 Fixes: ad18376b90c8101 ("target/xtensa: Assert that interrupt level is within bounds") Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Acked-by: Max Filippov <jcmvbkbc@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20240731172246.3682311-1-peter.maydell@linaro.org
Diffstat (limited to 'hw/net/rtl8139.c')
0 files changed, 0 insertions, 0 deletions