render / rpms / libvirt

Forked from rpms/libvirt 4 months ago
Clone
80a318
From b049f42dda977b094895acdf348304ba2f4f1cd4 Mon Sep 17 00:00:00 2001
2a7828
From: Pavel Hrdina <phrdina@redhat.com>
2a7828
Date: Fri, 3 Nov 2023 14:03:55 +0100
f8539f
Subject: [PATCH 1/8] qemu_process: fix crash in
80a318
 qemuSaveImageDecompressionStart
2a7828
MIME-Version: 1.0
2a7828
Content-Type: text/plain; charset=UTF-8
2a7828
Content-Transfer-Encoding: 8bit
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>
80a318
(cherry picked from commit 4f4a8dce944e05311565b690a84f6bb1ef67c086)
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
      */
80a318
-- 
80a318
2.43.0
80a318