diff options
author | 2022-01-11 17:10:47 +0000 | |
---|---|---|
committer | 2022-01-20 16:04:58 +0000 | |
commit | b13148d91805143aba3e0b4441e760b9bea03b8c (patch) | |
tree | 990b1c9f9c67e48d9448b27a1b98d469e65098db /util/bufferiszero.c | |
parent | hw/intc/arm_gicv3_its: Factor out "find address of table entry" code (diff) | |
download | qemu-b13148d91805143aba3e0b4441e760b9bea03b8c.tar.xz qemu-b13148d91805143aba3e0b4441e760b9bea03b8c.zip |
hw/intc/arm_gicv3_its: Check indexes before use, not after
In a few places in the ITS command handling functions, we were
doing the range-check of an event ID or device ID only after using
it as a table index; move the checks to before the uses.
This misordering wouldn't have very bad effects because the
tables are in guest memory anyway.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20220111171048.3545974-13-peter.maydell@linaro.org
Diffstat (limited to 'util/bufferiszero.c')
0 files changed, 0 insertions, 0 deletions