summaryrefslogtreecommitdiffstats
path: root/hw/sh_intc.c
diff options
context:
space:
mode:
authorGerd Hoffmann2010-03-10 17:47:17 +0100
committerAnthony Liguori2010-03-17 17:17:05 +0100
commit314b1811c15f4e982e4667d9b845aee4b5a63d91 (patch)
tree238d936e990c1b60386ecf9cc64d896603805191 /hw/sh_intc.c
parentvnc: add no-lock-key-sync option (diff)
downloadqemu-314b1811c15f4e982e4667d9b845aee4b5a63d91.tar.gz
qemu-314b1811c15f4e982e4667d9b845aee4b5a63d91.tar.xz
qemu-314b1811c15f4e982e4667d9b845aee4b5a63d91.zip
scsi-disk: fix buffer overflow
In case s->version is shorter than 4 bytes we overflow the memcpy src buffer. Fix it by clearing the target buffer, then copy only the amount of bytes we actually have. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/sh_intc.c')
0 files changed, 0 insertions, 0 deletions