[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.1.3-195-g06a9f9e

Service Account noreply at mpich.org
Thu Nov 13 08:49:16 CST 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  06a9f9e6ace98b3c7cd479a88c5bbb310090307e (commit)
      from  f7384c546de181f59b8a57cb35f3a4b45c35db48 (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/06a9f9e6ace98b3c7cd479a88c5bbb310090307e

commit 06a9f9e6ace98b3c7cd479a88c5bbb310090307e
Author: Wesley Bland <wbland at anl.gov>
Date:   Wed Nov 12 22:19:55 2014 -0600

    Fix null pointer deref in pending check
    
    Depending on how some uninitialized data was prepopulated, the ibsend
    check was periodically crashing out in the call to
    MPID_Request_is_pending_failure. Some simple sanity checking to make
    sure the input data wasn't NULL takes care of this.
    
    Signed-off-by: Huiwei Lu <huiweilu at mcs.anl.gov>

diff --git a/src/mpid/ch3/src/mpid_comm_failure_ack.c b/src/mpid/ch3/src/mpid_comm_failure_ack.c
index 700c57e..aa6b8ac 100644
--- a/src/mpid/ch3/src/mpid_comm_failure_ack.c
+++ b/src/mpid/ch3/src/mpid_comm_failure_ack.c
@@ -158,6 +158,10 @@ int MPID_Request_is_pending_failure(MPID_Request *request_ptr)
     MPIDI_STATE_DECL(MPID_STATE_REQUEST_IS_PENDING_FAILURE);
     MPIDI_FUNC_ENTER(MPID_STATE_REQUEST_IS_PENDING_FAILURE);
 
+    if (NULL == request_ptr || NULL == request_ptr->comm) {
+        goto fn_exit;
+    }
+
     if (request_ptr->dev.match.parts.rank != MPI_ANY_SOURCE) {
         goto fn_exit;
     }

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

Summary of changes:
 src/mpid/ch3/src/mpid_comm_failure_ack.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list