qcow2: Avoid making the L1 table too big
commit4bfe16ba7b518e434dc4eb7a22a664cb35ca3b7a
authorMax Reitz <mreitz@redhat.com>
Wed, 15 Jun 2016 15:36:30 +0000 (15 17:36 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 5 Aug 2016 18:55:23 +0000 (5 13:55 -0500)
tree94f871ebb69ca153dd1dd989c87f439136f295b4
parent683c1c5ea54e3f16a29429a6cc7cada5a1763d1c
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>
(cherry picked from commit 84c26520d3c1c9ff4a10455748139463278816d5)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/qcow2-cluster.c