]> Git Repo - qemu.git/commit
target-cris: Fix buffer overflow
authorStefan Weil <[email protected]>
Fri, 7 Sep 2012 20:36:08 +0000 (22:36 +0200)
committerEdgar E. Iglesias <[email protected]>
Sat, 8 Sep 2012 04:30:25 +0000 (06:30 +0200)
commitc001ed15f7bfeaa3cabde5c9cc79c4dfdb674769
tree79ef155c305f3c5eed3e5b36ff1d76094bce31b8
parent03e6e5017757645f00b2f3b4f3a257973985e455
target-cris: Fix buffer overflow

Report from smatch:

target-cris/translate.c:3464 cpu_dump_state(32) error:
 buffer overflow 'env->sregs' 4 <= 255

sregs is declared 'uint32_t sregs[4][16]', so the first index must be
less than 4 or ARRAY_SIZE(env->sregs).

Signed-off-by: Stefan Weil <[email protected]>
target-cris/translate.c
This page took 0.02636 seconds and 4 git commands to generate.