Skip to content
Snippets Groups Projects
Commit 56854a62 authored by Morris Jette's avatar Morris Jette
Browse files

Fix for possible array over-run

parent cbd106fc
No related branches found
No related tags found
No related merge requests found
...@@ -258,7 +258,7 @@ _handle_pmi1_init(int fd, int lrank) ...@@ -258,7 +258,7 @@ _handle_pmi1_init(int fd, int lrank)
debug3("mpi/pmi2: in _handle_pmi1_init"); debug3("mpi/pmi2: in _handle_pmi1_init");
while ( (n = read(fd, buf, 64)) < 0 && errno == EINTR); while ( (n = read(fd, buf, 64)) < 0 && errno == EINTR);
if (n < 0) { if ((n < 0) || (n >= 64)) {
error("mpi/pmi2: failed to read PMI1 init command"); error("mpi/pmi2: failed to read PMI1 init command");
return SLURM_ERROR; return SLURM_ERROR;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment