[mpich-commits] [mpich] MPICH primary repository branch, release/mpich-3.0.x, updated. v3.0.4-3-g27dfcd8
mysql vizuser
noreply at mpich.org
Tue Apr 30 21:40:09 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, release/mpich-3.0.x has been updated
via 27dfcd8ecbeeb333b39c11ba04e52e26a6e1f58f (commit)
from b4471ce4c6743e2d00eab8ec992cd93e7b6e0e18 (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/27dfcd8ecbeeb333b39c11ba04e52e26a6e1f58f
commit 27dfcd8ecbeeb333b39c11ba04e52e26a6e1f58f
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