]> git.ipfire.org Git - thirdparty/qemu.git/commit
qcow2: Fix refcount table size calculation
authorKevin Wolf <kwolf@redhat.com>
Fri, 26 Oct 2012 14:33:32 +0000 (16:33 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 3 Dec 2012 19:32:32 +0000 (13:32 -0600)
commit600a9efdb1ddb749332200cab27d9240fbc0bda1
treee3d623a5457c8f74c1f7d9c1725eec3055148b4c
parentea79e157c61eb20e1065836f9d2719ffef91b8cf
qcow2: Fix refcount table size calculation

A missing factor for the refcount table entry size in the calculation
could mean that too little memory was allocated for the in-memory
representation of the table, resulting in a buffer overflow.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Tested-by: Michael Tokarev <mjt@tls.msk.ru>
(cherry picked from commit a3548077062dd9dc2701ebffd931ba6eaef40bec)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/qcow2-refcount.c