Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
isv:cpanel:dev:EA4
apr
0004-Check-for-NULL-mutex-in-apr_global_mutex_c...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0004-Check-for-NULL-mutex-in-apr_global_mutex_child_init.patch of Package apr
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Tim Mullin <tim@cpanel.net> Date: Fri, 11 Feb 2022 02:44:46 +0000 Subject: [PATCH 4/4] Check for NULL mutex in apr_global_mutex_child_init Passing a NULL mutex into apr_global_mutex_child_init will cause a segmentation fault. --- locks/unix/global_mutex.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/locks/unix/global_mutex.c b/locks/unix/global_mutex.c index 0217351..27eb6df 100644 --- a/locks/unix/global_mutex.c +++ b/locks/unix/global_mutex.c @@ -86,6 +86,10 @@ APR_DECLARE(apr_status_t) apr_global_mutex_child_init( { apr_status_t rv; + if (*mutex == NULL) { + return APR_ENOLOCK; + } + rv = apr_proc_mutex_child_init(&((*mutex)->proc_mutex), fname, pool); return rv; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor