|
From: | Max Reitz |
Subject: | Re: [Qemu-devel] [PATCH v4] vmdk: Fix integer overflow in offset calculation |
Date: | Mon, 22 Sep 2014 14:32:24 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 |
On 22.09.2014 09:15, Fam Zheng wrote:
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 <address@hidden> Signed-off-by: Fam Zheng <address@hidden> --- v4: Fix typo in file header: 1014 -> 2014. v3: A new case 105 instead of embedding in 005. (Max) --- block/vmdk.c | 2 +- tests/qemu-iotests/105 | 70 ++++++++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/105.out | 21 ++++++++++++++ 3 files changed, 92 insertions(+), 1 deletion(-) create mode 100755 tests/qemu-iotests/105 create mode 100644 tests/qemu-iotests/105.out
I'm sorry, but you didn't add the respective line to the group file. Also, the reference output is wrong; for the latter two accesses, it should be "at offset 15393162788864" (14T) instead of "at offset 4398046511104" (4T).
Those changes are trivial, though, so with an appropriate line in tests/qemu-iotests/group and %s/4398046511104/15393162788864/ in tests/qemu-iotests/105.out:
Reviewed-by: Max Reitz <address@hidden>
[Prev in Thread] | Current Thread | [Next in Thread] |