qemu-devel
[Top][All Lists]
Advanced

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

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


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCH for-2.0 22/47] qcow2: Validate refcount table offset
Date: Wed, 26 Mar 2014 21:52:37 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

On 26.03.2014 13:05, Stefan Hajnoczi wrote:
From: Kevin Wolf <address@hidden>

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 <address@hidden>
---
  block/qcow2.c              | 33 +++++++++++++++++++++++++++++++++
  tests/qemu-iotests/080     | 13 +++++++++++++
  tests/qemu-iotests/080.out | 10 ++++++++++
  3 files changed, 56 insertions(+)

Reviewed-by: Max Reitz <address@hidden>



reply via email to

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