[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 0/3] qcow2: Prevent corruption-related crashes
From: |
Max Reitz |
Subject: |
[Qemu-devel] [PATCH 0/3] qcow2: Prevent corruption-related crashes |
Date: |
Thu, 7 Aug 2014 22:47:52 +0200 |
The first two patches in this series address
https://bugs.launchpad.net/qemu/+bug/1349972.
For the third patch I found it hard to write an appropriate test case
(it would have to make qemu-img check repair some leaks but induce the
corruption prevention at the same time). One can use the test image from
the bug report above, set the refcount block offset to 0 and that works.
However, the patch is simple enough that no test should be necessary.
Max Reitz (3):
qcow2: Catch !*host_offset for data allocation
iotests: Add test for image header overlap
block: Catch !bs->drv in bdrv_check()
block.c | 3 +++
block/qcow2-cluster.c | 11 +++++++++++
tests/qemu-iotests/060 | 9 +++++++++
tests/qemu-iotests/060.out | 8 ++++++++
4 files changed, 31 insertions(+)
--
2.0.3