Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
target-i386: cpu: Fix potential buffer overrun in get_register_name_32()
Spotted by Coverity, x86_reg_info_32[] is CPU_NB_REGS32 elements long, so accessing x86_reg_info_32[CPU_NB_REGS32] will be one element off array. Signed-off-by: Igor Mammedov <[email protected]> Reviewed-by: liguang <[email protected]> Reviewed by: Jesse Larrew <[email protected]> Signed-off-by: Andreas Färber <[email protected]>
- Loading branch information