On 26.03.2014 13:05, Stefan Hajnoczi wrote:
From: Kevin Wolf <kw...@redhat.com>

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

Reviewed-by: Max Reitz <mre...@redhat.com>

Reply via email to