[SCM] Samba Shared Repository - branch master updated

Volker Lendecke vlendec at samba.org
Tue Jul 17 14:22:03 UTC 2018


The branch, master has been updated
       via  ba991da tevent: fix CID 1437974 dereference after null check
       via  3761d42 tevent: fix CID 1437976 dereference before null check
      from  8cb9643 dbwrap: determine basename once instead of three times

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit ba991da43469a1844b67fcec19a15ceda409fc3f
Author: Ralph Boehme <slow at samba.org>
Date:   Tue Jul 17 12:59:50 2018 +0200

    tevent: fix CID 1437974 dereference after null check
    
    Probably a copy/paste error from the tevent_debug() statement a few
    lines above as at this place we want to pass main_ev directly to
    tevent_debug() anyway.
    
    Signed-off-by: Ralph Boehme <slow at samba.org>
    Reviewed-by: Volker Lendecke <vl at samba.org>
    
    Autobuild-User(master): Volker Lendecke <vl at samba.org>
    Autobuild-Date(master): Tue Jul 17 16:21:21 CEST 2018 on sn-devel-144

commit 3761d42e4fe563ad893f14468e98bd1f5a807604
Author: Ralph Boehme <slow at samba.org>
Date:   Tue Jul 17 12:54:29 2018 +0200

    tevent: fix CID 1437976 dereference before null check
    
    Signed-off-by: Ralph Boehme <slow at samba.org>
    Reviewed-by: Volker Lendecke <vl at samba.org>

-----------------------------------------------------------------------

Summary of changes:
 lib/tevent/tevent_threads.c | 4 +++-
 lib/tevent/tevent_wrapper.c | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/tevent/tevent_threads.c b/lib/tevent/tevent_threads.c
index 21a9b68..a89990f 100644
--- a/lib/tevent/tevent_threads.c
+++ b/lib/tevent/tevent_threads.c
@@ -473,7 +473,7 @@ void _tevent_threaded_schedule_immediate(struct tevent_threaded_context *tctx,
 #ifdef HAVE_PTHREAD
 	const char *create_location = im->create_location;
 	struct tevent_context *main_ev = NULL;
-	struct tevent_wrapper_glue *glue = tctx->event_ctx->wrapper.glue;
+	struct tevent_wrapper_glue *glue = NULL;
 	int ret, wakeup_fd;
 
 	ret = pthread_mutex_lock(&tctx->event_ctx_mutex);
@@ -492,6 +492,8 @@ void _tevent_threaded_schedule_immediate(struct tevent_threaded_context *tctx,
 		return;
 	}
 
+	glue = tctx->event_ctx->wrapper.glue;
+
 	if ((im->event_ctx != NULL) || (handler == NULL)) {
 		abort();
 	}
diff --git a/lib/tevent/tevent_wrapper.c b/lib/tevent/tevent_wrapper.c
index 05c4c06..a07696a 100644
--- a/lib/tevent/tevent_wrapper.c
+++ b/lib/tevent/tevent_wrapper.c
@@ -347,7 +347,7 @@ struct tevent_context *_tevent_context_wrapper_create(struct tevent_context *mai
 		/*
 		 * wrappers conflict with nesting
 		 */
-		tevent_debug(main_ev->wrapper.glue->main_ev, TEVENT_DEBUG_FATAL,
+		tevent_debug(main_ev, TEVENT_DEBUG_FATAL,
 			     "%s: %s() conflicts with nesting\n",
 			     __func__, location);
 		errno = EINVAL;


-- 
Samba Shared Repository



More information about the samba-cvs mailing list