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/vdeplug4-4.0.1/include/libvdeplug.h
Examining data/vdeplug4-4.0.1/include/libvdeplug_mod.h
Examining data/vdeplug4-4.0.1/libvdeplug4/libvdeplug.c
Examining data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_bonding.c
Examining data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_cmd.c
Examining data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_hub.c
Examining data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_multi.c
Examining data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c
Examining data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.h
Examining data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_null.c
Examining data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_ptp.c
Examining data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_seqpacket.c
Examining data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_switch.c
Examining data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_tap.c
Examining data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_udp.c
Examining data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vde.c
Examining data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxlan.c
Examining data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxvde.c
Examining data/vdeplug4-4.0.1/libvdeplug4/libvdestream.c
Examining data/vdeplug4-4.0.1/libvdeplug4/parseparms.c
Examining data/vdeplug4-4.0.1/libvdeplug4/vde_hashtable.c
Examining data/vdeplug4-4.0.1/libvdeplug4_static/libvdeplug.c
Examining data/vdeplug4-4.0.1/srcvdeplug4/dpipe.c
Examining data/vdeplug4-4.0.1/srcvdeplug4/openclosepidfile.c
Examining data/vdeplug4-4.0.1/srcvdeplug4/openclosepidfile.h
Examining data/vdeplug4-4.0.1/srcvdeplug4/selfsighandler.c
Examining data/vdeplug4-4.0.1/srcvdeplug4/selfsighandler.h
Examining data/vdeplug4-4.0.1/srcvdeplug4/vde_plug.c
Examining data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_iplog.c
Examining data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_iplog.h
Examining data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_log.c
Examining data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_log.h

FINAL RESULTS:

