1 Star 0 Fork 14

liujie/openEuler_ipmitool

forked from src-openEuler/ipmitool 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0005-zero-initialize-the-recv-structure-on-the-stack.patch 685 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 5ac7f6a54e0a416fc37e962c2be87b16821cc771 Mon Sep 17 00:00:00 2001
From: Patrick Venture <pstrinkle@users.noreply.github.com>
Date: Wed, 3 Nov 2021 14:10:53 -0700
Subject: [PATCH] zero initialize the recv structure on the stack
Zero initialize the recv structure used by openipmi_read().
---
src/ipmievd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ipmievd.c b/src/ipmievd.c
index 2c19887..6a94b1f 100644
--- a/src/ipmievd.c
+++ b/src/ipmievd.c
@@ -422,7 +422,7 @@ static int
openipmi_read(struct ipmi_event_intf * eintf)
{
struct ipmi_addr addr;
- struct ipmi_recv recv;
+ struct ipmi_recv recv = {};
uint8_t data[80];
int rv;
--
2.25.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liujie-666/ipmitool_1.git
git@gitee.com:liujie-666/ipmitool_1.git
liujie-666
ipmitool_1
openEuler_ipmitool
master

搜索帮助