vmdk: Fix integer overflow in offset calculation

Enterprise / Virtualization / QEMU - Fam Zheng [redhat.com] - 3 October 2014 04:30 UTC

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

d1319b0 vmdk: Fix integer overflow in offset calculation
block/vmdk.c | 2 +-
tests/qemu-iotests/105 | 70 ++++++++++++++++++++++++++++++++++++++++++++
tests/qemu-iotests/105.out | 21 +++++++++++++
tests/qemu-iotests/group | 1 +
4 files changed, 93 insertions(+), 1 deletion(-)

Upstream: git.qemu.org


  • Share