[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.1.2-70-gc835e3f

Service Account noreply at mpich.org
Tue Aug 5 20:18:14 CDT 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".

The branch, master has been updated
       via  c835e3f874912660f206139dc8046c4ede0501f7 (commit)
      from  805167c81bb53423bde2d6d95047c94669e29e47 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/c835e3f874912660f206139dc8046c4ede0501f7

commit c835e3f874912660f206139dc8046c4ede0501f7
Author: Junchao Zhang <jczhang at mcs.anl.gov>
Date:   Tue Aug 5 13:04:46 2014 -0500

    Avoid accessing null pointer in MPID_Comm_valid_ptr
    
    Fixes #2147
    
    Signed-off-by: Wesley Bland <wbland at anl.gov>

diff --git a/src/include/mpiimpl.h b/src/include/mpiimpl.h
index 882e366..64043e4 100644
--- a/src/include/mpiimpl.h
+++ b/src/include/mpiimpl.h
@@ -499,7 +499,7 @@ int MPIU_Handle_free( void *((*)[]), int );
      if ((ptr) && MPIU_Object_get_ref(ptr) <= 0) {    \
          MPIU_ERR_SET(err,MPI_ERR_COMM,"**comm");     \
          ptr = 0;                                     \
-     } else if (ptr->revoked && !ignore_rev) {        \
+     } else if ((ptr) && (ptr)->revoked && !(ignore_rev)) {        \
          MPIU_ERR_SET(err,MPIX_ERR_REVOKED,"**comm"); \
      }                                                \
 }

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

Summary of changes:
 src/include/mpiimpl.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list