Projects
Eulaceura:Mainline
libevent
_service:obs_scm:backport-Fix-potential-Null-po...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:backport-Fix-potential-Null-pointer-dereference-in-regress_buffer.c.patch of Package libevent
From 2466dea1dff1ed8d51eb057854a22d5440aae147 Mon Sep 17 00:00:00 2001 From: icy17 <1061499390@qq.com> Date: Wed, 10 Apr 2024 17:42:01 +0800 Subject: [PATCH] Fix potential Null pointer dereference in regress_buffer.c --- test/regress_buffer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/regress_buffer.c b/test/regress_buffer.c index 2685055f03..32e35af8b7 100644 --- a/test/regress_buffer.c +++ b/test/regress_buffer.c @@ -1308,7 +1308,9 @@ test_evbuffer_add_file(void *ptr) addfile_test_writecb, src); rev = event_new(base, pair[1], EV_READ|EV_PERSIST, addfile_test_readcb, dest); - + tt_assert(wev); + tt_assert(rev); + event_add(wev, NULL); event_add(rev, NULL); event_base_dispatch(base);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2