Re: [Qemu-devel] [PATCH for-2.0 22/47] qcow2: Validate refcount table offset

2014-03-26 Thread Max Reitz
On 26.03.2014 13:05, Stefan Hajnoczi wrote: From: Kevin Wolf The end of the refcount table must not exceed INT64_MAX so that integer overflows are avoided. Also check for misaligned refcount table. Such images are invalid and probably the result of data corruption. Error out to avoid further c

[Qemu-devel] [PATCH for-2.0 22/47] qcow2: Validate refcount table offset

2014-03-26 Thread Stefan Hajnoczi
From: Kevin Wolf The end of the refcount table must not exceed INT64_MAX so that integer overflows are avoided. Also check for misaligned refcount table. Such images are invalid and probably the result of data corruption. Error out to avoid further corruption. Signed-off-by: Kevin Wolf --- bl