qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] qcow2: Fix offset in qcow2_read_extensions


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH] qcow2: Fix offset in qcow2_read_extensions
Date: Tue, 28 Feb 2012 09:32:14 +0000

On Mon, Feb 27, 2012 at 4:27 PM, Kevin Wolf <address@hidden> wrote:
> The spec says that the length of extensions is padded to 8 bytes, not
> the offset. Currently this is the same because the header size is a
> multiple of 8, so this is only about compatibility with future changes
> to the header size.
>
> While touching it, move the calculation to a common place instead of
> duplicating it for each header extension type.
>
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
>  block/qcow2.c |    5 ++---
>  1 files changed, 2 insertions(+), 3 deletions(-)

Reviewed-by: Stefan Hajnoczi <address@hidden>



reply via email to

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