Commit 06a9f9e6 authored by Wesley Bland's avatar Wesley Bland
Browse files

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: default avatarHuiwei Lu <huiweilu@mcs.anl.gov>
parent f7384c54
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment