]> git.proxmox.com Git - mirror_qemu.git/commit
vmdk: Fix integer overflow in offset calculation
authorFam Zheng <famz@redhat.com>
Tue, 23 Sep 2014 01:56:21 +0000 (09:56 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 3 Oct 2014 09:30:33 +0000 (10:30 +0100)
commitd1319b077a4bd980ca1b8a167b02b519330dd26b
tree4f1619aa32207583f2942fa058bc49078b1cff73
parentfbf28a4328123b3259d100eedc0e6f5b7f8bf186
vmdk: Fix integer overflow in offset calculation

This fixes the bug introduced by commit c6ac36e (vmdk: Optimize cluster
allocation).

$ ~/build/master/qemu-io /stor/vm/arch.vmdk -c 'write 2G 1k'
write failed: Invalid argument

Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1411437381-11234-1-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/vmdk.c
tests/qemu-iotests/105 [new file with mode: 0755]
tests/qemu-iotests/105.out [new file with mode: 0644]
tests/qemu-iotests/group