1
1

Check the boundaries for the memcpy using the correct length.

This commit was SVN r3718.
Этот коммит содержится в:
George Bosilca 2004-12-07 00:17:28 +00:00
родитель 071225f062
Коммит 20ca7c2234

Просмотреть файл

@ -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;