From 20ca7c223416b15dc416c905e3da6bcee0ca60b2 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Tue, 7 Dec 2004 00:17:28 +0000 Subject: [PATCH] Check the boundaries for the memcpy using the correct length. This commit was SVN r3718. --- src/datatype/dt_unpack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datatype/dt_unpack.c b/src/datatype/dt_unpack.c index 30869c2a74..da556d5483 100644 --- a/src/datatype/dt_unpack.c +++ b/src/datatype/dt_unpack.c @@ -274,7 +274,7 @@ static int ompi_convertor_unpack_homogeneous( ompi_convertor_t* pConv, last_count = 0; /* complete the data */ end_loop: if( last_count != 0 ) { /* save the internal state */ - OMPI_DDT_SAFEGUARD_POINTER( pConv->pBaseBuf + lastDisp, last_blength, + OMPI_DDT_SAFEGUARD_POINTER( pConv->pBaseBuf + lastDisp, last_count, pConv->pBaseBuf, pData, pConv->count ); MEMCPY( pConv->pBaseBuf + lastDisp, pSrcBuf, last_count ); bConverted += last_count;