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/net-tools-1.60+git20181103.0eebece/arp.c
Examining data/net-tools-1.60+git20181103.0eebece/hostname.c
Examining data/net-tools-1.60+git20181103.0eebece/include/interface.h
Examining data/net-tools-1.60+git20181103.0eebece/include/ipx.h
Examining data/net-tools-1.60+git20181103.0eebece/include/sockets.h
Examining data/net-tools-1.60+git20181103.0eebece/include/util-ank.h
Examining data/net-tools-1.60+git20181103.0eebece/intl.h
Examining data/net-tools-1.60+git20181103.0eebece/ipmaddr.c
Examining data/net-tools-1.60+git20181103.0eebece/iptunnel.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/activate.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/af.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/arcnet.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/ash.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/ax25.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/ax25_gr.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/ddp.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/ec_hw.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/econet.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/ether.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/eui64.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/fddi.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/frame.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/getargs.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/getroute.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/hdlclapb.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/hippi.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/hw.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/ib.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/inet.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/inet6.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/inet6_sr.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/inet_sr.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/interface.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/ipx.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/ipx_gr.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/ipx_sr.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/irda.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/loopback.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/masq_info.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/net-features.h
Examining data/net-tools-1.60+git20181103.0eebece/lib/net-support.h
Examining data/net-tools-1.60+git20181103.0eebece/lib/netrom.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/netrom_gr.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/netrom_sr.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/nstrcmp.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/pathnames.h
Examining data/net-tools-1.60+git20181103.0eebece/lib/ppp.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/ppp_ac.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/proc.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/proc.h
Examining data/net-tools-1.60+git20181103.0eebece/lib/rose.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/rose_gr.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/setroute.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/sit.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/slip.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/slip_ac.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/sockets.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/strip.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/tr.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/tunnel.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/unix.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/util-ank.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/util.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/util.h
Examining data/net-tools-1.60+git20181103.0eebece/lib/x25.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/x25_gr.c
Examining data/net-tools-1.60+git20181103.0eebece/lib/x25_sr.c
Examining data/net-tools-1.60+git20181103.0eebece/nameif.c
Examining data/net-tools-1.60+git20181103.0eebece/plipconfig.c
Examining data/net-tools-1.60+git20181103.0eebece/rarp.c
Examining data/net-tools-1.60+git20181103.0eebece/route.c
Examining data/net-tools-1.60+git20181103.0eebece/slattach.c
Examining data/net-tools-1.60+git20181103.0eebece/statistics.c
Examining data/net-tools-1.60+git20181103.0eebece/debian/config.h
Examining data/net-tools-1.60+git20181103.0eebece/netstat.c
Examining data/net-tools-1.60+git20181103.0eebece/ifconfig.c
Examining data/net-tools-1.60+git20181103.0eebece/mii-tool.c

FINAL RESULTS:

