]> git.ipfire.org Git - thirdparty/qemu.git/commit
qcow2: Check L1 table offset in qcow2_snapshot_load_tmp()
authorAlberto Garcia <berto@igalia.com>
Tue, 6 Mar 2018 16:14:07 +0000 (18:14 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Mar 2018 14:17:47 +0000 (15:17 +0100)
commit314e8d3928aa82fa13673d47b5af7bdd9a6d82bf
tree47e0a7e46d0433ab645f14b478e1194a783a61e1
parent0cf0e5980bb95a914a40ba0eb8e69c3d75c513fb
qcow2: Check L1 table offset in qcow2_snapshot_load_tmp()

This function checks that the size of a snapshot's L1 table is not too
large, but it doesn't validate the offset.

We now have a function to take care of this, so let's use it.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-snapshot.c
tests/qemu-iotests/080
tests/qemu-iotests/080.out