Skip to content

Commit 3af8dfd

Browse files
committed
Fix a overwrite of the args buffer identified by Lisandro Dalcin.
1 parent 89882f1 commit 3af8dfd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ompi/mpi/c/type_create_f90_complex.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
44
* University Research and Technology
55
* Corporation. All rights reserved.
6-
* Copyright (c) 2004-2008 The University of Tennessee and The University
6+
* Copyright (c) 2004-2015 The University of Tennessee and The University
77
* of Tennessee Research Foundation. All rights
88
* reserved.
99
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
@@ -107,7 +107,7 @@ int MPI_Type_create_f90_complex(int p, int r, MPI_Datatype *newtype)
107107

108108
a_i[0] = &r;
109109
a_i[1] = &p;
110-
ompi_datatype_set_args( datatype, 1, a_i, 0, NULL, 0, NULL, MPI_COMBINER_F90_COMPLEX );
110+
ompi_datatype_set_args( datatype, 2, a_i, 0, NULL, 0, NULL, MPI_COMBINER_F90_COMPLEX );
111111

112112
rc = opal_hash_table_set_value_uint64( &ompi_mpi_f90_complex_hashtable, key, datatype );
113113
if (OMPI_SUCCESS != rc) {

ompi/mpi/c/type_create_f90_real.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
44
* University Research and Technology
55
* Corporation. All rights reserved.
6-
* Copyright (c) 2004-2008 The University of Tennessee and The University
6+
* Copyright (c) 2004-2015 The University of Tennessee and The University
77
* of Tennessee Research Foundation. All rights
88
* reserved.
99
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
@@ -105,7 +105,7 @@ int MPI_Type_create_f90_real(int p, int r, MPI_Datatype *newtype)
105105
snprintf(datatype->name, MPI_MAX_OBJECT_NAME, "COMBINER %s",
106106
(*newtype)->name);
107107

108-
ompi_datatype_set_args( datatype, 1, a_i, 0, NULL, 0, NULL, MPI_COMBINER_F90_REAL );
108+
ompi_datatype_set_args( datatype, 2, a_i, 0, NULL, 0, NULL, MPI_COMBINER_F90_REAL );
109109

110110
rc = opal_hash_table_set_value_uint64( &ompi_mpi_f90_real_hashtable, key, datatype );
111111
if (OMPI_SUCCESS != rc) {

0 commit comments

Comments
 (0)