data/net-tools-1.60+git20181103.0eebece/netstat.c:444:17:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	    lnamelen = readlink(line, lname, sizeof(lname) - 1);
data/net-tools-1.60+git20181103.0eebece/arp.c:564:12:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	    num = sscanf(line, "%s 0x%x 0x%x %99s %99s %99s\n",
data/net-tools-1.60+git20181103.0eebece/arp.c:573:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		num = sscanf(line, "%s 0x%x 0x%x %99s %99s\n",
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:148:3:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		sscanf(buf, "%d%s%d%d%s", &m.index, m.name, &m.users, &st,
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:187:4:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			sscanf(buf, "%d%s", &m.index, m.name);
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:218:3:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		sscanf(buf, "%d%s%s%d", &m.index, m.name, hexa, &m.users);
data/net-tools-1.60+git20181103.0eebece/iptunnel.c:488:20:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		    (*ptr++ = 0, sscanf(buf, "%s", name) != 1)) {
data/net-tools-1.60+git20181103.0eebece/lib/af.c:307:6:  [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(afname, paft->name);
data/net-tools-1.60+git20181103.0eebece/lib/af.c:334:24:  [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.
	if ((count % 3) == 0) fprintf(stderr,count?"\n    ":"    ");
data/net-tools-1.60+git20181103.0eebece/lib/hw.c:288:24:  [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.
	if ((count % 3) == 0) fprintf(stderr,count?"\n    ":"    ");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:93:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	num = sscanf(buff, fmt,
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:323:12:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  	  num = sscanf(buff, fmt,
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:331:12:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  	  num = sscanf(buff, fmt,
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:767:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(addr6, "%s:%s:%s:%s:%s:%s:%s:%s",
data/net-tools-1.60+git20181103.0eebece/lib/ipx_gr.c:70:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	num = sscanf(buff, "%s %s %s", net, router_net, router_node);
data/net-tools-1.60+git20181103.0eebece/lib/masq_info.c:108:15:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	    if ((n = fscanf(f, " %s %"PRIx32":%hX %"PRIx32":%hX %hX %lX %hd %hd %lu",
data/net-tools-1.60+git20181103.0eebece/lib/masq_info.c:118:15:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	    if ((n = fscanf(f, " %s %"PRIx32":%hX %"PRIx32":%hX %hX %lX %hd %lu",
data/net-tools-1.60+git20181103.0eebece/lib/net-support.h:158:29:  [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.
#define EINTERN(file, text) fprintf(stderr, \
data/net-tools-1.60+git20181103.0eebece/lib/net-support.h:161:22:  [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.
#define ENOSUPP(A,B)	fprintf(stderr,\
data/net-tools-1.60+git20181103.0eebece/lib/proc.c:36:6:  [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(format, va_arg(ap, char *));
data/net-tools-1.60+git20181103.0eebece/lib/sockets.c:31:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access("/proc/net", R_OK))
data/net-tools-1.60+git20181103.0eebece/lib/sockets.c:47:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    if (access(af->flag_file, R_OK))
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:225:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(buf, media[i].name);
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:295:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "%s: ", ifr.ifr_name);
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:299: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(buf, (lkpar & LPA_LPACK) ?
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:301: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(buf, media_list(advert & lkpar, bmcr2 & lpa2>>2, 1));
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:310:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf+strlen(buf), "%s Mbit, %s duplex, ",
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:316:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(buf, (bmsr & BMSR_LSTATUS) ? "link ok" : "no link");
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:394:2:  [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.
	printf((bmsr & BMSR_LSTATUS) ? "link ok" : "no link");
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:531: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, argv[0]);
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:550: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, argv[0]);
data/net-tools-1.60+git20181103.0eebece/nameif.c:50:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(stderr,fmt,ap);
data/net-tools-1.60+git20181103.0eebece/nameif.c:64:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(stderr,fmt,ap);
data/net-tools-1.60+git20181103.0eebece/netstat.c:422:14:  [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.
	procfdlen = snprintf(line,sizeof(line),PATH_PROC_X_FD,direproc->d_name);
data/net-tools-1.60+git20181103.0eebece/netstat.c:542:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	ret = sscanf(buffer + 30, "%s %*x/%*x %*x/%*x %d %d %d %*d %*d/%*d %*d/%*d %*d/%*d %*d/%*d %*d/%*d %*d %d %d %*d",
data/net-tools-1.60+git20181103.0eebece/netstat.c:594:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	ret = sscanf(buffer, "%s %s %s %s %s %d %d %d",
data/net-tools-1.60+git20181103.0eebece/netstat.c:800:16:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
               sscanf(buffer+22,"%s %d %d %d %d %*d %*d %*d %*d %*d %*d %d %d %*d",
data/net-tools-1.60+git20181103.0eebece/netstat.c:921:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer, "%s:%s", local_addr, local_port);
data/net-tools-1.60+git20181103.0eebece/netstat.c:1034:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buffer, "%s:%s", local_addr, local_port);
data/net-tools-1.60+git20181103.0eebece/netstat.c:1036:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buffer, "%s", local_addr);
data/net-tools-1.60+git20181103.0eebece/netstat.c:1043:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buffer, "%s:%s", remote_addr, remote_port);
data/net-tools-1.60+git20181103.0eebece/netstat.c:1045:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buffer, "%s", remote_addr);
data/net-tools-1.60+git20181103.0eebece/netstat.c:1457:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    num = sscanf(line, "%p: %lX %lX %lX %X %X %lu %s",
data/net-tools-1.60+git20181103.0eebece/netstat.c:1641:12:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	    ret = sscanf(buffer + 20, "%s %d %d %d %*d %*d/%*d %*d/%*d %*d/%*d %*d/%*d %*d/%*d %*d %*d %*d %d %d %*d",
data/net-tools-1.60+git20181103.0eebece/netstat.c:1747:2:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	sscanf(buf, "%s %s %lX %lX %u %u",
data/net-tools-1.60+git20181103.0eebece/slattach.c:173:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(saved_path, "%s/LCK..%s", _PATH_LOCKD, path);
data/net-tools-1.60+git20181103.0eebece/slattach.c:471:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(pathbuf, "/dev/%s", name);
data/net-tools-1.60+git20181103.0eebece/slattach.c:763:8:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		exit(system(extcmd));
data/net-tools-1.60+git20181103.0eebece/statistics.c:368: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(buf, sizeof(buf), _(ent->out), val);
data/net-tools-1.60+git20181103.0eebece/statistics.c:372: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(buf, sizeof(buf), _(ent->out), val == 2 ? _("enabled") : _("disabled"));
data/net-tools-1.60+git20181103.0eebece/statistics.c:377:6:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	    snprintf(buf, sizeof(buf), _(ent->out), val);
data/net-tools-1.60+git20181103.0eebece/statistics.c:489:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
          sscanf(buf1, "%s %llu", buf2, &val);
data/net-tools-1.60+git20181103.0eebece/arp.c:696:17:  [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.
    while ((i = getopt_long(argc, argv, "A:H:adfp:nsei:t:vh?DNV", longopts, &lop)) != EOF)
data/net-tools-1.60+git20181103.0eebece/hostname.c:340:17:  [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.
    while ((c = getopt_long(argc, argv, "adfF:h?isVvyn", long_options, &option_index)) != EOF)
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:510:17:  [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.
    while ((c = getopt_long(argc, argv, "A:F:p:lrRvVw?", longopts, 0)) != EOF)
data/net-tools-1.60+git20181103.0eebece/nameif.c:213:11:  [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.
		int c = getopt_long(ac,av,"c:sh",lopt,NULL);
data/net-tools-1.60+git20181103.0eebece/netstat.c:2059:17:  [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.
    while ((i = getopt_long(argc, argv, "A:CFMacdeghilnNoprsStuUvVWw2fx64?Z", longopts, &lop)) != EOF)
data/net-tools-1.60+git20181103.0eebece/rarp.c:224:6:  [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, "-ht:aHdsVvf", longopts, NULL);
data/net-tools-1.60+git20181103.0eebece/route.c:145:17:  [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.
    while ((i = getopt_long(argc, argv, "A:eCFhnN64Vv?", longopts, &lop)) != EOF)
data/net-tools-1.60+git20181103.0eebece/slattach.c:622:15:  [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.
  while ((s = getopt_long(argc, argv, "c:ehlLmnp:qs:vdVk:o:", longopts, NULL)) != EOF) switch(s) {
data/net-tools-1.60+git20181103.0eebece/arp.c:95: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 device[16] = "";		/* current device               */
data/net-tools-1.60+git20181103.0eebece/arp.c:101: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 host[128];
data/net-tools-1.60+git20181103.0eebece/arp.c:121:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *) &req.arp_pa, (char *) sa, sizeof(struct sockaddr));
data/net-tools-1.60+git20181103.0eebece/arp.c:185:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *) &req.arp_netmask, (char *) sa,
data/net-tools-1.60+git20181103.0eebece/arp.c:254:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *) sa, (char *) &(ifr.ifr_hwaddr), sizeof(struct sockaddr));
data/net-tools-1.60+git20181103.0eebece/arp.c:268: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 host[128];
data/net-tools-1.60+git20181103.0eebece/arp.c:287:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *) &req.arp_pa, (char *) sa, sizeof(struct sockaddr));
data/net-tools-1.60+git20181103.0eebece/arp.c:302:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&req.arp_ha, sa, sizeof(*sa));
data/net-tools-1.60+git20181103.0eebece/arp.c:362:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *) &req.arp_netmask, (char *) sa,
data/net-tools-1.60+git20181103.0eebece/arp.c:391: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 buff[1024];
data/net-tools-1.60+git20181103.0eebece/arp.c:392: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 *sp, *args[32];
data/net-tools-1.60+git20181103.0eebece/arp.c:396:15:  [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(name, "r")) == NULL) {
data/net-tools-1.60+git20181103.0eebece/arp.c:440: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 flags[10];
data/net-tools-1.60+git20181103.0eebece/arp.c:530: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 host[100];
data/net-tools-1.60+git20181103.0eebece/arp.c:532: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 ip[100];
data/net-tools-1.60+git20181103.0eebece/arp.c:533: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 hwa[100];
data/net-tools-1.60+git20181103.0eebece/arp.c:534: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 mask[100];
data/net-tools-1.60+git20181103.0eebece/arp.c:535: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 line[200];
data/net-tools-1.60+git20181103.0eebece/arp.c:536: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 dev[100];
data/net-tools-1.60+git20181103.0eebece/arp.c:554:15:  [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(_PATH_PROCNET_ARP, "r")) == NULL) {
data/net-tools-1.60+git20181103.0eebece/hostname.c:136:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char addr[INET6_ADDRSTRLEN + 1];
data/net-tools-1.60+git20181103.0eebece/hostname.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 addr[INET_ADDRSTRLEN + 1];
data/net-tools-1.60+git20181103.0eebece/hostname.c:222: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 fline[MAXHOSTNAMELEN];
data/net-tools-1.60+git20181103.0eebece/hostname.c:224:15:  [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 ((fd = fopen(name, "r")) != NULL) {
data/net-tools-1.60+git20181103.0eebece/hostname.c:299: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 myname[MAXHOSTNAMELEN + 1] =
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:245:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&ifr->ifr_netmask, sa, sizeof(struct sockaddr));
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:260: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 host[128];
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:476: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).
	    ifr.ifr_mtu = atoi(*spp);
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:488:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    ifr.ifr_data = (caddr_t) (uintptr_t) atoi(*spp);
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:502:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    ifr.ifr_data = (caddr_t) (uintptr_t) atoi(*spp);
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:531:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&ifr.ifr_broadaddr, sa, sizeof(struct sockaddr));
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:555:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&ifr.ifr_dstaddr, sa, sizeof(struct sockaddr));
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:639:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    ifr.ifr_map.irq = atoi(*spp);
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:667: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(&ifr.ifr_dstaddr, sa, sizeof(struct sockaddr));
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:699:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&ifr.ifr_hwaddr, sa, sizeof(struct sockaddr));
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:720:20:  [2] (integer) atol:
  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).
		    prefix_len = atol(cp + 1);
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:737: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(&ifr6.ifr6_addr, &sin6->sin6_addr, sizeof(struct in6_addr));
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:811:20:  [2] (integer) atol:
  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).
		    prefix_len = atol(cp + 1);
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:825: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(&ifr6.ifr6_addr, &sin6->sin6_addr,
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:902:16:  [2] (integer) atol:
  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).
		prefix_len = atol(cp + 1);
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:916:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&ifr6.ifr6_addr, &sin6->sin6_addr, sizeof(struct in6_addr));
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:974: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(&ifr.ifr_addr, sa, sizeof(struct sockaddr));
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:1057:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char searcher[256];
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:1068:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&ifr.ifr_addr, &sin, sizeof(struct sockaddr));
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:1091:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    i = atoi(z);
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:1128:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(nm, &sin->sin_addr.s_addr, sizeof(*nm));
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:1130:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(bc, &sin->sin_addr.s_addr, sizeof(*bc));
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:1137: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[IFNAMSIZ];
data/net-tools-1.60+git20181103.0eebece/include/interface.h:32: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 name[IFNAMSIZ];	/* interface name        */
data/net-tools-1.60+git20181103.0eebece/include/interface.h:86: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 hwaddr[32];		/* HW address            */
data/net-tools-1.60+git20181103.0eebece/include/ipx.h:18: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 sipx_node[IPX_NODE_LEN];
data/net-tools-1.60+git20181103.0eebece/include/util-ank.h:20:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
#define SPRINT_BUF(x)	char x[SPRINT_BSIZE]
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:37: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 filter_dev[16];
data/net-tools-1.60+git20181103.0eebece/ipmaddr.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		name[IFNAMSIZ];
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:135: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[256];
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:136:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fp = fopen(_PATH_PROCNET_DEV_MCAST, "r");
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:142: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 hexa[256];
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:158: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(ma, &m, sizeof(m));
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:172:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:173:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fp = fopen(_PATH_PROCNET_IGMP, "r");
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:197: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(ma, &m, sizeof(m));
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:206: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[256];
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:207:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fp = fopen(_PATH_PROCNET_IGMP6, "r");
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:213: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 hexa[256];
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:228: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(ma, &m, sizeof(m));
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:246: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 abuf[256];
data/net-tools-1.60+git20181103.0eebece/iptunnel.c:202: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 medium[IFNAMSIZ];
data/net-tools-1.60+git20181103.0eebece/iptunnel.c:407: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 s1[256];
data/net-tools-1.60+git20181103.0eebece/iptunnel.c:408: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 s2[256];
data/net-tools-1.60+git20181103.0eebece/iptunnel.c:409: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 s3[64];
data/net-tools-1.60+git20181103.0eebece/iptunnel.c:410: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 s4[64];
data/net-tools-1.60+git20181103.0eebece/iptunnel.c:464: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[IFNAMSIZ];
data/net-tools-1.60+git20181103.0eebece/iptunnel.c:472: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[512];
data/net-tools-1.60+git20181103.0eebece/iptunnel.c:473:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fp = fopen("/proc/net/dev", "r");
data/net-tools-1.60+git20181103.0eebece/lib/af.c:103: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 afname[256] = "";
data/net-tools-1.60+git20181103.0eebece/lib/af.c:283: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[256];
data/net-tools-1.60+git20181103.0eebece/lib/arcnet.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.
    static char buff[64];
data/net-tools-1.60+git20181103.0eebece/lib/ash.c:27:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char hamming[16] =
data/net-tools-1.60+git20181103.0eebece/lib/ash.c:37: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.
    static char buff[128];
data/net-tools-1.60+git20181103.0eebece/lib/ash.c:44:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(p++, "%1x", ptr[i++]);
data/net-tools-1.60+git20181103.0eebece/lib/ash.c:110: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.
    static char buf[64];
data/net-tools-1.60+git20181103.0eebece/lib/ax25.c:46: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 AX25_errmsg[128];
data/net-tools-1.60+git20181103.0eebece/lib/ax25.c:52: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.
    static char buff[8];
data/net-tools-1.60+git20181103.0eebece/lib/ax25.c:63:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(&buff[strlen(buff)], "-%d", i);
data/net-tools-1.60+git20181103.0eebece/lib/ax25.c:73: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.
    static char buf[64];
data/net-tools-1.60+git20181103.0eebece/lib/ax25.c:129:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	i = atoi(++bufp);
data/net-tools-1.60+git20181103.0eebece/lib/ax25_gr.c:41:15:  [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(_PATH_PROCNET_AX25_ROUTE, "r");
data/net-tools-1.60+git20181103.0eebece/lib/ax25_gr.c:42: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 buffer[256];
data/net-tools-1.60+git20181103.0eebece/lib/ax25_gr.c:57: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).
	use = atoi(buffer + 15);
data/net-tools-1.60+git20181103.0eebece/lib/ddp.c:37: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.
    static char buff[64];
data/net-tools-1.60+git20181103.0eebece/lib/ddp.c:39: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(buff, "%d/%d", (int) ntohs(sat->sat_addr.s_net), (int) sat->sat_addr.s_node);
data/net-tools-1.60+git20181103.0eebece/lib/ddp.c:48: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.
    static char buf[64];
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:65: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 oflags[32];
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:68:10:  [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(_PATH_PROCNET_ATALK_ROUTE, "r");
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:83: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).
        int iflags = atoi(flags);
data/net-tools-1.60+git20181103.0eebece/lib/econet.c:38: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.
    static char buff[64];
data/net-tools-1.60+git20181103.0eebece/lib/econet.c:40: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(buff, "%d.%d", ec->net, ec->station);
data/net-tools-1.60+git20181103.0eebece/lib/ether.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.
    static char buff[64];
data/net-tools-1.60+git20181103.0eebece/lib/eui64.c:54:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buff[64];
data/net-tools-1.60+git20181103.0eebece/lib/fddi.c:51: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.
    static char buff[64];
data/net-tools-1.60+git20181103.0eebece/lib/frame.c:42: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.
    static char buf[12];
data/net-tools-1.60+git20181103.0eebece/lib/getargs.c:34: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 temp[len+1];
data/net-tools-1.60+git20181103.0eebece/lib/getroute.c:81: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[256];
data/net-tools-1.60+git20181103.0eebece/lib/hippi.c:51: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.
    static char buff[64];
data/net-tools-1.60+git20181103.0eebece/lib/hippi.c:53: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(buff, "%02X:%02X:%02X:%02X:%02X:%02X",
data/net-tools-1.60+git20181103.0eebece/lib/ib.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.
    static char buff[128];
data/net-tools-1.60+git20181103.0eebece/lib/ib.c:47:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	pos += sprintf(pos, "%02X:", (*ptr++ & 0377));
data/net-tools-1.60+git20181103.0eebece/lib/inet.c:102:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((char *) &sin->sin_addr, (char *) hp->h_addr_list[0],
data/net-tools-1.60+git20181103.0eebece/lib/inet.c:131:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *) &sin->sin_addr, (char *) hp->h_addr_list[0],
data/net-tools-1.60+git20181103.0eebece/lib/inet.c:245: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.
    static char name[INET_ADDRSTRLEN + 1];
data/net-tools-1.60+git20181103.0eebece/lib/inet.c:256: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.
    static char buff[128];
data/net-tools-1.60+git20181103.0eebece/lib/inet.c:270: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.
    static char buff[128];
data/net-tools-1.60+git20181103.0eebece/lib/inet.c:347:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(name, "/%d", prefix);
data/net-tools-1.60+git20181103.0eebece/lib/inet.c:432: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.
    static char buffer[64], init = 0;
data/net-tools-1.60+git20181103.0eebece/lib/inet.c:460:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buffer, "%d", ntohs(socknumber));
data/net-tools-1.60+git20181103.0eebece/lib/inet6.c:73:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(sasp, ai->ai_addr, sizeof(struct sockaddr_in6));
data/net-tools-1.60+git20181103.0eebece/lib/inet6.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.
    static char name[INET6_ADDRSTRLEN + 1];
data/net-tools-1.60+git20181103.0eebece/lib/inet6.c:142: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.
    static char buff[128];
data/net-tools-1.60+git20181103.0eebece/lib/inet6.c:167:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(bufp, p, strlen(p)+1);
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:59: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 buff[4096], iface[16], flags[16];
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:60: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 addr6[128], naddr6[128];
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:63:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(_PATH_PROCNET_ROUTE6, "r");
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:65: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 addr6p[8][5], saddr6p[8][5], naddr6p[8][5];
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:159: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 buff[4096], iface[16], flags[16];
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:160: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 addr6[128], haddr[20], statestr[20];
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:164:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(_PATH_PROCNET_NDISC, "r");
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:166: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 addr6p[8][5], haddrp[6][3];
data/net-tools-1.60+git20181103.0eebece/lib/inet6_sr.c:61: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 target[128], gateway[128] = "NONE";
data/net-tools-1.60+git20181103.0eebece/lib/inet6_sr.c:75:19:  [2] (integer) atol:
  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).
	    prefix_len = atol(cp + 1);
data/net-tools-1.60+git20181103.0eebece/lib/inet6_sr.c:92:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&rt.rtmsg_dst, sin6->sin6_addr.s6_addr, sizeof(struct in6_addr));
data/net-tools-1.60+git20181103.0eebece/lib/inet6_sr.c:107: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).
	    metric = atoi(*args);
data/net-tools-1.60+git20181103.0eebece/lib/inet6_sr.c:123:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&rt.rtmsg_gateway, sin6->sin6_addr.s6_addr,
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:42: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 buff[1024], iface[17], flags[64];
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:43: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 gate_addr[128], net_addr[128];
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:44: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 mask_addr[128];
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:46:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(_PATH_PROCNET_ROUTE, "r");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:210: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 buff[1024], iface[17], flags[64];
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:211: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 gate_addr[128], dest_addr[128], specdst[128];
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:212: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 src_addr[128];
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:218:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(_PATH_PROCNET_RTCACHE, "r");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:395:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat(flags, "Ns");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:401:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat(flags, "Nd");
data/net-tools-1.60+git20181103.0eebece/lib/inet_sr.c:66: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 target[128], gateway[128] = "NONE", netmask[128] = "default";
data/net-tools-1.60+git20181103.0eebece/lib/inet_sr.c:129: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).
	    metric = atoi(*args);
data/net-tools-1.60+git20181103.0eebece/lib/inet_sr.c:181:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    rt.rt_mss = atoi(*args);
data/net-tools-1.60+git20181103.0eebece/lib/inet_sr.c:194:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    rt.rt_window = atoi(*args);
data/net-tools-1.60+git20181103.0eebece/lib/inet_sr.c:209: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).
	    rt.rt_irtt = atoi(*(args - 1));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:319: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[512];
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:323:10:  [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).
    fh = fopen(_PATH_PROCNET_DEV, "r");
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:363: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[IFNAMSIZ];
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:427: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(ife->hwaddr, ifr.ifr_hwaddr.sa_data, 8);
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:462: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(&ife->map, &ifr.ifr_map, sizeof(struct ifmap));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:656: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.
    static char flags[200];
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:669: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 addr6[40], devname[21];
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:673: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 addr6p[8][5];
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:691: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(flags, "flags=%d<", ptr->flags);
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:696:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(flags,_("UP,"));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:698:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(flags,_("BROADCAST,"));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:700:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(flags,_("DEBUG,"));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:702:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(flags,_("LOOPBACK,"));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:704:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(flags,_("POINTOPOINT,"));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:706:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(flags,_("NOTRAILERS,"));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:708:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(flags,_("RUNNING,"));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:710:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(flags,_("NOARP,"));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:712:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(flags,_("PROMISC,"));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:714:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(flags,_("ALLMULTI,"));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:716:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(flags,_("SLAVE,"));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:718:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(flags,_("MASTER,"));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:720:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(flags,_("MULTICAST,"));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:723:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(flags,_("DYNAMIC,"));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:761:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen(_PATH_PROCNET_IFINET6, "r")) != NULL) {
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:779:8:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		    	strcat(flags, _("compat,"));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:783:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(flags, _("global,"));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:785:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(flags, _("link,"));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:787:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(flags, _("site,"));
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:789:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(flags, _("host,"));
data/net-tools-1.60+git20181103.0eebece/lib/ipx.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.
    static char buff[64];
data/net-tools-1.60+git20181103.0eebece/lib/ipx.c:79: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.
    static char buf[64];
data/net-tools-1.60+git20181103.0eebece/lib/ipx_gr.c:38: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 buff[1024];
data/net-tools-1.60+git20181103.0eebece/lib/ipx_gr.c:39: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 net[128], router_net[128];
data/net-tools-1.60+git20181103.0eebece/lib/ipx_gr.c:40: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 router_node[128];
data/net-tools-1.60+git20181103.0eebece/lib/ipx_gr.c:46:10:  [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(_PATH_PROCNET_IPX_ROUTE1, "r");
data/net-tools-1.60+git20181103.0eebece/lib/ipx_gr.c:49:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(_PATH_PROCNET_IPX_ROUTE2, "r");
data/net-tools-1.60+git20181103.0eebece/lib/irda.c:64: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.
    static char buff[12];
data/net-tools-1.60+git20181103.0eebece/lib/loopback.c:37: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.
    static char buff[64];
data/net-tools-1.60+git20181103.0eebece/lib/loopback.c:43:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	pos += sprintf(pos, "%02X-", (*ptr++ & 0377));
data/net-tools-1.60+git20181103.0eebece/lib/masq_info.c:102: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[256];
data/net-tools-1.60+git20181103.0eebece/lib/masq_info.c:115:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&ms->src.sin_addr.s_addr, &src_addr, 4);
data/net-tools-1.60+git20181103.0eebece/lib/masq_info.c:116:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&ms->dst.sin_addr.s_addr, &dst_addr, 4);
data/net-tools-1.60+git20181103.0eebece/lib/masq_info.c:125:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&ms->src.sin_addr.s_addr, &src_addr, 4);
data/net-tools-1.60+git20181103.0eebece/lib/masq_info.c:126:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&ms->dst.sin_addr.s_addr, &dst_addr, 4);
data/net-tools-1.60+git20181103.0eebece/lib/masq_info.c:167: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[256];
data/net-tools-1.60+git20181103.0eebece/lib/masq_info.c:171:15:  [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 (!(f = fopen(_PATH_PROCNET_IP_MASQ, "r"))) {
data/net-tools-1.60+git20181103.0eebece/lib/net-support.h:140: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 afname[256];
data/net-tools-1.60+git20181103.0eebece/lib/netrom.c:51: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 netrom_errmsg[128];
data/net-tools-1.60+git20181103.0eebece/lib/netrom.c:57: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.
    static char buff[8];
data/net-tools-1.60+git20181103.0eebece/lib/netrom.c:68:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(&buff[strlen(buff)], "-%d", i);
data/net-tools-1.60+git20181103.0eebece/lib/netrom.c:78:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/net-tools-1.60+git20181103.0eebece/lib/netrom.c:134:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	i = atoi(++bufp);
data/net-tools-1.60+git20181103.0eebece/lib/netrom_gr.c:35:16:  [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 *f1 = fopen(_PATH_PROCNET_NR_NODES, "r");
data/net-tools-1.60+git20181103.0eebece/lib/netrom_gr.c:36:16:  [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 *f2 = fopen(_PATH_PROCNET_NR_NEIGH, "r");
data/net-tools-1.60+git20181103.0eebece/lib/netrom_gr.c:37: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 buffer[256];
data/net-tools-1.60+git20181103.0eebece/lib/netrom_gr.c:56:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	w = atoi(buffer + 19) - 1;
data/net-tools-1.60+git20181103.0eebece/lib/netrom_gr.c:59:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	qual = atoi(buffer + 24 + 15 * w);
data/net-tools-1.60+git20181103.0eebece/lib/netrom_gr.c:60:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	n = atoi(buffer + 32 + 15 * w);
data/net-tools-1.60+git20181103.0eebece/lib/netrom_gr.c:65:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    if (atoi(buffer) == n) {
data/net-tools-1.60+git20181103.0eebece/lib/nstrcmp.c:76:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	av = atoi(an);
data/net-tools-1.60+git20181103.0eebece/lib/nstrcmp.c:77:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bv = atoi(bn);
data/net-tools-1.60+git20181103.0eebece/lib/nstrcmp.c:96: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).
		av = atoi(aalias);
data/net-tools-1.60+git20181103.0eebece/lib/nstrcmp.c:100: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).
		bv = atoi(balias);
data/net-tools-1.60+git20181103.0eebece/lib/proc.c:17: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[512], format[512] = "";
data/net-tools-1.60+git20181103.0eebece/lib/proc.c:41:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat(format, "%*s");	/* XXX */
data/net-tools-1.60+git20181103.0eebece/lib/proc.c:61: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[512];
data/net-tools-1.60+git20181103.0eebece/lib/proc.c:84:16:  [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 *fd = fopen(name, "r");
data/net-tools-1.60+git20181103.0eebece/lib/rose.c:53: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 ROSE_errmsg[128];
data/net-tools-1.60+git20181103.0eebece/lib/rose.c:60: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.
    static char buff[12];
data/net-tools-1.60+git20181103.0eebece/lib/rose_gr.c:48: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 buffer1[256], buffer2[256];
data/net-tools-1.60+git20181103.0eebece/lib/rose_gr.c:51:10:  [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).
    f2 = fopen(_PATH_PROCNET_ROSE_NEIGH, "r");
data/net-tools-1.60+git20181103.0eebece/lib/rose_gr.c:52:10:  [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).
    f1 = fopen(_PATH_PROCNET_ROSE_NODES, "r");
data/net-tools-1.60+git20181103.0eebece/lib/rose_gr.c:69: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).
	use = atoi(buffer1 + 16);
data/net-tools-1.60+git20181103.0eebece/lib/rose_gr.c:70:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	neigh = atoi(buffer1 + 18);
data/net-tools-1.60+git20181103.0eebece/lib/rose_gr.c:73: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).
		neigh = atoi(buffer1 + 6 * (i + 3));
data/net-tools-1.60+git20181103.0eebece/lib/rose_gr.c:81: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).
			if (atoi(buffer2) == neigh)
data/net-tools-1.60+git20181103.0eebece/lib/strip.c:44: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.
  static char buff[64];
data/net-tools-1.60+git20181103.0eebece/lib/strip.c:46: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(buff, "%02x-%02x%02x-%02x%02x", *(ptr+1), *(ptr+2), *(ptr+3),
data/net-tools-1.60+git20181103.0eebece/lib/strip.c:49: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(buff, "%02x%02x-%02x%02x", *(ptr+2), *(ptr+3), *(ptr+4),
data/net-tools-1.60+git20181103.0eebece/lib/tr.c:44: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.
    static char buff[64];
data/net-tools-1.60+git20181103.0eebece/lib/unix.c:37: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.
    static char buff[64];
data/net-tools-1.60+git20181103.0eebece/lib/unix.c:43:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	pos += sprintf(pos, "%02X-", (*ptr++ & 0377));
data/net-tools-1.60+git20181103.0eebece/lib/unix.c:54: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.
    static char buf[64];
data/net-tools-1.60+git20181103.0eebece/lib/unix.c:75: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.
    static char buf[64];
data/net-tools-1.60+git20181103.0eebece/lib/x25.c:43: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 X25_errmsg[128];
data/net-tools-1.60+git20181103.0eebece/lib/x25.c:57: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.
  static char buff[X25_ADDR_LEN+1];
data/net-tools-1.60+git20181103.0eebece/lib/x25.c:107:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        sigdigits = atoi(p + 1);
data/net-tools-1.60+git20181103.0eebece/lib/x25_gr.c:64: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 buffer[256];
data/net-tools-1.60+git20181103.0eebece/lib/x25_gr.c:85:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		digits=atoi(buffer+17);
data/net-tools-1.60+git20181103.0eebece/lib/x25_sr.c:62: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 target[128];
data/net-tools-1.60+git20181103.0eebece/lib/x25_sr.c:81: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(&rt.address, &sx25->sx25_addr, sizeof(sx25->sx25_addr));
data/net-tools-1.60+git20181103.0eebece/mii-tool.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.
    static char buf[100];
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:211:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat(buf, "1000baseT-HD");
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:216:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat(buf, "1000baseT-FD");
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:231:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(buf, " flow-control");
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:245:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[200];
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:302:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf, ", ");
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:304:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf, "autonegotiation failed, ");
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:307:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat(buf, "autonegotiation restarted, ");
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:322:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char s[20];
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:514:27:  [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).
	case 'p': override_phy = atoi(optarg); break;
data/net-tools-1.60+git20181103.0eebece/nameif.c:110:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mac, ifr.ifr_hwaddr.sa_data, 6);
data/net-tools-1.60+git20181103.0eebece/nameif.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 ifname[IFNAMSIZ+1];
data/net-tools-1.60+git20181103.0eebece/nameif.c:118: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 mac[6];
data/net-tools-1.60+git20181103.0eebece/nameif.c:153:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	ifh = fopen(fname, "r");
data/net-tools-1.60+git20181103.0eebece/nameif.c:161: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 pos[20];
data/net-tools-1.60+git20181103.0eebece/nameif.c:163: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(pos, _("line %d"), linenum);
data/net-tools-1.60+git20181103.0eebece/nameif.c:176: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(ch->ifname, p, n);
data/net-tools-1.60+git20181103.0eebece/nameif.c:234: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 pos[30];
data/net-tools-1.60+git20181103.0eebece/nameif.c:242: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(pos,_("argument %d"),optind);
data/net-tools-1.60+git20181103.0eebece/nameif.c:250:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	ifh = fopen("/proc/net/dev", "r");
data/net-tools-1.60+git20181103.0eebece/nameif.c:257: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[6];
data/net-tools-1.60+git20181103.0eebece/netstat.c:214: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 buffer[8192];					\
data/net-tools-1.60+git20181103.0eebece/netstat.c:226:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char buffer[8192];					\
data/net-tools-1.60+git20181103.0eebece/netstat.c:245:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[PROGNAME_WIDTH];
data/net-tools-1.60+git20181103.0eebece/netstat.c:246: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 scon[SELINUX_WIDTH];
data/net-tools-1.60+git20181103.0eebece/netstat.c:362:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char inode_str[strlen(lname + 1)];  /* e.g. "12345" */
data/net-tools-1.60+git20181103.0eebece/netstat.c:401: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 line[LINE_MAX], eacces=0;
data/net-tools-1.60+git20181103.0eebece/netstat.c:403: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 lname[30], cmdlbuf[512], finbuf[PROGNAME_WIDTH];
data/net-tools-1.60+git20181103.0eebece/netstat.c:440:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(line + procfdlen - PATH_FD_SUFFl, PATH_FD_SUFF "/",
data/net-tools-1.60+git20181103.0eebece/netstat.c:459: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(line, O_RDONLY);
data/net-tools-1.60+git20181103.0eebece/netstat.c:477: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).
	    if (getpidcon(atoi(direproc->d_name), &scon) == -1) {
data/net-tools-1.60+git20181103.0eebece/netstat.c:517: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 buffer[256], dev[16];
data/net-tools-1.60+git20181103.0eebece/netstat.c:571: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 buffer[256], dev[6];
data/net-tools-1.60+git20181103.0eebece/netstat.c:573: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 src_addr[10], src_call[9], dest_addr[10], dest_call[9];
data/net-tools-1.60+git20181103.0eebece/netstat.c:575:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(_PATH_PROCNET_ROSE, "r");
data/net-tools-1.60+git20181103.0eebece/netstat.c:664: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 mcast_addr[128];
data/net-tools-1.60+git20181103.0eebece/netstat.c:668: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 addr6[INET6_ADDRSTRLEN];
data/net-tools-1.60+git20181103.0eebece/netstat.c:675: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.
    static char device[16];
data/net-tools-1.60+git20181103.0eebece/netstat.c:768:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char buffer[256],dev[16];
data/net-tools-1.60+git20181103.0eebece/netstat.c:770:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *x25_state[5]=
data/net-tools-1.60+git20181103.0eebece/netstat.c:827:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char state_str_buf[64];
data/net-tools-1.60+git20181103.0eebece/netstat.c:828:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(state_str_buf, "UNKNOWN(%d)", state);
data/net-tools-1.60+git20181103.0eebece/netstat.c:840: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 addr6_str[INET6_ADDRSTRLEN];
data/net-tools-1.60+git20181103.0eebece/netstat.c:867: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 buffer[1024];
data/net-tools-1.60+git20181103.0eebece/netstat.c:897: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).
    state = atoi(sst_str);
data/net-tools-1.60+git20181103.0eebece/netstat.c:898: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).
    port = atoi(lport_str);
data/net-tools-1.60+git20181103.0eebece/netstat.c:899: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).
    uid = atoi(uid_str);
