1 Star 0 Fork 97

const/systemd

forked from src-openEuler/systemd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0012-sd-bus-properly-initialize-containers.patch 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
Mingtai 提交于 2021-12-08 16:20 . update systemd to v249
From 220a60a61a91153fd8e49e58884b9b0b904888f6 Mon Sep 17 00:00:00 2001
From: Jan Synacek <jsynacek@redhat.com>
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 eb029e4..e0c8338 100644
--- a/src/libsystemd/sd-bus/bus-message.c
+++ b/src/libsystemd/sd-bus/bus-message.c
@@ -2051,6 +2051,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,
.need_offsets = need_offsets,
--
2.19.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ship_harbour/systemd.git
git@gitee.com:ship_harbour/systemd.git
ship_harbour
systemd
systemd
master

搜索帮助