From d6e8835256c5a64a49a8c38deceb16635b57d931 Mon Sep 17 00:00:00 2001 From: icy17 <1061499390@qq.com> Date: Wed, 10 Apr 2024 17:45:03 +0800 Subject: [PATCH] Fix potential Null pointer dereference in regress_et.c --- test/regress_et.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/regress_et.c b/test/regress_et.c index 1b1f819e..185a3247 100644 --- a/test/regress_et.c +++ b/test/regress_et.c @@ -228,6 +228,8 @@ test_edge_triggered_multiple_events(void *data_) read_notification_cb, NULL); write_ev = event_new(base, pair[1], EV_WRITE|EV_ET|EV_PERSIST, write_notification_cb, NULL); + tt_assert(read_ev); + tt_assert(write_ev); event_add(read_ev, NULL); event_add(write_ev, NULL);