代码拉取完成,页面将自动刷新
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);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。