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/vpcs-0.5b2/src.drivers/freebsd/if_utun.c
Examining data/vpcs-0.5b2/src/dump.h
Examining data/vpcs-0.5b2/src/globle.h
Examining data/vpcs-0.5b2/src/dhcp.c
Examining data/vpcs-0.5b2/src/dhcp.h
Examining data/vpcs-0.5b2/src/keydef.h
Examining data/vpcs-0.5b2/src/remote.c
Examining data/vpcs-0.5b2/src/remote.h
Examining data/vpcs-0.5b2/src/dns.h
Examining data/vpcs-0.5b2/src/hv.c
Examining data/vpcs-0.5b2/src/tcp.c
Examining data/vpcs-0.5b2/src/help.h
Examining data/vpcs-0.5b2/src/dev.h
Examining data/vpcs-0.5b2/src/readline.h
Examining data/vpcs-0.5b2/src/daemon.h
Examining data/vpcs-0.5b2/src/dump.c
Examining data/vpcs-0.5b2/src/packets6.c
Examining data/vpcs-0.5b2/src/relay.h
Examining data/vpcs-0.5b2/src/utils.h
Examining data/vpcs-0.5b2/src/queue.c
Examining data/vpcs-0.5b2/src/getopt.c
Examining data/vpcs-0.5b2/src/utils.c
Examining data/vpcs-0.5b2/src/dev.c
Examining data/vpcs-0.5b2/src/queue.h
Examining data/vpcs-0.5b2/src/inet6.c
Examining data/vpcs-0.5b2/src/inet6.h
Examining data/vpcs-0.5b2/src/getopt.h
Examining data/vpcs-0.5b2/src/readline.c
Examining data/vpcs-0.5b2/src/dns.c
Examining data/vpcs-0.5b2/src/tcp.h
Examining data/vpcs-0.5b2/src/packets.c
Examining data/vpcs-0.5b2/src/command6.h
Examining data/vpcs-0.5b2/src/packets6.h
Examining data/vpcs-0.5b2/src/help.c
Examining data/vpcs-0.5b2/src/ip.c
Examining data/vpcs-0.5b2/src/command.c
Examining data/vpcs-0.5b2/src/packets.h
Examining data/vpcs-0.5b2/src/daemon.c
Examining data/vpcs-0.5b2/src/ip.h
Examining data/vpcs-0.5b2/src/relay.c
Examining data/vpcs-0.5b2/src/vpcs.c
Examining data/vpcs-0.5b2/src/command.h
Examining data/vpcs-0.5b2/src/hv.h
Examining data/vpcs-0.5b2/src/command6.c
Examining data/vpcs-0.5b2/src/vpcs.h

FINAL RESULTS:

