[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] c001ed: target-cris: Fix buffer overflow
From: |
GitHub |
Subject: |
[Qemu-commits] [qemu/qemu] c001ed: target-cris: Fix buffer overflow |
Date: |
Fri, 07 Sep 2012 22:00:08 -0700 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: c001ed15f7bfeaa3cabde5c9cc79c4dfdb674769
https://github.com/qemu/qemu/commit/c001ed15f7bfeaa3cabde5c9cc79c4dfdb674769
Author: Stefan Weil <address@hidden>
Date: 2012-09-07 (Fri, 07 Sep 2012)
Changed paths:
M target-cris/translate.c
Log Message:
-----------
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 <address@hidden>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [qemu/qemu] c001ed: target-cris: Fix buffer overflow,
GitHub <=