data/net-tools-1.60+git20181103.0eebece/netstat.c:904: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 local_port[16];
data/net-tools-1.60+git20181103.0eebece/netstat.c:910: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 local_addr[64];
data/net-tools-1.60+git20181103.0eebece/netstat.c:915:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(local_addr, _("unsupported address family %d"), localsas.ss_family);
data/net-tools-1.60+git20181103.0eebece/netstat.c:931: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 buffer[1024];
data/net-tools-1.60+git20181103.0eebece/netstat.c:975: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).
    state = atoi(sst_str);
data/net-tools-1.60+git20181103.0eebece/netstat.c:976: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).
    txqueue = atoi(txqueue_str);
data/net-tools-1.60+git20181103.0eebece/netstat.c:977: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).
    rxqueue = atoi(rxqueue_str);
data/net-tools-1.60+git20181103.0eebece/netstat.c:978: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).
    uid = atoi(uid_str);
data/net-tools-1.60+git20181103.0eebece/netstat.c:980: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).
    lport = atoi(lport_str);
data/net-tools-1.60+git20181103.0eebece/netstat.c:981: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).
    rport = atoi(rport_str);
data/net-tools-1.60+git20181103.0eebece/netstat.c:988: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 local_port[16];
data/net-tools-1.60+git20181103.0eebece/netstat.c:989: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 remote_port[16];
data/net-tools-1.60+git20181103.0eebece/netstat.c:1000: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 local_addr[64];
data/net-tools-1.60+git20181103.0eebece/netstat.c:1001: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 remote_addr[64];
data/net-tools-1.60+git20181103.0eebece/netstat.c:1013: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(local_addr, _("unsupported address family %d"), localsas.ss_family);
data/net-tools-1.60+git20181103.0eebece/netstat.c:1025: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(remote_addr, _("unsupported address family %d"), remotesas.ss_family);
data/net-tools-1.60+git20181103.0eebece/netstat.c:1105: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 rem_addr[128], local_addr[128], timers[64];
data/net-tools-1.60+git20181103.0eebece/netstat.c:1111: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 addr6[INET6_ADDRSTRLEN];
data/net-tools-1.60+git20181103.0eebece/netstat.c:1230: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 local_addr[128], rem_addr[128];
data/net-tools-1.60+git20181103.0eebece/netstat.c:1231: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 *udp_state, timers[64];
data/net-tools-1.60+git20181103.0eebece/netstat.c:1237: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 addr6[INET6_ADDRSTRLEN];
data/net-tools-1.60+git20181103.0eebece/netstat.c:1344: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 local_addr[128], rem_addr[128];
data/net-tools-1.60+git20181103.0eebece/netstat.c:1345: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 timers[64];
data/net-tools-1.60+git20181103.0eebece/netstat.c:1351: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 addr6[INET6_ADDRSTRLEN];
data/net-tools-1.60+git20181103.0eebece/netstat.c:1445:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[MAXPATHLEN], ss_flags[32];
data/net-tools-1.60+git20181103.0eebece/netstat.c:1545:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(ss_flags, "ACC ");
data/net-tools-1.60+git20181103.0eebece/netstat.c:1547:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(ss_flags, "W ");
data/net-tools-1.60+git20181103.0eebece/netstat.c:1549:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(ss_flags, "N ");
data/net-tools-1.60+git20181103.0eebece/netstat.c:1596: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 buffer[256], buf[16];
data/net-tools-1.60+git20181103.0eebece/netstat.c:1600: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.
    static char *ax25_state[5] =
