teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

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

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