qemu-block
[Top][All Lists]
Advanced

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

Re: [Qemu-block] [PATCH v2 1/1] block/sheepdog: fix argument passed to q


From: Jeff Cody
Subject: Re: [Qemu-block] [PATCH v2 1/1] block/sheepdog: fix argument passed to qemu_strtoul()
Date: Wed, 2 Mar 2016 11:12:54 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Mar 02, 2016 at 11:09:29AM -0500, Jeff Cody wrote:
> The function qemu_strtoul() reads 'unsigned long' sized data,
> which is larger than uint32_t on 64-bit machines.
> 
> Even though the snap_id field in the header is 32-bits, we must
> accomodate the full size in qemu_strtoul().
> 
> This patch also adds more meaningful error handling to the
> qemu_strtoul() call, and subsequent results.
> 
> Reported-by: Paolo Bonzini <address@hidden>
> Signed-off-by: Jeff Cody <address@hidden>
> ---
>  block/sheepdog.c | 18 ++++++++++++++----
>  1 file changed, 14 insertions(+), 4 deletions(-)
> 

Ideally, one of the other Sheepdog maintainers (Hitoshi Mitake or Liu
Yuan) could run a test against this patch, as I don't have an easy way
of testing it.

Thanks,
Jeff



reply via email to

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