data/net-tools-1.60+git20181103.0eebece/netstat.c:1691: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[256];
data/net-tools-1.60+git20181103.0eebece/netstat.c:1699: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 sad[50], dad[50];
data/net-tools-1.60+git20181103.0eebece/netstat.c:1842: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 daddr[18], saddr[18];
data/net-tools-1.60+git20181103.0eebece/netstat.c:1898: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 daddr[18], saddr[18];
data/net-tools-1.60+git20181103.0eebece/plipconfig.c:124:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    plip->nibble = atoi(*spp);
data/net-tools-1.60+git20181103.0eebece/plipconfig.c:131: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).
	    plip->trigger = atoi(*spp);
data/net-tools-1.60+git20181103.0eebece/rarp.c:64:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((char *) &si->sin_addr, *addr, hp->h_length);
data/net-tools-1.60+git20181103.0eebece/rarp.c:105:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *) &si->sin_addr, hp->h_addr_list[0], hp->h_length);
data/net-tools-1.60+git20181103.0eebece/rarp.c:107:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(req.arp_ha.sa_data, sap->sa_data, hardware->alen);
data/net-tools-1.60+git20181103.0eebece/rarp.c:123: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 buff[1024];
data/net-tools-1.60+git20181103.0eebece/rarp.c:129:15:  [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(name, "r")) == NULL) {
data/net-tools-1.60+git20181103.0eebece/rarp.c:160: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 buffer[256];
data/net-tools-1.60+git20181103.0eebece/rarp.c:210: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 *args[3];
data/net-tools-1.60+git20181103.0eebece/slattach.c:139: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).
  if ((fd = fopen(nam, "r")) == (FILE *)0)
