diff options
| author | Fam Zheng | 2014-09-23 03:56:21 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2014-10-03 11:30:33 +0200 |
| commit | d1319b077a4bd980ca1b8a167b02b519330dd26b (patch) | |
| tree | 4f1619aa32207583f2942fa058bc49078b1cff73 /blockdev.c | |
| parent | block: Drop superfluous conditionals around qemu_opts_del() (diff) | |
| download | qemu-d1319b077a4bd980ca1b8a167b02b519330dd26b.tar.gz qemu-d1319b077a4bd980ca1b8a167b02b519330dd26b.tar.xz qemu-d1319b077a4bd980ca1b8a167b02b519330dd26b.zip | |
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>
Diffstat (limited to 'blockdev.c')
0 files changed, 0 insertions, 0 deletions
