mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
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>
This commit is contained in:
parent
fbf28a4328
commit
d1319b077a
4 changed files with 93 additions and 1 deletions
|
@ -105,3 +105,4 @@
|
|||
101 rw auto quick
|
||||
103 rw auto quick
|
||||
104 rw auto
|
||||
105 rw auto quick
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue