diff options
author | Xiaojuan Yang | 2022-07-15 08:07:38 +0200 |
---|---|---|
committer | Richard Henderson | 2022-07-19 18:23:58 +0200 |
commit | e4ad16f49227be90838511deb03480dc720e76bf (patch) | |
tree | e5efcd46217fa8dbf75c67fd95c6e9518693928a /target/avr/helper.h | |
parent | hw/intc/loongarch_pch_pic: Fix bugs for update_irq function (diff) | |
download | qemu-e4ad16f49227be90838511deb03480dc720e76bf.tar.gz qemu-e4ad16f49227be90838511deb03480dc720e76bf.tar.xz qemu-e4ad16f49227be90838511deb03480dc720e76bf.zip |
target/loongarch/cpu: Fix coverity errors about excp_names
Fix out-of-bounds errors when access excp_names[] array. the valid
boundary size of excp_names should be 0 to ARRAY_SIZE(excp_names)-1.
However, the general code do not consider the max boundary.
Fix coverity CID: 1489758
Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220715060740.1500628-4-yangxiaojuan@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/avr/helper.h')
0 files changed, 0 insertions, 0 deletions