]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: driver: Fix off-by-one in qemuDomainSnapshotDiskDataCollect
authorPeter Krempa <pkrempa@redhat.com>
Thu, 20 Jun 2019 13:41:48 +0000 (15:41 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 20 Jun 2019 14:09:58 +0000 (16:09 +0200)
commitd79ec3f33b91892839c2f7da336d4ea7660ee73a
tree43338610ba2a4416d849411e361c0688a52d30f9
parent2348c00f10f12a23644c8f770fd1802815c3fd0d
qemu: driver: Fix off-by-one in qemuDomainSnapshotDiskDataCollect

Commit f34397e51c17 introduced a crash-inducing problem when collecting
disk snapshot data, where the array would be filled starting from the
second element.

The code then dereferenced the first one.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c