qcow2: Fix refcount blocks beyond image end
commit001c158defb65e88e6c50c85d6f20501f7149ddd
authorMax Reitz <mreitz@redhat.com>
Wed, 22 Oct 2014 12:09:38 +0000 (22 14:09 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 23 Oct 2014 13:34:01 +0000 (23 15:34 +0200)
tree024dfbd863b393138f39dcfeac39398392003b42
parent9696df219a71c6608f058ade8873d6d0b4e352fe
qcow2: Fix refcount blocks beyond image end

If the qcow2 check function detects a refcount block located beyond the
image end, grow the image appropriately. This cannot break anything and
is the logical fix for such a case.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-refcount.c