]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
vmdk: Fix big flat extent IO
authorFam Zheng <famz@redhat.com>
Wed, 8 Jan 2014 01:42:07 +0000 (09:42 +0800)
committerKevin Wolf <kwolf@redhat.com>
Wed, 22 Jan 2014 11:07:16 +0000 (12:07 +0100)
commit585ea0c841df47c1542d33e17c5c6d532316ef74
tree5294a965806379ab7d6f8099c078e7362cdde94f
parent7fa9e1f941b4be1f71bb42de2f2ed8805d7e7326
vmdk: Fix big flat extent IO

Local variable "n" as int64_t avoids overflow with large sector number
calculation. See test case change for failure case.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vmdk.c
tests/qemu-iotests/059
tests/qemu-iotests/059.out