qcow2: Fix types in qcow2_alloc_clusters and alloc_clusters_noref
commitbb572aefbdac290363bfa5ca0e810ccce0a14ed6
authorKevin Wolf <kwolf@redhat.com>
Wed, 26 Mar 2014 12:05:51 +0000 (26 13:05 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 1 Apr 2014 13:22:34 +0000 (1 15:22 +0200)
tree8c7ce9ef37f114ce146c7c9dc39fc89ce3bc27bd
parent2b5d5953eec0cc541857c3df812bdf8421596ab2
qcow2: Fix types in qcow2_alloc_clusters and alloc_clusters_noref

In order to avoid integer overflows.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qcow2-refcount.c
block/qcow2.h