diff options
| author | Stefan Weil | 2013-09-30 23:04:49 +0200 |
|---|---|---|
| committer | Michael Tokarev | 2013-10-05 11:05:15 +0200 |
| commit | 49aa4058ac6dd0081aaa45776f07c98df397ca5e (patch) | |
| tree | 810fdef3de54da503f6bd3207fc7728bb1724f8c /scripts/checkpatch.pl | |
| parent | pci-ohci: Add missing 'break' in ohci_service_td (diff) | |
| download | qemu-49aa4058ac6dd0081aaa45776f07c98df397ca5e.tar.gz qemu-49aa4058ac6dd0081aaa45776f07c98df397ca5e.tar.xz qemu-49aa4058ac6dd0081aaa45776f07c98df397ca5e.zip | |
qemu-char: Fix potential out of bounds access to local arrays
Latest gcc-4.8 supports a new option -fsanitize=address which activates
an AddressSanitizer. This AddressSanitizer stops the QEMU system emulation
very early because two character arrays of size 8 are potentially written
with 9 bytes.
Commit 6ea314d91439741e95772dfbab98b4135e04bebb added the code.
There is no obvious reason why width or height could need 8 characters,
so reduce it to 7 characters which together with the terminating '\0'
fit into the arrays.
Cc: qemu-stable <qemu-stable@nongnu.org>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Alex Bennée <alex@bennee.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
