qcow2: Fix new L1 table size check (CVE-2014-0143)
commitcab60de930684c33f67d4e32c7509b567f8c445b
authorKevin Wolf <kwolf@redhat.com>
Wed, 26 Mar 2014 12:05:53 +0000 (26 13:05 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 1 Apr 2014 13:22:35 +0000 (1 15:22 +0200)
tree4e2f125f9c23314e55e742172151087be8f8c51a
parent0abe740f1de899737242bcba1fb4a9857f7a3087
qcow2: Fix new L1 table size check (CVE-2014-0143)

The size in bytes is assigned to an int later, so check that instead of
the number of entries.

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-cluster.c