]> git.ipfire.org Git - thirdparty/qemu.git/commit
qcow2-refcount: Sanitize refcount table entry
authorMax Reitz <mreitz@redhat.com>
Fri, 7 Mar 2014 22:10:12 +0000 (23:10 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 13 Mar 2014 13:23:27 +0000 (14:23 +0100)
commit26d49c46750aff62c8c6e7a8b14c79d4114a8e53
tree4216a8ea7edb623480dfcc839598b683c969810a
parent750036a848ea913ba6343718ffa70da98f7eef6b
qcow2-refcount: Sanitize refcount table entry

When reading the refcount table entry in get_refcount(), only bits which
are actually significant for the refcount block offset should be taken
into account.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qcow2-refcount.c