Re: [Qemu-devel] [PATCH 2/4] qcow2-refcount: Sanitize refcount table size

2013-11-19 Thread Eric Blake
On 11/17/2013 07:18 AM, Max Reitz wrote: Make sure the refcount table size will not overflow when multiplied by sizeof(uint64_t) and implicitly casted to int. s/casted/cast/ Signed-off-by: Max Reitz mre...@redhat.com --- block/qcow2-refcount.c | 4 1 file changed, 4 insertions(+)

[Qemu-devel] [PATCH 2/4] qcow2-refcount: Sanitize refcount table size

2013-11-17 Thread Max Reitz
Make sure the refcount table size will not overflow when multiplied by sizeof(uint64_t) and implicitly casted to int. Signed-off-by: Max Reitz mre...@redhat.com --- block/qcow2-refcount.c | 4 1 file changed, 4 insertions(+) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c