8 Star 1 Fork 26

src-openEuler/libevent

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Fix-potential-Null-pointer-dereference-in-regress_thread.c.patch 881 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhangxingrong 提交于 2024-08-15 10:40 +08:00 . add some upstream patchs
From 319cae4af2d48058488bfc717ec8673fc57dd42d Mon Sep 17 00:00:00 2001
From: icy17 <1061499390@qq.com>
Date: Wed, 10 Apr 2024 17:39:36 +0800
Subject: [PATCH] Fix potential Null pointer dereference in regress_thread.c
---
test/regress_thread.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/regress_thread.c b/test/regress_thread.c
index 3f46764d56..8dbbda52eb 100644
--- a/test/regress_thread.c
+++ b/test/regress_thread.c
@@ -192,9 +192,11 @@ thread_basic(void *arg)
/* This piggybacks on the th_notify_fd weirdly, and looks
* inside libevent internals. Not a good idea in non-testing
* code! */
+ tt_assert(sigchld_event);
notification_event = event_new(base,
base->th_notify_fd[0], EV_READ|EV_PERSIST, notify_fd_cb,
NULL);
+ tt_assert(notification_event);
event_add(sigchld_event, NULL);
event_add(notification_event, NULL);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/libevent.git
git@gitee.com:src-openeuler/libevent.git
src-openeuler
libevent
libevent
master

搜索帮助