data/net-tools-1.60+git20181103.0eebece/slattach.c:163: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.
  static char saved_path[PATH_MAX];
data/net-tools-1.60+git20181103.0eebece/slattach.c:167: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 apid[16];
data/net-tools-1.60+git20181103.0eebece/slattach.c:185:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(apid, "%10d\n", getpid());
data/net-tools-1.60+git20181103.0eebece/slattach.c:459: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 pathbuf[PATH_MAX];
data/net-tools-1.60+git20181103.0eebece/slattach.c:484: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(path_open, O_RDWR|O_NDELAY)) < 0) {
data/net-tools-1.60+git20181103.0eebece/slattach.c:606: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 path_buf[128] = "";
data/net-tools-1.60+git20181103.0eebece/slattach.c:608: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 buff[128];
data/net-tools-1.60+git20181103.0eebece/slattach.c:637: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).
		opt_k = atoi(optarg);
data/net-tools-1.60+git20181103.0eebece/slattach.c:659: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).
		opt_o = atoi(optarg);
data/net-tools-1.60+git20181103.0eebece/statistics.c:336: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[512];
data/net-tools-1.60+git20181103.0eebece/statistics.c:483: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 buf1[1024],buf2[50],buf3[1024];
data/net-tools-1.60+git20181103.0eebece/statistics.c:508: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 buf1[1024];
data/net-tools-1.60+git20181103.0eebece/statistics.c:578:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen("/proc/net/snmp6", "r");
data/net-tools-1.60+git20181103.0eebece/statistics.c:588:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen("/proc/net/snmp", "r");
data/net-tools-1.60+git20181103.0eebece/arp.c:452:2:  [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(flags, "C");
data/net-tools-1.60+git20181103.0eebece/arp.c:454:2:  [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(flags, "M");
data/net-tools-1.60+git20181103.0eebece/arp.c:456:2:  [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(flags, "P");
data/net-tools-1.60+git20181103.0eebece/arp.c:459:2:  [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(flags, "A");
data/net-tools-1.60+git20181103.0eebece/arp.c:463:2:  [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(flags, "!");
data/net-tools-1.60+git20181103.0eebece/arp.c:466:2:  [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(flags, "T");
data/net-tools-1.60+git20181103.0eebece/hostname.c:79:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (setnodename(nname, strlen(nname))) {
data/net-tools-1.60+git20181103.0eebece/hostname.c:100:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (sethostname(hname, strlen(hname))) {
data/net-tools-1.60+git20181103.0eebece/hostname.c:118: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).
    if (setdomainname(dname, strlen(dname))) {
data/net-tools-1.60+git20181103.0eebece/ifconfig.c:1142: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).
    pt.baselen = strlen(parent);
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:291: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).
			l = strlen(*argv);
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:294:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(filter_dev, *argv, sizeof (filter_dev));
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:304: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).
			l = strlen(*argv);
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:307:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(filter_dev, *argv, sizeof (filter_dev));
data/net-tools-1.60+git20181103.0eebece/ipmaddr.c:339:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(ifr.ifr_name, *argv, IFNAMSIZ);
data/net-tools-1.60+git20181103.0eebece/lib/af.c:213:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(tool) >= strlen(tmp)) {
data/net-tools-1.60+git20181103.0eebece/lib/af.c:213: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 (strlen(tool) >= strlen(tmp)) {
data/net-tools-1.60+git20181103.0eebece/lib/af.c:217: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).
    tmp = buf + (strlen(tmp) - strlen(tool));
data/net-tools-1.60+git20181103.0eebece/lib/af.c:217: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).
    tmp = buf + (strlen(tmp) - strlen(tool));
data/net-tools-1.60+git20181103.0eebece/lib/af.c:299: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).
	    if (strlen(paft->name) + strlen(afname) + 1 >= sizeof(afname)) {
data/net-tools-1.60+git20181103.0eebece/lib/af.c:299: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(paft->name) + strlen(afname) + 1 >= sizeof(afname)) {
data/net-tools-1.60+git20181103.0eebece/lib/af.c:306: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(afname, ",");
data/net-tools-1.60+git20181103.0eebece/lib/ax25.c:63: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).
	sprintf(&buff[strlen(buff)], "-%d", i);
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:39:25:  [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 (i & RTF_UP) strcat(o, "U");         \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:40:30:  [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 (i & RTF_GATEWAY) strcat(o, "G");    \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:41:29:  [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 (i & RTF_REJECT) strcat(o, "!");     \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:42: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 (i & RTF_HOST) strcat(o, "H");       \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:43:32:  [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 (i & RTF_REINSTATE) strcat(o, "R");  \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:44:30:  [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 (i & RTF_DYNAMIC) strcat(o, "D");    \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:45:31:  [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 (i & RTF_MODIFIED) strcat(o, "M");   \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:46:30:  [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 (i & RTF_DEFAULT) strcat(o, "d");    \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:47:32:  [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 (i & RTF_ALLONLINK) strcat(o, "a");  \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:48:31:  [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 (i & RTF_ADDRCONF) strcat(o, "c");   \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:49:32:  [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 (i & RTF_NONEXTHOP) strcat(o, "o");  \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:50:30:  [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 (i & RTF_EXPIRES) strcat(o, "e");    \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:51:28:  [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 (i & RTF_CACHE) strcat(o, "c");      \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:52: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 (i & RTF_FLOW) strcat(o, "f");       \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:53:29:  [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 (i & RTF_POLICY) strcat(o, "p");     \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:54:28:  [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 (i & RTF_LOCAL) strcat(o, "l");      \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:55:26:  [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 (i & RTF_MTU) strcat(o, "u");        \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:56:29:  [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 (i & RTF_WINDOW) strcat(o, "w");     \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:57: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 (i & RTF_IRTT) strcat(o, "i");       \
data/net-tools-1.60+git20181103.0eebece/lib/ddp_gr.c:58:32:  [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 (i & RTF_NOTCACHED) strcat(o, "n");  \
data/net-tools-1.60+git20181103.0eebece/lib/getargs.c:33:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(string);
data/net-tools-1.60+git20181103.0eebece/lib/ib.c:49: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).
    buff[strlen(buff) - 1] = '\0';
data/net-tools-1.60+git20181103.0eebece/lib/inet.c:454:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buffer, item->name, sizeof(buffer));
data/net-tools-1.60+git20181103.0eebece/lib/inet6.c:167: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).
        memcpy(bufp, p, strlen(p)+1);
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:83:8:  [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.
	num = sscanf(buff, "%4s%4s%4s%4s%4s%4s%4s%4s %02x %4s%4s%4s%4s%4s%4s%4s%4s %02x %4s%4s%4s%4s%4s%4s%4s%4s %08x %08x %08x %08x %15s\n",
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:124:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "U");
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:126:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "!");
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:128:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "G");
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:130:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "H");
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:132:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "D");
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:134:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "A");
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:136:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "C");
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:138:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "a");
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:140:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "e");
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:142:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "m");
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:144:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "n");
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:146:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "f");
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:184:2:  [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.
	sscanf(buff, "%4s%4s%4s%4s%4s%4s%4s%4s %02x %02x %02x %02x %08lx %08lx %08lx %04x %04x %04lx %8s %2s%2s%2s%2s%2s%2s\n",
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:207:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "R");
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:209:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "x");
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:211:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "h");
data/net-tools-1.60+git20181103.0eebece/lib/inet6_gr.c:213:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "P");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:125:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "U");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:127:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "G");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:133:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "H");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:135:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "R");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:137:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "D");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:139:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "M");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:141:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "d");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:143:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "a");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:145:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "c");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:147:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "o");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:149:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "e");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:151:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "c");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:153:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "f");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:155:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "p");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:157:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "l");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:159:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "u");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:161:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "w");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:163:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "i");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:165:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "n");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:360:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "U");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:362:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "H");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:365:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "G");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:371:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "R");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:373:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "D");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:375:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "M");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:380:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "-");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:382:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "o");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:385:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "n");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:387:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "d");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:389:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "t");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:391:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "f");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:393:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "q");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:397:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "r");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:399:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "i");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:403:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "b");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:405:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "m");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:407:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "#");
data/net-tools-1.60+git20181103.0eebece/lib/inet_gr.c:409:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(flags, "l");
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:694:2:  [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(flags,">");
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:726:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (flags[strlen(flags)-1] == ',')
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:727:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      flags[strlen(flags)-1] = '>';
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:729:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      flags[strlen(flags)-1] = 0;
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:762:9:  [1] (buffer) fscanf:
  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.
	while (fscanf(f, "%4s%4s%4s%4s%4s%4s%4s%4s %08x %02x %02x %02x %20s\n",
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:790:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (flags[strlen(flags)-1] == ',')
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:791: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).
			flags[strlen(flags)-1] = '>';
data/net-tools-1.60+git20181103.0eebece/lib/interface.c:793: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).
			flags[strlen(flags)-1] = 0;
data/net-tools-1.60+git20181103.0eebece/lib/loopback.c:45: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).
    buff[strlen(buff) - 1] = '\0';
