summary refs log tree commit diff stats
path: root/migration/qemu-file-unix.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2015-12-01 15:16:49 +0100
committerKevin Wolf <kwolf@redhat.com>2015-12-02 13:22:29 +0100
commitc2551b47c9b9465962c4000268eda1307f55614a (patch)
tree2eabcfded1b92b2c0f39f3d1c8cdb3230c2e0e81 /migration/qemu-file-unix.c
parent9d7b969ea6d9663a94760c6c131481b366f4d38a (diff)
downloadfocaccia-qemu-c2551b47c9b9465962c4000268eda1307f55614a.tar.gz
focaccia-qemu-c2551b47c9b9465962c4000268eda1307f55614a.zip
qcow2: Fix potential qemu-img check crash on 32 bit hosts
This crash was caught with qemu-iotests test case 138.

Commit b6d36de already fixed a few 32 bit truncation bugs that could
cause qemu-img check to allocate too little memory and consequently
it would segfault. On 32 bit hosts, there is one more place that needs
to be fixed because size_t was involved in the calculation and is a
32 bit type there.

Cc: qemu-stable@nongnu.org
Reported-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Tested-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'migration/qemu-file-unix.c')
0 files changed, 0 insertions, 0 deletions