Home
last modified time | relevance | path

Searched hist:"5 e8e4f09" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/target/xtensa/
H A Dexc_helper.c5e8e4f09 Wed Jul 31 12:22:46 CDT 2024 Peter Maydell <peter.maydell@linaro.org> 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