data/net-tools-1.60+git20181103.0eebece/lib/netrom.c:68: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).
	sprintf(&buff[strlen(buff)], "-%d", i);
data/net-tools-1.60+git20181103.0eebece/lib/nstrcmp.c:16: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).
	for(pos=strlen(name); pos>0; pos--)
data/net-tools-1.60+git20181103.0eebece/lib/nstrcmp.c:34: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).
	int pos = strlen(name);
data/net-tools-1.60+git20181103.0eebece/lib/nstrcmp.c:36: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).
	for(pos=strlen(name); pos>0; pos--)
data/net-tools-1.60+git20181103.0eebece/lib/proc.c:23: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(buf, " ");
data/net-tools-1.60+git20181103.0eebece/lib/proc.c:43:2:  [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(format, " ");
data/net-tools-1.60+git20181103.0eebece/lib/proc.c:68: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(buf, "\0");
data/net-tools-1.60+git20181103.0eebece/lib/rose.c:90:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(bufp) != 10) {
data/net-tools-1.60+git20181103.0eebece/lib/unix.c:45: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).
    buff[strlen(buff) - 1] = '\0';
data/net-tools-1.60+git20181103.0eebece/lib/util-ank.c:263: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).
	int len = strlen(cmd);
data/net-tools-1.60+git20181103.0eebece/lib/util-ank.c:264: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).
	if (len > strlen(pattern))
data/net-tools-1.60+git20181103.0eebece/lib/util.c:64:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    return strncpy(dst,src,size-1);
data/net-tools-1.60+git20181103.0eebece/lib/x25.c:59:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(buff, ptr, X25_ADDR_LEN);
data/net-tools-1.60+git20181103.0eebece/lib/x25.c:93:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(bufp)>18) {
data/net-tools-1.60+git20181103.0eebece/lib/x25.c:109:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sigdigits = strlen(bufp);
data/net-tools-1.60+git20181103.0eebece/lib/x25.c:112:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(bufp) < 1 || strlen(bufp) > 15 || sigdigits > strlen(bufp)) {
data/net-tools-1.60+git20181103.0eebece/lib/x25.c:112:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(bufp) < 1 || strlen(bufp) > 15 || sigdigits > strlen(bufp)) {
data/net-tools-1.60+git20181103.0eebece/lib/x25.c:112:60:  [1] (buffer) strlen:
  Does not handle 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(bufp) < 1 || strlen(bufp) > 15 || sigdigits > strlen(bufp)) {
data/net-tools-1.60+git20181103.0eebece/lib/x25.c:123:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(ptr, bufp, sigdigits+1);
data/net-tools-1.60+git20181103.0eebece/lib/x25_sr.c:105:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (rt.sigdigits > strlen(rt.address.x25_addr)) {
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:210:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(buf, " ");
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:215:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(buf, " ");
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:224:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(buf, " ");
data/net-tools-1.60+git20181103.0eebece/mii-tool.c:310:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sprintf(buf+strlen(buf), "%s Mbit, %s duplex, ",
data/net-tools-1.60+git20181103.0eebece/nameif.c:238:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(av[optind])+1>IFNAMSIZ)
data/net-tools-1.60+git20181103.0eebece/netstat.c:263: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).
#define PRG_SOCKET_PFXl (strlen(PRG_SOCKET_PFX))
data/net-tools-1.60+git20181103.0eebece/netstat.c:265:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define PRG_SOCKET_PFX2l  (strlen(PRG_SOCKET_PFX2))
data/net-tools-1.60+git20181103.0eebece/netstat.c:274: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).
#define PATH_FD_SUFFl       strlen(PATH_FD_SUFF)
data/net-tools-1.60+git20181103.0eebece/netstat.c:277: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).
#define PATH_CMDLINEl       strlen(PATH_CMDLINE)
data/net-tools-1.60+git20181103.0eebece/netstat.c:300:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = (strlen(scon) - sizeof(pn->scon)) + 1;
data/net-tools-1.60+git20181103.0eebece/netstat.c:356:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(lname) < PRG_SOCKET_PFXl+3) return(-1);
data/net-tools-1.60+git20181103.0eebece/netstat.c:359:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (lname[strlen(lname)-1] != ']') return(-1);
data/net-tools-1.60+git20181103.0eebece/netstat.c:362: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).
        char inode_str[strlen(lname + 1)];  /* e.g. "12345" */
