]> Git Repo - qemu.git/commit - block/qcow2-snapshot.c
qcow2: Fix broken snapshot table entries
authorMax Reitz <[email protected]>
Fri, 11 Oct 2019 15:28:08 +0000 (17:28 +0200)
committerMax Reitz <[email protected]>
Mon, 28 Oct 2019 10:54:02 +0000 (11:54 +0100)
commitf91f1f159bcaa81a70e860079a73ae7d1220dc0c
tree6d4cd144994cfeb5a174259e922f93ca879bf29f
parentfe446b5da225b551fc6493890d437fe4a8ba7552
qcow2: Fix broken snapshot table entries

The only case where we currently reject snapshot table entries is when
they have too much extra data.  Fix them with qemu-img check -r all by
counting it as a corruption, reducing their extra_data_size, and then
letting qcow2_check_fix_snapshot_table() do the rest.

Signed-off-by: Max Reitz <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Message-id: 20191011152814[email protected]
Signed-off-by: Max Reitz <[email protected]>
block/qcow2-snapshot.c
This page took 0.025316 seconds and 4 git commands to generate.