[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] qed: Fix consistency check on 32-bit hosts
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH] qed: Fix consistency check on 32-bit hosts |
Date: |
Tue, 26 Apr 2011 10:48:22 +0100 |
On Tue, Apr 26, 2011 at 9:44 AM, Kevin Wolf <address@hidden> wrote:
> Am 24.04.2011 19:38, schrieb Stefan Hajnoczi:
>> The qed_bytes_to_clusters() function is normally used with size_t
>> lengths. Consistency check used it with file size length and therefore
>> failed on 32-bit hosts when the image file is 4 GB or more.
>>
>> Make qed_bytes_to_clusters() explicitly 64-bit and update consistency
>> check to keep 64-bit cluster counts.
>>
>> Reported-by: Michael Tokarev <address@hidden>
>> Signed-off-by: Stefan Hajnoczi <address@hidden>
>
> Thanks, applied to the block branch.
Please apply to stable. This fixes a segfault when checking an image
on 32-bit hosts.
Stefan