]> git.ipfire.org Git - thirdparty/qemu.git/commit
qcow2: Check new refcount table size on growth
authorKevin Wolf <kwolf@redhat.com>
Wed, 26 Mar 2014 12:05:50 +0000 (13:05 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 3 Jul 2014 21:18:13 +0000 (16:18 -0500)
commit610ab7bd3d22dcd328eaabff1be627510bae23b5
tree28d555507f23b2cfbd341b147b655c09e3057692
parent7a6088c87030b84e9f4b70ed9b656bec999dfc77
qcow2: Check new refcount table size on growth

If the size becomes larger than what qcow2_open() would accept, fail the
growing operation.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 2b5d5953eec0cc541857c3df812bdf8421596ab2)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/qcow2-refcount.c
block/qcow2.c
block/qcow2.h