Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

From: Chris Hennes (chennes_at_[hidden])
Date: 2006-08-01 08:49:17


In the file ompi/mpi/c/info_set.c, lines 87-92, from the current
release version of the code (v1.1),

        value_length = (value) ? strlen (value) : 0;
        if ((NULL == value) || (0 == value_length) ||
            (MPI_MAX_INFO_KEY <= value_length)) {
            return OMPI_ERRHANDLER_INVOKE (MPI_COMM_WORLD, MPI_ERR_INFO_VALUE,
                                           FUNC_NAME);
        }

I believe that in this case the third line down (line 89) should instead be

            (MPI_MAX_INFO_VAL <= value_length)) {

i.e. comparing the value argument to the max value length, rather than
the max key length.

Thanks,

Chris Hennes
Penn State