data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:181:18:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	if (gid >= 0 && chown(path, -1, gid) < 0)
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:183:21:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (dirmode > 0 && chmod(path, dirmode) < 0)
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:190:18:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	if (gid >= 0 && chown(sun.sun_path, -1, gid) < 0)
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:192:18:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (mode > 0 && chmod(sun.sun_path, mode) < 0)
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:245:4:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			chmod(sun.sun_path, mode);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:332:3:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
		strncat(path, "/", PATH_MAX);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:333:3:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
		strncat(path, filename, PATH_MAX);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_ptp.c:119:7:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		if (chown(sockun.sun_path,-1,gid) < 0)
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_ptp.c:122:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod(sockun.sun_path,mode);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_ptp.c:203:7:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		if (chown(sockun.sun_path,-1,gid) < 0)
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_ptp.c:206:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod(sockun.sun_path,mode);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vde.c:250:7:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		if (chown(datasock.sun_path, -1, gid) < 0)
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vde.c:264:10:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
					if (chown(datasock.sun_path, -1, ctlstat.st_gid) == 0)
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vde.c:272:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod(datasock.sun_path, mode);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vde.c:284:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod(datasock.sun_path, mode);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug.c:110:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(path, PATH_MAX, LIBVDEPLUG "%s.so", modname);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug.c:119: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(vde_args_copy, parms->vde_args);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:322:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(userpath, PATH_MAX, STDPATH "%s", pwd.pw_name);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:324:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(userpath, PATH_MAX, STDPATH "u%d", euid);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vde.c:232:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(datasock.sun_path, "%s/vde.%05d-%05d", fallback_dirname[i], pid, sockno++);
data/vdeplug4-4.0.1/libvdeplug4_static/libvdeplug.c:62:3:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  execvp(data->argv[0], data->argv);
data/vdeplug4-4.0.1/srcvdeplug4/dpipe.c:42:9:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#define execvp(X,Y) \
data/vdeplug4-4.0.1/srcvdeplug4/dpipe.c:164:5:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				execvp(argv[0],argv);
data/vdeplug4-4.0.1/srcvdeplug4/dpipe.c:169:5:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				execvp(argv[0],argv);
data/vdeplug4-4.0.1/srcvdeplug4/dpipe.c:233:4:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			execvp(argv1[0],argv1);
data/vdeplug4-4.0.1/srcvdeplug4/dpipe.c:295:3:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execvp(argv1[0],argv1);
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug.c:71:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(stderr, format, args);
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug.c:174:3:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execvp(*argv, argv);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug.c:115:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *vdeplugin_path = getenv("VDEPLUGIN_PATH");
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug.c:131:38:  [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.
		retval = vde_open_dirlist(modname, getenv("LD_LIBRARY_PATH"), LIBVDEPLUGIN, parms);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug.c:145:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *ssh_client = getenv("SSH_CLIENT");
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug.c:195:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			char *homedir = getenv("HOME");
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:330:15:  [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.
		if ((path = realpath(dir, userpath)) == NULL)
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vde.c:153:24:  [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.
	if (*given_vde_url && realpath(given_vde_url, real_vde_url) == NULL)
data/vdeplug4-4.0.1/srcvdeplug4/dpipe.c:329:7:  [3] (buffer) getopt_long:
  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.
		c = getopt_long(argc, argv, short_options,
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug.c:297:7:  [3] (buffer) getopt_long:
  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.
		c = getopt_long(argc, argv, short_options, long_options, &option_index);
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_log.c:49:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((ssh_client = getenv("SSH_CLIENT"))!=NULL)
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug.c:76: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 path[PATH_MAX];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug.c:92: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 path[PATH_MAX];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug.c:109: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 path[PATH_MAX];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug.c:118: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 vde_args_copy[vde_args_len + 1];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug.c:151: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[bufsize];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug.c:176: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 std_vde_url[PATH_MAX];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug.c:178: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 newdescr[MAXDESCR];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug.c:209: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 *f=fopen(vde_url,"r");
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug.c:226:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char modname[modlen + 1];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_cmd.c:87:11:  [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.
	unsigned char header[2];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_cmd.c:104:12:  [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.
		unsigned char tail[taillen];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_cmd.c:132:12:  [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.
		unsigned char header[2];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:228: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 reqbuf[REQBUFLEN+1];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:285: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 userpath[PATH_MAX];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:316:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[bufsize];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:338:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[bufsize];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:376:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	newconn->expiretime = expiretimestr ? atoi(expiretimestr) : STDEXPIRETIME;
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:380:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				hashsizestr ? atoi(hashsizestr) : STDHASHSIZE,
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:381:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				hashseedstr ? atoi(hashseedstr) : 0);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_ptp.c:116: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).
			gid=atoi(group);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_ptp.c:134: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(newconn->outsock,&sockout,sizeof(struct sockaddr_un));
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_ptp.c:200: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).
			gid=atoi(group);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_ptp.c:218: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(newconn->outsock,&sockout,sizeof(struct sockaddr_un));
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_tap.c:61:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if((fddata = open("/dev/net/tun", O_RDWR)) < 0)
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_udp.c:148: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(newconn->outsock, dstresult->ai_addr, dstresult->ai_addrlen);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vde.c: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 description[MAXDESCR];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vde.c:113:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char numeric_portgroup[str_lenofint];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vde.c:117: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 real_vde_url[PATH_MAX];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vde.c:247: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).
			gid=atoi(group);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxlan.c:56:11:  [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.
	unsigned char dest[ETH_ALEN];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxlan.c:57:11:  [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.
	unsigned char src[ETH_ALEN];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxlan.c:58:11:  [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.
	unsigned char proto[2];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxlan.c:63:11:  [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.
	unsigned char priv1[3];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxlan.c:64:11:  [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.
	unsigned char id[3];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxlan.c:65:11:  [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.
	unsigned char priv2[1];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxlan.c:169: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).
	ttl = atoi(ttlstr);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxlan.c:210:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
											 memcpy(&bindaddr.sin6_addr, &in6addr_any, sizeof(in6addr_any));
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxlan.c:219:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
											 memcpy(&mc_req.ipv6mr_multiaddr, &addr->sin6_addr,
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxlan.c:297: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).
		hashsize = atoi(hashsizestr);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxlan.c:309:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	newconn->vni=atoi(vnistr);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxlan.c:311:25:  [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).
		newconn->expiretime = atoi(expiretimestr);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxlan.c:316: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(&(newconn->multiaddr.vx), multiaddr, fam2socklen(multiaddr));
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxvde.c:68:11:  [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.
	unsigned char dest[ETH_ALEN];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxvde.c:69:11:  [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.
	unsigned char src[ETH_ALEN];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxvde.c:70:11:  [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.
	unsigned char proto[2];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxvde.c:75:11:  [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.
	unsigned char priv1[3];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxvde.c:76:11:  [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.
	unsigned char id[3];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxvde.c:77:11:  [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.
	unsigned char priv2[1];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxvde.c:205: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 saddr[INET6_ADDRSTRLEN];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxvde.c:230: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(addr, result->ai_addr, result->ai_addrlen);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxvde.c:291: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).
	ttl = atoi(ttlstr);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxvde.c:348:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
											 memcpy(&mc_req.ipv6mr_multiaddr, &addr->sin6_addr,
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxvde.c:476: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).
		hashsize = atoi(hashsizestr);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxvde.c:494:25:  [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).
		newconn->expiretime = atoi(expiretimestr);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxvde.c:499: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(&(newconn->multiaddr.vx), multiaddr, fam2socklen(multiaddr));
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxvde.c:500: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(&(newconn->localaddr.vx), multiaddr, fam2socklen(multiaddr));
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxvde.c:525:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char cmsg[CMSG_SPACE(sizeof(struct in6_pktinfo)+sizeof(struct in_pktinfo))];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vxvde.c:567:17:  [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(&vde_conn->localaddr, sender6, sizeof(struct sockaddr_in6));
data/vdeplug4-4.0.1/libvdeplug4/libvdestream.c:40: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 fragment[MAXPACKET];
data/vdeplug4-4.0.1/libvdeplug4/libvdestream.c:67:12:  [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.
		unsigned char header[2];
data/vdeplug4-4.0.1/libvdeplug4/libvdestream.c:83: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(vdestream->fragp,buf,amount);
data/vdeplug4-4.0.1/libvdeplug4/libvdestream.c:111: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(vdestream->fragp,buf,len);
data/vdeplug4-4.0.1/libvdeplug4/parseparms.c:71: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).
			return atoi(name);
data/vdeplug4-4.0.1/libvdeplug4/parseparms.c:76:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[buflen];
data/vdeplug4-4.0.1/libvdeplug4/parseparms.c:97: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 nextstate[TSIZE - 1][TSIZE] = {
data/vdeplug4-4.0.1/libvdeplug4/parseparms.c:107: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 action[TSIZE - 2][TSIZE] = {
data/vdeplug4-4.0.1/libvdeplug4/vde_hashtable.c:82: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(&(entry->payload),payload,table->payload_size);
data/vdeplug4-4.0.1/libvdeplug4/vde_hashtable.c:130:12:  [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.
		unsigned char mac[7];
data/vdeplug4-4.0.1/libvdeplug4_static/libvdeplug.c:76: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 seqpacketurl[SEQPACKET_HEAD_LEN + ENOUGH(int) + 1] = SEQPACKET_HEAD;
data/vdeplug4-4.0.1/libvdeplug4_static/libvdeplug.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 port_str[ENOUGH(int) + 1];
data/vdeplug4-4.0.1/libvdeplug4_static/libvdeplug.c:78: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 mode_str[ENOUGH_OCTAL(mode_t) + 2];
data/vdeplug4-4.0.1/libvdeplug4_static/libvdeplug.c:79: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[VDE_MAX_ARGC] = {"vde_plug", "--descr", description, seqpacketurl, vde_url, NULL};
data/vdeplug4-4.0.1/libvdeplug4_static/libvdeplug.c:83:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char childstack[CHILDSTACKSIZE];
data/vdeplug4-4.0.1/srcvdeplug4/dpipe.c:130: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 numstr[10];
data/vdeplug4-4.0.1/srcvdeplug4/dpipe.c:131:18:  [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).
	alternate_stdin=open("/dev/null",O_RDONLY);
data/vdeplug4-4.0.1/srcvdeplug4/dpipe.c:132:19:  [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).
	alternate_stdout=open("/dev/null",O_RDONLY);
data/vdeplug4-4.0.1/srcvdeplug4/openclosepidfile.c:28: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 *f = fopen(pidfile,"w");
data/vdeplug4-4.0.1/srcvdeplug4/openclosepidfile.c:41: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 *f = fopen(pidfile,"w");
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug.c:118:10:  [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.
unsigned char bufin[VDE_ETHBUFSIZE];
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug.c:313:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				open_args.port = atoi(optarg);
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug.c:319: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).
				open_args2.port = atoi(optarg);
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_iplog.c:31:11:  [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.
	unsigned char dest[ETH_ALEN];
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_iplog.c:32:11:  [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.
	unsigned char src[ETH_ALEN];
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_iplog.c:33:11:  [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.
	unsigned char proto[2];
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_iplog.c:39:12:  [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.
		unsigned char filler[11];
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_iplog.c:40:12:  [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.
		unsigned char ip4src[4];
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_iplog.c:41:12:  [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.
		unsigned char ip4dst[4];
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_iplog.c:45:12:  [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.
		unsigned char filler[7];
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_iplog.c:46:12:  [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.
		unsigned char ip6src[16];
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_iplog.c:47:12:  [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.
		unsigned char ip6dst[16];
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_iplog.c:50:12:  [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.
		unsigned char priovlan[2];
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_iplog.c:78: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(new->addr, addr, len);
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_iplog.c:102: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 straddr[256];
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_iplog.c:110: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 straddr[256];
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_log.c:33:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char sshremotehost[256];
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_log.c:57: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(sshremotehost,ssh_client,ip_length);
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_log.c:61: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(sshremotehost,"UNKNOWN_IP_ADDRESS");
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug_log.h:4: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.
extern char sshremotehost[256];
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug.c:117:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t vde_args_len = strlen(parms->vde_args);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug.c:212: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).
						std_vde_url[strlen(std_vde_url) - 1] = 0;
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_cmd.c:91:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((rv = read(vde_conn->cmd_fd[0], header, 2)) != 2)
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_cmd.c:99:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((rv = read(vde_conn->cmd_fd[0], buf, pktlen)) != pktlen)
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:231:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(conn_fd, reqbuf, REQBUFLEN);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_netnode.c:458:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				len = read(fd, buf, len);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_tap.c:65: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, given_vde_url, sizeof(ifr.ifr_name) - 1);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_tap.c:87:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(vde_conn->fddata,buf,len);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vde.c:210:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(req.description, descr, MAXDESCR);
data/vdeplug4-4.0.1/libvdeplug4/libvdeplug_vde.c:275: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).
	if (send(fdctl, &req, sizeof(req) - MAXDESCR + strlen(req.description), 0) < 0) 
data/vdeplug4-4.0.1/libvdeplug4/parseparms.c:208:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			int taglen=eq ? eq-elem : strlen(elem);
data/vdeplug4-4.0.1/libvdeplug4/parseparms.c:237:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			int taglen=eq ? eq-elem : strlen(elem);
data/vdeplug4-4.0.1/libvdeplug4/vde_hashtable.c:132:3:  [1] (buffer) scanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		scanf("%6s %u",mac,&port);
data/vdeplug4-4.0.1/libvdeplug4_static/libvdeplug.c:147:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rv = read(fds[0], &err, sizeof(err));
data/vdeplug4-4.0.1/srcvdeplug4/vde_plug.c:136:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			nx = read(STDIN_FILENO,bufin,sizeof(bufin));

ANALYSIS SUMMARY:

Hits = 150
Lines analyzed = 5490 in approximately 0.18 seconds (31057 lines/second)
Physical Source Lines of Code (SLOC) = 4280
Hits@level = [0]  77 [1]  15 [2]  98 [3]   9 [4]  13 [5]  15
Hits@level+ = [0+] 227 [1+] 150 [2+] 135 [3+]  37 [4+]  28 [5+]  15
Hits/KSLOC@level+ = [0+] 53.0374 [1+] 35.0467 [2+] 31.5421 [3+] 8.64486 [4+] 6.54206 [5+] 3.50467
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.