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

Check host of nodelist for reasonableness

Coverity CID 45279, 44884
parent 3c68d87b
No related branches found
No related tags found
No related merge requests found
......@@ -539,6 +539,8 @@ _read_info_from_srun(int srun_fd)
if (read(srun_fd, &len, sizeof(int)) != sizeof(int))
fatal("%s: failed to read nodelist length: %m", __func__);
if (len > (32 * 1024))
fatal("%s: nodelist length too large (%d)", __func__, len);
xfree(nodelist);
nodelist = (char *)xmalloc(len + 1);
......
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