qcow2: Add plausibility check for L1/L2 entries (Kevin Wolf)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 21 Apr 2009 23:12:02 +0000 (23:12 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 21 Apr 2009 23:12:02 +0000 (23:12 +0000)
commit468b79d6dac9f799d9c7bf0252f88954a5044596
tree6ee1edba29568dc112a7c7d5c5d1665726f7f7ed
parenta1209e11b1a0fdcfb48347865cb015227926990f
qcow2: Add plausibility check for L1/L2 entries (Kevin Wolf)

From: Kevin Wolf <kwolf@redhat.com>

All L1 and L2 entries must point at the start of a cluster. If there is some
offset into the cluster, the entry is corrupted.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7217 c046a42c-6fe2-441c-8c8c-71466251a162
block-qcow2.c