Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
target/xtensa: Correct assert condition in handle_interrupt()
In commit ad18376 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: ad18376 ("target/xtensa: Assert that interrupt level is within bounds") Signed-off-by: Peter Maydell <[email protected]> Acked-by: Max Filippov <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-id: [email protected]
- Loading branch information