1
1
Event var_deref_model: Variable "array_of_integers" tracked as NULL was
   passed to a function that dereferences it. [model]
   The arrays passed down type_get_contents may be NULL, only iff max_* is 0...
   If the max_* parameter does not fit, an error is returned, anyhow.
   One could improve the checks of MPI_PARAM_CHECK, but to be on the
   safe side, fix in dt_args.c.

This commit was SVN r17974.
Этот коммит содержится в:
Rainer Keller 2008-03-26 09:07:06 +00:00
родитель 334b64e760
Коммит b7efc2b18e

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

@ -334,11 +334,11 @@ int32_t ompi_ddt_get_args( const ompi_datatype_t* pData, int32_t which,
case 1: /* GET THE ARGUMENTS */
if(*ci < pArgs->ci || *ca < pArgs->ca || *cd < pArgs->cd)
return MPI_ERR_ARG;
if( pArgs->i != NULL )
if( (NULL != i) && (NULL != pArgs->i) )
memcpy( i, pArgs->i, pArgs->ci * sizeof(int) );
if( pArgs->a != NULL )
if( (NULL != a) && (NULL != pArgs->a) )
memcpy( a, pArgs->a, pArgs->ca * sizeof(MPI_Aint) );
if( pArgs->d != NULL )
if( (NULL != d) && (NULL != pArgs->d) )
memcpy( d, pArgs->d, pArgs->cd * sizeof(MPI_Datatype) );
break;
default: