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/proxy-suite-1.9.2.4/acconfig.h
Examining data/proxy-suite-1.9.2.4/common/com-config.c
Examining data/proxy-suite-1.9.2.4/common/com-config.h
Examining data/proxy-suite-1.9.2.4/common/com-debug.c
Examining data/proxy-suite-1.9.2.4/common/com-debug.h
Examining data/proxy-suite-1.9.2.4/common/com-misc.c
Examining data/proxy-suite-1.9.2.4/common/com-misc.h
Examining data/proxy-suite-1.9.2.4/common/com-socket.h
Examining data/proxy-suite-1.9.2.4/common/com-syslog.c
Examining data/proxy-suite-1.9.2.4/common/com-syslog.h
Examining data/proxy-suite-1.9.2.4/common/com-socket.c
Examining data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c
Examining data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.h
Examining data/proxy-suite-1.9.2.4/ftp-proxy/ftp-cmds.c
Examining data/proxy-suite-1.9.2.4/ftp-proxy/ftp-cmds.h
Examining data/proxy-suite-1.9.2.4/ftp-proxy/ftp-daemon.c
Examining data/proxy-suite-1.9.2.4/ftp-proxy/ftp-daemon.h
Examining data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.h
Examining data/proxy-suite-1.9.2.4/ftp-proxy/ftp-main.h
Examining data/proxy-suite-1.9.2.4/ftp-proxy/proc_ftp.c
Examining data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c
Examining data/proxy-suite-1.9.2.4/ftp-proxy/ftp-main.c

FINAL RESULTS:

