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)
commit54c42368f57c02b0970bb32b4542f99b913908ba
tree6ee1edba29568dc112a7c7d5c5d1665726f7f7ed
parentae2f14af54b089f793fcd1f5635dcb57a569adef
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