From: Pavel Hrdina Date: Fri, 3 Nov 2023 13:03:55 +0000 (+0100) Subject: qemu_process: fix crash in qemuSaveImageDecompressionStart X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4f4a8dce944e05311565b690a84f6bb1ef67c086;p=libvirt.git qemu_process: fix crash in qemuSaveImageDecompressionStart Commit changing the code to allow passing NULL as @data into qemuSaveImageDecompressionStart() was not correct as it left the original call into the function as well. Introduced-by: 2f3e582a1ac1008eba8d43c751cdba8712dd1614 Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2247754 Signed-off-by: Pavel Hrdina Reviewed-by: Ján Tomko --- diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 1ef032dbd2..b9267d8699 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -8208,9 +8208,6 @@ qemuProcessStartWithMemoryState(virConnectPtr conn, } } - if (qemuSaveImageDecompressionStart(data, fd, &intermediatefd, &errbuf, &cmd) < 0) - return -1; - /* No cookie means libvirt which saved the domain was too old to mess up * the CPU definitions. */