Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/pdsh-2.31/src/common/err.c
Examining data/pdsh-2.31/src/common/err.h
Examining data/pdsh-2.31/src/common/fd.c
Examining data/pdsh-2.31/src/common/fd.h
Examining data/pdsh-2.31/src/common/hostlist.c
Examining data/pdsh-2.31/src/common/hostlist.h
Examining data/pdsh-2.31/src/common/list.c
Examining data/pdsh-2.31/src/common/list.h
Examining data/pdsh-2.31/src/common/macros.h
Examining data/pdsh-2.31/src/common/pipecmd.c
Examining data/pdsh-2.31/src/common/pipecmd.h
Examining data/pdsh-2.31/src/common/split.c
Examining data/pdsh-2.31/src/common/split.h
Examining data/pdsh-2.31/src/common/xmalloc.c
Examining data/pdsh-2.31/src/common/xmalloc.h
Examining data/pdsh-2.31/src/common/xpoll.c
Examining data/pdsh-2.31/src/common/xpoll.h
Examining data/pdsh-2.31/src/common/xstring.c
Examining data/pdsh-2.31/src/common/xstring.h
Examining data/pdsh-2.31/src/modules/dshgroup.c
Examining data/pdsh-2.31/src/modules/execcmd.c
Examining data/pdsh-2.31/src/modules/genders.c
Examining data/pdsh-2.31/src/modules/k4cmd.c
Examining data/pdsh-2.31/src/modules/machines.c
Examining data/pdsh-2.31/src/modules/mcmd.c
Examining data/pdsh-2.31/src/modules/mqcmd.c
Examining data/pdsh-2.31/src/modules/netgroup.c
Examining data/pdsh-2.31/src/modules/nodeattr.c
Examining data/pdsh-2.31/src/modules/nodeupdown.c
Examining data/pdsh-2.31/src/modules/qcmd.c
Examining data/pdsh-2.31/src/modules/rms.c
Examining data/pdsh-2.31/src/modules/sdr.c
Examining data/pdsh-2.31/src/modules/slurm.c
Examining data/pdsh-2.31/src/modules/sshcmd.c
Examining data/pdsh-2.31/src/modules/torque.c
Examining data/pdsh-2.31/src/modules/xcpucmd.c
Examining data/pdsh-2.31/src/modules/xrcmd.c
Examining data/pdsh-2.31/src/pdsh/cbuf.c
Examining data/pdsh-2.31/src/pdsh/cbuf.h
Examining data/pdsh-2.31/src/pdsh/dsh.c
Examining data/pdsh-2.31/src/pdsh/dsh.h
Examining data/pdsh-2.31/src/pdsh/ltdl.c
Examining data/pdsh-2.31/src/pdsh/ltdl.h
Examining data/pdsh-2.31/src/pdsh/main.c
Examining data/pdsh-2.31/src/pdsh/mod.c
Examining data/pdsh-2.31/src/pdsh/mod.h
Examining data/pdsh-2.31/src/pdsh/opt.c
Examining data/pdsh-2.31/src/pdsh/opt.h
Examining data/pdsh-2.31/src/pdsh/pcp_client.c
Examining data/pdsh-2.31/src/pdsh/pcp_client.h
Examining data/pdsh-2.31/src/pdsh/pcp_server.c
Examining data/pdsh-2.31/src/pdsh/pcp_server.h
Examining data/pdsh-2.31/src/pdsh/privsep.c
Examining data/pdsh-2.31/src/pdsh/privsep.h
Examining data/pdsh-2.31/src/pdsh/rcmd.c
Examining data/pdsh-2.31/src/pdsh/rcmd.h
Examining data/pdsh-2.31/src/pdsh/testcase.c
Examining data/pdsh-2.31/src/pdsh/wcoll.c
Examining data/pdsh-2.31/src/pdsh/wcoll.h
Examining data/pdsh-2.31/src/pdsh/xpopen.c
Examining data/pdsh-2.31/src/pdsh/xpopen.h
Examining data/pdsh-2.31/src/qsnet/mqshd.c
Examining data/pdsh-2.31/src/qsnet/qshd.c
Examining data/pdsh-2.31/src/qsnet/qshell.c
Examining data/pdsh-2.31/src/qsnet/qshell.h
Examining data/pdsh-2.31/src/qsnet/qswutil.c
Examining data/pdsh-2.31/src/qsnet/qswutil.h
Examining data/pdsh-2.31/tests/test-modules/a.c
Examining data/pdsh-2.31/tests/test-modules/b.c
Examining data/pdsh-2.31/tests/test-modules/pcptest.c

FINAL RESULTS:

data/pdsh-2.31/src/modules/torque.c:193:5:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
    strncat(dst, servername, PBS_MAXSERVERNAME);
