Commit fb5eccda authored by Darius Buntinas's avatar Darius Buntinas
Browse files

[svn-r3718] Fixed #334. Added check for zero-byte copy.

parent 53494be3
......@@ -166,6 +166,9 @@ int MPIR_Localcopy(void *sendbuf, int sendcount, MPI_Datatype sendtype,
MPID_Datatype_get_size_macro(recvtype, recvsize);
sdata_sz = sendsize * sendcount;
rdata_sz = recvsize * recvcount;
if (!sdata_sz || !rdata_sz)
goto fn_exit;
if (sdata_sz > rdata_sz)
{
......
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