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/uml-utilities-20070815.4/jail/jail_uml.c
Examining data/uml-utilities-20070815.4/jailtest/jailtest.c
Examining data/uml-utilities-20070815.4/lib/rights.c
Examining data/uml-utilities-20070815.4/mconsole/uml_mconsole.c
Examining data/uml-utilities-20070815.4/moo/cow.c
Examining data/uml-utilities-20070815.4/moo/cow.h
Examining data/uml-utilities-20070815.4/moo/cow_sys.h
Examining data/uml-utilities-20070815.4/moo/uml_mkcow.c
Examining data/uml-utilities-20070815.4/moo/uml_moo.c
Examining data/uml-utilities-20070815.4/port-helper/port-helper.c
Examining data/uml-utilities-20070815.4/tunctl/tunctl.c
Examining data/uml-utilities-20070815.4/uml_net/ethertap.c
Examining data/uml-utilities-20070815.4/uml_net/host.c
Examining data/uml-utilities-20070815.4/uml_net/host.h
Examining data/uml-utilities-20070815.4/uml_net/output.c
Examining data/uml-utilities-20070815.4/uml_net/output.h
Examining data/uml-utilities-20070815.4/uml_net/slip.c
Examining data/uml-utilities-20070815.4/uml_net/tuntap.c
Examining data/uml-utilities-20070815.4/uml_net/uml_net.c
Examining data/uml-utilities-20070815.4/uml_switch/hash.c
Examining data/uml-utilities-20070815.4/uml_switch/hash.h
Examining data/uml-utilities-20070815.4/uml_switch/port.c
Examining data/uml-utilities-20070815.4/uml_switch/port.h
Examining data/uml-utilities-20070815.4/uml_switch/switch.h
Examining data/uml-utilities-20070815.4/uml_switch/tuntap.c
Examining data/uml-utilities-20070815.4/uml_switch/tuntap.h
Examining data/uml-utilities-20070815.4/uml_switch/uml_switch.c
Examining data/uml-utilities-20070815.4/umlfs/uml_mount.c
Examining data/uml-utilities-20070815.4/watchdog/uml_watchdog.c

FINAL RESULTS:

data/uml-utilities-20070815.4/jail/jail_uml.c:77:3:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  execv(argv[0], argv);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:164:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(to, slash);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:172: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(to, save_cwd);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:174:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(to, from);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:231:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(ptr, "%s,", cow_file);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:234: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(ptr, backing_file);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:262:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(*output, reply.data);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:514:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(command, argv[i]);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:561:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(prompt, "(%s) ", uml_name);
data/uml-utilities-20070815.4/moo/cow.c:170:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(to, slash);
data/uml-utilities-20070815.4/moo/cow.c:178: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(to, save_cwd);
data/uml-utilities-20070815.4/moo/cow.c:180:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(to, from);
data/uml-utilities-20070815.4/moo/cow_sys.h:23:20:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define cow_printf printf
data/uml-utilities-20070815.4/moo/uml_moo.c:216: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(stderr, usage_string, prog, prog, prog, prog);
data/uml-utilities-20070815.4/uml_net/host.c:39: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(args[0], args);
data/uml-utilities-20070815.4/uml_net/host.c:58:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "'%s' didn't exit with status 0\n", args[0]);
data/uml-utilities-20070815.4/uml_net/host.c:95:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(out, "Didn't parse /proc/net/route, got %d\n on '%s'", n, buf);
data/uml-utilities-20070815.4/umlfs/uml_mount.c:31:2:  [4] (shell) execlp:
  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.
	execlp("uml_mconsole", "uml_mconsole", umid, "umlfs",  fd_arg, NULL);
data/uml-utilities-20070815.4/watchdog/uml_watchdog.c:36: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(target.sun_path, sock_name);
data/uml-utilities-20070815.4/jail/jail_uml.c:63:6:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
  if(chroot(".")){
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:90:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if((home = getenv("HOME")) != NULL){
data/uml-utilities-20070815.4/tunctl/tunctl.c:44:16:  [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((opt = getopt(argc, argv, "bd:f:t:u:g:")) > 0){
data/uml-utilities-20070815.4/jailtest/jailtest.c:32: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("/etc/passwd", O_RDONLY)) < 0){
data/uml-utilities-20070815.4/jailtest/jailtest.c:42:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open("/dev/mem", O_WRONLY);
data/uml-utilities-20070815.4/jailtest/jailtest.c:49:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open("/dev/kmem", O_WRONLY);
data/uml-utilities-20070815.4/lib/rights.c:16: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 anc[CMSG_SPACE(sizeof(fd))];
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:42: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 uml_name[11];
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:49: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 pid_path[MAXPATHLEN + 1];
data/uml-utilities-20070815.4/mconsole/uml_mconsole.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 pid[sizeof("12345\0")], *end;
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:67: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(pid_path, "r");
data/uml-utilities-20070815.4/mconsole/uml_mconsole.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 file[MAXPATHLEN + 1], dir[MAXPATHLEN + 1], tmp[MAXPATHLEN + 1];
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:124: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[MCONSOLE_MAX_DATA];
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:131: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[MCONSOLE_MAX_DATA];
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:136: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 save_cwd[MAXPATHLEN + 1], *slash;
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:183: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 full_backing[MAXPATHLEN + 1], full_cow[MAXPATHLEN + 1];
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:298: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[128], *output = NULL;
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:352: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 *ptr, buf[sizeof(((struct mconsole_request *) NULL)->data)];
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:362:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    input_fd = open(ptr, O_RDONLY);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:367: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(buf, "log ");
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:383: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, "log %.*s", chunk, ptr);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:392: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, "log \n");
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:538: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(uml_name, "[None]");
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:549: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(&here.sun_path[1], "%5d", getpid());
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:559: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 *command, prompt[1 + sizeof(uml_name) + 2 + 1];
data/uml-utilities-20070815.4/moo/cow.c:22: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 backing_file[PATH_LEN_V1];
data/uml-utilities-20070815.4/moo/cow.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 backing_file[PATH_LEN_V2];
data/uml-utilities-20070815.4/moo/cow.c:87: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 backing_file[PATH_LEN_V3];
data/uml-utilities-20070815.4/moo/cow.c:99: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 backing_file[PATH_LEN_V3];
data/uml-utilities-20070815.4/moo/cow.c:141: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 save_cwd[256], *slash;
data/uml-utilities-20070815.4/moo/cow_sys.h:51: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(file, O_RDONLY)) < 0){
data/uml-utilities-20070815.4/moo/uml_mkcow.c:57: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(cow_file, flags, mode)) == -1) {
data/uml-utilities-20070815.4/moo/uml_moo.c:62: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((cow_fd = open(in,  O_RDONLY)) < 0){
data/uml-utilities-20070815.4/moo/uml_moo.c:97:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if((back_fd = open(backing_file, perms)) < 0){
data/uml-utilities-20070815.4/port-helper/port-helper.c:40: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(&sock.sun_path[1], "%5d", getpid());
data/uml-utilities-20070815.4/tunctl/tunctl.c:98:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((tap_fd = open(file, O_RDWR)) < 0){
data/uml-utilities-20070815.4/uml_net/ethertap.c:45: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 unit_buf[sizeof("unit=nnn\0")];
data/uml-utilities-20070815.4/uml_net/ethertap.c:46: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 ethertap_buf[sizeof("ethertapnnn\0")];
data/uml-utilities-20070815.4/uml_net/ethertap.c:50: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[256];
data/uml-utilities-20070815.4/uml_net/ethertap.c:87: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 dev_file[sizeof("/dev/tapxxxx\0")], buf[256], c;
data/uml-utilities-20070815.4/uml_net/ethertap.c:124:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((tap = open(dev_file, O_RDWR | O_NONBLOCK)) < 0){
data/uml-utilities-20070815.4/uml_net/ethertap.c:138: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[BUF_SIZE];
data/uml-utilities-20070815.4/uml_net/ethertap.c:181: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 addr[4];
data/uml-utilities-20070815.4/uml_net/ethertap.c:204: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 addr[4];
data/uml-utilities-20070815.4/uml_net/ethertap.c:205: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 netmask[4];
data/uml-utilities-20070815.4/uml_net/ethertap.c:229: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).
  int fd = atoi(argv[1]);
data/uml-utilities-20070815.4/uml_net/ethertap.c:243: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).
  int data_fd = atoi(argv[1]);
data/uml-utilities-20070815.4/uml_net/ethertap.c:244: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).
  int control_fd = atoi(argv[2]);
data/uml-utilities-20070815.4/uml_net/ethertap.c:254: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).
  int data_fd = atoi(argv[1]);
data/uml-utilities-20070815.4/uml_net/ethertap.c:271: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).
  data_fd = atoi(argv[1]);
data/uml-utilities-20070815.4/uml_net/host.c:20: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[256], **arg;
data/uml-utilities-20070815.4/uml_net/host.c:72: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[1024], iface[32], out[1024];
data/uml-utilities-20070815.4/uml_net/host.c:85:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((fp = fopen("/proc/net/route", "r")) == NULL){
data/uml-utilities-20070815.4/uml_net/host.c:119: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 echo[sizeof("echo 1 > /proc/sys/net/ipv4/conf/XXXXXXXXX/proxy_arp")];
data/uml-utilities-20070815.4/uml_net/host.c:141: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 echo[sizeof("echo 0 > /proc/sys/net/ipv4/conf/XXXXXXXXX/proxy_arp")];
data/uml-utilities-20070815.4/uml_net/host.c:170: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 addr[sizeof("255.255.255.255\0")];
data/uml-utilities-20070815.4/uml_net/host.c:171: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 netmask[sizeof("255.255.255.255\0")], *n = NULL;
data/uml-utilities-20070815.4/uml_net/slip.c:18: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 slip_name[sizeof("slxxxx\0")];
data/uml-utilities-20070815.4/uml_net/slip.c:77: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).
    slip_up(atoi(argv[1]), argv[2], argv[3], NULL, NULL);