data/vpcs-0.5b2/src/command.c:137:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					j = sprintf(buf, "%s%d", vpc[i].xname, i + 1);
data/vpcs-0.5b2/src/command.c:139:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					j = sprintf(buf, "%s", vpc[i].xname);
data/vpcs-0.5b2/src/command.c:143:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				j = sprintf(buf + 7, "%s/%d", inet_ntoa(in), vpc[i].ip4.cidr);
data/vpcs-0.5b2/src/command.c:147:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(buf + 28, "%s", inet_ntoa(in));
data/vpcs-0.5b2/src/command.c:174:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					j = sprintf(buf, "%s%d", vpc[i].xname, i + 1);
data/vpcs-0.5b2/src/command.c:176:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					j = sprintf(buf, "%s", vpc[i].xname);
data/vpcs-0.5b2/src/command.c:180:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				j = sprintf(buf + 7, "%s/%d", inet_ntoa(in), vpc[i].ip4.cidr);
data/vpcs-0.5b2/src/command.c:184:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				j = sprintf(buf + 28, "%s", inet_ntoa(in));
data/vpcs-0.5b2/src/command.c:194:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				j = sprintf(buf + 72, "%s:%d", inet_ntoa(in), vpc[i].rport);
data/vpcs-0.5b2/src/command.c:374: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(dname, argv[1]);
data/vpcs-0.5b2/src/command.c:876: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(vpc[pcid].ip4.domain, p);
data/vpcs-0.5b2/src/command.c:1014:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		i = sprintf(buf, "ifconfig tap%d %s ", pcid, inet_ntoa(in));
data/vpcs-0.5b2/src/command.c:1016:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf + i, " netmask %s up", inet_ntoa(in));
data/vpcs-0.5b2/src/command.c:1017:7:  [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.
		i = system(buf);
data/vpcs-0.5b2/src/command.c:1141: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(dname, argv[1]);
data/vpcs-0.5b2/src/command.c:1368: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(vpc[pcid].xname, argv[2]);
data/vpcs-0.5b2/src/command.c:1686:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					j = sprintf(buf, "%s%d", vpc[i].xname, i + 1);
data/vpcs-0.5b2/src/command.c:1688:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					j = sprintf(buf, "%s", vpc[i].xname);
data/vpcs-0.5b2/src/command.c:1692:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				j = sprintf(buf + 7, "%s/%d", inet_ntoa(in), vpc[i].ip4.cidr);
data/vpcs-0.5b2/src/command.c:1696:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				j = sprintf(buf + 28, "%s", inet_ntoa(in));
data/vpcs-0.5b2/src/command.c:1707:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					j = sprintf(buf + k, "%s", inet_ntoa(in));
data/vpcs-0.5b2/src/command.c:1713:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					j = sprintf(buf + k, "%s", inet_ntoa(in));
data/vpcs-0.5b2/src/command.c:1945:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		pos = sprintf(buf, "ip %s", (char*)inet_ntoa(in));
data/vpcs-0.5b2/src/command.c:1949:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			pos += sprintf(buf + pos, " %s", inet_ntoa(in));
data/vpcs-0.5b2/src/command6.c:563:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					j = sprintf(buf, "%s/%d", buf6, vpc[i].ip6.cidr);
data/vpcs-0.5b2/src/command6.c:588:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					j = sprintf(buf, "%s%d", vpc[i].xname, i + 1);
data/vpcs-0.5b2/src/command6.c:590:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					j = sprintf(buf, "%s", vpc[i].xname);
data/vpcs-0.5b2/src/command6.c:596:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(buf + 7, "%s/%d", buf6, vpc[i].link6.cidr); 
data/vpcs-0.5b2/src/command6.c:753:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "ip %s/%d", tmp, vpc[id].ip6.cidr); 
data/vpcs-0.5b2/src/dev.c:176:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(dev, "%s", tapname);
data/vpcs-0.5b2/src/dhcp.c:459: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(pc->ip4.domain, pc->ip4.dhcp.domain);
data/vpcs-0.5b2/src/dns.c:129: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(dname, pdn);
data/vpcs-0.5b2/src/dns.c:134: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(name, pdn);
data/vpcs-0.5b2/src/dns.c:154: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(buf + 1, name);
data/vpcs-0.5b2/src/hv.c:585:8:  [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.
			if (execvp(prgname, agv) == -1) {
data/vpcs-0.5b2/src/hv.c:745:6:  [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(candidate, X_OK) == 0 &&
data/vpcs-0.5b2/src/hv.c:764: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(rpath, name);
data/vpcs-0.5b2/src/hv.h:42:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(out, __VA_ARGS__); \
data/vpcs-0.5b2/src/hv.h:48:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(out, __VA_ARGS__); \
data/vpcs-0.5b2/src/inet6.c:58:6:  [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.
	l = snprintf(tmp, sizeof(tmp), fmt, src[0], src[1], src[2], src[3]);
data/vpcs-0.5b2/src/inet6.c:154: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(dst, tmp);
data/vpcs-0.5b2/src/readline.c:109: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(rls->history[i++], rls->kbuffer);
data/vpcs-0.5b2/src/readline.c:239: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(rls->history[rls->maxhistnum], rls->kbuffer);
data/vpcs-0.5b2/src/readline.c:262: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(rls->kbuffer, rls->history[ihist]);
data/vpcs-0.5b2/src/readline.c:298: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(rls->kbuffer, rls->history[ihist]);
data/vpcs-0.5b2/src/readline.c:350: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(rls->history[rls->hist_total++], rls->kbuffer);
data/vpcs-0.5b2/src/readline.c:388: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(p, *tab);
data/vpcs-0.5b2/src/utils.c:183:8:  [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.
	ret = vfprintf(fp, fmt, ap);
data/vpcs-0.5b2/src/vpcs.c:610:7:  [4] (shell) WinExec:
  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.
	rc = WinExec(str, SW_SHOW);
data/vpcs-0.5b2/src/vpcs.c:612:7:  [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.
	rc = system(cmd);
data/vpcs-0.5b2/src/command.c:231:20:  [3] (random) random:
  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.
	pc->mscb.sport = (random() % (65000 - 1024)) + 1024;
data/vpcs-0.5b2/src/command.c:654: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(time(0));
data/vpcs-0.5b2/src/dns.c:71:12:  [3] (random) random:
  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.
	magicid = random();
data/vpcs-0.5b2/src/dns.c:107:17:  [3] (random) random:
  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.
	  	cb.sport = (random() % (65000 - 1024)) + 1024;
data/vpcs-0.5b2/src/getopt.c:113:5:  [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.
int getopt(int argc, char** argv, char* optstr)
data/vpcs-0.5b2/src/getopt.c:159:31:  [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(optstr[0] == '+' || getenv("POSIXLY_CORRECT"))
data/vpcs-0.5b2/src/getopt.h:53:5:  [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.
int getopt(int argc, char** argv, char* optstr);
data/vpcs-0.5b2/src/hv.c:398: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(ac, av, "p:m:s:c:")) != -1) {
data/vpcs-0.5b2/src/hv.c:772:6:  [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 (getenv("PATH") == NULL)
data/vpcs-0.5b2/src/hv.c:775:19:  [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.
	pathenv = strdup(getenv("PATH"));
data/vpcs-0.5b2/src/hv.c:796:10:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		return realpath(rpath, prgname);
data/vpcs-0.5b2/src/tcp.c:512:13:  [3] (random) random:
  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.
		rcb.seq = random();
data/vpcs-0.5b2/src/tcp.c:543:15:  [3] (random) random:
  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.
				cb->seq = random();
data/vpcs-0.5b2/src/tcp.c:686:13:  [3] (random) random:
  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.
		rcb.seq = random();
data/vpcs-0.5b2/src/tcp.c:717:15:  [3] (random) random:
  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.
				cb->seq = random();
data/vpcs-0.5b2/src/vpcs.c:155: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, "?c:ehm:p:r:s:t:uvFi:d:")) != -1) {
data/vpcs-0.5b2/src/vpcs.c:231: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(time(0));
data/vpcs-0.5b2/src/vpcs.c:609:41:  [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.
	snprintf(str, sizeof(str), "%s /c %s", getenv("COMSPEC"), cmd);
data/vpcs-0.5b2/src.drivers/freebsd/if_utun.c:94: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		destip[16];	/* destination address, sysctl */
data/vpcs-0.5b2/src.drivers/freebsd/if_utun.c:152: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 fmtbuf[4][BUFSIZE];
data/vpcs-0.5b2/src.drivers/freebsd/if_utun.c:320: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 num[8];
data/vpcs-0.5b2/src.drivers/freebsd/if_utun.c:483: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 b[9];
data/vpcs-0.5b2/src.drivers/freebsd/if_utun.c:503:25:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        bcopy(ifp->if_broadcastaddr, edst, ETHER_ADDR_LEN);
data/vpcs-0.5b2/src.drivers/freebsd/if_utun.c:505:25:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        bcopy(ar_tha(ah), edst, ETHER_ADDR_LEN);
data/vpcs-0.5b2/src.drivers/freebsd/if_utun.c:537:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	(void)memcpy(eh->ether_dhost, edst, sizeof (edst));
data/vpcs-0.5b2/src.drivers/freebsd/if_utun.c:563:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(((struct ipovly *)ip)->ih_x1, b, 9);
data/vpcs-0.5b2/src.drivers/freebsd/if_utun.c:569:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(b, ((struct ipovly *)ip)->ih_x1, 9);
data/vpcs-0.5b2/src/command.c:86: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[128];
data/vpcs-0.5b2/src/command.c:123:8:  [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.
			j = sprintf(buf, "NAME");
data/vpcs-0.5b2/src/command.c:125:8:  [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.
			j = sprintf(buf + 7, "IP/MASK");
data/vpcs-0.5b2/src/command.c:127:8:  [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.
			j = sprintf(buf + 28, "GATEWAY");
data/vpcs-0.5b2/src/command.c:129:8:  [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.
			j = sprintf(buf + 64, "GATEWAY");
data/vpcs-0.5b2/src/command.c:150:6:  [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 + 46 + k * 3, "%2.2x:", vpc[i].ip4.mac[k]);
data/vpcs-0.5b2/src/command.c:157:8:  [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.
			j = sprintf(buf, "NAME");
data/vpcs-0.5b2/src/command.c:159:8:  [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.
			j = sprintf(buf + 7, "IP/MASK");
data/vpcs-0.5b2/src/command.c:161:8:  [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.
			j = sprintf(buf + 28, "GATEWAY");
data/vpcs-0.5b2/src/command.c:163:8:  [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.
			j = sprintf(buf + 46, "MAC");
data/vpcs-0.5b2/src/command.c:165:8:  [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.
			j = sprintf(buf + 65, "LPORT");
data/vpcs-0.5b2/src/command.c:167:8:  [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.
			j = sprintf(buf + 72, "RHOST:PORT");
data/vpcs-0.5b2/src/command.c:188:6:  [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 + 46 + k * 3, "%2.2x:", vpc[i].ip4.mac[k]);
data/vpcs-0.5b2/src/command.c:191: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.
				j = sprintf(buf + 65, "%d", vpc[i].lport);
data/vpcs-0.5b2/src/command.c:212: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 dname[256];
data/vpcs-0.5b2/src/command.c:215: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 proto_seq[16];
data/vpcs-0.5b2/src/command.c:234: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(pc->mscb.smac, pc->ip4.mac, 6);
data/vpcs-0.5b2/src/command.c:235:2:  [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(proto_seq, "icmp_seq");
data/vpcs-0.5b2/src/command.c:252: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).
					pc->mscb.mtu = atoi(argv[i++]);
data/vpcs-0.5b2/src/command.c:257: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(proto_seq, "icmp_seq");
data/vpcs-0.5b2/src/command.c:261: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(proto_seq, "udp_seq");
data/vpcs-0.5b2/src/command.c:265: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(proto_seq, "tcp_seq");
data/vpcs-0.5b2/src/command.c:269: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).
					int pro = atoi(argv[i++]);
data/vpcs-0.5b2/src/command.c:272:7:  [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(proto_seq, "icmp_seq");
data/vpcs-0.5b2/src/command.c:275:7:  [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(proto_seq, "udp_seq");
data/vpcs-0.5b2/src/command.c:278:7:  [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(proto_seq, "tcp_seq");
data/vpcs-0.5b2/src/command.c:284: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).
					count = atoi(argv[i++]);
data/vpcs-0.5b2/src/command.c:288:23:  [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).
					pc->mscb.dsize = atoi(argv[i++]);
data/vpcs-0.5b2/src/command.c:292: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).
					pc->mscb.ttl = atoi(argv[i++]);
data/vpcs-0.5b2/src/command.c:296:23:  [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).
					pc->mscb.sport = atoi(argv[i++]);
data/vpcs-0.5b2/src/command.c:300:23:  [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).
					pc->mscb.dport = atoi(argv[i++]);
data/vpcs-0.5b2/src/command.c:304: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).
					pc->mscb.aproto = atoi(argv[i]);
data/vpcs-0.5b2/src/command.c:344: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).
					interval = atoi(argv[i++]);
data/vpcs-0.5b2/src/command.c:350:26:  [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).
					pc->mscb.waittime = atoi(argv[i++]);
data/vpcs-0.5b2/src/command.c:781: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[MAX_LEN];
data/vpcs-0.5b2/src/command.c:854: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).
		i = atoi(argv[2]);
data/vpcs-0.5b2/src/command.c:936:12:  [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).
			icidr = atoi(argv[i]);
data/vpcs-0.5b2/src/command.c:1045: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 outbuf[1024];
data/vpcs-0.5b2/src/command.c:1047: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 dname[256];
data/vpcs-0.5b2/src/command.c:1058: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(pc->mscb.smac, pc->ip4.mac, 6);
data/vpcs-0.5b2/src/command.c:1082: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).
				j = atoi(argv[i]);
data/vpcs-0.5b2/src/command.c:1107: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).
				j = atoi(argv[i]);
data/vpcs-0.5b2/src/command.c:1119:10:  [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).
					j = atoi(argv[i]);
data/vpcs-0.5b2/src/command.c:1325:11:  [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).
		value = atoi(argv[2]);
data/vpcs-0.5b2/src/command.c:1344:11:  [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).
		value = atoi(argv[2]);
data/vpcs-0.5b2/src/command.c:1396: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).
			t = atoi(argv[1]);
data/vpcs-0.5b2/src/command.c:1403: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).
			t = atoi(argv[1]);
data/vpcs-0.5b2/src/command.c:1432: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(mac, vpc[pcid].ip4.mac, 6);
data/vpcs-0.5b2/src/command.c:1434: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(&vpc[pcid].ip4.mac, mac, 6);
data/vpcs-0.5b2/src/command.c:1472:38:  [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 open_remote(0, "127.0.0.1", atoi(argv[1]));
data/vpcs-0.5b2/src/command.c:1478:34:  [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 open_remote(0, argv[1], atoi(argv[2]));
data/vpcs-0.5b2/src/command.c:1541: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[18];
data/vpcs-0.5b2/src/command.c:1562:7:  [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 + j * 3, "%2.2x:", pc->ipmac4[i].mac[j]);
data/vpcs-0.5b2/src/command.c:1575: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).
			si = atoi(argv[2]) - 1;
data/vpcs-0.5b2/src/command.c:1598: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(buf + j * 3, "%2.2x:", pc->ipmac4[i].mac[j]);
data/vpcs-0.5b2/src/command.c:1636: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(argv[2]) - 1;
data/vpcs-0.5b2/src/command.c:1664: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[128];
data/vpcs-0.5b2/src/command.c:1671:8:  [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.
			j = sprintf(buf, "NAME");
data/vpcs-0.5b2/src/command.c:1673:8:  [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.
			j = sprintf(buf + 7, "IP/MASK");
data/vpcs-0.5b2/src/command.c:1675:8:  [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.
			j = sprintf(buf + 28, "GATEWAY");
data/vpcs-0.5b2/src/command.c:1677:8:  [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.
			j = sprintf(buf + 46, "MAC");
data/vpcs-0.5b2/src/command.c:1679:8:  [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.
			j = sprintf(buf + 65, "DNS");
data/vpcs-0.5b2/src/command.c:1700:6:  [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 + 46 + k * 3, "%2.2x:", vpc[i].ip4.mac[k]);
data/vpcs-0.5b2/src/command.c:1808: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[MAX_LEN];
data/vpcs-0.5b2/src/command.c:1809: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 fname[PATH_MAX];
data/vpcs-0.5b2/src/command.c:1819:7:  [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).
	fp = fopen(filename, "r");
data/vpcs-0.5b2/src/command.c:1826:4:  [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(fname, ".vpc");
data/vpcs-0.5b2/src/command.c:1827: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).
			fp = fopen(fname, "r");
data/vpcs-0.5b2/src/command.c:1866: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[64];
data/vpcs-0.5b2/src/command.c:1869: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 fname[PATH_MAX];
data/vpcs-0.5b2/src/command.c:1889:3:  [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(fname, ".vpc");
data/vpcs-0.5b2/src/command.c:1891:7:  [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).
	fp = fopen(fname, "w");
data/vpcs-0.5b2/src/command.c:1898: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(buf, "VPCS[%d]", i + 1);
data/vpcs-0.5b2/src/command.c:1939: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 buf[128];
data/vpcs-0.5b2/src/command.c:1951: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(buf + pos, " %d", vpc[id].ip4.cidr);
data/vpcs-0.5b2/src/command6.c:67: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 proto_seq[16];
data/vpcs-0.5b2/src/command6.c:76: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).
				count = atoi(argv[i + 1]);
data/vpcs-0.5b2/src/command6.c:86: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(pc->mscb.dip6.addr8, ipaddr.s6_addr, 16);
data/vpcs-0.5b2/src/command6.c:88: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(pc->mscb.sip6.addr8, pc->ip6.ip.addr8, 16);
data/vpcs-0.5b2/src/command6.c:90: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(pc->mscb.sip6.addr8, pc->link6.ip.addr8, 16);
data/vpcs-0.5b2/src/command6.c:109: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(pc->mscb.dmac, p, 6);
data/vpcs-0.5b2/src/command6.c:113:3:  [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(proto_seq, "icmp6_seq");
data/vpcs-0.5b2/src/command6.c:115:3:  [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(proto_seq, "tcp6_seq");
data/vpcs-0.5b2/src/command6.c:117:3:  [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(proto_seq, "udp6_seq");
data/vpcs-0.5b2/src/command6.c:147: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[INET6_ADDRSTRLEN + 1];
data/vpcs-0.5b2/src/command6.c:251: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 buf[INET6_ADDRSTRLEN + 1];
data/vpcs-0.5b2/src/command6.c:278: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 buf6[INET6_ADDRSTRLEN + 1];
data/vpcs-0.5b2/src/command6.c:291: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(ipaddr.s6_addr, vpc[pcid].ip6.ip.addr8, 16);
data/vpcs-0.5b2/src/command6.c:307: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[INET6_ADDRSTRLEN + 1];
data/vpcs-0.5b2/src/command6.c:325:20:  [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).
				pc->ip6.cidr = atoi(argv[2]);
data/vpcs-0.5b2/src/command6.c:335: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(pc->ip6.ip.addr8, ipaddr.s6_addr, 16);
data/vpcs-0.5b2/src/command6.c:352: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(ipaddr.s6_addr, pc->ip6.ip.addr8, 16);
data/vpcs-0.5b2/src/command6.c:399: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).
				count = atoi(argv[i + 1]);
data/vpcs-0.5b2/src/command6.c:404:11:  [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).
		count = atoi(argv[argc - 1]);
data/vpcs-0.5b2/src/command6.c:407:11:  [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).
		count = atoi(argv[optind]);
data/vpcs-0.5b2/src/command6.c:418: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(pc->mscb.dip6.addr8, ipaddr.s6_addr, 16);
data/vpcs-0.5b2/src/command6.c:420: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(pc->mscb.sip6.addr8, pc->ip6.ip.addr8, 16);
data/vpcs-0.5b2/src/command6.c:422: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(pc->mscb.sip6.addr8, pc->link6.ip.addr8, 16);
data/vpcs-0.5b2/src/command6.c:429: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(pc->mscb.dmac, dmac, 6);
data/vpcs-0.5b2/src/command6.c:471: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.
							char buf[128];
data/vpcs-0.5b2/src/command6.c:473:8:  [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(ipaddr.s6_addr, pc->mscb.rdip6.addr8, 16);
data/vpcs-0.5b2/src/command6.c:488: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.
							char buf[128];
data/vpcs-0.5b2/src/command6.c:490:8:  [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(ipaddr.s6_addr, pc->mscb.rdip6.addr8, 16);
data/vpcs-0.5b2/src/command6.c:519: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[INET6_ADDRSTRLEN + 1];
data/vpcs-0.5b2/src/command6.c:523: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(ipaddr.s6_addr, pc->link6.ip.addr8, 16);
data/vpcs-0.5b2/src/command6.c:531: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(ipaddr.s6_addr, pc->ip6.ip.addr8, 16);
data/vpcs-0.5b2/src/command6.c:544: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[128];
data/vpcs-0.5b2/src/command6.c:545: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 buf6[INET6_ADDRSTRLEN + 1];
data/vpcs-0.5b2/src/command6.c:560:6:  [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(ipaddr.s6_addr, vpc[i].ip6.ip.addr8, 16);
data/vpcs-0.5b2/src/command6.c:575:8:  [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.
			j = sprintf(buf, "NAME");
data/vpcs-0.5b2/src/command6.c:577:8:  [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.
			j = sprintf(buf + off1, "IP/MASK");
data/vpcs-0.5b2/src/command6.c:579:8:  [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.
			j = sprintf(buf + off2, "ROUTER LINK-LAYER");
data/vpcs-0.5b2/src/command6.c:581:8:  [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.
			j = sprintf(buf + off3, "MTU");
data/vpcs-0.5b2/src/command6.c:594: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(ipaddr.s6_addr, vpc[i].link6.ip.addr8, 16);
data/vpcs-0.5b2/src/command6.c:603:6:  [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(ipaddr.s6_addr, vpc[i].ip6.ip.addr8, 16);
data/vpcs-0.5b2/src/command6.c:617:10:  [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.
					j = sprintf(buf, "                 ");
data/vpcs-0.5b2/src/command6.c:621:12:  [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.
						j += sprintf(buf + k * 3, "%2.2x:", vpc[i].ip6.gmac[k]);
data/vpcs-0.5b2/src/command6.c:626:11:  [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.
					j += sprintf(buf + j, " %4.4d", vpc[i].ip6.mtu);
data/vpcs-0.5b2/src/command6.c:628:11:  [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.
					j += sprintf(buf + j, "     ");
data/vpcs-0.5b2/src/command6.c:645: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(ipaddr.s6_addr, vpc[id].link6.ip.addr8, 16);
data/vpcs-0.5b2/src/command6.c:654: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(ipaddr.s6_addr, vpc[id].ip6.ip.addr8, 16);
data/vpcs-0.5b2/src/command6.c:685: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[INET6_ADDRSTRLEN + 1];
data/vpcs-0.5b2/src/command6.c:693: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(buf + j * 3, "%2.2x:", pc->ipmac6[i].mac[j]);
data/vpcs-0.5b2/src/command6.c:698: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(ipaddr.s6_addr, pc->ipmac6[i].ip.addr8, 16);
data/vpcs-0.5b2/src/command6.c:745: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 buf[INET6_ADDRSTRLEN + 1];
data/vpcs-0.5b2/src/command6.c:746: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[INET6_ADDRSTRLEN + 1];
data/vpcs-0.5b2/src/command6.c:751: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(ipaddr.s6_addr, vpc[id].ip6.ip.addr8, 16);
data/vpcs-0.5b2/src/daemon.c:219:3:  [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((char *)buf, "\r\nGood-bye\r\n");
data/vpcs-0.5b2/src/dev.c:169: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 dev[IFNAMESIZ];
data/vpcs-0.5b2/src/dev.c:172: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(dev, "tap%d", id);
data/vpcs-0.5b2/src/dev.c:178: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("/dev/net/tun", O_RDWR)) < 0) {
data/vpcs-0.5b2/src/dhcp.c:48: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 b[9];
data/vpcs-0.5b2/src/dhcp.c:71: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(dh->chaddr, pc->ip4.mac, 6);
data/vpcs-0.5b2/src/dhcp.c:91: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(&dh->options[i], pc->ip4.mac, 6);
data/vpcs-0.5b2/src/dhcp.c:119:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(((struct ipovly *)ip)->ih_x1, b, 9);
data/vpcs-0.5b2/src/dhcp.c:123:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(b, ((struct ipovly *)ip)->ih_x1, 9);
data/vpcs-0.5b2/src/dhcp.c:142: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 b[9];
data/vpcs-0.5b2/src/dhcp.c:164: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(dh->chaddr, pc->ip4.mac, 6);
data/vpcs-0.5b2/src/dhcp.c:187: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(&dh->options[i], pc->ip4.mac, 6);
data/vpcs-0.5b2/src/dhcp.c:222:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(((struct ipovly *)ip)->ih_x1, b, 9);
data/vpcs-0.5b2/src/dhcp.c:226:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(b, ((struct ipovly *)ip)->ih_x1, 9);
data/vpcs-0.5b2/src/dhcp.c:245: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 b[9];
data/vpcs-0.5b2/src/dhcp.c:267: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(dh->chaddr, pc->ip4.mac, 6);
data/vpcs-0.5b2/src/dhcp.c:302: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(&dh->options[i], pc->ip4.mac, 6);
data/vpcs-0.5b2/src/dhcp.c:322:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(((struct ipovly *)ip)->ih_x1, b, 9);
data/vpcs-0.5b2/src/dhcp.c:326:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(b, ((struct ipovly *)ip)->ih_x1, 9);
data/vpcs-0.5b2/src/dhcp.c:362: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(pc->ip4.dhcp.smac, eh->src, 6);
data/vpcs-0.5b2/src/dhcp.c:418: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(pc->ip4.dhcp.smac, eh->src, 6);
data/vpcs-0.5b2/src/dhcp.c:458:6:  [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(pc->ip4.dhcp.domain, p + 2, *(p + 1));
data/vpcs-0.5b2/src/dhcp.c:483: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 *msg_type[8] = {
data/vpcs-0.5b2/src/dhcp.h:47: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 sname[DHCP_SNAME_LEN];		/* Server name */
data/vpcs-0.5b2/src/dhcp.h:48: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 file[DHCP_FILE_LEN];		/* file name */
data/vpcs-0.5b2/src/dns.c:46: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 data[512];
data/vpcs-0.5b2/src/dns.c:56: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 dname[64];
data/vpcs-0.5b2/src/dns.c:109: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(cb.smac, pc->ip4.mac, ETH_ALEN);
data/vpcs-0.5b2/src/dns.c:110: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(cb.dmac, mac, ETH_ALEN);
data/vpcs-0.5b2/src/dns.c:188: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(data, (void *)&dh, sizeof(dnshdr));
data/vpcs-0.5b2/src/dns.c:196: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(data + dlen, buf, i);
data/vpcs-0.5b2/src/dns.c:226: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.
	const char *rcode[6] = {
data/vpcs-0.5b2/src/dns.c:306:11:  [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.
					i += sprintf(data + i, "%c", *(p + j));
data/vpcs-0.5b2/src/dump.c:45: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 x0[96], x1[17];
data/vpcs-0.5b2/src/dump.c:79:13:  [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.
				pos0 += sprintf(x0 + pos0, "%2.2x", *(p + j));
data/vpcs-0.5b2/src/dump.c:82:14:  [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.
					pos1 += sprintf(x1 + pos1, "%c", *(p + j));
data/vpcs-0.5b2/src/dump.c:86:13:  [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.
				pos0 += sprintf(x0 + pos0, "%2.2x ", *(p + j + 1));
data/vpcs-0.5b2/src/dump.c:89:14:  [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.
					pos1 += sprintf(x1 + pos1, "%c", *(p + j + 1));
data/vpcs-0.5b2/src/dump.c:292: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 name[256];
data/vpcs-0.5b2/src/dump.c:299: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.
	const char *rcode[6] = {
data/vpcs-0.5b2/src/dump.c:306: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.
	const char *typestr[16] = {"A", "NS", "MD", "MF", "CNAME", "SOA", "MB", 
data/vpcs-0.5b2/src/dump.c:308: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.
	const char *classtr[4] = {"IN", "CS", "CH", "HS"};
data/vpcs-0.5b2/src/dump.c:509: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 buf[64];
data/vpcs-0.5b2/src/hv.c:105: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 prgname[PATH_MAX];
data/vpcs-0.5b2/src/hv.c:124:12:  [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).
		hvport = atoi(argv[2]);
data/vpcs-0.5b2/src/hv.c:226: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 *av[20];
data/vpcs-0.5b2/src/hv.c:333: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((char *)buf, "disconnect\n");
data/vpcs-0.5b2/src/hv.c:369: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 *agv[20];
data/vpcs-0.5b2/src/hv.c:371: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];
data/vpcs-0.5b2/src/hv.c:401: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).
				pv->vport = atoi(optarg);
data/vpcs-0.5b2/src/hv.c:408: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).
				pv->vmac = atoi(optarg);
data/vpcs-0.5b2/src/hv.c:415:18:  [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).
				pv->vsport = atoi(optarg);
data/vpcs-0.5b2/src/hv.c:422:18:  [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).
				pv->vcport = atoi(optarg);
data/vpcs-0.5b2/src/hv.c:637: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 ans[8];
data/vpcs-0.5b2/src/hv.c:691:43:  [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 open_remote(ptyfds, "127.0.0.1", atoi(argv[1]));
data/vpcs-0.5b2/src/hv.c:697:39:  [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 open_remote(ptyfds, argv[1], atoi(argv[2]));
data/vpcs-0.5b2/src/hv.c:713: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).
	j = atoi(av[1]);
data/vpcs-0.5b2/src/hv.c:761: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 rpath[PATH_MAX];
data/vpcs-0.5b2/src/inet6.c:55: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[sizeof "255.255.255.255"];
data/vpcs-0.5b2/src/inet6.c:77: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[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"], *tp;
data/vpcs-0.5b2/src/inet6.c:139: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.
		tp += sprintf(tp, "%x", words[i]);
data/vpcs-0.5b2/src/inet6.c:241: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(dst, tmp, NS_IN6ADDRSZ);
data/vpcs-0.5b2/src/ip.c:52: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(mac, eh->dst, ETH_ALEN);
data/vpcs-0.5b2/src/ip.c:53: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(eh->dst, eh->src, ETH_ALEN);
data/vpcs-0.5b2/src/ip.c:54: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(eh->src, mac, ETH_ALEN);	
data/vpcs-0.5b2/src/ip.c:61: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(eh->dst, dea, ETH_ALEN);
data/vpcs-0.5b2/src/ip.c:62: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(eh->src, sea, ETH_ALEN);	
data/vpcs-0.5b2/src/ip.c:185: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(ip0.addr8, ip->dst.addr8, 16);
data/vpcs-0.5b2/src/ip.c:186: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(ip->dst.addr8, ip->src.addr8, 16);
data/vpcs-0.5b2/src/ip.c:187: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(ip->src.addr8, ip0.addr8, 16);
data/vpcs-0.5b2/src/ip.c:306: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 buf[INET6_ADDRSTRLEN + 1];
data/vpcs-0.5b2/src/ip.c:309: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(ipaddr.s6_addr, ip6, 16);
data/vpcs-0.5b2/src/packets.c:135: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(ah->dea, ah->sea, ETH_ALEN);
data/vpcs-0.5b2/src/packets.c:136: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(ah->sea, pc->ip4.mac, ETH_ALEN);
data/vpcs-0.5b2/src/packets.c:267: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(dmac, pc->ipmac4[i].mac, ETH_ALEN);
data/vpcs-0.5b2/src/packets.c:286:6:  [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(dmac, pc->ipmac4[i].mac, ETH_ALEN);
data/vpcs-0.5b2/src/packets.c:305: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 b[9];
data/vpcs-0.5b2/src/packets.c:384: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(data, sesscb->data, dlen);
data/vpcs-0.5b2/src/packets.c:386: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(data, sesscb->smac, 6);	
data/vpcs-0.5b2/src/packets.c:391:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(((struct ipovly *)ip)->ih_x1, b, 9);
data/vpcs-0.5b2/src/packets.c:397:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(b, ((struct ipovly *)ip)->ih_x1, 9);
data/vpcs-0.5b2/src/packets.c:426: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(data, (char *)&t, 4);
data/vpcs-0.5b2/src/packets.c:440: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(data, (char *)&t, 4);
data/vpcs-0.5b2/src/packets.c:470:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(((struct ipovly *)ip)->ih_x1, b, 9);
data/vpcs-0.5b2/src/packets.c:474:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(b, ((struct ipovly *)ip)->ih_x1, 9);
data/vpcs-0.5b2/src/packets.c:510: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(ah->dea, broadcast, ETH_ALEN);
data/vpcs-0.5b2/src/packets.c:511: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(ah->sea, pc->ip4.mac, ETH_ALEN);
data/vpcs-0.5b2/src/packets.c:606: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(m->data, m0->data, sizeof(ethdr) + sizeof(iphdr));
data/vpcs-0.5b2/src/packets.c:613: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((char*)(icmp + 1), (char *)(m0->data + sizeof(ethdr)), len0);
data/vpcs-0.5b2/src/packets.c:661: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(pc->ipmac4[i].mac, mac, ETH_ALEN);
data/vpcs-0.5b2/src/packets6.c:119: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(ip->dst.addr8, ip->src.addr8, 16);
data/vpcs-0.5b2/src/packets6.c:120: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(ip->src.addr8, tip6->addr8, 16);
data/vpcs-0.5b2/src/packets6.c:126: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(nsopt->mac, pc->ip4.mac, ETH_ALEN);
data/vpcs-0.5b2/src/packets6.c:131: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(eh->dst, eh->src, ETH_ALEN);
data/vpcs-0.5b2/src/packets6.c:132: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(eh->src, pc->ip4.mac, ETH_ALEN);	
data/vpcs-0.5b2/src/packets6.c:215:6:  [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(pc->ip6.ip.addr8, p + 16, 16);
data/vpcs-0.5b2/src/packets6.c:234:6:  [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(pc->ip6.gmac, mac, 6);
data/vpcs-0.5b2/src/packets6.c:302: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(sesscb->rdip6.addr8, ip->src.addr8, 16);
data/vpcs-0.5b2/src/packets6.c:318: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(sesscb->rdip6.addr8, ip->src.addr8, 16);
data/vpcs-0.5b2/src/packets6.c:418: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(eh->src, sesscb->smac, 6);
data/vpcs-0.5b2/src/packets6.c:419: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(eh->dst, sesscb->dmac, 6);
data/vpcs-0.5b2/src/packets6.c:430: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(ip->src.addr8, sesscb->sip6.addr8, 16);
data/vpcs-0.5b2/src/packets6.c:431: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(ip->dst.addr8, sesscb->dip6.addr8, 16);
data/vpcs-0.5b2/src/packets6.c:456: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(data, sesscb->smac, 6);	
data/vpcs-0.5b2/src/packets6.c:488: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(data, (char *)&t, 4);
data/vpcs-0.5b2/src/packets6.c:502: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(data, (char *)&t, 4);
data/vpcs-0.5b2/src/packets6.c:552: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(eh->src, eh0->dst, ETH_ALEN);
data/vpcs-0.5b2/src/packets6.c:553: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(eh->dst, eh0->src, ETH_ALEN);
data/vpcs-0.5b2/src/packets6.c:565: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(ip->src.addr8, ip0->dst.addr8, 16);
data/vpcs-0.5b2/src/packets6.c:566: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(ip->dst.addr8, ip0->src.addr8, 16);
data/vpcs-0.5b2/src/packets6.c:574: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((char *)(icmp + 1), m0->data + sizeof(ethdr), plen);
data/vpcs-0.5b2/src/packets6.c:715: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(eh->src, pc->ip4.mac, ETH_ALEN);
data/vpcs-0.5b2/src/packets6.c:725: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(ip->src.addr8, pc->ip6.ip.addr8, 16);
data/vpcs-0.5b2/src/packets6.c:771: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(eh->src, pc->ip4.mac, ETH_ALEN);
data/vpcs-0.5b2/src/packets6.c:782: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(ip->src.addr8, pc->link6.ip.addr8, 16);
data/vpcs-0.5b2/src/packets6.c:784: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(ip->src.addr8, pc->ip6.ip.addr8, 16);
data/vpcs-0.5b2/src/packets6.c:806: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(nshdr->target.addr8, dst->addr8, 16);
data/vpcs-0.5b2/src/packets6.c:812: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(nsopt->mac, pc->ip4.mac, ETH_ALEN);
data/vpcs-0.5b2/src/packets6.c:875: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(pc->ipmac6[i].mac, nsopt->mac, ETH_ALEN);
data/vpcs-0.5b2/src/packets6.c:876: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(pc->ipmac6[i].ip.addr8, ip->src.addr8, 16);
data/vpcs-0.5b2/src/packets6.c:886: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(pc->ipmac6[i].mac, nsopt->mac, ETH_ALEN);
data/vpcs-0.5b2/src/packets6.c:887: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(pc->ipmac6[i].ip.addr8, ip->src.addr8, 16);
data/vpcs-0.5b2/src/queue.h:44: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 data[1];
data/vpcs-0.5b2/src/queue.h:58: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(dst->data, src->data, src->len); \
data/vpcs-0.5b2/src/readline.c:50: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 kb[32];
data/vpcs-0.5b2/src/readline.c:90:13:  [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 *fp = fopen(filename, "r");
data/vpcs-0.5b2/src/readline.c:120:13:  [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 *fp = fopen(filename, "w");
data/vpcs-0.5b2/src/readline.h:34: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 kb[512];
data/vpcs-0.5b2/src/relay.c:58: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[32];
data/vpcs-0.5b2/src/relay.c:63:10:  [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).
		port = atoi(argv[2]);
data/vpcs-0.5b2/src/relay.c:106: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 + 1);
data/vpcs-0.5b2/src/relay.c:114: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(argv[2]);
data/vpcs-0.5b2/src/relay.c:127: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 + 1);
data/vpcs-0.5b2/src/relay.c:135: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(argv[3]);
data/vpcs-0.5b2/src/relay.c:174: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(tpeer, &peer, sizeof(peer));
data/vpcs-0.5b2/src/relay.c:192: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).
		j = atoi(argv[2]);
data/vpcs-0.5b2/src/relay.c:226: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).
			peer.nodea.port = htons(atoi(p + 1));
data/vpcs-0.5b2/src/relay.c:229: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).
			peer.nodea.port = htons(atoi(argv[2]));	
data/vpcs-0.5b2/src/relay.c:237: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).
			peer.nodeb.port = htons(atoi(p + 1));
data/vpcs-0.5b2/src/relay.c:240: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).
			peer.nodea.port = htons(atoi(argv[3]));	
data/vpcs-0.5b2/src/relay.c:268: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[1500];
data/vpcs-0.5b2/src/remote.c:51: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 kb[512];
data/vpcs-0.5b2/src/tcp.c:601: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 b[9];
data/vpcs-0.5b2/src/tcp.c:610: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(m->data, m0->data, m->len);
data/vpcs-0.5b2/src/tcp.c:633:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(((struct ipovly *)ip)->ih_x1, b, 9);
data/vpcs-0.5b2/src/tcp.c:638:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(b, ((struct ipovly *)ip)->ih_x1, 9);
data/vpcs-0.5b2/src/tcp.c:687: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(rcb.sip6.addr8, ip->src.addr8, 16);
data/vpcs-0.5b2/src/tcp.c:688: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(rcb.dip6.addr8, ip->dst.addr8, 16);
data/vpcs-0.5b2/src/tcp.c:718: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->sip6.addr8, ip->src.addr8, 16);
data/vpcs-0.5b2/src/tcp.c:719: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->dip6.addr8, ip->dst.addr8, 16);
data/vpcs-0.5b2/src/tcp.c:781: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(m->data, m0->data, m->len);
data/vpcs-0.5b2/src/utils.c:38: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 buf[MAX_LEN];
data/vpcs-0.5b2/src/utils.c:57: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 buf[MAX_LEN];
data/vpcs-0.5b2/src/utils.c: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 *av[20];
data/vpcs-0.5b2/src/utils.c:181:7:  [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).
	fp = fopen("vpcs.log", "a+");
data/vpcs-0.5b2/src/vpcs.c:146: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 prompt[MAX_LEN];
data/vpcs-0.5b2/src/vpcs.c:239:3:  [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(vpc[i].xname, "VPCS");
data/vpcs-0.5b2/src/vpcs.c:281: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 *argv[20];
data/vpcs-0.5b2/src/vpcs.c:452: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(m->data, buf, rc);
data/vpcs-0.5b2/src/vpcs.c:515: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 *argv[3];
data/vpcs-0.5b2/src/vpcs.c:518:8:  [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).
		fp = fopen(default_startupfile, "r");
data/vpcs-0.5b2/src/vpcs.c:531:8:  [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).
		fp = fopen(startupfile, "r");
data/vpcs-0.5b2/src/vpcs.c:608: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];
data/vpcs-0.5b2/src/vpcs.h:54: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 domain[64];
data/vpcs-0.5b2/src/vpcs.h:85: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 domain[64];	/* search domain name */
data/vpcs-0.5b2/src/vpcs.h:93: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 xname[MAX_NAMES_LEN + 1];	/* pc name */
data/vpcs-0.5b2/src/command.c:95: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 (!strncmp("arp", argv[1], strlen(argv[1])))
data/vpcs-0.5b2/src/command.c:98: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).
		if (!strncmp("dump", argv[1], strlen(argv[1])))
data/vpcs-0.5b2/src/command.c:104: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).
		if (!strncmp("ipv6", argv[1], strlen(argv[1])))
data/vpcs-0.5b2/src/command.c:107: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).
		if (!strncmp("echo", argv[1], strlen(argv[1])))
data/vpcs-0.5b2/src/command.c:110: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).
		if (!strncmp("version", argv[1], strlen(argv[1])))
data/vpcs-0.5b2/src/command.c:113: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).
		if (!strncmp("history", argv[1], strlen(argv[1])))
data/vpcs-0.5b2/src/command.c:219: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 (argc < 2 || (argc == 2 && strlen(argv[1]) == 1 && argv[1][0] == '?')) {
data/vpcs-0.5b2/src/command.c:308: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).
					for (j = 0; j < strlen(argv[i]); j++) {
data/vpcs-0.5b2/src/command.c:790: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 (argc < 2 || (argc == 2 && strlen(argv[1]) == 1 && argv[1][0] == '?')) {
data/vpcs-0.5b2/src/command.c:797: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 (!strncmp("dhcp", argv[1], strlen(argv[1]))) {
data/vpcs-0.5b2/src/command.c:844: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 (!strncmp("auto", argv[1], strlen(argv[1])))
data/vpcs-0.5b2/src/command.c:847: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 (!strncmp("mtu", argv[1], strlen(argv[1]))) {
data/vpcs-0.5b2/src/command.c:862: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).
	if (!strncmp("domain", argv[1], strlen(argv[1]))) {
data/vpcs-0.5b2/src/command.c:867: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).
		if (strlen(argv[2]) > 64 || strstr(argv[2], "..")) {
data/vpcs-0.5b2/src/command.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).
				if (p[strlen(p) - 1] == '.')
data/vpcs-0.5b2/src/command.c:879: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).
					p[strlen(p) - 1] = '\0';
data/vpcs-0.5b2/src/command.c:886: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 (!strncmp("dns", argv[1], strlen(argv[1]))) {
data/vpcs-0.5b2/src/command.c:935: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 (digitstring(argv[i]) && strlen(argv[i]) < 3) {
data/vpcs-0.5b2/src/command.c:940: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).
		if ((strlen(argv[i]) > 8) && (!strncmp(argv[i], "255.", 4))) {
data/vpcs-0.5b2/src/command.c:950: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(argv[i]);
data/vpcs-0.5b2/src/command.c:1309: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 (argc < 2 || (argc == 2 && strlen(argv[1]) == 1 && argv[1][0] == '?')) {
data/vpcs-0.5b2/src/command.c:1314: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 (!strncmp("dump", argv[1], strlen(argv[1]))) {
data/vpcs-0.5b2/src/command.c:1320: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).
	if (!strncmp("lport", argv[1], strlen(argv[1]))) {
data/vpcs-0.5b2/src/command.c:1339: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).
	} else if (!strncmp("rport", argv[1], strlen(argv[1]))) {
data/vpcs-0.5b2/src/command.c:1349: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).
	} else if (!strncmp("rhost", argv[1], strlen(argv[1]))) {
data/vpcs-0.5b2/src/command.c:1360: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).
	} else if (!strncmp("pcname", argv[1], strlen(argv[1]))) {
data/vpcs-0.5b2/src/command.c:1365: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).
		if (strlen(argv[2]) > MAX_NAMES_LEN)
data/vpcs-0.5b2/src/command.c:1369: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).
	} else if (!strncmp("echo", argv[1], strlen(argv[1]))) {
data/vpcs-0.5b2/src/command.c:1428: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 (argc < 2 || (argc == 2 && strlen(argv[1]) == 1 && argv[1][0] == '?')) {
data/vpcs-0.5b2/src/command.c:1436: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).
	} else if (!strncmp("ipv6", argv[1], strlen(argv[1]))) {
data/vpcs-0.5b2/src/command.c:1439: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).
	} else if (!strncmp("arp", argv[1], strlen(argv[1])))
data/vpcs-0.5b2/src/command.c:1441: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).
	else if (!strncmp("neighbor", argv[1], strlen(argv[1])))
data/vpcs-0.5b2/src/command.c:1443: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).
	else if (!strncmp("hist", argv[1], strlen(argv[1])))
data/vpcs-0.5b2/src/command.c:1495: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 (!strncmp(argv[i], "mac", strlen(argv[i])))
data/vpcs-0.5b2/src/command.c:1497: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).
		else if (!strncmp(argv[i], "raw", strlen(argv[i])))
data/vpcs-0.5b2/src/command.c:1499: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).
		else if (!strncmp(argv[i], "detail", strlen(argv[i])))
data/vpcs-0.5b2/src/command.c:1501: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).
		else if (!strncmp(argv[i], "all", strlen(argv[i])))
data/vpcs-0.5b2/src/command.c:1503: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).
		else if (!strncmp(argv[i], "off", strlen(argv[i])))
data/vpcs-0.5b2/src/command.c:1549: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 (!strncmp(argv[2], "all", strlen(argv[2]))) {
data/vpcs-0.5b2/src/command.c:1574: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).
		} else if (strlen(argv[2]) == 1 && digitstring(argv[2])) {
data/vpcs-0.5b2/src/command.c:1618: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 (!strncmp(argv[2], "all", strlen(argv[2]))) {
data/vpcs-0.5b2/src/command.c:1635: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).
		if (strlen(argv[2]) == 1 && digitstring(argv[2])) {
data/vpcs-0.5b2/src/command.c:1668: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 (!strncmp(argv[2], "all", strlen(argv[2]))) {
data/vpcs-0.5b2/src/command.c:1719: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).
		if (strlen(argv[2]) == 1 && digitstring(argv[2])){
data/vpcs-0.5b2/src/command.c:1823: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).
		    (strlen(filename) < PATH_MAX - 5)) {
data/vpcs-0.5b2/src/command.c:1825:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(fname, filename, PATH_MAX - 1);
data/vpcs-0.5b2/src/command.c:1853: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).
		if (strlen(buf) > 0)	
data/vpcs-0.5b2/src/command.c:1876:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(fname, default_startupfile, PATH_MAX - 1);
data/vpcs-0.5b2/src/command.c:1879: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).
		if (strlen(argv[1]) > PATH_MAX - 5) {
data/vpcs-0.5b2/src/command.c:1884:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(fname, argv[1], PATH_MAX - 1);
data/vpcs-0.5b2/src/command6.c:287:3:  [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/vpcs-0.5b2/src/command6.c:554: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 (!strncmp(argv[2], "all", strlen(argv[2]))) {
data/vpcs-0.5b2/src/command6.c:634: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).
		if (strlen(argv[2]) == 1 && digitstring(argv[2])){
data/vpcs-0.5b2/src/daemon.c:202:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				i = read(fdtty, buf, sizeof(buf));
data/vpcs-0.5b2/src/daemon.c:211:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				i = read(sock_cli, buf, sizeof(buf));
data/vpcs-0.5b2/src/daemon.c:220: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).
		i = write(sock_cli, buf, strlen((char *)buf));
data/vpcs-0.5b2/src/daemon.c:244:2:  [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(100000);
data/vpcs-0.5b2/src/daemon.c:266:2:  [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(100000);
data/vpcs-0.5b2/src/daemon.c:280:2:  [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(100000);
data/vpcs-0.5b2/src/daemon.c:283:2:  [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(100000);
data/vpcs-0.5b2/src/daemon.c:305: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 (write(s, neg, strlen(neg)))
data/vpcs-0.5b2/src/dev.c:73:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			n = read(pc->fd, buf, len);
data/vpcs-0.5b2/src/dev.c:174: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).
		if (strlen(tapname) >= IFNAMSIZ)
data/vpcs-0.5b2/src/dev.c:189:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifr.ifr_name, dev, IFNAMESIZ);
data/vpcs-0.5b2/src/dhcp.c:81: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).
	k = strlen(pc->xname);
data/vpcs-0.5b2/src/dhcp.c:83:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char *)(dh->options + i), pc->xname, k);
data/vpcs-0.5b2/src/dhcp.c:191: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).
	k = strlen(pc->xname);
data/vpcs-0.5b2/src/dhcp.c:193:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char *)(dh->options + i), pc->xname, k);
data/vpcs-0.5b2/src/dhcp.c:292: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).
	k = strlen(pc->xname);
data/vpcs-0.5b2/src/dhcp.c:294:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char *)(dh->options + i), pc->xname, k);
data/vpcs-0.5b2/src/dns.c:150: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).
	    !strchr(name, '.') || strlen(name) > MAX_DNS_NAME)
data/vpcs-0.5b2/src/dns.c:166: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).
		c = strlen(r);
data/vpcs-0.5b2/src/dns.c:269: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(data, (char *)(p + c + 1), i);
data/vpcs-0.5b2/src/dns.c:273: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(data, ".");	
data/vpcs-0.5b2/src/dns.c:311:10:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
				i += sprintf(data + i, ".");
data/vpcs-0.5b2/src/dns.c:315:10:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
				i += sprintf(data + i, ".");
data/vpcs-0.5b2/src/dns.c:344: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(name, (char *)(s + i + 1), c);
data/vpcs-0.5b2/src/dns.c:349: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(name, ".");	
data/vpcs-0.5b2/src/dump.c:84:14:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
					pos1 += sprintf(x1 + pos1, ".");
data/vpcs-0.5b2/src/dump.c:91:14:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
					pos1 += sprintf(x1 + pos1, ".");
data/vpcs-0.5b2/src/dump.c:95:13:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
				pos0 += sprintf(x0 + pos0, " ");
data/vpcs-0.5b2/src/dump.c:327:4:  [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(name, (char *)(p + j + 1), i);
data/vpcs-0.5b2/src/dump.c:331:4:  [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(name, ".");	
data/vpcs-0.5b2/src/dump.c:415:6:  [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(name, (char *)(q + j + 1), c);
data/vpcs-0.5b2/src/dump.c:420:6:  [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(name, ".");	
data/vpcs-0.5b2/src/help.c:67: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 (!strncmp(argv[0], "dhcp", strlen(argv[0])) ||
data/vpcs-0.5b2/src/help.c:68:46:  [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).
	    (argc == 3 && !strncmp(argv[1], "dhcp", strlen(argv[1])) && 
data/vpcs-0.5b2/src/help.c:69:58:  [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).
	    (!strcmp(argv[2], "?") || !strncmp(argv[2], "help", strlen(argv[2]))))) {
data/vpcs-0.5b2/src/help.c:79:44:  [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 (argc == 3 && !strncmp(argv[1], "mtu", strlen(argv[1])) && 
data/vpcs-0.5b2/src/help.c:80:58:  [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).
	    (!strcmp(argv[2], "?") || !strncmp(argv[2], "help", strlen(argv[2])))) {
data/vpcs-0.5b2/src/help.c:86:44:  [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 (argc == 3 && !strncmp(argv[1], "dns", strlen(argv[1])) && 
data/vpcs-0.5b2/src/help.c:87:58:  [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).
	    (!strcmp(argv[2], "?") || !strncmp(argv[2], "help", strlen(argv[2])))) {
data/vpcs-0.5b2/src/help.c:92: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 (argc == 3 && !strncmp(argv[1], "domain", strlen(argv[1])) && 
data/vpcs-0.5b2/src/help.c:93:58:  [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).
	    (!strcmp(argv[2], "?") || !strncmp(argv[2], "help", strlen(argv[2])))) {
data/vpcs-0.5b2/src/help.c:206:45:  [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 (argc == 3 && !strncmp(argv[1], "dump", strlen(argv[1])) && 
data/vpcs-0.5b2/src/help.c:207:58:  [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).
	    (!strcmp(argv[2], "?") || !strncmp(argv[2], "help", strlen(argv[2])))) {
data/vpcs-0.5b2/src/help.c:220:45:  [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 (argc == 3 && !strncmp(argv[1], "echo", strlen(argv[1])) && 
data/vpcs-0.5b2/src/help.c:221:58:  [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).
	    (!strcmp(argv[2], "?") || !strncmp(argv[2], "help", strlen(argv[2])))) {
data/vpcs-0.5b2/src/help.c:257:44:  [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 (argc == 3 && !strncmp(argv[1], "arp", strlen(argv[1])) && 
data/vpcs-0.5b2/src/help.c:258:58:  [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).
	    (!strcmp(argv[2], "?") || !strncmp(argv[2], "help", strlen(argv[2])))) {
data/vpcs-0.5b2/src/help.c:264:45:  [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 (argc == 3 && !strncmp(argv[1], "dump", strlen(argv[1])) && 
data/vpcs-0.5b2/src/help.c:265:58:  [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).
	    (!strcmp(argv[2], "?") || !strncmp(argv[2], "help", strlen(argv[2])))) {
data/vpcs-0.5b2/src/help.c:272:58:  [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).
	    (!strcmp(argv[2], "?") || !strncmp(argv[2], "help", strlen(argv[2])))) {
data/vpcs-0.5b2/src/help.c:280:58:  [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).
	    (!strcmp(argv[2], "?") || !strncmp(argv[2], "help", strlen(argv[2])))) {
data/vpcs-0.5b2/src/help.c:287:72:  [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).
	    (!strcmp(argv[argc - 1], "?") || !strncmp(argv[argc - 1], "help", strlen(argv[argc - 1])))) {
data/vpcs-0.5b2/src/hv.c:214:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(ptyfdm, buf, sizeof(buf));
data/vpcs-0.5b2/src/hv.c:236:3:  [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(1);
data/vpcs-0.5b2/src/hv.c:247: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).
			if(!strncmp(av[0], ep->name, strlen(av[0]))) {
data/vpcs-0.5b2/src/hv.c:308:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				i = read(sock_cli, buf, sizeof(buf));
data/vpcs-0.5b2/src/hv.c:334: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).
					i = strlen((char *)buf);
data/vpcs-0.5b2/src/hv.c:336:6:  [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(100);
data/vpcs-0.5b2/src/hv.c:337:6:  [1] (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 character.
					strcpy((char *)buf, "\n");
data/vpcs-0.5b2/src/hv.c:338: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).
					i = strlen((char *)buf);					
data/vpcs-0.5b2/src/hv.c:649: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).
			i = write(sock_cli, warning_quit, strlen(warning_quit));
data/vpcs-0.5b2/src/hv.c:651:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(sock_cli, ans, sizeof(ans));
data/vpcs-0.5b2/src/hv.c:654: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).
			i = write(sock_cli, ans, strlen(ans));
data/vpcs-0.5b2/src/hv.c:828: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 (write(s, neg, strlen(neg)))
data/vpcs-0.5b2/src/hv.h:38:21:  [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.
#define delay_ms(x) usleep((x) * 1000)
data/vpcs-0.5b2/src/inet6.c:63:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dst, tmp, size);
data/vpcs-0.5b2/src/inet6.c:136: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).
			tp += strlen(tp);
data/vpcs-0.5b2/src/readline.c:55:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rc = read(fd, kb, sizeof(kb));
data/vpcs-0.5b2/src/readline.c:59:3:  [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(100);
data/vpcs-0.5b2/src/readline.c:70: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 (write(rls->fdout, prompt, strlen(prompt)))
data/vpcs-0.5b2/src/readline.c:99: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(rls->kbuffer);
data/vpcs-0.5b2/src/readline.c:215:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rc = read(rls->fdin, kb, sizeof(rls->kb));
data/vpcs-0.5b2/src/readline.c:255: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).
				i = strlen(rls->kbuffer);
data/vpcs-0.5b2/src/readline.c:264: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).
				rls->pos = strlen(rls->kbuffer);
data/vpcs-0.5b2/src/readline.c:274: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).
					i = strlen(rls->kbuffer);
data/vpcs-0.5b2/src/readline.c:291: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).
				i = strlen(rls->kbuffer);
data/vpcs-0.5b2/src/readline.c:300: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).
				rls->pos = strlen(rls->kbuffer);
data/vpcs-0.5b2/src/readline.c:307: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 (rls->pos < strlen(rls->kbuffer))
data/vpcs-0.5b2/src/readline.c:329: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).
				while (rls->pos < strlen(rls->kbuffer)) {
data/vpcs-0.5b2/src/readline.c:342: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).
			rls->pos = strlen(rls->kbuffer);
data/vpcs-0.5b2/src/readline.c:383:21:  [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).
				for (i = 0; i < strlen(p); i++)
data/vpcs-0.5b2/src/readline.c:385: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).
				i = strlen(*tab);
data/vpcs-0.5b2/src/readline.c:389: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).
					rls->pos = strlen(rls->kbuffer);
data/vpcs-0.5b2/src/readline.c:400: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).
				vprint(rls->fdout, *(tab + i), strlen(*(tab + i)));
data/vpcs-0.5b2/src/readline.c:408: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).
			vprint(rls->fdout, rls->prompt, strlen(rls->prompt));
data/vpcs-0.5b2/src/readline.c:417: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).
				i = strlen(rls->kbuffer);
data/vpcs-0.5b2/src/readline.c:427:49:  [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).
				vprint(rls->fdout, &rls->kbuffer[rls->pos], strlen(&rls->kbuffer[rls->pos]));
data/vpcs-0.5b2/src/readline.c:429:21:  [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).
				for (i = 0; i < strlen(rls->kbuffer) - rls->pos; i++)
data/vpcs-0.5b2/src/readline.c:439: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).
			if (rls->pos < strlen(rls->kbuffer) - 1) {
data/vpcs-0.5b2/src/readline.c:440: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).
				j = strlen(rls->kbuffer);
data/vpcs-0.5b2/src/readline.c:451: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).
					    strlen(&rls->kbuffer[rls->pos]));
data/vpcs-0.5b2/src/readline.c:452: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).
					for (j = 0; j < strlen(rls->kbuffer) - rls->pos - 1; j++)
data/vpcs-0.5b2/src/readline.c:475: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(rls->history[rls->maxhistnum]);
data/vpcs-0.5b2/src/readline.c:512: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).
	q = p + strlen(p);
data/vpcs-0.5b2/src/readline.c:570: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 (!strncmp(part, cmd[i], strlen(part)))
data/vpcs-0.5b2/src/relay.c:104:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(tmp, argv[2], p - argv[2]);
data/vpcs-0.5b2/src/relay.c:125:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(tmp, argv[3], p - argv[3]);
data/vpcs-0.5b2/src/relay.c:224:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(tmp, argv[2], p - argv[2]);
data/vpcs-0.5b2/src/relay.c:235:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(tmp, argv[3], p - argv[3]);
data/vpcs-0.5b2/src/remote.c:137:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rc = read(s, outbuf, sizeof(outbuf));
data/vpcs-0.5b2/src/remote.c:154:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rc = read(fdio, kb, sizeof(kb));
data/vpcs-0.5b2/src/utils.c:43:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, str, strlen(str));
data/vpcs-0.5b2/src/utils.c:43:21:  [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).
		strncpy(buf, str, strlen(str));
data/vpcs-0.5b2/src/utils.c:63:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, str, sizeof(buf) - 1);
data/vpcs-0.5b2/src/utils.c:66: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).
	es = p + strlen(buf);
data/vpcs-0.5b2/src/utils.c:143: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(s);
data/vpcs-0.5b2/src/vpcs.c:290: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).
	if (argc == 1 && strlen(argv[0]) == 1 && num_pths > 1 &&
data/vpcs-0.5b2/src/vpcs.c:306: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 (!strncmp(argv[0], "echo", strlen(argv[0]))) {
data/vpcs-0.5b2/src/vpcs.c:324: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).
		if (strlen(cmdstr) > 1) {
data/vpcs-0.5b2/src/vpcs.c:338: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).
		if(!strncmp(argv[0], ep->name, strlen(argv[0]))) {
data/vpcs-0.5b2/src/vpcs.c:506:3:  [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(100);
data/vpcs-0.5b2/src/vpcs.h:119:21:  [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.
#define delay_ms(s) usleep(s * 1000)

ANALYSIS SUMMARY:

Hits = 535
Lines analyzed = 13773 in approximately 0.44 seconds (31157 lines/second)
Physical Source Lines of Code (SLOC) = 10166
Hits@level = [0] 526 [1] 165 [2] 302 [3]  18 [4]  50 [5]   0
Hits@level+ = [0+] 1061 [1+] 535 [2+] 370 [3+]  68 [4+]  50 [5+]   0
Hits/KSLOC@level+ = [0+] 104.367 [1+] 52.6264 [2+] 36.3958 [3+] 6.68896 [4+] 4.91836 [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.