OSDN Git Service

qcow2: Add bounds check to get_refblock_offset()
authorMax Reitz <mreitz@redhat.com>
Fri, 10 Nov 2017 20:31:10 +0000 (21:31 +0100)
committerMax Reitz <mreitz@redhat.com>
Fri, 17 Nov 2017 17:21:31 +0000 (18:21 +0100)
commit23482f8a603a7fc591b770c94ff75651a7da88b2
tree39d54de8da51f2434d09cf3ee1cd5b7317235677
parentd470ad42acfc73c45d3e8ed5311a491160b4c100
qcow2: Add bounds check to get_refblock_offset()

Reported-by: R. Nageswara Sastry <nasastry@in.ibm.com>
Buglink: https://bugs.launchpad.net/qemu/+bug/1728661
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20171110203111.7666-5-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-refcount.c
block/qcow2.h
tests/qemu-iotests/060
tests/qemu-iotests/060.out