teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

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

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