data/pdsh-2.31/src/pdsh/pcp_server.c:362:27:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                    (void)chmod(np, mode);
data/pdsh-2.31/src/common/hostlist.c:343:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    len = vsnprintf(buf, 1024, msg, ap);
data/pdsh-2.31/src/common/hostlist.c:2332:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (buf, i->hr->prefix);
data/pdsh-2.31/src/common/hostlist.c:2333:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (buf, suffix);
data/pdsh-2.31/src/common/pipecmd.c:305:9:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execvp (path, args);
data/pdsh-2.31/src/common/xmalloc.c:116:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    return strcpy(result, str);
data/pdsh-2.31/src/common/xstring.c:112:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(*str1, str2);
data/pdsh-2.31/src/common/xstring.c:123:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(*str1, str2);
data/pdsh-2.31/src/modules/mcmd.c:487:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    mptr = strcpy(mbuf, remuser);
data/pdsh-2.31/src/modules/mcmd.c:489:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    mptr = strcpy(mptr, mpvers);
data/pdsh-2.31/src/modules/mcmd.c:491:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    mptr = strcpy(mptr, haddrdot);
data/pdsh-2.31/src/modules/mcmd.c:493:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    mptr = strcpy(mptr, num);
data/pdsh-2.31/src/modules/mcmd.c:495:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    mptr = strcpy(mptr, num_seq);
data/pdsh-2.31/src/modules/mcmd.c:497:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    mptr = strcpy(mptr, cmd);
data/pdsh-2.31/src/modules/mqcmd.c:660:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    mptr = strcpy(mbuf, remuser);
data/pdsh-2.31/src/modules/mqcmd.c:662:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    mptr = strcpy(mptr, haddrdot);
data/pdsh-2.31/src/modules/mqcmd.c:664:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    mptr = strcpy(mptr, num);
data/pdsh-2.31/src/modules/mqcmd.c:666:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    mptr = strcpy(mptr, num_seq);
data/pdsh-2.31/src/modules/mqcmd.c:668:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    mptr = strcpy(mptr, cmd);
data/pdsh-2.31/src/modules/sdr.c:297:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(switchName, len, _list_nth(words, 0));
data/pdsh-2.31/src/modules/sshcmd.c:183:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf (buf, 64, SSH_CONNECT_TIMEOUT_OPTION, timeout);
data/pdsh-2.31/src/modules/xcpucmd.c:140:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(path, CLONE_TMPL, hostname);
data/pdsh-2.31/src/modules/xcpucmd.c:159:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(path, SESSFILE_TMPL, hostname, sid, name);
data/pdsh-2.31/src/modules/xcpucmd.c:174:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(path, SESSFILE_TMPL, hostname, sid, name);
data/pdsh-2.31/src/modules/xcpucmd.c:221:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(shcmd, SHCMD_TMPL, qcmd);
data/pdsh-2.31/src/pdsh/ltdl.c:275:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(tmp, str);
data/pdsh-2.31/src/pdsh/ltdl.c:848:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  lt_ptr		system;		/* system specific data */
data/pdsh-2.31/src/pdsh/ltdl.c:1346:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (searchname, "%s.", filename);
data/pdsh-2.31/src/pdsh/ltdl.c:2507:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (filename, "%.*s/%s", (int) dirname_len, dirname, dlname);
data/pdsh-2.31/src/pdsh/ltdl.c:2716:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy (filename, dir_name);
data/pdsh-2.31/src/pdsh/ltdl.c:2722:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy (filename +lendir, base_name);
data/pdsh-2.31/src/pdsh/ltdl.c:2794:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  int		notfound	= access (filename, R_OK);
data/pdsh-2.31/src/pdsh/ltdl.c:2928:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf (name, "lib%s", p+2);
data/pdsh-2.31/src/pdsh/ltdl.c:3503:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (tmp, filename);
data/pdsh-2.31/src/pdsh/ltdl.c:3504:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat (tmp, archive_ext);
data/pdsh-2.31/src/pdsh/ltdl.c:3527:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (tmp, filename);
data/pdsh-2.31/src/pdsh/ltdl.c:3534:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(tmp, shlib_ext);
data/pdsh-2.31/src/pdsh/ltdl.c:3663:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy  (buf, dirnam);
data/pdsh-2.31/src/pdsh/ltdl.c:3916:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(sym, handle->loader->sym_prefix);
data/pdsh-2.31/src/pdsh/ltdl.c:3917:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	  strcat(sym, handle->info.name);
data/pdsh-2.31/src/pdsh/ltdl.c:3921:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(sym, handle->info.name);
data/pdsh-2.31/src/pdsh/ltdl.c:3925:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(sym, symbol);
data/pdsh-2.31/src/pdsh/ltdl.c:3943:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(sym, handle->loader->sym_prefix);
data/pdsh-2.31/src/pdsh/ltdl.c:3944:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(sym, symbol);
data/pdsh-2.31/src/pdsh/ltdl.c:3948:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(sym, symbol);
data/pdsh-2.31/src/pdsh/main.c:371:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        system(cmd);
data/pdsh-2.31/src/pdsh/mod.c:906:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(p, entry->d_name);
data/pdsh-2.31/src/pdsh/opt.c:238:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access(abspath, R_OK) == 0)
data/pdsh-2.31/src/pdsh/opt.c:329:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (dst, src);
data/pdsh-2.31/src/pdsh/pcp_client.c:113:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(name, R_OK) < 0)
data/pdsh-2.31/src/pdsh/pcp_client.c:152:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(name, R_OK) < 0)
data/pdsh-2.31/src/pdsh/pcp_client.c:336:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(tmpstr, sizeof(tmpstr), template,
data/pdsh-2.31/src/pdsh/wcoll.c:127:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access (buf, R_OK) >= 0) {
data/pdsh-2.31/src/pdsh/wcoll.c:269:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(fq_path, R_OK) == -1 || !(fp = fopen(fq_path, "r")))
data/pdsh-2.31/src/pdsh/wcoll.c:311:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (dir, dname);
data/pdsh-2.31/src/pdsh/wcoll.c:341:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(file, R_OK) == -1 || !(fp = fopen(file, "r")))
data/pdsh-2.31/src/pdsh/xpopen.c:134:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (access(av[0], F_OK) != 0 && errno != EINTR) {
data/pdsh-2.31/src/pdsh/xpopen.c:140:9:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execv(av[0], av);
data/pdsh-2.31/src/qsnet/qshell.c:171:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(bp, sizeof(buf) - 1, fmt, ap);
data/pdsh-2.31/src/qsnet/qshell.c:173:9:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
        syslog(LOG_ERR, (sent_null == 0) ? buf + 1 : buf);
data/pdsh-2.31/src/qsnet/qshell.c:267:30:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (pwd->pw_uid != 0 && !access(_PATH_NOLOGIN, F_OK))
data/pdsh-2.31/src/qsnet/qshell.c:785:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(path, _PATH_DEFPATH);
data/pdsh-2.31/src/qsnet/qshell.c:827:5:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    execl(theshell, shellname, "-c", args->cmdbuf, 0);
data/pdsh-2.31/src/qsnet/qswutil.c:500:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(buf, sizeof(buf), fmt, ap);
data/pdsh-2.31/src/qsnet/qswutil.c:1244:5:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    execl("/bin/bash", "bash", "-c", cmdbuf, 0);
data/pdsh-2.31/src/modules/dshgroup.c:126:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *home = getenv("HOME");
data/pdsh-2.31/src/modules/dshgroup.c:127:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *dshgroup_path = getenv("DSHGROUP_PATH");
data/pdsh-2.31/src/modules/genders.c:447:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *gdir = getenv ("PDSH_GENDERS_DIR");
data/pdsh-2.31/src/modules/genders.c:478:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    else if ((gfile_env = getenv ("PDSH_GENDERS_FILE")))
data/pdsh-2.31/src/modules/rms.c:154:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((rhs = getenv("RMS_RESOURCEID"))) {
data/pdsh-2.31/src/modules/slurm.c:220:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    return (str2jobid (getenv ("SLURM_JOBID")));
data/pdsh-2.31/src/modules/sshcmd.c:391:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((val = getenv ("PDSH_SSH_ARGS_APPEND"))) {
data/pdsh-2.31/src/modules/sshcmd.c:396:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (!(val = getenv ("PDSH_SSH_ARGS")))
data/pdsh-2.31/src/modules/torque.c:291:43:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((joblist == NULL) && ((envjobid = getenv("PBS_JOBID")) == NULL))
data/pdsh-2.31/src/pdsh/ltdl.c:1362:16:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
      module = LoadLibrary (wpath);
data/pdsh-2.31/src/pdsh/ltdl.c:1365:14:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    module = LoadLibrary (searchname);
data/pdsh-2.31/src/pdsh/ltdl.c:3193:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	      search_path = getenv (LTDL_SEARCHPATH_VAR);
data/pdsh-2.31/src/pdsh/ltdl.c:3201:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	      search_path = getenv (LTDL_SHLIBPATH_VAR);
data/pdsh-2.31/src/pdsh/ltdl.c:3386:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		   && !find_handle (getenv (LTDL_SEARCHPATH_VAR), base_name,
data/pdsh-2.31/src/pdsh/ltdl.c:3389:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		   && !find_handle (getenv (LTDL_SHLIBPATH_VAR), base_name,
data/pdsh-2.31/src/pdsh/ltdl.c:3775:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  is_done = foreach_dirinpath (getenv("LTDL_LIBRARY_PATH"), 0,
data/pdsh-2.31/src/pdsh/ltdl.c:3782:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  is_done = foreach_dirinpath (getenv(LTDL_SHLIBPATH_VAR), 0,
data/pdsh-2.31/src/pdsh/ltdl.c:3789:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  is_done = foreach_dirinpath (getenv(LTDL_SYSSEARCHPATH), 0,
data/pdsh-2.31/src/pdsh/main.c:108:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (!(m = getenv ("PDSH_MODULE_DIR")) ||
data/pdsh-2.31/src/pdsh/main.c:162:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (!(home = getenv ("HOME"))) {
data/pdsh-2.31/src/pdsh/opt.c:273:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      if ((path = Strdup(getenv("PATH"))) == NULL)
data/pdsh-2.31/src/pdsh/opt.c:448:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((rhs = getenv("FANOUT")) != NULL)
data/pdsh-2.31/src/pdsh/opt.c:452:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((rhs = getenv("PDSH_RCMD_TYPE")) != NULL)
data/pdsh-2.31/src/pdsh/opt.c:455:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((rhs = getenv("PDSH_MISC_MODULES")) != NULL)
data/pdsh-2.31/src/pdsh/opt.c:458:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((rhs = getenv("DSHPATH")) != NULL) {
data/pdsh-2.31/src/pdsh/opt.c:478:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if ((rhs = getenv ("PDSH_REMOTE_PDCP_PATH")) != NULL) {
data/pdsh-2.31/src/pdsh/opt.c:508:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv, pdsh_options)) != EOF) {
data/pdsh-2.31/src/pdsh/opt.c:560:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv, pdsh_options)) != EOF) {
data/pdsh-2.31/src/pdsh/opt.c:739:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        char *val = getenv ("WCOLL");
data/pdsh-2.31/src/qsnet/qshell.c:918:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, OPTIONS)) != EOF) {
data/pdsh-2.31/src/qsnet/qswutil.c:780:14:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    prgnum = lrand48() % (QSW_PRG_END - QSW_PRG_START + 1);
data/pdsh-2.31/src/qsnet/qswutil.c:835:34:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        cap->UserKey.Values[i] = lrand48();
data/pdsh-2.31/src/qsnet/qswutil.c:844:23:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    cap->LowContext = lrand48() %
data/pdsh-2.31/src/qsnet/qswutil.c:1194:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv, "u:n:")) != EOF) {
data/pdsh-2.31/src/common/err.c:64:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char thishost[MAXHOSTNAMELEN];
data/pdsh-2.31/src/common/err.c:106:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpstr[LINEBUFSIZE];
data/pdsh-2.31/src/common/hostlist.c:339:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[1024];
data/pdsh-2.31/src/common/hostlist.c:501:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(hn->prefix, hostname, idx + 1);
data/pdsh-2.31/src/common/hostlist.c:1255:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char prefix[256] = "";
data/pdsh-2.31/src/common/hostlist.c:1300:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(prefix, tok, (size_t) pos * sizeof(char));
data/pdsh-2.31/src/common/hostlist.c:1479:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char host[4096];
data/pdsh-2.31/src/common/hostlist.c:1504:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cur_tok[1024];
data/pdsh-2.31/src/common/hostlist.c:1731:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[MAXHOSTRANGELEN + 1];
data/pdsh-2.31/src/common/hostlist.c:1764:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/pdsh-2.31/src/common/hostlist.c:1835:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[MAXHOSTNAMELEN + 16];
data/pdsh-2.31/src/common/hostlist.c:2310:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char suffix[16];
data/pdsh-2.31/src/common/hostlist.c:2341:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[MAXHOSTRANGELEN + 1];
data/pdsh-2.31/src/common/hostlist.c:2612:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/pdsh-2.31/src/common/hostlist.c:2653:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024000];
data/pdsh-2.31/src/common/pipecmd.c:95:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf [64];
data/pdsh-2.31/src/common/xstring.c:150:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errbuf[64];
data/pdsh-2.31/src/common/xstring.c:153:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char err[64];
data/pdsh-2.31/src/modules/dshgroup.c:125:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path [4096];
data/pdsh-2.31/src/modules/genders.c:635:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char val[64];
data/pdsh-2.31/src/modules/k4cmd.c:226:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((caddr_t) & sin.sin_addr, addr, IP_ADDR_LEN);
data/pdsh-2.31/src/modules/k4cmd.c:249:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char num[8];
data/pdsh-2.31/src/modules/k4cmd.c:308:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tmpbuf[LINEBUFSIZE];
data/pdsh-2.31/src/modules/k4cmd.c:357:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tmpbuf[LINEBUFSIZE];
data/pdsh-2.31/src/modules/mcmd.c:219:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((rand_fd = open ("/dev/urandom", O_RDONLY | O_NONBLOCK)) < 0 ) {
data/pdsh-2.31/src/modules/mcmd.c:266:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hostname[MAXHOSTNAMELEN+1];
data/pdsh-2.31/src/modules/mcmd.c:318:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char num[6] = {0};
data/pdsh-2.31/src/modules/mcmd.c:324:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char num_seq[12] = {0};
data/pdsh-2.31/src/modules/mcmd.c:328:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char haddrdot[MAXHOSTNAMELEN + MRSH_LOCALHOST_KEYLEN + 1] = {0};
data/pdsh-2.31/src/modules/mcmd.c:367:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&sin.sin_addr.s_addr, addr, IP_ADDR_LEN); 
data/pdsh-2.31/src/modules/mcmd.c:433:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&m_in.s_addr, addr, IP_ADDR_LEN);
data/pdsh-2.31/src/modules/mcmd.c:435:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(haddrdot, "%u.%u.%u.%u", hptr[0], hptr[1], hptr[2], hptr[3]);
data/pdsh-2.31/src/modules/mcmd.c:618:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char tmpbuf[LINEBUFSIZE] = {0};
data/pdsh-2.31/src/modules/mcmd.c:621:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(tptr,(char *) &rand,sizeof(rand));
data/pdsh-2.31/src/modules/mcmd.c:649:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tmpbuf[LINEBUFSIZE];
data/pdsh-2.31/src/modules/mqcmd.c:138:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char cwd[MAXPATHLEN + 1];
data/pdsh-2.31/src/modules/mqcmd.c:238:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    nprocs = atoi(arg);
data/pdsh-2.31/src/modules/mqcmd.c:366:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((rand_fd = open ("/dev/urandom", O_RDONLY | O_NONBLOCK)) < 0 ) {
data/pdsh-2.31/src/modules/mqcmd.c:413:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpstr[1024];
data/pdsh-2.31/src/modules/mqcmd.c:501:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char num[6] = {0};
data/pdsh-2.31/src/modules/mqcmd.c:507:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char num_seq[12] = {0};
data/pdsh-2.31/src/modules/mqcmd.c:511:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char haddrdot[16] = {0};
data/pdsh-2.31/src/modules/mqcmd.c:553:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&sin.sin_addr.s_addr, addr, IP_ADDR_LEN); 
data/pdsh-2.31/src/modules/mqcmd.c:610:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&m_in.s_addr, addr, IP_ADDR_LEN);
data/pdsh-2.31/src/modules/mqcmd.c:616:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(haddrdot, "%u.%u.%u.%u", hptr[0], hptr[1], hptr[2], hptr[3]);
data/pdsh-2.31/src/modules/mqcmd.c:788:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char tmpbuf[LINEBUFSIZE] = {0};
data/pdsh-2.31/src/modules/mqcmd.c:791:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(tptr,(char *) &rand,sizeof(rand));
data/pdsh-2.31/src/modules/mqcmd.c:826:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tmpbuf[LINEBUFSIZE];
data/pdsh-2.31/src/modules/netgroup.c:122:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/pdsh-2.31/src/modules/nodeattr.c:254:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmd[LINEBUFSIZE];
data/pdsh-2.31/src/modules/nodeattr.c:255:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[LINEBUFSIZE];
data/pdsh-2.31/src/modules/qcmd.c:134:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char cwd[MAXPATHLEN + 1];
data/pdsh-2.31/src/modules/qcmd.c:213:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    nprocs = atoi(arg);
data/pdsh-2.31/src/modules/qcmd.c:355:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpstr[1024];
data/pdsh-2.31/src/modules/qcmd.c:428:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&sin.sin_addr, addr, IP_ADDR_LEN);
data/pdsh-2.31/src/modules/qcmd.c:455:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char num[8];
data/pdsh-2.31/src/modules/qcmd.c:518:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tmpbuf[LINEBUFSIZE];
data/pdsh-2.31/src/modules/rms.c:126:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[256];
data/pdsh-2.31/src/modules/rms.c:161:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        rid = atoi(ridstr);
data/pdsh-2.31/src/modules/sdr.c:286:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmd[LINEBUFSIZE];
data/pdsh-2.31/src/modules/sdr.c:287:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[LINEBUFSIZE];
data/pdsh-2.31/src/modules/sdr.c:307:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmd[LINEBUFSIZE];
data/pdsh-2.31/src/modules/sdr.c:308:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[LINEBUFSIZE];
data/pdsh-2.31/src/modules/sdr.c:333:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        n = atoi(_list_nth(words, 0));
data/pdsh-2.31/src/modules/sdr.c:351:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	nn = atoi (_list_nth (words, 0));
data/pdsh-2.31/src/modules/sdr.c:357:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        sdrcache[nn]->host_responds = (atoi (_list_nth (words, 1)) == 1);
data/pdsh-2.31/src/modules/sdr.c:371:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	nn = atoi (_list_nth (words, 0));
data/pdsh-2.31/src/modules/sdr.c:377:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	s->switch_responds = (atoi(_list_nth(words, 1)) == 1);
data/pdsh-2.31/src/modules/sdr.c:379:47:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		s->switch_responds = s->switch_responds || (atoi(_list_nth (words, 1)));
data/pdsh-2.31/src/modules/sdr.c:395:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	nn = atoi (_list_nth (words, 0));
data/pdsh-2.31/src/modules/sdr.c:416:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmd[LINEBUFSIZE];
data/pdsh-2.31/src/modules/sdr.c:417:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[LINEBUFSIZE];
data/pdsh-2.31/src/modules/sdr.c:454:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmd[LINEBUFSIZE];
data/pdsh-2.31/src/modules/sdr.c:455:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[LINEBUFSIZE];
data/pdsh-2.31/src/modules/sshcmd.c:178:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/pdsh-2.31/src/modules/torque.c:245:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *p, hname[PBS_MAXHOSTNAME];
data/pdsh-2.31/src/modules/torque.c:278:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char jobid[PBS_MAXCLTJOBID];
data/pdsh-2.31/src/modules/torque.c:284:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char servername[PBS_MAXSERVERNAME];
data/pdsh-2.31/src/modules/xcpucmd.c:137:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[MAXPATHLEN];
data/pdsh-2.31/src/modules/xcpucmd.c:141:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(path, "r");
data/pdsh-2.31/src/modules/xcpucmd.c:156:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[MAXPATHLEN];
data/pdsh-2.31/src/modules/xcpucmd.c:160:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(path, mode);
data/pdsh-2.31/src/modules/xcpucmd.c:170:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[MAXPATHLEN];
data/pdsh-2.31/src/modules/xcpucmd.c:175:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(path, "w");
data/pdsh-2.31/src/modules/xcpucmd.c:266:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmd[256];
data/pdsh-2.31/src/modules/xcpucmd.c:269:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(cmd, "signal %d", signum);
data/pdsh-2.31/src/modules/xrcmd.c:236:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&sin.sin_addr, addr, IP_ADDR_LEN);
data/pdsh-2.31/src/modules/xrcmd.c:263:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char num[8];
data/pdsh-2.31/src/modules/xrcmd.c:323:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tmpbuf[LINEBUFSIZE];
data/pdsh-2.31/src/pdsh/cbuf.c:268:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(cb->data - CBUF_MAGIC_LEN, (void *) &cb->magic, CBUF_MAGIC_LEN);
data/pdsh-2.31/src/pdsh/cbuf.c:269:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(cb->data + cb->size + 1, (void *) &cb->magic, CBUF_MAGIC_LEN);
data/pdsh-2.31/src/pdsh/cbuf.c:292:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(cb->data - CBUF_MAGIC_LEN, (void *) &cb->magic, CBUF_MAGIC_LEN);
data/pdsh-2.31/src/pdsh/cbuf.c:293:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(cb->data + cb->size + 1, (void *) &cb->magic, CBUF_MAGIC_LEN);
data/pdsh-2.31/src/pdsh/cbuf.c:1292:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dstbuf, *psrcbuf, len);
data/pdsh-2.31/src/pdsh/cbuf.c:1330:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(*pdstbuf, srcbuf, len);
data/pdsh-2.31/src/pdsh/cbuf.c:1398:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&dst->data[i_dst], &src->data[i_src], n);
data/pdsh-2.31/src/pdsh/cbuf.c:1699:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(cb->data + cb->size + 1, (void *) &cb->magic, CBUF_MAGIC_LEN);
data/pdsh-2.31/src/pdsh/dsh.c:341:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(addr, hp->h_addr_list[0], IP_ADDR_LEN);
data/pdsh-2.31/src/pdsh/dsh.c:517:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        ret = atoi(p);
data/pdsh-2.31/src/pdsh/dsh.c:581:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[8192];
data/pdsh-2.31/src/pdsh/dsh.h:92:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char addr[IP_ADDR_LEN];     /* IP address */
data/pdsh-2.31/src/pdsh/ltdl.c:164:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char d_name[2048];
data/pdsh-2.31/src/pdsh/ltdl.c:376:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#    define memcpy(dest, src, size)	bcopy (src, dest, size)
data/pdsh-2.31/src/pdsh/ltdl.c:376:37:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#    define memcpy(dest, src, size)	bcopy (src, dest, size)
data/pdsh-2.31/src/pdsh/ltdl.c:378:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#    define memcpy rpl_memcpy
data/pdsh-2.31/src/pdsh/ltdl.c:380:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
static lt_ptr memcpy LT_PARAMS((lt_ptr dest, const lt_ptr src, size_t size));
data/pdsh-2.31/src/pdsh/ltdl.c:383:1:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
memcpy (dest, src, size)
data/pdsh-2.31/src/pdsh/ltdl.c:456:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char file_specification[LT_FILENAME_MAX];
data/pdsh-2.31/src/pdsh/ltdl.c:472:14:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      (void) strcat(file_specification,"\\*.*");
data/pdsh-2.31/src/pdsh/ltdl.c:554:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (mem, ptr, size);
data/pdsh-2.31/src/pdsh/ltdl.c:597:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (argz + *pargz_len, buf, buf_len);
data/pdsh-2.31/src/pdsh/ltdl.c:716:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy  (before, entry, entry_len);
data/pdsh-2.31/src/pdsh/ltdl.c:1321:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char		self_name_buf[MAX_PATH];
data/pdsh-2.31/src/pdsh/ltdl.c:1360:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char wpath[MAX_PATH];
data/pdsh-2.31/src/pdsh/ltdl.c:1896:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  	char saveError[256] = "Symbol not found";
data/pdsh-2.31/src/pdsh/ltdl.c:2759:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((*pfile = fopen (filename, LT_READTEXT_MODE)))
data/pdsh-2.31/src/pdsh/ltdl.c:3215:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	  file = fopen (filename, LT_READTEXT_MODE);
data/pdsh-2.31/src/pdsh/ltdl.c:3872:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char	lsym[LT_SYMBOL_LENGTH];
data/pdsh-2.31/src/pdsh/ltdl.c:3924:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(sym, "_LTX_");
data/pdsh-2.31/src/pdsh/main.c:200:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open (path, O_CREAT, 00600)) < 0) {
data/pdsh-2.31/src/pdsh/main.c:234:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char prompt[64];
data/pdsh-2.31/src/pdsh/main.c:235:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char history_filename[MAXPATHLEN];
data/pdsh-2.31/src/pdsh/main.c:385:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[LINEBUFSIZE];
data/pdsh-2.31/src/pdsh/mod.c:393:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[81];
data/pdsh-2.31/src/pdsh/mod.c:879:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char           path[MAXPATHLEN + 1];
data/pdsh-2.31/src/pdsh/mod.c:1043:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dirbuf[MAXPATHLEN + 1];
data/pdsh-2.31/src/pdsh/mod.c:1071:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf [MAXPATHLEN];
data/pdsh-2.31/src/pdsh/opt.c:252:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cwd[MAXPATHLEN];
data/pdsh-2.31/src/pdsh/opt.c:610:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            opt->connect_timeout = atoi(optarg);
data/pdsh-2.31/src/pdsh/opt.c:613:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            opt->command_timeout = atoi(optarg);
data/pdsh-2.31/src/pdsh/opt.c:645:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            testcase(atoi(optarg));
data/pdsh-2.31/src/pdsh/opt.c:961:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char wcoll_str[1024];
data/pdsh-2.31/src/pdsh/opt.c:972:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char infiles [4096];
data/pdsh-2.31/src/pdsh/opt.c:1087:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char rbuf [1024];
data/pdsh-2.31/src/pdsh/opt.c:1120:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/pdsh-2.31/src/pdsh/opt.c:1144:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/pdsh-2.31/src/pdsh/opt.c:1245:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char msg [4096];
data/pdsh-2.31/src/pdsh/pcp_client.c:99:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file[MAXPATHNAMELEN];
data/pdsh-2.31/src/pdsh/pcp_client.c:208:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpbuf[BUFSIZ];
data/pdsh-2.31/src/pdsh/pcp_client.c:210:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    filefd = open(filename, O_RDONLY);
data/pdsh-2.31/src/pdsh/pcp_client.c:266:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errstr[BUFSIZ];
data/pdsh-2.31/src/pdsh/pcp_client.c:291:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpstr[BUFSIZ], *template;
data/pdsh-2.31/src/pdsh/pcp_server.c:195:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char newfmt[1000];
data/pdsh-2.31/src/pdsh/pcp_server.c:377:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
data/pdsh-2.31/src/pdsh/privsep.c:122:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *         buf[CONTROLLEN];
data/pdsh-2.31/src/pdsh/privsep.c:172:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *         buf[CONTROLLEN];
data/pdsh-2.31/src/pdsh/testcase.c:97:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf [1024];
data/pdsh-2.31/src/pdsh/wcoll.c:228:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf [LINEBUFSIZE];
data/pdsh-2.31/src/pdsh/wcoll.c:252:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fq_path [4096];
data/pdsh-2.31/src/pdsh/wcoll.c:269:47:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (access(fq_path, R_OK) == -1 || !(fp = fopen(fq_path, "r")))
data/pdsh-2.31/src/pdsh/wcoll.c:328:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[4096];
data/pdsh-2.31/src/pdsh/wcoll.c:341:48:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (access(file, R_OK) == -1 || !(fp = fopen(file, "r")))
data/pdsh-2.31/src/pdsh/xpopen.c:94:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *av[ARG_MAX + 1];
data/pdsh-2.31/src/qsnet/mqshd.c:136:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char errmsgbuf[ERRMSGLEN];
data/pdsh-2.31/src/qsnet/mqshd.c:278:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ipbuf[INET_ADDRSTRLEN];
data/pdsh-2.31/src/qsnet/mqshd.c:305:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mbuf[MAX_MBUF_SIZE];
data/pdsh-2.31/src/qsnet/mqshd.c:306:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmdbuf[ARG_MAX + 1];
data/pdsh-2.31/src/qsnet/mqshd.c:489:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[BUFSIZ], *bp = buf;
data/pdsh-2.31/src/qsnet/qshd.c:130:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char remuser[16];
data/pdsh-2.31/src/qsnet/qshd.c:131:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char locuser[16];
data/pdsh-2.31/src/qsnet/qshd.c:132:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmdbuf[ARG_MAX + 1];
data/pdsh-2.31/src/qsnet/qshell.c:131:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char typename[BUFSIZ];
data/pdsh-2.31/src/qsnet/qshell.c:149:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char pam_errmsgbuf[PAM_ERRMSGLEN];
data/pdsh-2.31/src/qsnet/qshell.c:153:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char username[20] = "USER=";
data/pdsh-2.31/src/qsnet/qshell.c:154:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char homedir[64] = "HOME=";
data/pdsh-2.31/src/qsnet/qshell.c:155:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char shell[64] = "SHELL=";
data/pdsh-2.31/src/qsnet/qshell.c:156:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char path[100] = "PATH=";
data/pdsh-2.31/src/qsnet/qshell.c:168:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ], *bp = buf;
data/pdsh-2.31/src/qsnet/qshell.c:556:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char envstr[4096];
data/pdsh-2.31/src/qsnet/qshell.c:557:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpstr[1024];
data/pdsh-2.31/src/qsnet/qshell.c:567:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    envcount = atoi(tmpstr);
data/pdsh-2.31/src/qsnet/qshell.c:619:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ], sig;
data/pdsh-2.31/src/qsnet/qshell.c:701:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cwd[MAXPATHLEN+1];
data/pdsh-2.31/src/qsnet/qshell.c:860:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char lbuf[BUFSIZ + 1], *lp;
data/pdsh-2.31/src/qsnet/qswutil.c:496:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[BUFSIZ];
data/pdsh-2.31/src/qsnet/qswutil.c:1042:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tmpstr[1024];
data/pdsh-2.31/src/qsnet/qswutil.c:1125:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpstr[1024];
data/pdsh-2.31/src/qsnet/qswutil.c:1138:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpstr[1024];
data/pdsh-2.31/src/qsnet/qswutil.c:1180:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmdbuf[1024];
data/pdsh-2.31/src/qsnet/qswutil.c:1186:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hostname[MAXHOSTNAMELEN];
data/pdsh-2.31/src/qsnet/qswutil.c:1197:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            uid = atoi(optarg);
data/pdsh-2.31/src/qsnet/qswutil.c:1200:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            qinfo.nprocs = atoi(optarg);
data/pdsh-2.31/src/common/fd.c:168:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((nread = read (fd, p, nleft)) < 0) {
data/pdsh-2.31/src/common/fd.c:217:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((rc = read (fd, &c, 1)) == 1) {
data/pdsh-2.31/src/common/fd.c:255:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((nread = read (fd, p, nleft)) < 0) {
data/pdsh-2.31/src/common/hostlist.c:459:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int idx = strlen(hostname) - 1;
data/pdsh-2.31/src/common/hostlist.c:485:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (idx == strlen(hostname) - 1) {
data/pdsh-2.31/src/common/hostlist.c:551:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return (int) strlen(hn->suffix);
data/pdsh-2.31/src/common/hostlist.c:787:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size = strlen(hr->prefix) + hr->width + 16;    
data/pdsh-2.31/src/common/hostlist.c:810:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size = strlen(hr->prefix) + hr->width + 16;
data/pdsh-2.31/src/common/hostlist.c:926:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len_hn = strlen (hn->prefix);
data/pdsh-2.31/src/common/hostlist.c:948:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len_hr = strlen (hr->prefix);
data/pdsh-2.31/src/common/hostlist.c:1265:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (str == NULL || strlen(str) == 0)
data/pdsh-2.31/src/common/hostlist.c:1281:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        pos = strlen(tok) - 1;
data/pdsh-2.31/src/common/hostlist.c:1293:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            pos = strlen(tok) - 1;
data/pdsh-2.31/src/common/hostlist.c:1330:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (pos != strlen(prefix) ||
data/pdsh-2.31/src/common/hostlist.c:1427:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    range->width = strlen(str);
data/pdsh-2.31/src/common/hostlist.c:1515:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(cur_tok, tok, 1024);
data/pdsh-2.31/src/common/hostlist.c:2327:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (i->hr->prefix) + strlen (suffix) + 1;
data/pdsh-2.31/src/common/hostlist.c:2327:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (i->hr->prefix) + strlen (suffix) + 1;
data/pdsh-2.31/src/common/split.c:97:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(tok) > 0)
data/pdsh-2.31/src/common/split.c:115:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(tok) > 0)
data/pdsh-2.31/src/common/split.c:147:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            n += strlen (str) + strlen (sep);
data/pdsh-2.31/src/common/split.c:147:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            n += strlen (str) + strlen (sep);
data/pdsh-2.31/src/common/split.c:157:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        result[strlen(result) - strlen(sep)] = '\0';
data/pdsh-2.31/src/common/split.c:157:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        result[strlen(result) - strlen(sep)] = '\0';
data/pdsh-2.31/src/common/xmalloc.c:114:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        result = Malloc(strlen(str) + 1);
data/pdsh-2.31/src/common/xstring.c:70:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (str != NULL && strlen(str) > 0) {
data/pdsh-2.31/src/common/xstring.c:71:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        p = str + strlen(str) - 1;
data/pdsh-2.31/src/common/xstring.c:78:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memmove(base, str, strlen(str));
data/pdsh-2.31/src/common/xstring.c:80:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        base[strlen(base) - 1] = '\0';
data/pdsh-2.31/src/common/xstring.c:94:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        used = strlen(*str) + 1;
data/pdsh-2.31/src/common/xstring.c:111:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    _makespace(str1, strlen(str2));
data/pdsh-2.31/src/common/xstring.c:122:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    _makespace(str1, strlen(str2));
data/pdsh-2.31/src/common/xstring.c:128:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(str);
data/pdsh-2.31/src/modules/dshgroup.c:143:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (path, dshgroup_path, sizeof (path));
data/pdsh-2.31/src/modules/genders.c:621:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen (p) != 0)
data/pdsh-2.31/src/modules/k4cmd.c:259:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (write(s, num, strlen(num) + 1) != strlen(num) + 1) {
data/pdsh-2.31/src/modules/k4cmd.c:259:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (write(s, num, strlen(num) + 1) != strlen(num) + 1) {
data/pdsh-2.31/src/modules/k4cmd.c:312:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(tmpbuf, old_data + 1, 3);
data/pdsh-2.31/src/modules/k4cmd.c:318:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            while (read(s, &c, 1) == 1) {
data/pdsh-2.31/src/modules/k4cmd.c:344:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) write(s, remuser, strlen(remuser) + 1);
data/pdsh-2.31/src/modules/k4cmd.c:345:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) write(s, cmd, strlen(cmd) + 1);
data/pdsh-2.31/src/modules/k4cmd.c:347:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((rc = read(s, &c, 1)) != 1) {
data/pdsh-2.31/src/modules/k4cmd.c:360:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (read(s, &c, 1) == 1) {
data/pdsh-2.31/src/modules/mcmd.c:225:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((rv = read (rand_fd, &randy, sizeof(uint32_t))) < 0) {
data/pdsh-2.31/src/modules/mcmd.c:279:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (str, MRSH_LOCALHOST_KEY, MRSH_LOCALHOST_KEYLEN);
data/pdsh-2.31/src/modules/mcmd.c:280:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat (str, hostname, maxlen - MRSH_LOCALHOST_KEYLEN - 1);
data/pdsh-2.31/src/modules/mcmd.c:282:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return (strlen (str));
data/pdsh-2.31/src/modules/mcmd.c:470:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mcount = ((strlen(remuser)+1) + (strlen(mpvers)+1) + 
data/pdsh-2.31/src/modules/mcmd.c:470:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mcount = ((strlen(remuser)+1) + (strlen(mpvers)+1) + 
data/pdsh-2.31/src/modules/mcmd.c:471:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              (strlen(haddrdot)+1) + (strlen(num)+1) + 
data/pdsh-2.31/src/modules/mcmd.c:471:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              (strlen(haddrdot)+1) + (strlen(num)+1) + 
data/pdsh-2.31/src/modules/mcmd.c:472:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              (strlen(num_seq)+1) + strlen(cmd)+2);
data/pdsh-2.31/src/modules/mcmd.c:472:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              (strlen(num_seq)+1) + strlen(cmd)+2);
data/pdsh-2.31/src/modules/mcmd.c:488:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mptr += strlen(remuser)+1;
data/pdsh-2.31/src/modules/mcmd.c:490:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mptr += strlen(mpvers)+1;
data/pdsh-2.31/src/modules/mcmd.c:492:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mptr += strlen(haddrdot)+1;
data/pdsh-2.31/src/modules/mcmd.c:494:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mptr += strlen(num)+1;
data/pdsh-2.31/src/modules/mcmd.c:496:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mptr += strlen(num_seq)+1;
data/pdsh-2.31/src/modules/mcmd.c:512:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mcount = (strlen(m)+1);
data/pdsh-2.31/src/modules/mcmd.c:520:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        rv = fd_write_n(s, num, strlen(num)+1);
data/pdsh-2.31/src/modules/mcmd.c:521:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (rv != (strlen(num) + 1)) {
data/pdsh-2.31/src/modules/mcmd.c:637:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((rv = read(s, &c, 1)) < 0) {
data/pdsh-2.31/src/modules/mqcmd.c:372:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((rv = read (rand_fd, &randy, sizeof(uint32_t))) < 0) {
data/pdsh-2.31/src/modules/mqcmd.c:418:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (fd_write_n(s, cwd, strlen(cwd) + 1) < 0) {
data/pdsh-2.31/src/modules/mqcmd.c:428:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (fd_write_n(s, tmpstr, strlen(tmpstr) + 1) < 0) {
data/pdsh-2.31/src/modules/mqcmd.c:434:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (fd_write_n(s, *ep, strlen(*ep) + 1) < 0) {
data/pdsh-2.31/src/modules/mqcmd.c:444:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (fd_write_n(s, tmpstr, strlen(tmpstr) + 1) < 0) {
data/pdsh-2.31/src/modules/mqcmd.c:453:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (fd_write_n(s, tmpstr, strlen(tmpstr) + 1) < 0) {
data/pdsh-2.31/src/modules/mqcmd.c:464:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (fd_write_n(s, tmpstr, strlen(tmpstr) + 1) < 0) {
data/pdsh-2.31/src/modules/mqcmd.c:646:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mcount = ((strlen(remuser)+1) + (strlen(haddrdot)+1) + (strlen(num)+1) + 
data/pdsh-2.31/src/modules/mqcmd.c:646:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mcount = ((strlen(remuser)+1) + (strlen(haddrdot)+1) + (strlen(num)+1) + 
data/pdsh-2.31/src/modules/mqcmd.c:646:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mcount = ((strlen(remuser)+1) + (strlen(haddrdot)+1) + (strlen(num)+1) + 
data/pdsh-2.31/src/modules/mqcmd.c:647:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            (strlen(num_seq)+1) + strlen(cmd)+2);
data/pdsh-2.31/src/modules/mqcmd.c:647:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            (strlen(num_seq)+1) + strlen(cmd)+2);
data/pdsh-2.31/src/modules/mqcmd.c:661:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mptr += strlen(remuser)+1;
data/pdsh-2.31/src/modules/mqcmd.c:663:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mptr += strlen(haddrdot)+1;
data/pdsh-2.31/src/modules/mqcmd.c:665:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mptr += strlen(num)+1;
data/pdsh-2.31/src/modules/mqcmd.c:667:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mptr += strlen(num_seq)+1;
data/pdsh-2.31/src/modules/mqcmd.c:683:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mcount = (strlen(m)+1);
data/pdsh-2.31/src/modules/mqcmd.c:691:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        rv = fd_write_n(s, num, strlen(num)+1);
data/pdsh-2.31/src/modules/mqcmd.c:692:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (rv != (strlen(num)+1)) {
data/pdsh-2.31/src/modules/mqcmd.c:814:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((rv = read(s, &c, 1)) < 0) {
data/pdsh-2.31/src/modules/qcmd.c:360:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) write(s, cwd, strlen(cwd) + 1);
data/pdsh-2.31/src/modules/qcmd.c:366:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) write(s, tmpstr, strlen(tmpstr) + 1);
data/pdsh-2.31/src/modules/qcmd.c:368:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (void) write(s, *ep, strlen(*ep) + 1);
data/pdsh-2.31/src/modules/qcmd.c:373:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) write(s, tmpstr, strlen(tmpstr) + 1);
data/pdsh-2.31/src/modules/qcmd.c:377:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (void) write(s, tmpstr, strlen(tmpstr) + 1);
data/pdsh-2.31/src/modules/qcmd.c:384:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) write(s, tmpstr, strlen(tmpstr) + 1);
data/pdsh-2.31/src/modules/qcmd.c:463:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (write(s, num, strlen(num) + 1) != strlen(num) + 1) {
data/pdsh-2.31/src/modules/qcmd.c:463:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (write(s, num, strlen(num) + 1) != strlen(num) + 1) {
data/pdsh-2.31/src/modules/qcmd.c:497:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) write(s, locuser, strlen(locuser) + 1);
data/pdsh-2.31/src/modules/qcmd.c:498:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) write(s, remuser, strlen(remuser) + 1);
data/pdsh-2.31/src/modules/qcmd.c:499:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) write(s, cmd, strlen(cmd) + 1);
data/pdsh-2.31/src/modules/qcmd.c:503:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    rv = read(s, &c, 1);
data/pdsh-2.31/src/modules/qcmd.c:521:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (read(s, &c, 1) == 1) {
data/pdsh-2.31/src/modules/sdr.c:537:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     strlen (s->reliable_hostname)) == 0) {
data/pdsh-2.31/src/modules/sdr.c:543:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strncmp (name, s->hostname, strlen (s->hostname)) == 0) {
data/pdsh-2.31/src/modules/torque.c:191:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dst, jobid, PBS_MAXSEQNUM);
data/pdsh-2.31/src/modules/torque.c:192:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
    strncat(dst, ".", 1);
data/pdsh-2.31/src/modules/torque.c:317:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(servername, status->name, PBS_MAXSERVERNAME);
data/pdsh-2.31/src/modules/xcpucmd.c:180:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (fprintf(f, "%s", data) != strlen(data)) {
data/pdsh-2.31/src/modules/xcpucmd.c:200:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *qcmd = Malloc(2*strlen(cmd) + 1);
data/pdsh-2.31/src/modules/xcpucmd.c:220:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    shcmd = Malloc(strlen(SHCMD_TMPL) + strlen(qcmd) + 1);
data/pdsh-2.31/src/modules/xcpucmd.c:220:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    shcmd = Malloc(strlen(SHCMD_TMPL) + strlen(qcmd) + 1);
data/pdsh-2.31/src/modules/xrcmd.c:271:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (write(s, num, strlen(num) + 1) != strlen(num) + 1) {
data/pdsh-2.31/src/modules/xrcmd.c:271:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (write(s, num, strlen(num) + 1) != strlen(num) + 1) {
data/pdsh-2.31/src/modules/xrcmd.c:305:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) write(s, locuser, strlen(locuser) + 1);
data/pdsh-2.31/src/modules/xrcmd.c:306:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) write(s, remuser, strlen(remuser) + 1);
data/pdsh-2.31/src/modules/xrcmd.c:307:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (void) write(s, cmd, strlen(cmd) + 1);
data/pdsh-2.31/src/modules/xrcmd.c:308:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    rv = read(s, &c, 1);
data/pdsh-2.31/src/modules/xrcmd.c:326:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (read(s, &c, 1) == 1) {
data/pdsh-2.31/src/pdsh/cbuf.c:832:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = ncopy = strlen(srcbuf);
data/pdsh-2.31/src/pdsh/cbuf.c:1275:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read(*psrcfd, dstbuf, len);
data/pdsh-2.31/src/pdsh/dsh.c:513:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (buf[strlen(buf) - 1] == '\n' && p != buf)
data/pdsh-2.31/src/pdsh/dsh.c:516:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        p += strlen(RC_MAGIC);
data/pdsh-2.31/src/pdsh/dsh.c:560:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen (buf) > 0) {
data/pdsh-2.31/src/pdsh/ltdl.c:100:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#  define LT_D_NAMLEN(dirent) (strlen((dirent)->d_name))
data/pdsh-2.31/src/pdsh/ltdl.c:103:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#    define LT_D_NAMLEN(dirent) (strlen((dirent)->d_name))
data/pdsh-2.31/src/pdsh/ltdl.c:272:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      tmp = LT_DLMALLOC (char, 1+ strlen (str));
data/pdsh-2.31/src/pdsh/ltdl.c:461:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  (void) strncpy (file_specification, path, LT_FILENAME_MAX-6);
data/pdsh-2.31/src/pdsh/ltdl.c:463:10:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  (void) strcat(file_specification,"\\");
data/pdsh-2.31/src/pdsh/ltdl.c:501:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  (void) strncpy(entry->file_info.d_name,entry->Win32FindData.cFileName,
data/pdsh-2.31/src/pdsh/ltdl.c:504:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  entry->file_info.d_namlen = strlen(entry->file_info.d_name);
data/pdsh-2.31/src/pdsh/ltdl.c:1674:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!errstr || !strlen(errstr)) errstr = othererror;
data/pdsh-2.31/src/pdsh/ltdl.c:1927:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(saveError, lt_int_dyld_error(LT_DLSTRERROR(SYMBOL_NOT_FOUND)), 255);
data/pdsh-2.31/src/pdsh/ltdl.c:3032:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(tmp, &str[1], (end - str) - 1);
data/pdsh-2.31/src/pdsh/ltdl.c:3124:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (dir, canonical, dirlen);
data/pdsh-2.31/src/pdsh/ltdl.c:3664:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat  (buf, "/");
data/pdsh-2.31/src/pdsh/ltdl.c:3665:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
  strncat (buf, dp->d_name, end_offset);
data/pdsh-2.31/src/pdsh/ltdl.c:4022:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      assert (before - *ppath <= strlen (*ppath));
data/pdsh-2.31/src/pdsh/ltdl.h:89:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define LT_STRLEN(s)	(((s) && (s)[0]) ? strlen (s) : 0)
data/pdsh-2.31/src/pdsh/main.c:274:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(cmd) == 0) { /* empty line */
data/pdsh-2.31/src/pdsh/main.c:283:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((strlen(cmd) != 0) && (got_history_file)) 
data/pdsh-2.31/src/pdsh/mod.c:899:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(path, dir, MAXPATHLEN);
data/pdsh-2.31/src/pdsh/mod.c:900:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    p = path + strlen(dir);
data/pdsh-2.31/src/pdsh/mod.c:1059:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dirbuf, dir, MAXPATHLEN);
data/pdsh-2.31/src/pdsh/mod.c:1061:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pos = strlen(dirbuf);
data/pdsh-2.31/src/pdsh/mod.c:1088:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(&dirbuf[pos],  "/..", 4);
data/pdsh-2.31/src/pdsh/opt.c:280:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(dir) > 0 && (abspath = _check_path(dir,cwd,argv0)) != NULL) {
data/pdsh-2.31/src/pdsh/opt.c:288:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(dir) > 0)
data/pdsh-2.31/src/pdsh/opt.c:325:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen (src) > maxlen)
data/pdsh-2.31/src/pdsh/opt.c:1335:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen (p);
data/pdsh-2.31/src/pdsh/pcp_client.c:217:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        inbytes = read(filefd, tmpbuf, BUFSIZ);
data/pdsh-2.31/src/pdsh/pcp_client.c:245:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(strlen(str) > 0);
data/pdsh-2.31/src/pdsh/pcp_client.c:246:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(str[strlen(str) - 1] == '\n');
data/pdsh-2.31/src/pdsh/pcp_client.c:248:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((n = _pcp_write(outfd, str, strlen(str))) < 0) 
data/pdsh-2.31/src/pdsh/pcp_client.c:251:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(n == strlen(str));
data/pdsh-2.31/src/pdsh/pcp_client.c:268:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((n = read(infd, &resp, sizeof(resp))) != sizeof(resp)) 
data/pdsh-2.31/src/pdsh/pcp_server.c:146:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(s->infd, &resp, sizeof(resp)) != sizeof(resp)) {
data/pdsh-2.31/src/pdsh/pcp_server.c:237:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    mask = umask(0);
data/pdsh-2.31/src/pdsh/pcp_server.c:239:15:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        (void)umask(mask);
data/pdsh-2.31/src/pdsh/pcp_server.c:253:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((rc = read(svr->infd, cp, 1)) <= 0)
data/pdsh-2.31/src/pdsh/pcp_server.c:259:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (read(svr->infd, &ch, sizeof(ch)) != sizeof(ch))
data/pdsh-2.31/src/pdsh/pcp_server.c:330:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            need = strlen(targ) + strlen(cp) + 250;
data/pdsh-2.31/src/pdsh/pcp_server.c:330:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            need = strlen(targ) + strlen(cp) + 250;
data/pdsh-2.31/src/pdsh/pcp_server.c:399:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                j = read(svr->infd, cp, amt);
data/pdsh-2.31/src/pdsh/privsep.c:232:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((rc = read (server_fd, &lport, sizeof (lport))) > 0) {
data/pdsh-2.31/src/pdsh/wcoll.c:191:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (buf, file, len);
data/pdsh-2.31/src/pdsh/wcoll.c:194:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
       strncpy (buf, file, len);
data/pdsh-2.31/src/pdsh/wcoll.c:310:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (dname && strlen (dname) < len - 1)
data/pdsh-2.31/src/pdsh/xpopen.c:92:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int fds[2], read, fd;
data/pdsh-2.31/src/pdsh/xpopen.c:124:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        close(fds[read ? 0 : 1]);
data/pdsh-2.31/src/pdsh/xpopen.c:125:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        dup2(fds[read ? 1 : 0], read ? STDOUT_FILENO : STDIN_FILENO);
data/pdsh-2.31/src/pdsh/xpopen.c:125:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        dup2(fds[read ? 1 : 0], read ? STDOUT_FILENO : STDIN_FILENO);
data/pdsh-2.31/src/pdsh/xpopen.c:145:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    close(fds[read ? 1 : 0]);
data/pdsh-2.31/src/pdsh/xpopen.c:148:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    cur->fp = fdopen(fds[read ? 0 : 1], mode);
data/pdsh-2.31/src/pdsh/xpopen.c:233:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(lc) > 0)
data/pdsh-2.31/src/pdsh/xpopen.c:245:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (lc != NULL && strlen(lc) > 0)
data/pdsh-2.31/src/pdsh/xpopen.c:256:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(lc) > 0 && i < maxn)
data/pdsh-2.31/src/qsnet/mqshd.c:144:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(buf);
data/pdsh-2.31/src/qsnet/mqshd.c:280:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ipbuf, ip, INET_ADDRSTRLEN);
data/pdsh-2.31/src/qsnet/mqshd.c:435:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(m_head) < ARG_MAX) {
data/pdsh-2.31/src/qsnet/mqshd.c:436:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(&cmdbuf[0], m_head, sizeof(cmdbuf));
data/pdsh-2.31/src/qsnet/mqshd.c:481:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        rv = read(0,&c,1);
data/pdsh-2.31/src/qsnet/mqshd.c:491:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        fd_write_n(args->sock, buf, strlen(buf));
data/pdsh-2.31/src/qsnet/qshell.c:174:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fd_write_n(fd, buf, strlen(buf));
data/pdsh-2.31/src/qsnet/qshell.c:195:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((rv = read(0, &c, 1)) < 0) {
data/pdsh-2.31/src/qsnet/qshell.c:234:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read(0, &c, 1) != 1) {
data/pdsh-2.31/src/qsnet/qshell.c:533:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp (var, REMOTE_PREFIX, strlen (REMOTE_PREFIX)) != 0)
data/pdsh-2.31/src/qsnet/qshell.c:536:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    p = var + strlen (REMOTE_PREFIX);
data/pdsh-2.31/src/qsnet/qshell.c:539:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strncmp (p, q, strlen (q)) == 0)
data/pdsh-2.31/src/qsnet/qshell.c:581:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            putenv(strdup(envstr + strlen(REMOTE_PREFIX)));
data/pdsh-2.31/src/qsnet/qshell.c:639:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (read(sock, &sig, 1) <= 0) {
data/pdsh-2.31/src/qsnet/qshell.c:650:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ((cc = read(pype, buf, sizeof(buf))) <= 0) {
data/pdsh-2.31/src/qsnet/qshell.c:782:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(homedir, args->pwd->pw_dir, sizeof(homedir) - 6);
data/pdsh-2.31/src/qsnet/qshell.c:787:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(shell, theshell, sizeof(shell) - 7);
data/pdsh-2.31/src/qsnet/qshell.c:790:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(username, args->pwd->pw_name, sizeof(username) - 6);
data/pdsh-2.31/src/qsnet/qshell.c:913:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(typename, name, BUFSIZ);
data/pdsh-2.31/src/qsnet/qswutil.c:608:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (n < 0 || n > strlen(s)) {
data/pdsh-2.31/src/qsnet/qswutil.c:643:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (n == -1 || n > strlen(s)) {
data/pdsh-2.31/src/qsnet/qswutil.c:764:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (n == -1 || n > strlen(s)) {
data/pdsh-2.31/src/qsnet/qswutil.c:1156:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(buf, argv[0], len);
data/pdsh-2.31/src/qsnet/qswutil.c:1160:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
            strncat(buf, " ", len);

ANALYSIS SUMMARY:

Hits = 475
Lines analyzed = 31123 in approximately 0.76 seconds (41011 lines/second)
Physical Source Lines of Code (SLOC) = 19409
Hits@level = [0] 158 [1] 193 [2] 182 [3]  34 [4]  64 [5]   2
Hits@level+ = [0+] 633 [1+] 475 [2+] 282 [3+] 100 [4+]  66 [5+]   2
Hits/KSLOC@level+ = [0+] 32.6137 [1+] 24.4732 [2+] 14.5293 [3+] 5.15225 [4+] 3.40048 [5+] 0.103045
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.