projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb141ba
)
sd-bus: properly initialize containers
v239-9
author
Jan Synacek
<jsynacek@redhat.com>
Wed, 31 Oct 2018 11:50:19 +0000
(12:50 +0100)
committer
Lukáš Nykrýn
<lnykryn@redhat.com>
Thu, 6 Dec 2018 08:05:23 +0000
(09:05 +0100)
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
patch
|
blob
|
history
diff --git
a/src/libsystemd/sd-bus/bus-message.c
b/src/libsystemd/sd-bus/bus-message.c
index d55cb14843ba5abff89175f0f8c8f83746739db9..780c8c618591a895fd2eb3f0670305357ee995b1 100644
(file)
--- a/
src/libsystemd/sd-bus/bus-message.c
+++ b/
src/libsystemd/sd-bus/bus-message.c
@@
-2004,6
+2004,7
@@
_public_ int sd_bus_message_open_container(
w = m->containers + m->n_containers++;
w->enclosing = type;
w->signature = TAKE_PTR(signature);
+ w->peeked_signature = NULL;
w->index = 0;
w->array_size = array_size;
w->before = before;