render / rpms / libvirt

Forked from rpms/libvirt 4 months ago
Clone
2a7828
From: Pavel Hrdina <phrdina@redhat.com>
2a7828
Date: Fri, 3 Nov 2023 14:03:55 +0100
2a7828
Subject: [PATCH] qemu_process: fix crash in qemuSaveImageDecompressionStart
2a7828
MIME-Version: 1.0
2a7828
Content-Type: text/plain; charset=UTF-8
2a7828
Content-Transfer-Encoding: 8bit
2a7828
Content-type: text/plain
2a7828
2a7828
Commit changing the code to allow passing NULL as @data into
2a7828
qemuSaveImageDecompressionStart() was not correct as it left the
2a7828
original call into the function as well.
2a7828
2a7828
Introduced-by: 2f3e582a1ac1008eba8d43c751cdba8712dd1614
2a7828
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2247754
2a7828
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2a7828
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2a7828
---
2a7828
 src/qemu/qemu_process.c | 3 ---
2a7828
 1 file changed, 3 deletions(-)
2a7828
2a7828
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
2a7828
index 1ef032dbd2..b9267d8699 100644
2a7828
--- a/src/qemu/qemu_process.c
2a7828
+++ b/src/qemu/qemu_process.c
2a7828
@@ -8208,9 +8208,6 @@ qemuProcessStartWithMemoryState(virConnectPtr conn,
2a7828
         }
2a7828
     }
2a7828
 
2a7828
-    if (qemuSaveImageDecompressionStart(data, fd, &intermediatefd, &errbuf, &cmd) < 0)
2a7828
-        return -1;
2a7828
-
2a7828
     /* No cookie means libvirt which saved the domain was too old to mess up
2a7828
      * the CPU definitions.
2a7828
      */