qcow2: Fix qemu-img check segfault on corrupted images
authorKevin Wolf <kwolf@redhat.com>
Tue, 22 Jun 2010 10:31:45 +0000 (12:31 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 22 Jun 2010 12:38:02 +0000 (14:38 +0200)
commit2de0a57cb31b48222b107b580fb8e8c74d575de8
tree13788e57b424d164711bc2268e9baf4f9d99777d
parentb429bbb96d38d3865d58d4ed5012237ffaebc03d
qcow2: Fix qemu-img check segfault on corrupted images

With corrupted images, we can easily get an cluster index that exceeds the
array size of the temporary refcount table.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-refcount.c