qcow2: Avoid making the L1 table too big
authorMax Reitz <mreitz@redhat.com>
Wed, 15 Jun 2016 15:36:30 +0000 (17:36 +0200)
committerMax Reitz <mreitz@redhat.com>
Wed, 13 Jul 2016 11:41:38 +0000 (13:41 +0200)
commit84c26520d3c1c9ff4a10455748139463278816d5
treeae6857d2b67c1a596c6e62271ac9a7e66111240b
parentbcf23482ae00e040dbef46c44ff914bf788a0937
qcow2: Avoid making the L1 table too big

We refuse to open images whose L1 table we deem "too big". Consequently,
we should not produce such images ourselves.

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20160615153630.2116-3-mreitz@redhat.com
Reviewed-by: Eric Blake <eblake@redhat.com>
[mreitz: Added QEMU_BUILD_BUG_ON()]
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2-cluster.c