data/uml-utilities-20070815.4/uml_net/slip.c:79: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).
    slip_name(atoi(argv[1]), dev, NULL);
data/uml-utilities-20070815.4/uml_net/slip.c:99: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).
    slip_up(atoi(argv[1]), argv[2], argv[3], NULL, &output);
data/uml-utilities-20070815.4/uml_net/slip.c:101: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).
    slip_name(atoi(argv[1]), dev, &output);
data/uml-utilities-20070815.4/uml_net/slip.c:114: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 *op, dev[sizeof("slnnnnn\0")];
data/uml-utilities-20070815.4/uml_net/tuntap.c:42:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((tap_fd = open("/dev/net/tun", O_RDWR)) < 0){
data/uml-utilities-20070815.4/uml_net/tuntap.c:68: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 anc[CMSG_SPACE(sizeof(tap_fd))];
data/uml-utilities-20070815.4/uml_net/tuntap.c:121:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if(!strcmp(op, "up")) tuntap_up(atoi(argv[2]), argc - 3, argv + 3);
data/uml-utilities-20070815.4/uml_switch/hash.c:26: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 dst[ETH_ALEN];
data/uml-utilities-20070815.4/uml_switch/hash.c:68: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->dst, src, ETH_ALEN );
data/uml-utilities-20070815.4/uml_switch/port.c:13:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/uml-utilities-20070815.4/uml_switch/port.c:14:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/uml-utilities-20070815.4/uml_switch/port.c:15:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/uml-utilities-20070815.4/uml_switch/port.c:17: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 data[1500];
data/uml-utilities-20070815.4/uml_switch/port.c:26: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 src[ETH_ALEN];
data/uml-utilities-20070815.4/uml_switch/tuntap.c:26: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/uml-utilities-20070815.4/uml_switch/uml_switch.c:36:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 addr[ETH_ALEN];
data/uml-utilities-20070815.4/uml_switch/uml_switch.c:49:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 addr[ETH_ALEN];
data/uml-utilities-20070815.4/uml_switch/uml_switch.c:63: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[ETH_ALEN];
data/uml-utilities-20070815.4/uml_switch/uml_switch.c:355: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(sun->sun_path, &name, sizeof(name));
data/uml-utilities-20070815.4/uml_switch/uml_switch.c:522: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[128];
data/uml-utilities-20070815.4/umlfs/uml_mount.c:19: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 *umid, fd_arg[sizeof("1234567890\0")];
data/uml-utilities-20070815.4/watchdog/uml_watchdog.c:18: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[MCONSOLE_MAX_DATA];
data/uml-utilities-20070815.4/jailtest/jailtest.c:36:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  n = read(fd, (char *) KERNEL_ADDRESS, sizeof(*KERNEL_ADDRESS));
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:60:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(sun.sun_path, file, sizeof(sun.sun_path));
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:61:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(uml_name, name, sizeof(uml_name));
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:93:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(strncmp(name, dir, strlen(dir))){
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:101: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(name, "/tmp/uml/", strlen("/tmp/uml/"))){
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:158: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).
    remaining = size - strlen(to);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:159: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(slash) + 1 > remaining){
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:167: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(save_cwd) + 1 + strlen(from) + 1 > size){
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:167: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(strlen(save_cwd) + 1 + strlen(from) + 1 > size){
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:173:5:  [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(to, "/");
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:182:35:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  char *cow_file, *backing_file, *equal, *new, *ptr = *cmd_ptr;
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:186:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strncmp(ptr, "config", strlen("config"))) return(0);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:187: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).
  ptr += strlen("config");
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:192:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strncmp(ptr, "ubd", strlen("ubd"))) return(0);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:218: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).
  len += strlen("=") + strlen(backing_file) + 1;
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:218: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).
  len += strlen("=") + strlen(backing_file) + 1;
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:220:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len += strlen(",") + strlen(cow_file);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:220:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len += strlen(",") + strlen(cow_file);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:226:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(new, *cmd_ptr, equal - *cmd_ptr);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:232:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ptr += strlen(ptr);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:254: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).
		*output = realloc(*output, len + strlen(reply.data) + 1);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:263: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).
		len += strlen(reply.data);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:275: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).
		  .len		= MIN(strlen(command), 
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:277:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(request->data, command, request->len);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:342:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ptr = &command[strlen("switch")];
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:354:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ptr = &command[strlen("log")];
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:359:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(!strncmp(ptr, "-f", strlen("-f"))){
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:360: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).
    ptr = &ptr[strlen("-f")];
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:368: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).
    ptr = buf + strlen(buf);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:369:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while((len = read(input_fd, ptr, max)) > 0){
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:380:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(ptr);
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:408:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	fd_ptr += strlen("umlfs");
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:481:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ptr = &command[strlen(command) - 1];
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:486:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       !strncmp(cmds[i].command, command, strlen(cmds[i].command))){
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:504:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len += strlen(argv[i]) + 1;  /* space for space */
data/uml-utilities-20070815.4/mconsole/uml_mconsole.c:515:27:  [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.
    if(argv[i+1] != NULL) strcat(command, " ");
data/uml-utilities-20070815.4/moo/cow.c:164: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).
		remaining = size - strlen(to);
data/uml-utilities-20070815.4/moo/cow.c:165: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).
		if(strlen(slash) + 1 > remaining){
data/uml-utilities-20070815.4/moo/cow.c:173: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).
		if(strlen(save_cwd) + 1 + strlen(from) + 1 > size){
data/uml-utilities-20070815.4/moo/cow.c:173:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(strlen(save_cwd) + 1 + strlen(from) + 1 > size){
data/uml-utilities-20070815.4/moo/cow.c:179: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(to, "/");
data/uml-utilities-20070815.4/moo/cow.c:209:5:  [1] (buffer) strlen:
  Does not handle 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(backing_file) > sizeof(header->backing_file) - 1){
data/uml-utilities-20070815.4/tunctl/tunctl.c:107:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(ifr.ifr_name, tun, sizeof(ifr.ifr_name) - 1);
data/uml-utilities-20070815.4/uml_net/ethertap.c:56:3:  [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, sizeof(ifr.ifr_name) - 1);
data/uml-utilities-20070815.4/uml_net/ethertap.c:152:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      n = read(tap, buf, sizeof(buf));
data/uml-utilities-20070815.4/uml_net/ethertap.c:189:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  n = read(fd, &change, sizeof(change));
data/uml-utilities-20070815.4/uml_net/ethertap.c:213:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  n = read(fd, &change, sizeof(change));
data/uml-utilities-20070815.4/uml_net/host.c:50:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while((n = read(fds[0], buf, sizeof(buf))) > 0) add_output(output, buf, n);
data/uml-utilities-20070815.4/uml_net/host.c:93:9:  [1] (buffer) sscanf:
  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.
    n = sscanf(buf, "%32s %lx %*x %*x %*x %*x %*x", iface, &if_addr);
data/uml-utilities-20070815.4/uml_net/host.c:110:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for(i = 0; i < strlen(dev); i++){
data/uml-utilities-20070815.4/uml_net/output.c:35: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).
  if(len == -1) len = strlen(new);
data/uml-utilities-20070815.4/uml_net/output.c:56:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(&output->buffer[start], new, len);
data/uml-utilities-20070815.4/uml_net/tuntap.c:34:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask(0);
data/uml-utilities-20070815.4/uml_switch/port.c:143:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  len = read(fd, &packet, sizeof(packet));
data/uml-utilities-20070815.4/uml_switch/port.c:238:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  n = read(port->control, &c, sizeof(c));
data/uml-utilities-20070815.4/uml_switch/tuntap.c:32:3:  [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, sizeof(ifr.ifr_name) - 1);
data/uml-utilities-20070815.4/uml_switch/uml_switch.c:192:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  len = read(fd, &req, sizeof(req));
data/uml-utilities-20070815.4/uml_switch/uml_switch.c:265:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(sun.sun_path, name, sizeof(sun.sun_path));
data/uml-utilities-20070815.4/uml_switch/uml_switch.c:538:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(0, buf, sizeof(buf));
data/uml-utilities-20070815.4/watchdog/uml_watchdog.c:89:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    n = read(0, &c, sizeof(c));

ANALYSIS SUMMARY:

Hits = 160
Lines analyzed = 4217 in approximately 0.15 seconds (28540 lines/second)
Physical Source Lines of Code (SLOC) = 3387
Hits@level = [0] 146 [1]  60 [2]  78 [3]   3 [4]  19 [5]   0
Hits@level+ = [0+] 306 [1+] 160 [2+] 100 [3+]  22 [4+]  19 [5+]   0
Hits/KSLOC@level+ = [0+] 90.3454 [1+] 47.2394 [2+] 29.5247 [3+] 6.49542 [4+] 5.60968 [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.