data/proxy-suite-1.9.2.4/common/com-debug.c:213:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(fp, fmt, aptr);
data/proxy-suite-1.9.2.4/common/com-misc.c:226:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(str, "Version %s - %s", p_vers, p_date);
data/proxy-suite-1.9.2.4/common/com-misc.c:359:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(stderr, fmt, aptr);
data/proxy-suite-1.9.2.4/common/com-misc.c:395:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(str, "%s (%.*s:%d): ",
data/proxy-suite-1.9.2.4/common/com-misc.c:403:3:  [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(str + len, sizeof(str)-len, fmt, aptr);
data/proxy-suite-1.9.2.4/common/com-misc.c:405:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
		vsprintf(str + len, fmt, aptr);
data/proxy-suite-1.9.2.4/common/com-socket.c:772:2:  [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(str, sizeof(str), fmt, aptr);
data/proxy-suite-1.9.2.4/common/com-socket.c:774:2:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	vsprintf(str, fmt, aptr);
data/proxy-suite-1.9.2.4/common/com-syslog.c:292:19:  [4] (shell) popen:
  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.
		if ((log_pipe = popen(name, "w")) == NULL) {
data/proxy-suite-1.9.2.4/common/com-syslog.c:345:2:  [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(str, sizeof(str), fmt, aptr);
data/proxy-suite-1.9.2.4/common/com-syslog.c:347:2:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	vsprintf(str, fmt, aptr);
data/proxy-suite-1.9.2.4/common/com-syslog.c:462:2:  [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(str, sizeof(str), fmt, aptr);
data/proxy-suite-1.9.2.4/common/com-syslog.c:464:2:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	vsprintf(str, fmt, aptr);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:1037:2:  [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(str, sizeof(str), fmt, aptr);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:1039:2:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	vsprintf(str, fmt, aptr);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-daemon.c:523: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(clp->peer, peer);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:361:3:  [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(bind_dn, len, str, who);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:363:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(bind_dn, str, who);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:837:10:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
			p   = crypt(pwd, q);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:850:8:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
			p = crypt(pwd, q);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-main.c:217:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(progname, "Usage: %s [option ...]", p);
data/proxy-suite-1.9.2.4/common/com-misc.c:668:7:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
		if (chroot(dir)) {
data/proxy-suite-1.9.2.4/common/com-misc.c:782:2:  [3] (random) srand:
  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.
	srand (t.tv_usec);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-main.c:233:14:  [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, OPTS_LIST)) != EOF) {
data/proxy-suite-1.9.2.4/common/com-config.c:153: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.
	static char line[MAX_PATH_SIZE * 2];
data/proxy-suite-1.9.2.4/common/com-config.c:259:12:  [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 ((fp = fopen(file, "r")) == NULL) {
data/proxy-suite-1.9.2.4/common/com-config.c:577:6:  [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).
	i = atoi(p);
data/proxy-suite-1.9.2.4/common/com-config.c:652:8:  [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).
		i = (atoi(p) != 0);
data/proxy-suite-1.9.2.4/common/com-config.c:912:17:  [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 = (uid_t) atoi(p);
data/proxy-suite-1.9.2.4/common/com-config.c:990:17:  [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).
		gid = (gid_t) atoi(p);
data/proxy-suite-1.9.2.4/common/com-debug.c:192:8:  [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(dbg_out, OPEN_NEW, 0666);
data/proxy-suite-1.9.2.4/common/com-debug.c:200:13:  [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(dbg_out, OPEN_OLD)) < 0)
data/proxy-suite-1.9.2.4/common/com-misc.c:83: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 p_name[512] = "[unknown name]";
data/proxy-suite-1.9.2.4/common/com-misc.c:84: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 p_vers[512] = "[unknown version]";
data/proxy-suite-1.9.2.4/common/com-misc.c:85: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 p_date[512] = "[unknown date]";
data/proxy-suite-1.9.2.4/common/com-misc.c:221: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.
	static char str[MAX_PATH_SIZE * 2];
data/proxy-suite-1.9.2.4/common/com-misc.c:383: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 str[MAX_PATH_SIZE * 4];
data/proxy-suite-1.9.2.4/common/com-misc.c:416:3:  [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(str + len, " (errno=%d [%.256s])",
data/proxy-suite-1.9.2.4/common/com-misc.c:472:13:  [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(name, O_RDWR | O_CREAT | O_EXCL, 0644)) < 0)
data/proxy-suite-1.9.2.4/common/com-misc.c:642:2:  [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(s1, s2, cnt);
data/proxy-suite-1.9.2.4/common/com-socket.c:311: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 peer[PEER_LEN] = {0};
data/proxy-suite-1.9.2.4/common/com-socket.c:312: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 dest[PEER_LEN] = {0};
data/proxy-suite-1.9.2.4/common/com-socket.c:613: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(hls->rbuf->dat, ptr, cnt);
data/proxy-suite-1.9.2.4/common/com-socket.c:719:2:  [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(buf->dat, ptr, len);
data/proxy-suite-1.9.2.4/common/com-socket.c:756: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 str[NETSIZ];
data/proxy-suite-1.9.2.4/common/com-socket.c:802:2:  [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(buf->dat, str, len);
data/proxy-suite-1.9.2.4/common/com-socket.c:841: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[1024], *p, *lend;
data/proxy-suite-1.9.2.4/common/com-socket.c:849:12:  [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 ((fp = fopen(file, "r")) == NULL)
data/proxy-suite-1.9.2.4/common/com-socket.c:1263: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.
	static char str[1024];
data/proxy-suite-1.9.2.4/common/com-socket.c:1264: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 tmp[1024];
data/proxy-suite-1.9.2.4/common/com-socket.c:1299: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(tmp, "%04d/%02d/%02d",
data/proxy-suite-1.9.2.4/common/com-socket.c:1326: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(tmp, "%02d:%02d:%02d",
data/proxy-suite-1.9.2.4/common/com-socket.c:1345: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(str + i, tmp, j);
data/proxy-suite-1.9.2.4/common/com-socket.c:1779: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).
		return (u_int16_t) atoi(name);
data/proxy-suite-1.9.2.4/common/com-socket.c:1812: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.
	static char str[PEER_LEN];
data/proxy-suite-1.9.2.4/common/com-socket.c:2087: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((nat_fd = open("/dev/pf", O_RDWR, 0)) < 0) {
data/proxy-suite-1.9.2.4/common/com-socket.c:2141:16:  [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 ((nat_fd = open(IPL_NAT, O_RDONLY, 0)) < 0) {
data/proxy-suite-1.9.2.4/common/com-socket.c:2228: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           hname[MAXHOSTNAMELEN];
data/proxy-suite-1.9.2.4/common/com-socket.c:2262: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 hname[MAXHOSTNAMELEN], *p;
data/proxy-suite-1.9.2.4/common/com-socket.h:83: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    dat[8];		/* Beginning of data (Guard)	*/
data/proxy-suite-1.9.2.4/common/com-socket.h:96: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      peer[PEER_LEN]; /* Peer's readable address	*/
data/proxy-suite-1.9.2.4/common/com-syslog.c:266: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 tmp_name[MAX_PATH_SIZE];
data/proxy-suite-1.9.2.4/common/com-syslog.c:277:13:  [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(name, O_RDWR | O_CREAT | O_EXCL,
data/proxy-suite-1.9.2.4/common/com-syslog.c:341: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 *logstr, buf[32], str[MAX_PATH_SIZE * 4];
data/proxy-suite-1.9.2.4/common/com-syslog.c:426:2:  [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(buf, "%02d/%02d-%02d:%02d:%02d",
data/proxy-suite-1.9.2.4/common/com-syslog.c:458: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[32], str[MAX_PATH_SIZE * 4];
data/proxy-suite-1.9.2.4/common/com-syslog.c:503:2:  [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(buf, "%02d/%02d-%02d:%02d:%02d",
data/proxy-suite-1.9.2.4/common/com-syslog.c:552:2:  [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(new_name, "%.*s.%d%02d%02d-%02d%02d%02d",
data/proxy-suite-1.9.2.4/common/com-syslog.c:588: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 tmp_name[MAX_PATH_SIZE];
data/proxy-suite-1.9.2.4/common/com-syslog.c:612:12:  [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(log_name, O_RDWR | O_CREAT | O_EXCL,
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:137: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 str[MAX_PATH_SIZE * 2];
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:169:25:  [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 (p != NULL && (fp = fopen(p, "r")) != NULL) {
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:173:5:  [2] (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). Risk is low because the source is a constant string.
				strcpy(q, "\r\n");
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:175:5:  [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(p, "\r\n");
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:694: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).
	if ((code = atoi(str)) < 200 || code > 599) {
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:1015: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 str[MAX_PATH_SIZE * 2], *p, *q;
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:1021:28:  [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 (file != NULL && (fp = fopen(file, "r")) != NULL) {
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.h:132: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   xfer_cmd[16];	/* Outstanding transfer cmd	*/
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.h:133: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   xfer_arg[1024];	/* Argument for xfer_cmd	*/
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.h:134: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   xfer_rep[1024];	/* Outstanding server reply	*/
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-cmds.c:901: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 str[1024], *p, *q;
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-cmds.c:957:14:  [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 ((fp = fopen(p, "r")) != NULL) {
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-cmds.c:1159: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 str[4];
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-cmds.c:1294: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.
	static char str[1024];
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-cmds.c:1295: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 tmp[1024];
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-cmds.c:1333:4:  [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(tmp, "%.2s", ptr + 1);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-cmds.c:1379: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.
	static char err[1024];
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-daemon.c:113: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  peer[PEER_LEN];	/* Dotted decimal IP address	*/
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-daemon.c:348:9:  [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(config_filename(),
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-daemon.c:426: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 str[1024], *p, *q, *peer;
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-daemon.c:479:26:  [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 (p != NULL && (fp = fopen(p, "r")) != NULL) {
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-daemon.c:483:6:  [2] (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). Risk is low because the source is a constant string.
					strcpy(q, "\r\n");
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-daemon.c:485:6:  [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(p, "\r\n");
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:181:9:  [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).
		ver = atoi(ptr);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:188: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       temp[MAX_PATH_SIZE];
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:388: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 str[MAX_PATH_SIZE];
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:414:3:  [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(str,
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:423:3:  [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(str, "(%.256s=%.256s)", idnt, who);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:722:21:  [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).
			ctx->same_adr = (atoi(p) != 0);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:733: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).
			ctx->timeout = atoi(p);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:776: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 str[MAX_PATH_SIZE];
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:919: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.
	static char str[MAX_PATH_SIZE];
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-main.c:89: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 progname[1024];
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-main.c:252: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).
			debug_init(atoi(misc_strtrim(optarg)), DEBUG_FILE);
data/proxy-suite-1.9.2.4/ftp-proxy/proc_ftp.c:105: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	addr[20];	/* address in dotted decimal	*/
data/proxy-suite-1.9.2.4/ftp-proxy/proc_ftp.c:106: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	user[10];	/* user name			*/
data/proxy-suite-1.9.2.4/ftp-proxy/proc_ftp.c:244: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 line[MAX_LINE], *p, *cmd, *typ;
data/proxy-suite-1.9.2.4/common/com-config.c:181: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).
				memmove(line + len, p, strlen(p) + 1);
data/proxy-suite-1.9.2.4/common/com-config.c:193: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).
			if ((len = strlen(line)) == 0)
data/proxy-suite-1.9.2.4/common/com-debug.c:191:11:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		omask = umask(0);
data/proxy-suite-1.9.2.4/common/com-debug.c:193:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(omask);
data/proxy-suite-1.9.2.4/common/com-misc.c:296:8:  [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(str);
data/proxy-suite-1.9.2.4/common/com-misc.c:298:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ptr, str, len);
data/proxy-suite-1.9.2.4/common/com-misc.c:398:8:  [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(str);
data/proxy-suite-1.9.2.4/common/com-misc.c:408: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).
		len = strlen(str);
data/proxy-suite-1.9.2.4/common/com-misc.c:516:10:  [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 = s + strlen(s);
data/proxy-suite-1.9.2.4/common/com-misc.c:634: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 (s2 == NULL || (cnt = strlen(s2)) == 0)
data/proxy-suite-1.9.2.4/common/com-socket.c:777:8:  [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(str);
data/proxy-suite-1.9.2.4/common/com-socket.c:792: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).
		hls->sock, hls->peer, strlen(str), len, str, fmt);
data/proxy-suite-1.9.2.4/common/com-socket.c:793:8:  [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(str);
data/proxy-suite-1.9.2.4/common/com-socket.c:1082:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(10000);
data/proxy-suite-1.9.2.4/common/com-socket.c:1288:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(tmp, misc_getdate(), sizeof(tmp)-1);
data/proxy-suite-1.9.2.4/common/com-socket.c:1308:6:  [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(tmp, "[unknown host]",
data/proxy-suite-1.9.2.4/common/com-socket.c:1314:6:  [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(tmp, "[unknown network]",
data/proxy-suite-1.9.2.4/common/com-socket.c:1334:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(tmp, misc_getvers(), sizeof(tmp)-1);
data/proxy-suite-1.9.2.4/common/com-socket.c:1343:7:  [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).
		j = strlen(tmp);
data/proxy-suite-1.9.2.4/common/com-syslog.c:539: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).
	if( !(new_name && log_name && len > (strlen(log_name) + 17)))
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:177: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).
			send(sock, p, strlen(p), 0);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:185: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).
		send(sock, p, strlen(p), 0);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:527: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).
					memmove(arg, arg + 3, strlen(arg) - 2);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:529: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).
					memmove(arg, arg + 1, strlen(arg));
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:543: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).
					memmove(arg, arg + 3, strlen(arg) - 2);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:545: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).
					memmove(arg, arg + 1, strlen(arg));
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:549: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).
				memmove(arg, arg + 1, strlen(arg));
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:557: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).
				memmove(arg, arg + 2, strlen(arg) - 1);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:561: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).
				memmove(arg, arg + 1, strlen(arg));
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:621:7:  [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(arg) > 128) ?
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:1361:23:  [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).
			             who, (strlen(who)>128 ? "..." : ""), ptr);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:1371:40:  [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( !(isalnum(who[0]) && isalnum(who[strlen(who)-1]))) {
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:1373: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).
		                 who, (strlen(who)>128 ? "..." : ""));
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-client.c:1382:23:  [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).
			             who, (strlen(who)>128 ? "..." : ""));
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-cmds.c:236: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).
			cmd->len   = strlen(cmd->name);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-cmds.c:256: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).
		cmd->len   = strlen(cmd->name);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-cmds.c:393:6:  [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(arg) > 128) ?  "..." : "",
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-cmds.c:458: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).
			if( sizeof("auth") != strlen(ctx->magic_auth)) {
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-daemon.c:487: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).
				send(sock, p, strlen(p), 0);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-daemon.c:497: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).
		send(sock, p, strlen(p), 0);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:358: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).
		len = strlen(who) + strlen(str);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:358:23:  [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(who) + strlen(str);
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:793: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(v && strlen(v) && strlen(str)) {
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:793: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(v && strlen(v) && strlen(str)) {
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:815:54:  [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( (p = config_str(NULL, "LDAPAuthPWAttr", "")) && strlen(p)) {
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:861: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(0 < len && strlen(v) == len+1 &&
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:877: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(p && strlen(p)>=len && strlen(q) == strlen(p) &&
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:877: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).
		if(p && strlen(p)>=len && strlen(q) == strlen(p) &&
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:877:42:  [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(p && strlen(p)>=len && strlen(q) == strlen(p) &&
data/proxy-suite-1.9.2.4/ftp-proxy/ftp-ldap.c:878: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).
		   !(1==strlen(q) && ('*' == q[0] || '!' == q[0])))

ANALYSIS SUMMARY:

Hits = 157
Lines analyzed = 12078 in approximately 0.32 seconds (37339 lines/second)
Physical Source Lines of Code (SLOC) = 6534
Hits@level = [0]  35 [1]  50 [2]  83 [3]   3 [4]  21 [5]   0
Hits@level+ = [0+] 192 [1+] 157 [2+] 107 [3+]  24 [4+]  21 [5+]   0
Hits/KSLOC@level+ = [0+] 29.3848 [1+] 24.0282 [2+] 16.3759 [3+] 3.67309 [4+] 3.21396 [5+]   0
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.