[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.0.4-106-g3adb59c
mysql vizuser
noreply at mpich.org
Tue Apr 30 21:31:16 CDT 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".
The branch, master has been updated
via 3adb59cb83a4f675ba990062c62396d1a23483cf (commit)
from a3bce754975b9b3c7e3ca6ba31fa20d00a79ac63 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/3adb59cb83a4f675ba990062c62396d1a23483cf
commit 3adb59cb83a4f675ba990062c62396d1a23483cf
Author: Pavan Balaji <balaji at mcs.anl.gov>
Date: Tue Apr 30 21:29:23 2013 -0500
Bug-fix for tt#1820.
Bad memory allocation. Thanks to Satish Balay for reporting it and
working with us to reproduce and fix it.
No reviewer.
diff --git a/src/pm/hydra/pm/pmiserv/pmip_pmi_v1.c b/src/pm/hydra/pm/pmiserv/pmip_pmi_v1.c
index 5d3693c..3fb1992 100644
--- a/src/pm/hydra/pm/pmiserv/pmip_pmi_v1.c
+++ b/src/pm/hydra/pm/pmiserv/pmip_pmi_v1.c
@@ -39,7 +39,10 @@ static HYD_status send_cmd_upstream(const char *start, int fd, int num_args, cha
HYDU_FUNC_ENTER();
- HYDU_MALLOC(tmp, char **, (2 * num_args + 1) * sizeof(char *), status);
+ /* We need two slots for each argument (one for the argument
+ * itself and one for a space character), one slot for the
+ * command, and one for the NULL character at the end. */
+ HYDU_MALLOC(tmp, char **, (2 * num_args + 2) * sizeof(char *), status);
j = 0;
tmp[j++] = HYDU_strdup(start);
-----------------------------------------------------------------------
Summary of changes:
src/pm/hydra/pm/pmiserv/pmip_pmi_v1.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
hooks/post-receive
--
MPICH primary repository
More information about the commits
mailing list