Blame SOURCES/0047-sd-bus-properly-initialize-containers.patch

a3e2b5
From 220a60a61a91153fd8e49e58884b9b0b904888f6 Mon Sep 17 00:00:00 2001
a3e2b5
From: Jan Synacek <jsynacek@redhat.com>
a3e2b5
Date: Wed, 31 Oct 2018 12:50:19 +0100
a3e2b5
Subject: [PATCH] sd-bus: properly initialize containers
a3e2b5
a3e2b5
Fixes a SIGSEGV introduced by commit 38a5315a3a6fab745d8c86ff9e486faaf50b28d1.
a3e2b5
The same problem doesn't exist upstream, as the container structure
a3e2b5
there is initialized using a compound literal, which is zeroed out by
a3e2b5
default.
a3e2b5
a3e2b5
Related: #1635435
a3e2b5
---
a3e2b5
 src/libsystemd/sd-bus/bus-message.c | 1 +
a3e2b5
 1 file changed, 1 insertion(+)
a3e2b5
a3e2b5
diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c
a3e2b5
index d55cb14843..780c8c6185 100644
a3e2b5
--- a/src/libsystemd/sd-bus/bus-message.c
a3e2b5
+++ b/src/libsystemd/sd-bus/bus-message.c
a3e2b5
@@ -2004,6 +2004,7 @@ _public_ int sd_bus_message_open_container(
a3e2b5
         w = m->containers + m->n_containers++;
a3e2b5
         w->enclosing = type;
a3e2b5
         w->signature = TAKE_PTR(signature);
a3e2b5
+        w->peeked_signature = NULL;
a3e2b5
         w->index = 0;
a3e2b5
         w->array_size = array_size;
a3e2b5
         w->before = before;