data/net-tools-1.60+git20181103.0eebece/netstat.c:363:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const int inode_str_len = strlen(lname) - PRG_SOCKET_PFXl - 1;
data/net-tools-1.60+git20181103.0eebece/netstat.c:366:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(inode_str, lname+PRG_SOCKET_PFXl, inode_str_len);
data/net-tools-1.60+git20181103.0eebece/netstat.c:383:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(lname) < PRG_SOCKET_PFX2l+1) return(-1);
data/net-tools-1.60+git20181103.0eebece/netstat.c:438: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 (procfdlen + 1 + strlen(direfd->d_name) + 1 > sizeof(line))
data/net-tools-1.60+git20181103.0eebece/netstat.c:462:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		cmdllen = read(fd, cmdlbuf, sizeof(cmdlbuf) - 1);
data/net-tools-1.60+git20181103.0eebece/netstat.c:687:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if ( strncmp( line, "Idx", strlen("Idx") ) == 0 )
data/net-tools-1.60+git20181103.0eebece/netstat.c:697:8:  [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.
	num = sscanf( line, "%d %15s %64[0-9A-Fa-f] %d", &idx, device, mcast_addr, &refcnt );
data/net-tools-1.60+git20181103.0eebece/netstat.c:1087: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).
    addr_len = strlen(saddr);
data/net-tools-1.60+git20181103.0eebece/netstat.c:1088: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).
    port_len = strlen(sport);
data/net-tools-1.60+git20181103.0eebece/netstat.c:1093:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, saddr, addr_len);
data/net-tools-1.60+git20181103.0eebece/netstat.c:1095:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(buf, ":");
data/net-tools-1.60+git20181103.0eebece/netstat.c:1096:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(buf, sport, port_len);
data/net-tools-1.60+git20181103.0eebece/netstat.c:1133:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(local_addr) > 8) {
data/net-tools-1.60+git20181103.0eebece/netstat.c:1199:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	       prot, rxq, txq, (int)netmax(23,strlen(local_addr)), local_addr, (int)netmax(23,strlen(rem_addr)), rem_addr, _(tcp_state[state]));
data/net-tools-1.60+git20181103.0eebece/netstat.c:1199:88:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	       prot, rxq, txq, (int)netmax(23,strlen(local_addr)), local_addr, (int)netmax(23,strlen(rem_addr)), rem_addr, _(tcp_state[state]));
data/net-tools-1.60+git20181103.0eebece/netstat.c:1258:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(local_addr) > 8) {
data/net-tools-1.60+git20181103.0eebece/netstat.c:1371:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(local_addr) > 8) {
data/net-tools-1.60+git20181103.0eebece/netstat.c:1551: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(ss_flags, "]");
data/net-tools-1.60+git20181103.0eebece/netstat.c:1847:11:  [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.
    num = sscanf(line, "%17s (%u) %17s (%u) %d %d 0x%04x 0x%04x %d %d %d",
data/net-tools-1.60+git20181103.0eebece/netstat.c:1851:8:  [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.
	num = sscanf(line, "%17s %17s %d %d 0x%04x 0x%04x %d %d %d",
data/net-tools-1.60+git20181103.0eebece/netstat.c:1903:11:  [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.
    num = sscanf(line, "%17s %17s %d %d", daddr, saddr, &state, &channel);
data/net-tools-1.60+git20181103.0eebece/slattach.c:186:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(fd, apid, strlen(apid)) != strlen(apid)) {
data/net-tools-1.60+git20181103.0eebece/slattach.c:186:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(fd, apid, strlen(apid)) != strlen(apid)) {
data/net-tools-1.60+git20181103.0eebece/slattach.c:466:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(name + 6) > sizeof(pathbuf)) {
data/net-tools-1.60+git20181103.0eebece/statistics.c:413:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t filter_len = filter ? strlen(filter) : 0;

ANALYSIS SUMMARY:

Hits = 573
Lines analyzed = 18578 in approximately 0.60 seconds (31160 lines/second)
Physical Source Lines of Code (SLOC) = 14607
Hits@level = [0] 847 [1] 170 [2] 343 [3]   8 [4]  51 [5]   1
Hits@level+ = [0+] 1420 [1+] 573 [2+] 403 [3+]  60 [4+]  52 [5+]   1
Hits/KSLOC@level+ = [0+] 97.2137 [1+] 39.2278 [2+] 27.5895 [3+] 4.10762 [4+] 3.55994 [5+] 0.0684603
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.