From: Julian Seward Date: Mon, 7 Sep 2015 19:40:20 +0000 (+0000) Subject: Make sure the result value of count_from_Status is defined. X-Git-Tag: svn/VALGRIND_3_11_0~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30b07b56860bd04ea8a069b0ce2d6b258597b0cf;p=thirdparty%2Fvalgrind.git Make sure the result value of count_from_Status is defined. Fixes #330147. [Unverified!] git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15639 --- diff --git a/mpi/libmpiwrap.c b/mpi/libmpiwrap.c index 06e089086f..cae725b868 100644 --- a/mpi/libmpiwrap.c +++ b/mpi/libmpiwrap.c @@ -417,6 +417,7 @@ static __inline__ Bool count_from_Status( /*OUT*/int* recv_count, int err = PMPI_Get_count(status, datatype, &n); if (cONFIG_DER) VALGRIND_ENABLE_ERROR_REPORTING; if (err == MPI_SUCCESS) { + VALGRIND_MAKE_MEM_DEFINED(&n, sizeof(n)); *recv_count = n; return True; } else {