]> git.proxmox.com Git - mirror_qemu.git/commit
qcow2: Unaligned zero cluster in handle_alloc()
authorMax Reitz <mreitz@redhat.com>
Fri, 10 Nov 2017 20:31:08 +0000 (21:31 +0100)
committerMax Reitz <mreitz@redhat.com>
Fri, 17 Nov 2017 17:21:30 +0000 (18:21 +0100)
commit93bbaf03ff7fd490e823814b8f5d6849a7b71a64
tree15c255579532a672b067c32e985f7c11b7f16dbd
parent791fff504cad4d935dfaab6333ff9b7d95cbfe3f
qcow2: Unaligned zero cluster in handle_alloc()

We should check whether the cluster offset we are about to use is
actually valid; that is, whether it is aligned to cluster boundaries.

Reported-by: R. Nageswara Sastry <nasastry@in.ibm.com>
Buglink: https://bugs.launchpad.net/qemu/+bug/1728643
Buglink: https://bugs.launchpad.net/qemu/+bug/1728657
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20171110203111.7666-3-mreitz@redhat.com
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2-cluster.c
tests/qemu-iotests/060
tests/qemu-iotests/060.out