qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v4] vmdk: Fix integer overflow in offset calcula


From: Fam Zheng
Subject: Re: [Qemu-devel] [PATCH v4] vmdk: Fix integer overflow in offset calculation
Date: Tue, 23 Sep 2014 09:54:20 +0800
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, 09/22 14:32, Max Reitz wrote:
> 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).

Oops I saw a no-op when running check, but thought it passed!

> 
> 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:

Thanks so much for your careful reviewing! I am fixing this and picking up your
rev-by line in v5.

Fam

> 
> Reviewed-by: Max Reitz <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]