From a35fcc8b3fc340a6b874440b2a87e155c807ece5 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 12 Dec 2024 02:54:13 +0000 Subject: automatic import of systemd --- sd-bus-properly-initialize-containers.patch | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 sd-bus-properly-initialize-containers.patch (limited to 'sd-bus-properly-initialize-containers.patch') diff --git a/sd-bus-properly-initialize-containers.patch b/sd-bus-properly-initialize-containers.patch new file mode 100644 index 0000000..3f74b2e --- /dev/null +++ b/sd-bus-properly-initialize-containers.patch @@ -0,0 +1,31 @@ +From 220a60a61a91153fd8e49e58884b9b0b904888f6 Mon Sep 17 00:00:00 2001 +From: Jan Synacek +Date: Wed, 31 Oct 2018 12:50:19 +0100 +Subject: [PATCH] sd-bus: properly initialize containers + +Fixes a SIGSEGV introduced by commit 38a5315a3a6fab745d8c86ff9e486faaf50b28d1. +The same problem doesn't exist upstream, as the container structure +there is initialized using a compound literal, which is zeroed out by +default. + +Related: #1635435 + +--- + src/libsystemd/sd-bus/bus-message.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c +index 9719f97..ec6cd57 100644 +--- a/src/libsystemd/sd-bus/bus-message.c ++++ b/src/libsystemd/sd-bus/bus-message.c +@@ -1783,6 +1783,7 @@ _public_ int sd_bus_message_open_container( + .enclosing = type, + .signature = TAKE_PTR(signature), + .array_size = array_size, ++ .peeked_signature = NULL, + .before = before, + .begin = begin, + }; +-- +2.33.0 + -- cgit v1.2.3