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/netsniff-ng-0.6.5/astraceroute.c
Examining data/netsniff-ng-0.6.5/bpf.c
Examining data/netsniff-ng-0.6.5/bpf.h
Examining data/netsniff-ng-0.6.5/bpf_comp.c
Examining data/netsniff-ng-0.6.5/bpf_ext.h
Examining data/netsniff-ng-0.6.5/bpf_insns.h
Examining data/netsniff-ng-0.6.5/bpf_jit_disasm.c
Examining data/netsniff-ng-0.6.5/bpfc.c
Examining data/netsniff-ng-0.6.5/built_in.h
Examining data/netsniff-ng-0.6.5/colors.h
Examining data/netsniff-ng-0.6.5/conntrack.h
Examining data/netsniff-ng-0.6.5/cookie.c
Examining data/netsniff-ng-0.6.5/cookie.h
Examining data/netsniff-ng-0.6.5/corking.c
Examining data/netsniff-ng-0.6.5/corking.h
Examining data/netsniff-ng-0.6.5/cpp.c
Examining data/netsniff-ng-0.6.5/cpp.h
Examining data/netsniff-ng-0.6.5/cpus.h
Examining data/netsniff-ng-0.6.5/cpusched.c
Examining data/netsniff-ng-0.6.5/cpusched.h
Examining data/netsniff-ng-0.6.5/crypto.h
Examining data/netsniff-ng-0.6.5/csum.h
Examining data/netsniff-ng-0.6.5/curve.c
Examining data/netsniff-ng-0.6.5/curve.h
Examining data/netsniff-ng-0.6.5/curve_test.c
Examining data/netsniff-ng-0.6.5/curvetun.c
Examining data/netsniff-ng-0.6.5/curvetun.h
Examining data/netsniff-ng-0.6.5/curvetun/abiname.c
Examining data/netsniff-ng-0.6.5/curvetun_client.c
Examining data/netsniff-ng-0.6.5/curvetun_mgmt.h
Examining data/netsniff-ng-0.6.5/curvetun_mgmt_servers.c
Examining data/netsniff-ng-0.6.5/curvetun_mgmt_servers.h
Examining data/netsniff-ng-0.6.5/curvetun_mgmt_users.c
Examining data/netsniff-ng-0.6.5/curvetun_mgmt_users.h
Examining data/netsniff-ng-0.6.5/curvetun_server.c
Examining data/netsniff-ng-0.6.5/dev.c
Examining data/netsniff-ng-0.6.5/dev.h
Examining data/netsniff-ng-0.6.5/die.c
Examining data/netsniff-ng-0.6.5/die.h
Examining data/netsniff-ng-0.6.5/dissector.c
Examining data/netsniff-ng-0.6.5/dissector.h
Examining data/netsniff-ng-0.6.5/dissector_80211.c
Examining data/netsniff-ng-0.6.5/dissector_80211.h
Examining data/netsniff-ng-0.6.5/dissector_eth.c
Examining data/netsniff-ng-0.6.5/dissector_eth.h
Examining data/netsniff-ng-0.6.5/dissector_netlink.c
Examining data/netsniff-ng-0.6.5/dissector_netlink.h
Examining data/netsniff-ng-0.6.5/dissector_sll.c
Examining data/netsniff-ng-0.6.5/dissector_sll.h
Examining data/netsniff-ng-0.6.5/epoll2.c
Examining data/netsniff-ng-0.6.5/epoll2.h
Examining data/netsniff-ng-0.6.5/flowtop.c
Examining data/netsniff-ng-0.6.5/geoip.c
Examining data/netsniff-ng-0.6.5/geoip.h
Examining data/netsniff-ng-0.6.5/hash.c
Examining data/netsniff-ng-0.6.5/hash.h
Examining data/netsniff-ng-0.6.5/ifpps.c
Examining data/netsniff-ng-0.6.5/ioexact.c
Examining data/netsniff-ng-0.6.5/ioexact.h
Examining data/netsniff-ng-0.6.5/ioops.c
Examining data/netsniff-ng-0.6.5/ioops.h
Examining data/netsniff-ng-0.6.5/iosched.c
Examining data/netsniff-ng-0.6.5/iosched.h
Examining data/netsniff-ng-0.6.5/ipv4.h
Examining data/netsniff-ng-0.6.5/ipv6.h
Examining data/netsniff-ng-0.6.5/irq.c
Examining data/netsniff-ng-0.6.5/irq.h
Examining data/netsniff-ng-0.6.5/keypair.c
Examining data/netsniff-ng-0.6.5/keypair.h
Examining data/netsniff-ng-0.6.5/link.c
Examining data/netsniff-ng-0.6.5/link.h
Examining data/netsniff-ng-0.6.5/linktype.h
Examining data/netsniff-ng-0.6.5/locking.h
Examining data/netsniff-ng-0.6.5/lockme.h
Examining data/netsniff-ng-0.6.5/lookup.c
Examining data/netsniff-ng-0.6.5/lookup.h
Examining data/netsniff-ng-0.6.5/mac80211.c
Examining data/netsniff-ng-0.6.5/mac80211.h
Examining data/netsniff-ng-0.6.5/netsniff-ng.c
Examining data/netsniff-ng-0.6.5/patricia.c
Examining data/netsniff-ng-0.6.5/patricia.h
Examining data/netsniff-ng-0.6.5/pcap_io.h
Examining data/netsniff-ng-0.6.5/pcap_mm.c
Examining data/netsniff-ng-0.6.5/pcap_rw.c
Examining data/netsniff-ng-0.6.5/pcap_sg.c
Examining data/netsniff-ng-0.6.5/pkt_buff.h
Examining data/netsniff-ng-0.6.5/privs.c
Examining data/netsniff-ng-0.6.5/privs.h
Examining data/netsniff-ng-0.6.5/proc.c
Examining data/netsniff-ng-0.6.5/proc.h
Examining data/netsniff-ng-0.6.5/proto.h
Examining data/netsniff-ng-0.6.5/proto_80211_mac_hdr.c
Examining data/netsniff-ng-0.6.5/proto_arp.c
Examining data/netsniff-ng-0.6.5/proto_dccp.c
Examining data/netsniff-ng-0.6.5/proto_ethernet.c
Examining data/netsniff-ng-0.6.5/proto_icmpv4.c
Examining data/netsniff-ng-0.6.5/proto_icmpv6.c
Examining data/netsniff-ng-0.6.5/proto_igmp.c
Examining data/netsniff-ng-0.6.5/proto_ip_authentication_hdr.c
Examining data/netsniff-ng-0.6.5/proto_ip_esp.c
Examining data/netsniff-ng-0.6.5/proto_ipv4.c
Examining data/netsniff-ng-0.6.5/proto_ipv6.c
Examining data/netsniff-ng-0.6.5/proto_ipv6_dest_opts.c
Examining data/netsniff-ng-0.6.5/proto_ipv6_fragm.c
Examining data/netsniff-ng-0.6.5/proto_ipv6_hop_by_hop.c
Examining data/netsniff-ng-0.6.5/proto_ipv6_in_ipv4.c
Examining data/netsniff-ng-0.6.5/proto_ipv6_mobility_hdr.c
Examining data/netsniff-ng-0.6.5/proto_ipv6_no_nxt_hdr.c
Examining data/netsniff-ng-0.6.5/proto_ipv6_routing.c
Examining data/netsniff-ng-0.6.5/proto_lldp.c
Examining data/netsniff-ng-0.6.5/proto_mpls_unicast.c
Examining data/netsniff-ng-0.6.5/proto_nlmsg.c
Examining data/netsniff-ng-0.6.5/proto_none.c
Examining data/netsniff-ng-0.6.5/proto_tcp.c
Examining data/netsniff-ng-0.6.5/proto_udp.c
Examining data/netsniff-ng-0.6.5/proto_vlan.c
Examining data/netsniff-ng-0.6.5/proto_vlan_q_in_q.c
Examining data/netsniff-ng-0.6.5/protos.h
Examining data/netsniff-ng-0.6.5/ring.c
Examining data/netsniff-ng-0.6.5/ring.h
Examining data/netsniff-ng-0.6.5/ring_rx.c
Examining data/netsniff-ng-0.6.5/ring_rx.h
Examining data/netsniff-ng-0.6.5/ring_tx.c
Examining data/netsniff-ng-0.6.5/ring_tx.h
Examining data/netsniff-ng-0.6.5/rnd.c
Examining data/netsniff-ng-0.6.5/rnd.h
Examining data/netsniff-ng-0.6.5/screen.c
Examining data/netsniff-ng-0.6.5/screen.h
Examining data/netsniff-ng-0.6.5/sig.c
Examining data/netsniff-ng-0.6.5/sig.h
Examining data/netsniff-ng-0.6.5/sock.c
Examining data/netsniff-ng-0.6.5/sock.h
Examining data/netsniff-ng-0.6.5/staging/automops.c
Examining data/netsniff-ng-0.6.5/staging/cdp.c
Examining data/netsniff-ng-0.6.5/staging/cli.c
Examining data/netsniff-ng-0.6.5/staging/cli.h
Examining data/netsniff-ng-0.6.5/staging/cli_arp.c
Examining data/netsniff-ng-0.6.5/staging/cli_bpdu.c
Examining data/netsniff-ng-0.6.5/staging/cli_cmds.c
Examining data/netsniff-ng-0.6.5/staging/cli_dns.c
Examining data/netsniff-ng-0.6.5/staging/cli_eth.c
Examining data/netsniff-ng-0.6.5/staging/cli_igmp.c
Examining data/netsniff-ng-0.6.5/staging/cli_interface.c
Examining data/netsniff-ng-0.6.5/staging/cli_ip.c
Examining data/netsniff-ng-0.6.5/staging/cli_launch.c
Examining data/netsniff-ng-0.6.5/staging/cli_legacy.c
Examining data/netsniff-ng-0.6.5/staging/cli_lldp.c
Examining data/netsniff-ng-0.6.5/staging/cli_packet.c
Examining data/netsniff-ng-0.6.5/staging/cli_rtp.c
Examining data/netsniff-ng-0.6.5/staging/cli_sequence.c
Examining data/netsniff-ng-0.6.5/staging/cli_set.c
Examining data/netsniff-ng-0.6.5/staging/cli_tcp.c
Examining data/netsniff-ng-0.6.5/staging/cli_tools.c
Examining data/netsniff-ng-0.6.5/staging/cli_udp.c
Examining data/netsniff-ng-0.6.5/staging/directmops.c
Examining data/netsniff-ng-0.6.5/staging/dns.c
Examining data/netsniff-ng-0.6.5/staging/hextools.c
Examining data/netsniff-ng-0.6.5/staging/layer1.c
Examining data/netsniff-ng-0.6.5/staging/layer2.c
Examining data/netsniff-ng-0.6.5/staging/layer3.c
Examining data/netsniff-ng-0.6.5/staging/layer4.c
Examining data/netsniff-ng-0.6.5/staging/llist.c
Examining data/netsniff-ng-0.6.5/staging/llist.h
Examining data/netsniff-ng-0.6.5/staging/lookupdev.c
Examining data/netsniff-ng-0.6.5/staging/mausezahn.c
Examining data/netsniff-ng-0.6.5/staging/modifications.c
Examining data/netsniff-ng-0.6.5/staging/mops.c
Examining data/netsniff-ng-0.6.5/staging/mops.h
Examining data/netsniff-ng-0.6.5/staging/mops_checksums.c
Examining data/netsniff-ng-0.6.5/staging/mops_dot1Q.c
Examining data/netsniff-ng-0.6.5/staging/mops_ext.c
Examining data/netsniff-ng-0.6.5/staging/mops_ext_arp.c
Examining data/netsniff-ng-0.6.5/staging/mops_ext_bpdu.c
Examining data/netsniff-ng-0.6.5/staging/mops_ext_igmp.c
Examining data/netsniff-ng-0.6.5/staging/mops_ext_lldp.c
Examining data/netsniff-ng-0.6.5/staging/mops_ext_rtp.c
Examining data/netsniff-ng-0.6.5/staging/mops_ip.c
Examining data/netsniff-ng-0.6.5/staging/mops_mpls.c
Examining data/netsniff-ng-0.6.5/staging/mops_sequence.c
Examining data/netsniff-ng-0.6.5/staging/mops_tcp.c
Examining data/netsniff-ng-0.6.5/staging/mops_threads.c
Examining data/netsniff-ng-0.6.5/staging/mops_tools.c
Examining data/netsniff-ng-0.6.5/staging/mops_update.c
Examining data/netsniff-ng-0.6.5/staging/mopsrx_arp.c
Examining data/netsniff-ng-0.6.5/staging/mz.h
Examining data/netsniff-ng-0.6.5/staging/parse_xml.c
Examining data/netsniff-ng-0.6.5/staging/rcv_rtp.c
Examining data/netsniff-ng-0.6.5/staging/rtp.c
Examining data/netsniff-ng-0.6.5/staging/send.c
Examining data/netsniff-ng-0.6.5/staging/send_eth.c
Examining data/netsniff-ng-0.6.5/staging/syslog.c
Examining data/netsniff-ng-0.6.5/staging/time.c
Examining data/netsniff-ng-0.6.5/staging/tools.c
Examining data/netsniff-ng-0.6.5/staging/tx_switch.c
Examining data/netsniff-ng-0.6.5/str.c
Examining data/netsniff-ng-0.6.5/str.h
Examining data/netsniff-ng-0.6.5/stun.c
Examining data/netsniff-ng-0.6.5/stun.h
Examining data/netsniff-ng-0.6.5/sysctl.c
Examining data/netsniff-ng-0.6.5/sysctl.h
Examining data/netsniff-ng-0.6.5/taia.c
Examining data/netsniff-ng-0.6.5/taia.h
Examining data/netsniff-ng-0.6.5/timer.c
Examining data/netsniff-ng-0.6.5/timer.h
Examining data/netsniff-ng-0.6.5/tprintf.c
Examining data/netsniff-ng-0.6.5/tprintf.h
Examining data/netsniff-ng-0.6.5/trafgen.c
Examining data/netsniff-ng-0.6.5/trafgen_conf.h
Examining data/netsniff-ng-0.6.5/trafgen_dev.c
Examining data/netsniff-ng-0.6.5/trafgen_dev.h
Examining data/netsniff-ng-0.6.5/trafgen_dump.c
Examining data/netsniff-ng-0.6.5/trafgen_dump.h
Examining data/netsniff-ng-0.6.5/trafgen_l2.c
Examining data/netsniff-ng-0.6.5/trafgen_l2.h
Examining data/netsniff-ng-0.6.5/trafgen_l3.c
Examining data/netsniff-ng-0.6.5/trafgen_l3.h
Examining data/netsniff-ng-0.6.5/trafgen_l4.c
Examining data/netsniff-ng-0.6.5/trafgen_l4.h
Examining data/netsniff-ng-0.6.5/trafgen_l7.c
Examining data/netsniff-ng-0.6.5/trafgen_l7.h
Examining data/netsniff-ng-0.6.5/trafgen_proto.c
Examining data/netsniff-ng-0.6.5/trafgen_proto.h
Examining data/netsniff-ng-0.6.5/trafgen_stddef.h
Examining data/netsniff-ng-0.6.5/trie.c
Examining data/netsniff-ng-0.6.5/trie.h
Examining data/netsniff-ng-0.6.5/tstamping.c
Examining data/netsniff-ng-0.6.5/tstamping.h
Examining data/netsniff-ng-0.6.5/ui.c
Examining data/netsniff-ng-0.6.5/ui.h
Examining data/netsniff-ng-0.6.5/urcu-list-compat.h
Examining data/netsniff-ng-0.6.5/vlan.h
Examining data/netsniff-ng-0.6.5/xmalloc.c
Examining data/netsniff-ng-0.6.5/xmalloc.h

FINAL RESULTS:

data/netsniff-ng-0.6.5/bpf_jit_disasm.c:48:8:  [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.
	len = readlink(path, tpath, size);
data/netsniff-ng-0.6.5/mac80211.c:50:8:  [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.
	num = readlink(pathstr, phydev_path, phydev_len);
data/netsniff-ng-0.6.5/proc.c:79:8:  [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.
	ret = readlink(path, cmdline, len - 1);
data/netsniff-ng-0.6.5/bpf_jit_disasm.c:70:55:  [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.
	init_disassemble_info(&info, stdout, (fprintf_ftype) fprintf);
data/netsniff-ng-0.6.5/built_in.h:41:27:  [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.
		__attribute__ ((format (printf, (pos_fmtstr), (pos_fmtargs))))
data/netsniff-ng-0.6.5/die.h:51:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, format, vl);
data/netsniff-ng-0.6.5/flowtop.c:884:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, len, unit_fmt[rate_type][0], rate / 1000000000.);
data/netsniff-ng-0.6.5/flowtop.c:886:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, len, unit_fmt[rate_type][1], rate / 1000000.);
data/netsniff-ng-0.6.5/flowtop.c:888:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, len, unit_fmt[rate_type][2], rate / 1000.);
data/netsniff-ng-0.6.5/flowtop.c:890:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buf, len, unit_fmt[rate_type][3], rate);
data/netsniff-ng-0.6.5/ifpps.c:451: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.
			if (sscanf(ptr, "%"SCNu64"%"SCNu64"%"SCNu64"%"SCNu64"%"SCNu64,
data/netsniff-ng-0.6.5/proc.c:171:7:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (execvp(proc, argv) < 0)
data/netsniff-ng-0.6.5/staging/cdp.c:531: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(argval, "%u/%s",  &type1, value1);
data/netsniff-ng-0.6.5/staging/cdp.c:539: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(argval, "%u/%s",  &type2, pld);
data/netsniff-ng-0.6.5/staging/cli.c:31:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(mz_username, MZ_DEFAULT_USERNAME);
data/netsniff-ng-0.6.5/staging/cli.c:32:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(mz_password, MZ_DEFAULT_PASSWORD);
data/netsniff-ng-0.6.5/staging/cli.c:33:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(mz_enable, MZ_DEFAULT_ENABLE_PASSWORD);
data/netsniff-ng-0.6.5/staging/cli.c:79:21:  [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 (!user) user = sscanf(line, " user = %s ", mz_username);
data/netsniff-ng-0.6.5/staging/cli.c:80:21:  [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 (!pass) pass = sscanf(line, " password = %s ", mz_password);
data/netsniff-ng-0.6.5/staging/cli.c:81:21:  [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 (!ena)  ena  = sscanf(line, " enable = %s ", mz_enable);
data/netsniff-ng-0.6.5/staging/cli.c:83:21:  [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 (!addr) addr = sscanf(line, " listen-addr = %s ", mz_listen_addr);
data/netsniff-ng-0.6.5/staging/cli.c:84:21:  [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 (!cli)  cli  = sscanf(line, " cli-device = %s ", dev);
data/netsniff-ng-0.6.5/staging/cli.c:101:32:  [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 (!mgmt_only) mgmt_only  = sscanf(line, " management-only  = %s ", dev);
data/netsniff-ng-0.6.5/staging/cli.c:117:10:  [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.
			amp = sscanf(line, " automops = %s ", path);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:327:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	     sprintf(line, "%5i  %-16s  %s  %-8s %4i  %-9s  %-6s    %10s%9lu/%lu (%i%%)\r",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:395:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(line, "State: %s, Count=%lu, delay=%s (%lu s %lu nsec), interval= %s\r",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:448:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		  sprintf(ds, "%i:%i%s",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:475:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		  sprintf(ds, "%i:%i:%i%s",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:501:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	     sprintf(line, "SA=%u.%u.%u.%u %s %s %s",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:520:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	     sprintf(line, "DA=%u.%u.%u.%u %s %s",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:526:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	     sprintf(line, "ToS=0x%02x  proto=%u  TTL=%u  ID=%u  offset=%u  flags: %s|%s|%s",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:541:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	     sprintf(line, "len=%u(%s)  checksum=0x%02x%02x(%s)",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:562:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	     sprintf(line, "SP=%i %s %s, DP=%i %s %s\r",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:570:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	     sprintf(line, "checksum= %04x (%s), length= %u (%s)",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:588:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	     sprintf(line, "SP=%i %s %s, DP=%i %s %s\r",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:596:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
             sprintf(line, "SQNR=%u (start %u, stop %u, delta %u) -- ACKNR=%u %s",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:605:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
             sprintf(line, "Flags: %s, reserved field is %02x, urgent pointer= %u",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:612:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	     sprintf(line, "Offset= %u (times 32 bit; value is %s), checksum= %04x (%s)",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:618:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	     sprintf(line, "%s - %u bytes defined",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:688:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(line, "%-10s  %-15s  %02x:%02x:%02x:%02x:%02x:%02x     %-15s  %02x:%02x:%02x:%02x:%02x:%02x",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:727:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(line, "interface %s [%i] %s%stype %s, MTU=%i bytes", // general HW info
data/netsniff-ng-0.6.5/staging/cli_cmds.c:749:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(line,"IP addr: %s  mask %u.%u.%u.%u  (net %u.%u.%u.%u)",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:1380:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(s, "%-7s [%i] %s%s %15s  %02x:%02x:%02x:%02x:%02x:%02x  %8s %5s %5s %5s  %04x",
data/netsniff-ng-0.6.5/staging/cli_interface.c:47:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		  sprintf(prompt, "if-%s", device_list[i].dev);
data/netsniff-ng-0.6.5/staging/cli_ip.c:854:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(str, "%s", (clipkt->auto_delivery_off) ? "DISABLED" : "ENABLED");
data/netsniff-ng-0.6.5/staging/cli_ip.c:873:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(str, "%s", (clipkt->auto_delivery_off) ? "DISABLED" : "ENABLED");
data/netsniff-ng-0.6.5/staging/cli_rtp.c:56:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(state, "%s", (pd->p) ? "SET" : "UNSET");
data/netsniff-ng-0.6.5/staging/cli_rtp.c:83:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(state, "%s", (pd->x) ? "SET" : "UNSET");
data/netsniff-ng-0.6.5/staging/cli_rtp.c:109:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(state, "%s", (pd->m) ? "SET" : "UNSET");
data/netsniff-ng-0.6.5/staging/cli_tools.c:36:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(str256, "The default value is %s. The current value is %u (0x%04x).", def, val, val);
data/netsniff-ng-0.6.5/staging/hextools.c:53:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(tmp,str); // necessary because strtok cannot operate on fixed strings
data/netsniff-ng-0.6.5/staging/hextools.c:167:2:  [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(str,t);
data/netsniff-ng-0.6.5/staging/lookupdev.c:233: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(line, "  %s %s %s %s %s %s %s %s %s %s", f[0], f[1], f[2], f[3], f[4], f[5], f[6], f[7], f[8], f[9]);
data/netsniff-ng-0.6.5/staging/mausezahn.c:653: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(tx.arg_string, hexpld);
data/netsniff-ng-0.6.5/staging/mops.c:530:2:  [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(hex, lnr);
data/netsniff-ng-0.6.5/staging/mops.c:543: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(hex, lnr);
data/netsniff-ng-0.6.5/staging/mops.c:547:7:  [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(hex, octet);
data/netsniff-ng-0.6.5/staging/mops.c:552:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(str, hex);
data/netsniff-ng-0.6.5/staging/mops_tcp.c:87:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(str, "%s-%s-%s-%s-%s-%s-%s-%s",
data/netsniff-ng-0.6.5/staging/mops_tools.c:249:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(str, "%u%s sec", s, (t->tv_nsec>1000000) ? "+" : "");
data/netsniff-ng-0.6.5/staging/mz.h:55:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, format, vl);
data/netsniff-ng-0.6.5/staging/mz.h:67:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, format, vl);
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:763:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(bar, "%s%4.2f msec !%lu dropped!", str, (double) j/1000, (unsigned long int) d);
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:765:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(bar, "%s%4.2f msec", str, (double) j/1000);
data/netsniff-ng-0.6.5/staging/send_eth.c:127: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(tx.mpls_verbose_string, verbose_mpls_string);
data/netsniff-ng-0.6.5/staging/syslog.c:212:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf((char*) tx.udp_payload, "<%d>%s %2i %s %s ",
data/netsniff-ng-0.6.5/staging/tools.c:103:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			    strcpy(arg_value,subtoken);
data/netsniff-ng-0.6.5/str.c:34:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = vsnprintf(dst, size, fmt, ap);
data/netsniff-ng-0.6.5/tprintf.c:138:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = vsnprintf(buffer + buffer_use, avail, msg, vl);
data/netsniff-ng-0.6.5/tprintf.c:152:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = vsnprintf(buffer + buffer_use, avail, msg, vl);
data/netsniff-ng-0.6.5/trafgen_dump.c:17: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.
#define DUMP(fmt, ...) fprintf((ctx)->file, fmt, ##__VA_ARGS__)
data/netsniff-ng-0.6.5/astraceroute.c:952:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/netsniff-ng-0.6.5/astraceroute.c:965:14:  [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, short_options, long_options,
data/netsniff-ng-0.6.5/bpfc.c:97:14:  [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, short_options, long_options,
data/netsniff-ng-0.6.5/curvetun.c:180:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *home = getenv("HOME");
data/netsniff-ng-0.6.5/curvetun.c:195:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	printf("Username: [%s] ", getenv("USER"));
data/netsniff-ng-0.6.5/curvetun.c:204:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		strlcpy(user, getenv("USER"), sizeof(user));
data/netsniff-ng-0.6.5/curvetun.c:558:14:  [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, short_options, long_options,
data/netsniff-ng-0.6.5/flowtop.c:1879:14:  [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, short_options, long_options,
data/netsniff-ng-0.6.5/ifpps.c:1356:14:  [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, short_options, long_options,
data/netsniff-ng-0.6.5/netsniff-ng.c:1305:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(start_time);
data/netsniff-ng-0.6.5/netsniff-ng.c:1307:14:  [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, short_options, long_options,
data/netsniff-ng-0.6.5/staging/mausezahn.c:341:4:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   srand((unsigned int)t);
data/netsniff-ng-0.6.5/staging/mausezahn.c:406:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, short_options)) != -1)
data/netsniff-ng-0.6.5/staging/modifications.c:50:4:  [3] (random) nrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   nrand48((unsigned short *)addr);
data/netsniff-ng-0.6.5/staging/modifications.c:51:4:  [3] (random) nrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   nrand48((unsigned short *)(addr + 3));
data/netsniff-ng-0.6.5/staging/mops.h:124:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   int         random;  // 1=random, 0=use start/stop/step
data/netsniff-ng-0.6.5/staging/mops.h:840:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			  int         random,  // 1=random, 0=use start/stop/step
data/netsniff-ng-0.6.5/staging/mops_tools.c:138:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			  int         random,  // 1=random, 0=use start/stop/step
data/netsniff-ng-0.6.5/staging/mops_tools.c:160:28:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   mp->counter[i].random = random;
data/netsniff-ng-0.6.5/staging/tools.c:1353:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(r);
data/netsniff-ng-0.6.5/stun.c:181:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/netsniff-ng-0.6.5/trafgen.c:1039:14:  [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, short_options, long_options,
data/netsniff-ng-0.6.5/trafgen.c:1320:4:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			srand(seed);
data/netsniff-ng-0.6.5/astraceroute.c:456: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 hbuff[NI_MAXHOST];
data/netsniff-ng-0.6.5/astraceroute.c:526: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 hbuff[NI_MAXHOST];
data/netsniff-ng-0.6.5/astraceroute.c:536: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(&sd.sin6_addr, &ip6h->ip6_src, sizeof(ip6h->ip6_src));
data/netsniff-ng-0.6.5/astraceroute.c:570: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 hbuffs[256], hbuffd[256];
data/netsniff-ng-0.6.5/astraceroute.c:596: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 bind_ip[sizeof(struct in6_addr)];
data/netsniff-ng-0.6.5/astraceroute.c:631: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(&ss6->sin6_addr.s6_addr, &bind_ip, sizeof(struct in6_addr));
data/netsniff-ng-0.6.5/astraceroute.c:634: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(&ss4->sin_addr.s_addr, &bind_ip, sizeof(struct in_addr));
data/netsniff-ng-0.6.5/astraceroute.c:643: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(sd, ai->ai_addr, ai->ai_addrlen);
data/netsniff-ng-0.6.5/astraceroute.c:1002:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			ctx.init_ttl = atoi(optarg);
data/netsniff-ng-0.6.5/astraceroute.c:1007: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).
			ctx.max_ttl = atoi(optarg);
data/netsniff-ng-0.6.5/astraceroute.c:1020: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).
			ctx.queries = atoi(optarg);
data/netsniff-ng-0.6.5/astraceroute.c:1025: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).
			ctx.timeout = atoi(optarg);
data/netsniff-ng-0.6.5/astraceroute.c:1055:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			ctx.tos = atoi(optarg);
data/netsniff-ng-0.6.5/bpf.c:133: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 image[256];
data/netsniff-ng-0.6.5/bpf.c:134:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char operand[64];
data/netsniff-ng-0.6.5/bpf.c:710: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 buff[256];
data/netsniff-ng-0.6.5/bpf.c:720: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(&bpf->filter[0], &sf_single, sizeof(sf_single));
data/netsniff-ng-0.6.5/bpf.c:727:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fp = fopen(rulefile, "r");
data/netsniff-ng-0.6.5/bpf.c:756: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(&bpf->filter[bpf->len - 1], &sf_single,
data/netsniff-ng-0.6.5/bpf_jit_disasm.c:58:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tpath[256];
data/netsniff-ng-0.6.5/curve.c:77:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file[128];
data/netsniff-ng-0.6.5/curve.c:79: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 secretkey_own[crypto_box_sec_key_size];
data/netsniff-ng-0.6.5/curve.c:80: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 publickey_own[crypto_box_pub_key_size];
data/netsniff-ng-0.6.5/curve.c:132: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(NONCE_PKT_OFFSET(curve->enc),
data/netsniff-ng-0.6.5/curve.c:170: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(NONCE_EDN_OFFSET(proto->dnonce),
data/netsniff-ng-0.6.5/curve.h:12: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 enonce[crypto_box_noncebytes] __aligned_16;
data/netsniff-ng-0.6.5/curve.h:13: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 dnonce[crypto_box_noncebytes] __aligned_16;
data/netsniff-ng-0.6.5/curve.h:14: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 key[crypto_box_beforenmbytes] __aligned_16;
data/netsniff-ng-0.6.5/curve_test.c:9: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 alicesk[32] = {
data/netsniff-ng-0.6.5/curve_test.c:15: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 bobpk[32] = {
data/netsniff-ng-0.6.5/curve_test.c:21: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 nonce[24] = {
data/netsniff-ng-0.6.5/curve_test.c:26: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 m[163] = {
data/netsniff-ng-0.6.5/curve_test.c:49: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 c[163];
data/netsniff-ng-0.6.5/curve_test.c:50: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 result[147] = {
data/netsniff-ng-0.6.5/curvetun.c:145:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/netsniff-ng-0.6.5/curvetun.c:189:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/netsniff-ng-0.6.5/curvetun.c:190:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char user[512];
data/netsniff-ng-0.6.5/curvetun.c:220:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/netsniff-ng-0.6.5/curvetun.c:253: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 publickey[crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES] = { 0 };
data/netsniff-ng-0.6.5/curvetun.c:254: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 secretkey[crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES] = { 0 };
data/netsniff-ng-0.6.5/curvetun.c:255:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/netsniff-ng-0.6.5/curvetun.c:266:7:  [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(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
data/netsniff-ng-0.6.5/curvetun.c:287:7:  [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(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
data/netsniff-ng-0.6.5/curvetun.c:317: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 publickey[crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES];
data/netsniff-ng-0.6.5/curvetun.c:318: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 publicres[crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES];
data/netsniff-ng-0.6.5/curvetun.c:319: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 secretkey[crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES];
data/netsniff-ng-0.6.5/curvetun.c:320:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/netsniff-ng-0.6.5/curvetun.c:325:7:  [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(path, O_RDONLY);
data/netsniff-ng-0.6.5/curvetun.c:344:7:  [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(path, O_RDONLY);
data/netsniff-ng-0.6.5/curvetun.c:392:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX], tmp[64];
data/netsniff-ng-0.6.5/curvetun.c:471: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 pidstr[8];
data/netsniff-ng-0.6.5/curvetun.c:486:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		lfp = open(lockfile, O_RDWR | O_CREAT | O_EXCL,
data/netsniff-ng-0.6.5/curvetun_client.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 username[256], path[PATH_MAX], *us, *cbuff, *msg;
data/netsniff-ng-0.6.5/curvetun_client.c:227: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 auth[crypto_auth_hmacsha512256_BYTES], *token;
data/netsniff-ng-0.6.5/curvetun_client.c:269: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(msg, auth, sizeof(auth));
data/netsniff-ng-0.6.5/curvetun_client.c:270: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(msg + sizeof(auth), cbuff, clen);
data/netsniff-ng-0.6.5/curvetun_mgmt_servers.c:26: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 alias[256];
data/netsniff-ng-0.6.5/curvetun_mgmt_servers.c:27: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 host[256];
data/netsniff-ng-0.6.5/curvetun_mgmt_servers.c:28:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char port[6]; /* 5 + \0 */
data/netsniff-ng-0.6.5/curvetun_mgmt_servers.c:29: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 publickey[crypto_box_pub_key_size];
data/netsniff-ng-0.6.5/curvetun_mgmt_servers.c:31:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char auth_token[crypto_auth_hmacsha512256_KEYBYTES];
data/netsniff-ng-0.6.5/curvetun_mgmt_servers.c:66: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 pkey[crypto_box_pub_key_size];
data/netsniff-ng-0.6.5/curvetun_mgmt_servers.c:122:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX], buff[1024];
data/netsniff-ng-0.6.5/curvetun_mgmt_servers.c:131:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(path, "r");
data/netsniff-ng-0.6.5/curvetun_mgmt_users.c:30: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 username[256];
data/netsniff-ng-0.6.5/curvetun_mgmt_users.c:31:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char publickey[crypto_box_pub_key_size];
data/netsniff-ng-0.6.5/curvetun_mgmt_users.c:58: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 token[crypto_auth_hmacsha512256_KEYBYTES];
data/netsniff-ng-0.6.5/curvetun_mgmt_users.c:200: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 pkey[crypto_box_pub_key_size];
data/netsniff-ng-0.6.5/curvetun_mgmt_users.c:247:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX], buff[512];
data/netsniff-ng-0.6.5/curvetun_mgmt_users.c:256:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(path, "r");
data/netsniff-ng-0.6.5/curvetun_mgmt_users.c:352: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 h[crypto_hash_sha512_BYTES];
data/netsniff-ng-0.6.5/curvetun_mgmt_users.c:386: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 h[crypto_hash_sha512_BYTES];
data/netsniff-ng-0.6.5/curvetun_mgmt_users.c:466: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 auth[crypto_auth_hmacsha512256_BYTES];
data/netsniff-ng-0.6.5/curvetun_mgmt_users.c:544: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 auth[crypto_auth_hmacsha512256_BYTES];
data/netsniff-ng-0.6.5/curvetun_server.c:688: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 hbuff[256], sbuff[256];
data/netsniff-ng-0.6.5/dev.c:91: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(ss, ifa->ifa_addr, sizeof(*ss));
data/netsniff-ng-0.6.5/dev.c:121: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(ss, &ifr.ifr_addr, sizeof(ifr.ifr_addr));
data/netsniff-ng-0.6.5/dev.c:146:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(addr, &ifr.ifr_hwaddr.sa_data[0], IFHWADDRLEN);
data/netsniff-ng-0.6.5/dissector.h:31: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.
static const char * const packet_types[256] = {
data/netsniff-ng-0.6.5/dissector.h:57:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[IFNAMSIZ];
data/netsniff-ng-0.6.5/dissector_sll.c:42:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr_str[40] = {};
data/netsniff-ng-0.6.5/dissector_sll.c:72:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr_str[40] = {};
data/netsniff-ng-0.6.5/flowtop.c:72:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[256];
data/netsniff-ng-0.6.5/flowtop.c:88: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 country_src[128], country_dst[128];
data/netsniff-ng-0.6.5/flowtop.c:89: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 country_code_src[4], country_code_dst[4];
data/netsniff-ng-0.6.5/flowtop.c:90: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 city_src[128], city_dst[128];
data/netsniff-ng-0.6.5/flowtop.c:91: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 rev_dns_src[256], rev_dns_dst[256];
data/netsniff-ng-0.6.5/flowtop.c:236: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.
static const char *const l4proto2str[IPPROTO_MAX] = {
data/netsniff-ng-0.6.5/flowtop.c:258: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.
static const char *const tcp_state2str[TCP_CONNTRACK_MAX] = {
data/netsniff-ng-0.6.5/flowtop.c:271: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.
static const char *const dccp_state2str[DCCP_CONNTRACK_MAX] = {
data/netsniff-ng-0.6.5/flowtop.c:284: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.
static const char *const sctp_state2str[SCTP_CONNTRACK_MAX] = {
data/netsniff-ng-0.6.5/flowtop.c:548: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 cmdline[512];
data/netsniff-ng-0.6.5/flowtop.c:574:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[128], buff[1024];
data/netsniff-ng-0.6.5/flowtop.c:581: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).
	proc = fopen(path, "r");
data/netsniff-ng-0.6.5/flowtop.c:870:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char * const unit_fmt[2][4] = {
data/netsniff-ng-0.6.5/flowtop.c:985:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[128];
data/netsniff-ng-0.6.5/flowtop.c:1031:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[128];
data/netsniff-ng-0.6.5/flowtop.c:1179:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[128];
data/netsniff-ng-0.6.5/geoip.c:76: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 *servers[16] = { NULL };
data/netsniff-ng-0.6.5/geoip.c:137:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char zfile[128], raw[4096];
data/netsniff-ng-0.6.5/geoip.c:144: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).
	fpo = fopen(files[which].local, "wb");
data/netsniff-ng-0.6.5/geoip.c:162: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 raw[4096], *ptr, zfile[128];
data/netsniff-ng-0.6.5/geoip.c:624: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 buff[256];
data/netsniff-ng-0.6.5/geoip.c:626:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(ETCDIRE_STRING "/geoip.conf", "r");
data/netsniff-ng-0.6.5/ifpps.c:225: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 buff[256];
data/netsniff-ng-0.6.5/ifpps.c:229:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen("/proc/net/dev", "r");
data/netsniff-ng-0.6.5/ifpps.c:283:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen("/proc/interrupts", "r");
data/netsniff-ng-0.6.5/ifpps.c:341:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen("/proc/softirqs", "r");
data/netsniff-ng-0.6.5/ifpps.c:384: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 *ptr, buff[256];
data/netsniff-ng-0.6.5/ifpps.c:387:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen("/proc/meminfo", "r");
data/netsniff-ng-0.6.5/ifpps.c:429: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 *ptr, buff[256];
data/netsniff-ng-0.6.5/ifpps.c:432:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen("/proc/stat", "r");
data/netsniff-ng-0.6.5/ifpps.c:708: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 buff[64], machine[64];
data/netsniff-ng-0.6.5/ioops.c:22: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).
	int ret = open(file, flags);
data/netsniff-ng-0.6.5/ioops.c:30: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).
	int ret = open(file, flags, mode);
data/netsniff-ng-0.6.5/irq.c:17: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 buff[128], sysname[128];
data/netsniff-ng-0.6.5/irq.c:27:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(sysname, "r");
data/netsniff-ng-0.6.5/irq.c:35: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).
		irq = atoi(buff);
data/netsniff-ng-0.6.5/irq.c:42:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char nic_irq_affinity_list[128];
data/netsniff-ng-0.6.5/irq.c:49:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file[128];
data/netsniff-ng-0.6.5/irq.c:56:7:  [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(file, O_RDONLY);
data/netsniff-ng-0.6.5/irq.c:75:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file[128];
data/netsniff-ng-0.6.5/irq.c:85:7:  [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(file, O_WRONLY);
data/netsniff-ng-0.6.5/irq.c:100:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file[128], list[64];
data/netsniff-ng-0.6.5/irq.c:112:7:  [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(file, O_WRONLY);
data/netsniff-ng-0.6.5/keypair.c:19: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 publickey[crypto_box_pub_key_size];
data/netsniff-ng-0.6.5/keypair.c:20: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 secretkey[crypto_box_sec_key_size];
data/netsniff-ng-0.6.5/keypair.c:21:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file[128];
data/netsniff-ng-0.6.5/keypair.c:50: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 publickey[crypto_box_pub_key_size];
data/netsniff-ng-0.6.5/keypair.c:51: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 publicres[crypto_box_pub_key_size];
data/netsniff-ng-0.6.5/keypair.c:52: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 secretkey[crypto_box_sec_key_size];
data/netsniff-ng-0.6.5/keypair.c:53:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file[128];
data/netsniff-ng-0.6.5/lookup.c:36: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 buff[128], *ptr, *end;
data/netsniff-ng-0.6.5/lookup.c:48:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(file, "r");
data/netsniff-ng-0.6.5/mac80211.c:217: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 phydev_path[256];
data/netsniff-ng-0.6.5/mac80211.c:225: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 mondevice[32];
data/netsniff-ng-0.6.5/netsniff-ng.c:519: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(out, in, hdr_in->tp_h.tp_len);
data/netsniff-ng-0.6.5/netsniff-ng.c:585: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 bout[80];
data/netsniff-ng-0.6.5/netsniff-ng.c:643: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(ctx->device_in, O_RDONLY | O_LARGEFILE | O_NOATIME);
data/netsniff-ng-0.6.5/netsniff-ng.c:797:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fname[PATH_MAX];
data/netsniff-ng-0.6.5/netsniff-ng.c:847:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fname[PATH_MAX];
data/netsniff-ng-0.6.5/netsniff-ng.c:891:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fname[PATH_MAX];
data/netsniff-ng-0.6.5/patricia.c:128: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(addr, node->addr, node->alen);
data/netsniff-ng-0.6.5/patricia.c:160: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(addr, node->addr, node->alen);
data/netsniff-ng-0.6.5/pcap_io.h:190: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(sll->sll_addr, ll->addr, sizeof(ll->addr));
data/netsniff-ng-0.6.5/pcap_mm.c:59: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(ptr_va_curr, &phdr->raw, hdrsize);
data/netsniff-ng-0.6.5/pcap_mm.c:61:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr_va_curr, packet, len);
data/netsniff-ng-0.6.5/pcap_mm.c:75: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(&phdr->raw, ptr_va_curr, hdrsize);
data/netsniff-ng-0.6.5/pcap_mm.c:84: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(packet, ptr_va_curr, hdrlen);
data/netsniff-ng-0.6.5/pcap_sg.c:36: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(iov[iov_slot].iov_base, &phdr->raw, hdrsize);
data/netsniff-ng-0.6.5/pcap_sg.c:39: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(iov[iov_slot].iov_base + iov[iov_slot].iov_len, packet, len);
data/netsniff-ng-0.6.5/pcap_sg.c:60: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(&phdr->raw, iov[iov_slot].iov_base + iov_off_rd, offset);
data/netsniff-ng-0.6.5/pcap_sg.c:71:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&phdr->raw + offset, iov[iov_slot].iov_base + iov_off_rd, remainder);
data/netsniff-ng-0.6.5/pcap_sg.c:90: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(packet, iov[iov_slot].iov_base + iov_off_rd, offset);
data/netsniff-ng-0.6.5/pcap_sg.c:101: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(packet + offset, iov[iov_slot].iov_base + iov_off_rd, remainder);
data/netsniff-ng-0.6.5/pcap_sg.c:114: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(&phdr->raw, iov[iov_slot].iov_base + iov_off_rd, hdrsize);
data/netsniff-ng-0.6.5/pcap_sg.c:127: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(packet, iov[iov_slot].iov_base + iov_off_rd, hdrlen);
data/netsniff-ng-0.6.5/proc.c:76:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[1024];
data/netsniff-ng-0.6.5/proc.c:91:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[1024];
data/netsniff-ng-0.6.5/proc.c:190:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[1024];
data/netsniff-ng-0.6.5/proto_80211_mac_hdr.c:1353: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 src_ip[INET_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_80211_mac_hdr.c:1354: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 dst_ip[INET_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_80211_mac_hdr.c:1374: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 src_ip[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_80211_mac_hdr.c:1375: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 dst_ip[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_80211_mac_hdr.c:1455: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 src_ip[INET_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_80211_mac_hdr.c:1456: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 dst_ip[INET_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_80211_mac_hdr.c:1476: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 src_ip[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_80211_mac_hdr.c:1477: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 dst_ip[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_arp.c:66: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 ip_str[INET_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_icmpv6.c:143: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[0];
data/netsniff-ng-0.6.5/proto_icmpv6.c:285:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char address[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_icmpv6.c:314: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 address[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_icmpv6.c:411: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 address[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_icmpv6.c:638: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 address[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_icmpv6.c:1025: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 address[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_icmpv6.c:1074: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 address[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_icmpv6.c:1131: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 address[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_icmpv6.c:1149: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 address[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_icmpv6.c:1171: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 address[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_igmp.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     addr[INET_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_igmp.c:276:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char     addr[INET_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_igmp.c:300:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char     addr[INET_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_igmp.c:336:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char      addr[INET_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_igmp.c:389:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char      addr[INET_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_ipv4.c:37: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 src_ip[INET_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_ipv4.c:38: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 dst_ip[INET_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_ipv4.c:182: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 src_ip[INET_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_ipv4.c:183: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 dst_ip[INET_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_ipv6.c:26: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 src_ip[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_ipv6.c:27: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 dst_ip[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_ipv6.c:56: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(&sas.sin6_addr, &ip->saddr, sizeof(ip->saddr));
data/netsniff-ng-0.6.5/proto_ipv6.c:60: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(&sad.sin6_addr, &ip->daddr, sizeof(ip->daddr));
data/netsniff-ng-0.6.5/proto_ipv6.c:99:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char src_ip[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_ipv6.c:100: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 dst_ip[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_ipv6_mobility_hdr.c:185: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 address[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_ipv6_routing.c:37: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 address[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/proto_lldp.c:91:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/netsniff-ng-0.6.5/proto_nlmsg.c:309: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 flags[256];
data/netsniff-ng-0.6.5/proto_nlmsg.c:310: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 if_addr[64] = {};
data/netsniff-ng-0.6.5/proto_nlmsg.c:370: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 states[256];
data/netsniff-ng-0.6.5/proto_nlmsg.c:383: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 str[32];
data/netsniff-ng-0.6.5/proto_nlmsg.c:418:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr_str[256];
data/netsniff-ng-0.6.5/proto_nlmsg.c:419: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 flags[256];
data/netsniff-ng-0.6.5/proto_nlmsg.c:578:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr_str[256];
data/netsniff-ng-0.6.5/proto_nlmsg.c:579: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 flags[256];
data/netsniff-ng-0.6.5/proto_nlmsg.c:724:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr_str[256];
data/netsniff-ng-0.6.5/proto_nlmsg.c:725: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 hw_addr[30];
data/netsniff-ng-0.6.5/proto_nlmsg.c:726: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 states[256];
data/netsniff-ng-0.6.5/proto_nlmsg.c:727: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 flags[256];
data/netsniff-ng-0.6.5/proto_nlmsg.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 str[256];
data/netsniff-ng-0.6.5/proto_nlmsg.c:961: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 type[32];
data/netsniff-ng-0.6.5/proto_nlmsg.c:962: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 flags[128];
data/netsniff-ng-0.6.5/proto_nlmsg.c:963: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 procname[PATH_MAX];
data/netsniff-ng-0.6.5/proto_nlmsg.c:1043: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 type[32];
data/netsniff-ng-0.6.5/rnd.c:19:10:  [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).
			fdw = open(LOW_ENTROPY_SOURCE, O_RDONLY);
data/netsniff-ng-0.6.5/staging/automops.c:188:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[64], ft[32];
data/netsniff-ng-0.6.5/staging/automops.c:191: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 bits_on[18], bits_off[18];
data/netsniff-ng-0.6.5/staging/automops.c:308: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((void*) new_automops->payload, amp->payload, amp->payload_s);
data/netsniff-ng-0.6.5/staging/automops.c:351: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((void*) h->str, (void*) f->str, f->str_s);
data/netsniff-ng-0.6.5/staging/automops.c:602: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((void*)amp->payload, (void*) x, i);
data/netsniff-ng-0.6.5/staging/automops.c:969:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen (fn, "r");
data/netsniff-ng-0.6.5/staging/cdp.c:127: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((void*) target, (void*) value, (size_t) value_len);
data/netsniff-ng-0.6.5/staging/cdp.c:166: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 
data/netsniff-ng-0.6.5/staging/cdp.c:199: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      
data/netsniff-ng-0.6.5/staging/cdp.c:250: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((void*) tx.cdp_tlv_id, (void*) default_id, 15);
data/netsniff-ng-0.6.5/staging/cdp.c:323: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((void*) tx.cdp_tlv_id, (void*) "Mausezahn 00000000000", 21);
data/netsniff-ng-0.6.5/staging/cdp.c:335: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((void*) tx.cdp_payload+next_pbyte, (void*) tlv, tlv_len);
data/netsniff-ng-0.6.5/staging/cdp.c:367: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((void*) tx.cdp_payload+next_pbyte, (void*) tlv, tlv_len);
data/netsniff-ng-0.6.5/staging/cdp.c:379: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((void*) tx.cdp_payload+next_pbyte, (void*) tlv, tlv_len);
data/netsniff-ng-0.6.5/staging/cdp.c:407: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((void*) tx.cdp_payload+next_pbyte, (void*) tlv, tlv_len);
data/netsniff-ng-0.6.5/staging/cdp.c:418:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void*) tx.cdp_payload+next_pbyte, (void*) tlv, tlv_len);
data/netsniff-ng-0.6.5/staging/cdp.c:429:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void*) tx.cdp_payload+next_pbyte, (void*) tlv, tlv_len);
data/netsniff-ng-0.6.5/staging/cdp.c:439: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((void*) tx.cdp_payload+next_pbyte, (void*) tlv, tlv_len);
data/netsniff-ng-0.6.5/staging/cdp.c:459: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((void*) tx.cdp_payload+next_pbyte, (void*) tlv, tlv_len);
data/netsniff-ng-0.6.5/staging/cdp.c:488: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((void*) tx.cdp_payload+next_pbyte, (void*) tlv, tlv_len);
data/netsniff-ng-0.6.5/staging/cdp.c:517: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((void*) tx.cdp_payload+next_pbyte, (void*) tlv, tlv_len);
data/netsniff-ng-0.6.5/staging/cdp.c:550: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((void*) tx.cdp_payload+next_pbyte, (void*) value, len);
data/netsniff-ng-0.6.5/staging/cdp.c:564: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((void*) tx.cdp_payload+next_pbyte, (void*) tlv, tlv_len);
data/netsniff-ng-0.6.5/staging/cdp.c:572: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((void*) tx.cdp_payload+next_pbyte, (void*) tlv, tlv_len);
data/netsniff-ng-0.6.5/staging/cdp.c:624: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 ((void*) packet+4, (void*) tx.cdp_payload, tx.cdp_payload_s);
data/netsniff-ng-0.6.5/staging/cdp.c:658: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 ((void*) tx.eth_payload, (void*) llcsnap, 8);
data/netsniff-ng-0.6.5/staging/cdp.c:659: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 ((void*) tx.eth_payload+8, (void*) packet, packet_s);
data/netsniff-ng-0.6.5/staging/cli.c:52: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 filename[256];
data/netsniff-ng-0.6.5/staging/cli.c:53:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[256];
data/netsniff-ng-0.6.5/staging/cli.c:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[256];
data/netsniff-ng-0.6.5/staging/cli.c:56:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dev[256];
data/netsniff-ng-0.6.5/staging/cli.c:69:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen (filename, "r");
data/netsniff-ng-0.6.5/staging/cli.c:213: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 TimeStamp[128];
data/netsniff-ng-0.6.5/staging/cli.h:59: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 mz_username[32];
data/netsniff-ng-0.6.5/staging/cli.h:60: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 mz_password[32];
data/netsniff-ng-0.6.5/staging/cli.h:61: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 mz_enable[32];
data/netsniff-ng-0.6.5/staging/cli.h:62: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 mz_listen_addr[16];
data/netsniff-ng-0.6.5/staging/cli_arp.c:227: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 prompt[16];
data/netsniff-ng-0.6.5/staging/cli_arp.c:228:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(prompt, "pkt-%i",clipkt->id);
data/netsniff-ng-0.6.5/staging/cli_bpdu.c:30: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 str[256];
data/netsniff-ng-0.6.5/staging/cli_bpdu.c:101: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 str[16];
data/netsniff-ng-0.6.5/staging/cli_bpdu.c:183: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 p[64], e[64];
data/netsniff-ng-0.6.5/staging/cli_bpdu.c:293: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 p[64], e[64];
data/netsniff-ng-0.6.5/staging/cli_bpdu.c:411: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 str[256];
data/netsniff-ng-0.6.5/staging/cli_bpdu.c:472: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 str[256];
data/netsniff-ng-0.6.5/staging/cli_bpdu.c:531: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 str[256];
data/netsniff-ng-0.6.5/staging/cli_bpdu.c:586: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 str[256];
data/netsniff-ng-0.6.5/staging/cli_bpdu.c:745: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 prompt[16];
data/netsniff-ng-0.6.5/staging/cli_bpdu.c:746:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(prompt, "pkt-%i",clipkt->id);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:176: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 name[32], ds[16], pr[16], ps[16];
data/netsniff-ng-0.6.5/staging/cli_cmds.c:177: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 myframe[MAX_MOPS_FRAME_SIZE*3];
data/netsniff-ng-0.6.5/staging/cli_cmds.c:178: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 mystate[32];
data/netsniff-ng-0.6.5/staging/cli_cmds.c:179: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 line[150], line2[150], line3[150];
data/netsniff-ng-0.6.5/staging/cli_cmds.c:180: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 delay_str[64];
data/netsniff-ng-0.6.5/staging/cli_cmds.c:277:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		  strcat(ps, "NULL");       // should never happen!
data/netsniff-ng-0.6.5/staging/cli_cmds.c:280:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		  strcat(ps, "init");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:283:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		  strcat(ps, "config");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:286:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		  strcat(ps, "active");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:290:19:  [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(ps, "actseq");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:294:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		  strcat(ps, "unknown");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:316:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		  strcat(name, "...");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:374: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(mystate, "NULL");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:377: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(mystate, "init");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:380: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(mystate, "config");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:383:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	     sprintf(mystate, "active(tx)");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:386: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(mystate, "unknown");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:393: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(line2, "(undefined)");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:439: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(line, "%i tag(s); ", k);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:453:18:  [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.
		  if (j<(k-1)) strcat(line, ", ");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:462: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(line, "%i tag(s); ", k);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:481:18:  [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.
		  if (j<(k-1)) strcat(line, ", ");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:497: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(line2, "%u.%u.%u.%u-%u.%u.%u.%u",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:515: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(line2, "%u.%u.%u.%u-%u.%u.%u.%u",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:535: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(line, "NOTE: Auto-fragmentation is ON! Fragment size %u bytes, overlap %u",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:555: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(line2, "RANGE: %u-%u", clipkt->sp_start, clipkt->sp_stop);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:557: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(line2, "(norange)");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:559: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(line3, "RANGE: %u-%u", clipkt->dp_start, clipkt->dp_stop);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:561: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(line3, "(norange)");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:578: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(line, "%u bytes segment size (including TCP header)", mp->tcp_len);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:581:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		 sprintf(line2, "RANGE: %u-%u", clipkt->sp_start, clipkt->sp_stop);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:583:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	         sprintf(line2, "(norange)");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:585:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	         sprintf(line3, "RANGE: %u-%u", clipkt->dp_start, clipkt->dp_stop);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:587:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	         sprintf(line3, "(norange)");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:610: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(line, "Announced window size= %u", clipkt->tcp_win);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:645:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[100];
data/netsniff-ng-0.6.5/staging/cli_cmds.c:646: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 ip[20];
data/netsniff-ng-0.6.5/staging/cli_cmds.c:682:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(ip,"%u.%u.%u.%u", 
data/netsniff-ng-0.6.5/staging/cli_cmds.c:735:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(line, "MAC bia:  %02x:%02x:%02x:%02x:%02x:%02x\n   MAC fake: %02x:%02x:%02x:%02x:%02x:%02x",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:760:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(line,"IP fake: %u.%u.%u.%u",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:766:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(line,"GW addr: %u.%u.%u.%u (%02x:%02x:%02x:%02x:%02x:%02x)",
data/netsniff-ng-0.6.5/staging/cli_cmds.c:794: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 hexload[3*MAX_PAYLOAD_SIZE];
data/netsniff-ng-0.6.5/staging/cli_cmds.c:1185:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[120];
data/netsniff-ng-0.6.5/staging/cli_cmds.c:1331:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fp = fopen(argv[i], "r");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:1352: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 s[128], ip[20], uc[16], bc[16], ch[16];
data/netsniff-ng-0.6.5/staging/cli_cmds.c:1376:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(ip,"%i.%i.%i.%i",cur->sip[0],cur->sip[1],cur->sip[2],cur->sip[3]);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:1377:59:  [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.
			if (cur->changed>99999) mz_strncpy(ch,"ALERT",6); else sprintf(ch,"%lu", cur->changed);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:1378:60:  [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.
			if (cur->uni_resp>99999) mz_strncpy(uc,"ALERT",6); else sprintf(uc,"%lu", cur->uni_resp);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:1379:59:  [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.
			if (cur->bc_resp>99999) mz_strncpy(bc,"ALERT",6); else sprintf(bc,"%lu", cur->bc_resp);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:1405: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(s,"  previous MAC was: %02x:%02x:%02x:%02x:%02x:%02x   time delta: %u sec %u msec",
data/netsniff-ng-0.6.5/staging/cli_dns.c:48: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 prompt[16];
data/netsniff-ng-0.6.5/staging/cli_dns.c:49:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(prompt, "pkt-%i",clipkt->id);
data/netsniff-ng-0.6.5/staging/cli_eth.c:261: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(&clipkt->eth_snap[0], &t8, 3);
data/netsniff-ng-0.6.5/staging/cli_eth.c:262: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(&clipkt->eth_snap[3], &oui, 3);
data/netsniff-ng-0.6.5/staging/cli_eth.c:263: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(&clipkt->eth_snap[6], &etp, 2);
data/netsniff-ng-0.6.5/staging/cli_interface.c:32: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 prompt[10];
data/netsniff-ng-0.6.5/staging/cli_ip.c:851:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[16];
data/netsniff-ng-0.6.5/staging/cli_ip.c:884: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 prompt[16];
data/netsniff-ng-0.6.5/staging/cli_ip.c:885:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(prompt, "pkt-%i",clipkt->id);
data/netsniff-ng-0.6.5/staging/cli_legacy.c:28: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 argstr[10000];
data/netsniff-ng-0.6.5/staging/cli_legacy.c:43:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		  strcat(argstr, ",help");
data/netsniff-ng-0.6.5/staging/cli_lldp.c:92: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((void*) pd->chassis_id, (void*)tmp, cidl);
data/netsniff-ng-0.6.5/staging/cli_lldp.c:141: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((void*) pd->port_id, (void*) pid, pl);
data/netsniff-ng-0.6.5/staging/cli_packet.c:42:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prompt[16];
data/netsniff-ng-0.6.5/staging/cli_packet.c:88:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prompt[16];
data/netsniff-ng-0.6.5/staging/cli_packet.c:119:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(prompt, "pkt-%i-arp",clipkt->id);
data/netsniff-ng-0.6.5/staging/cli_packet.c:136:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(prompt, "pkt-%i-dns",clipkt->id);
data/netsniff-ng-0.6.5/staging/cli_packet.c:150:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(prompt, "pkt-%i-icmp",clipkt->id);
data/netsniff-ng-0.6.5/staging/cli_packet.c:166:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(prompt, "pkt-%i-igmp",clipkt->id);
data/netsniff-ng-0.6.5/staging/cli_packet.c:181:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(prompt, "pkt-%i-cdp",clipkt->id);
data/netsniff-ng-0.6.5/staging/cli_packet.c:195:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(prompt, "pkt-%i-bpdu",clipkt->id);
data/netsniff-ng-0.6.5/staging/cli_packet.c:206: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(prompt, "pkt-%i-ip",clipkt->id);
data/netsniff-ng-0.6.5/staging/cli_packet.c:217: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(prompt, "pkt-%i-udp",clipkt->id);
data/netsniff-ng-0.6.5/staging/cli_packet.c:228: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(prompt, "pkt-%i-tcp",clipkt->id);
data/netsniff-ng-0.6.5/staging/cli_packet.c:242:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(prompt, "pkt-%i-syslog",clipkt->id);
data/netsniff-ng-0.6.5/staging/cli_packet.c:255:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(prompt, "pkt-%i-lldp",clipkt->id);
data/netsniff-ng-0.6.5/staging/cli_packet.c:270:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(prompt, "pkt-%i-rtp",clipkt->id);
data/netsniff-ng-0.6.5/staging/cli_packet.c:399:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[100];
data/netsniff-ng-0.6.5/staging/cli_packet.c:431: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(str, "Inter-packet delay set to %lu sec and %lu nsec", clipkt->ndelay.tv_sec, clipkt->ndelay.tv_nsec);
data/netsniff-ng-0.6.5/staging/cli_packet.c:455:7:  [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((void *) &clipkt->eth_src, (void *) &device_list[i].mac_mops[0], 6);
data/netsniff-ng-0.6.5/staging/cli_packet.c:456:7:  [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((void *) &clipkt->ip_src, (void *) &device_list[i].ip_mops[0], 4);
data/netsniff-ng-0.6.5/staging/cli_packet.c:491: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 Vlan[64], CoS[64];
data/netsniff-ng-0.6.5/staging/cli_packet.c:687: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 LabelS[64], ExpS[64], TTLS[64];
data/netsniff-ng-0.6.5/staging/cli_packet.c:904: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 str[MAX_MOPS_MSG_SIZE*3];
data/netsniff-ng-0.6.5/staging/cli_packet.c:976: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 str[MAX_MOPS_MSG_SIZE*3];
data/netsniff-ng-0.6.5/staging/cli_packet.c:1018:10:  [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((void*) &str[i-1], (void*) &str[i], len-i+1); 
data/netsniff-ng-0.6.5/staging/cli_packet.c:1028: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((void*) clipkt->msg, (void*) str, len);
data/netsniff-ng-0.6.5/staging/cli_rtp.c:51:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char state[8];
data/netsniff-ng-0.6.5/staging/cli_rtp.c:76:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char state[8];
data/netsniff-ng-0.6.5/staging/cli_rtp.c:104: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 state[8];
data/netsniff-ng-0.6.5/staging/cli_rtp.c:306:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[80];
data/netsniff-ng-0.6.5/staging/cli_rtp.c:324:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(str, "Parameter %i: Invalid number!", i);
data/netsniff-ng-0.6.5/staging/cli_rtp.c:330:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(str, "Parameter %i: Range exceeded (0..ffffffff)", i);
data/netsniff-ng-0.6.5/staging/cli_sequence.c:34:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[512];
data/netsniff-ng-0.6.5/staging/cli_sequence.c:123:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[128];
data/netsniff-ng-0.6.5/staging/cli_sequence.c:167: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(str, "Delay set to %lu sec and %lu nsec", 
data/netsniff-ng-0.6.5/staging/cli_sequence.c:221:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[512], name[32], layers[16], proto[16];
data/netsniff-ng-0.6.5/staging/cli_sequence.c:249:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
				strcat(name, "...");
data/netsniff-ng-0.6.5/staging/cli_tcp.c:209: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 str[64];
data/netsniff-ng-0.6.5/staging/cli_tcp.c:303: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 str[64];
data/netsniff-ng-0.6.5/staging/cli_tcp.c:337:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[64];
data/netsniff-ng-0.6.5/staging/cli_tcp.c:368:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[64];
data/netsniff-ng-0.6.5/staging/cli_tcp.c:400:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[64];
data/netsniff-ng-0.6.5/staging/cli_tcp.c:432:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[64];
data/netsniff-ng-0.6.5/staging/cli_tcp.c:463:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[64];
data/netsniff-ng-0.6.5/staging/cli_tcp.c:494:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[64];
data/netsniff-ng-0.6.5/staging/cli_tcp.c:525:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[64];
data/netsniff-ng-0.6.5/staging/cli_tcp.c:675: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 prompt[16];
data/netsniff-ng-0.6.5/staging/cli_tcp.c:676:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(prompt, "pkt-%i",clipkt->id);
data/netsniff-ng-0.6.5/staging/cli_udp.c:200: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 prompt[16];
data/netsniff-ng-0.6.5/staging/cli_udp.c:201:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(prompt, "pkt-%i",clipkt->id);
data/netsniff-ng-0.6.5/staging/dns.c:102: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  *token, *tokenptr, argval[MAX_PAYLOAD_SIZE];
data/netsniff-ng-0.6.5/staging/dns.c:675: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 field1[512], field2[512], field3[512];
data/netsniff-ng-0.6.5/staging/hextools.c:51: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 tmp[32];
data/netsniff-ng-0.6.5/staging/hextools.c:94:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[8192]=""; //for very long payloads 
data/netsniff-ng-0.6.5/staging/hextools.c:128: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 tmp[8192]=""; //for very long payloads 
data/netsniff-ng-0.6.5/staging/hextools.c:158: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 t[4];
data/netsniff-ng-0.6.5/staging/hextools.c:166: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(t,"%02x:",bs[i]);
data/netsniff-ng-0.6.5/staging/hextools.c:278: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 hex[8];
data/netsniff-ng-0.6.5/staging/hextools.c:281:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   (void) sprintf (hex, "%x",type);
data/netsniff-ng-0.6.5/staging/layer1.c:59: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 
data/netsniff-ng-0.6.5/staging/layer2.c:117: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 
data/netsniff-ng-0.6.5/staging/layer2.c:457: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 errbuf[LIBNET_ERRBUF_SIZE];
data/netsniff-ng-0.6.5/staging/layer2.c:462: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          argval[64];
data/netsniff-ng-0.6.5/staging/layer2.c:463: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          dum1[32], dum2[32];
data/netsniff-ng-0.6.5/staging/layer3.c:110: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 errbuf[LIBNET_ERRBUF_SIZE];
data/netsniff-ng-0.6.5/staging/layer3.c:145: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 argval[MAX_PAYLOAD_SIZE];
data/netsniff-ng-0.6.5/staging/layer3.c:186:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( (void*) tx.ip_payload, (void*) tx.hex_payload, tx.hex_payload_s);
data/netsniff-ng-0.6.5/staging/layer3.c:458: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 argval[MAX_PAYLOAD_SIZE];
data/netsniff-ng-0.6.5/staging/layer3.c:498: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( (void*) tx.ip_payload, (void*) tx.hex_payload, tx.hex_payload_s);
data/netsniff-ng-0.6.5/staging/layer3.c:694: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(tx.ip_payload, tx.ip_option, tx.ip_option_s);
data/netsniff-ng-0.6.5/staging/layer4.c:171: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 argval[MAX_PAYLOAD_SIZE];
data/netsniff-ng-0.6.5/staging/layer4.c:225: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( (void*) tx.udp_payload, (void*) tx.hex_payload, tx.hex_payload_s);
data/netsniff-ng-0.6.5/staging/layer4.c:340: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 argval[MAX_PAYLOAD_SIZE];
data/netsniff-ng-0.6.5/staging/layer4.c:453: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( (void*) tx.icmp_payload, (void*) tx.hex_payload, tx.hex_payload_s);
data/netsniff-ng-0.6.5/staging/layer4.c:518: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(tx.icmp_verbose_txt,"ICMP Redirect, GW=%u.%u.%u.%u",
data/netsniff-ng-0.6.5/staging/layer4.c:537: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(tx.icmp_verbose_txt,"ICMP Type %u Code %u\n",tx.icmp_type,tx.icmp_code);
data/netsniff-ng-0.6.5/staging/layer4.c:539: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(tx.icmp_verbose_txt,"ICMP Echo Request (id=%u seq=%u)\n",tx.icmp_ident,tx.icmp_sqnr);
data/netsniff-ng-0.6.5/staging/layer4.c:552: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(tx.icmp_verbose_txt,"ICMP unreachable (code=%u)\n",tx.icmp_code);
data/netsniff-ng-0.6.5/staging/layer4.c:575: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 argval[MAX_PAYLOAD_SIZE];
data/netsniff-ng-0.6.5/staging/layer4.c:631: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( (void*) tx.icmp_payload, (void*) tx.hex_payload, tx.hex_payload_s);
data/netsniff-ng-0.6.5/staging/layer4.c:665:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(tx.icmp_verbose_txt,"ICMPv6 Type %u Code %u\n",tx.icmp_type,tx.icmp_code);
data/netsniff-ng-0.6.5/staging/layer4.c:704: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 argval[MAX_PAYLOAD_SIZE], *dummy1, *dummy2;
data/netsniff-ng-0.6.5/staging/layer4.c:818: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( (void*) tx.tcp_payload, (void*) tx.hex_payload, tx.hex_payload_s);
data/netsniff-ng-0.6.5/staging/layer4.c:916: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 argval[MAX_PAYLOAD_SIZE];
data/netsniff-ng-0.6.5/staging/llist.h:44:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[MZ_LL_NAME_LEN];
data/netsniff-ng-0.6.5/staging/lookupdev.c:45: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 
data/netsniff-ng-0.6.5/staging/lookupdev.c:207: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 f[10][16], line[256];
data/netsniff-ng-0.6.5/staging/lookupdev.c:231:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen("/proc/net/route", "r");	
data/netsniff-ng-0.6.5/staging/mausezahn.c:213: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 mz_listen_addr[16] = "0.0.0.0";
data/netsniff-ng-0.6.5/staging/mausezahn.c:394: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 err_buf[LIBNET_ERRBUF_SIZE];
data/netsniff-ng-0.6.5/staging/mausezahn.c:398: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 hexpld[MAX_PAYLOAD_SIZE*2];
data/netsniff-ng-0.6.5/staging/mausezahn.c:535: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).
			afp = fopen(optarg, "r");
data/netsniff-ng-0.6.5/staging/mausezahn.c:546: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).
			afp = fopen(optarg, "r");
data/netsniff-ng-0.6.5/staging/mausezahn.c:620:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(tx.device, "lo");
data/netsniff-ng-0.6.5/staging/mausezahn.c:635:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
					strcpy(tx.device, "lo");
data/netsniff-ng-0.6.5/staging/mausezahn.c:652: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(tx.arg_string, ",p=");
data/netsniff-ng-0.6.5/staging/modifications.c:679: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 pld[65535];
data/netsniff-ng-0.6.5/staging/modifications.c:680: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 sa[32], da[32];
data/netsniff-ng-0.6.5/staging/modifications.c:707:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
     strcpy(pld, "[see next layer]");
data/netsniff-ng-0.6.5/staging/modifications.c:711: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 src6[64]; char dst6[64];
data/netsniff-ng-0.6.5/staging/modifications.c:711:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     char src6[64]; char dst6[64];
data/netsniff-ng-0.6.5/staging/mops.c:91: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 pname[MAX_MOPS_PACKET_NAME_LEN];
data/netsniff-ng-0.6.5/staging/mops.c:114: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(pname, "PKT%04d", pkt_id_name);
data/netsniff-ng-0.6.5/staging/mops.c:194: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 pname[16];
data/netsniff-ng-0.6.5/staging/mops.c:216: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(pname, "PKT%04d", i);
data/netsniff-ng-0.6.5/staging/mops.c:238: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 output[100];
data/netsniff-ng-0.6.5/staging/mops.c:425: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((void *) &mp->eth_dst, (void *) &tx.eth_dst, 6);
data/netsniff-ng-0.6.5/staging/mops.c:426: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((void *) &mp->eth_src, (void *) &tx.eth_src, 6);
data/netsniff-ng-0.6.5/staging/mops.c:521: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 octet[8], lnr[8], hex[MAX_MOPS_FRAME_SIZE*3];
data/netsniff-ng-0.6.5/staging/mops.c:529: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(lnr,"%4i  ",i+1);
data/netsniff-ng-0.6.5/staging/mops.c:542: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(lnr,"\n%4i  ",i+1);
data/netsniff-ng-0.6.5/staging/mops.c:546: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(octet, "%02x:", mp->frame[i]);
data/netsniff-ng-0.6.5/staging/mops.c:690: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((void *) &mp->eth_src, (void *) &device_list[i].mac_mops[0], 6);
data/netsniff-ng-0.6.5/staging/mops.c:691: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((void *) &mp->ip_src, (void *) &device_list[i].ip_mops[0], 4);
data/netsniff-ng-0.6.5/staging/mops.c:708: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 ds[16], pr[16];
data/netsniff-ng-0.6.5/staging/mops.h:159: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[AUTOMOPS_MAX_NAME_LEN+1]; 	// Official name of field -- CASE INSENSITIVE
data/netsniff-ng-0.6.5/staging/mops.h:160: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 shortdesc[AUTOMOPS_MAX_SHORTDESC_LEN+1];   // One-line description
data/netsniff-ng-0.6.5/staging/mops.h:177: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 valname[AUTOMOPS_MAX_NAME_LEN+1];
data/netsniff-ng-0.6.5/staging/mops.h:212:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char    name[AUTOMOPS_MAX_NAME_LEN+1];  // Protocol name
data/netsniff-ng-0.6.5/staging/mops.h:213: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    desc[AUTOMOPS_MAX_SHORTDESC_LEN+1]; // One-line description               
data/netsniff-ng-0.6.5/staging/mops.h:263: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 packet_name[MAX_MOPS_PACKET_NAME_LEN];      // Each packet must have unique name
data/netsniff-ng-0.6.5/staging/mops.h:264: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 description[MAX_MOPS_DESCRIPTION_LEN];      // An optional short packet description
data/netsniff-ng-0.6.5/staging/mops.h:271: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 device[16];           // every packet could be sent through a different device
data/netsniff-ng-0.6.5/staging/mops_checksums.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(&buf[13], &mp->frame[mp->begin_UDP], len);
data/netsniff-ng-0.6.5/staging/mops_checksums.c:116:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&buf[13], &mp->frame[mp->begin_TCP], len);
data/netsniff-ng-0.6.5/staging/mops_dot1Q.c:58:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&mp->dot1Q[a], &mp->dot1Q[b], (n-k)*4);
data/netsniff-ng-0.6.5/staging/mops_ext.c:241: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 tmp[10000]; // should be sufficient for all purposes here
data/netsniff-ng-0.6.5/staging/mops_ext.c:369: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 ((void*) tmp, (void*) dst, 6);
data/netsniff-ng-0.6.5/staging/mops_ext.c:374: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 ((void*) dst, (void*) tmp, 6);
data/netsniff-ng-0.6.5/staging/mops_ext.c:401: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 ((void*) tmp, (void*) dst, 4);
data/netsniff-ng-0.6.5/staging/mops_ext.c:406: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 ((void*) dst, (void*) tmp, 4);
data/netsniff-ng-0.6.5/staging/mops_ext_arp.c:32: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 tmac[6] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
data/netsniff-ng-0.6.5/staging/mops_ext_arp.c:43: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 ((void*) pd->sender_mac, (void*) tx.eth_src, 6);
data/netsniff-ng-0.6.5/staging/mops_ext_arp.c:44: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 ((void*) pd->target_mac, (void*) tmac, 6);
data/netsniff-ng-0.6.5/staging/mops_ext_arp.c:45: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 ((void*) pd->sender_ip,  (void*) &tx.ip_src, 4);
data/netsniff-ng-0.6.5/staging/mops_ext_arp.c:46: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 ((void*) pd->target_ip,  (void*) &tx.ip_src, 4);
data/netsniff-ng-0.6.5/staging/mops_ext_arp.c:148: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 tmac[6] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
data/netsniff-ng-0.6.5/staging/mops_ext_arp.c:203: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 ((void*) pd->sender_mac, (void*) device_list[devind].mac_mops, 6);
data/netsniff-ng-0.6.5/staging/mops_ext_arp.c:204: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 ((void*) pd->target_mac, (void*) tmac, 6);
data/netsniff-ng-0.6.5/staging/mops_ext_arp.c:205: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 ((void*) pd->sender_ip,  (void*) device_list[devind].ip_mops, 4);
data/netsniff-ng-0.6.5/staging/mops_ext_bpdu.c:53: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((void*) &pd->root_id[2], (void*) device_list[i].mac_mops, 6);
data/netsniff-ng-0.6.5/staging/mops_ext_bpdu.c:54: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((void*) &pd->bridge_id[2], (void*) device_list[i].mac_mops, 6);
data/netsniff-ng-0.6.5/staging/mops_ext_bpdu.c:190: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((void*) &rid[2], (void*) device_list[i].mac_mops, 6);
data/netsniff-ng-0.6.5/staging/mops_ext_bpdu.c:201: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((void*) &rid[2], (void*) device_list[i].mac_mops, 6);
data/netsniff-ng-0.6.5/staging/mops_ext_bpdu.c:217: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((void*) pd->root_id, (void*) rid, 8);
data/netsniff-ng-0.6.5/staging/mops_ext_bpdu.c:219: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((void*) pd->bridge_id, (void*) rid, 8);
data/netsniff-ng-0.6.5/staging/mops_ext_lldp.c:48: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((void*) pd->chassis_id, (void*) device_list[i].mac_mops, 6);
data/netsniff-ng-0.6.5/staging/mops_ext_lldp.c:54:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void*) pd->port_id, (void*) mp->device, pd->port_id_len);
data/netsniff-ng-0.6.5/staging/mops_ext_lldp.c:86: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((void*) &mp->msg[mp->msg_s], 
data/netsniff-ng-0.6.5/staging/mops_ext_lldp.c:96: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((void*) &mp->msg[mp->msg_s], 
data/netsniff-ng-0.6.5/staging/mops_ext_lldp.c:165: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((void*) tlv, (void*) &tln, 2);
data/netsniff-ng-0.6.5/staging/mops_ext_lldp.c:166: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((void*) &tlv[2], (void*) value, len);
data/netsniff-ng-0.6.5/staging/mops_ext_lldp.c:192: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((void*) (pd->optional_tlvs + pd->optional_tlvs_s), (void*) tmp, l);
data/netsniff-ng-0.6.5/staging/mops_ext_lldp.c:219: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((void*) (tmp+1), (void*) cid, len);
data/netsniff-ng-0.6.5/staging/mops_ext_lldp.c:231: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((void*) (tmp+1), (void*) cid, len);
data/netsniff-ng-0.6.5/staging/mops_ext_lldp.c:258: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((void*) (tmp+1), (void*) pid, len);
data/netsniff-ng-0.6.5/staging/mops_ext_lldp.c:269: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((void*) (tmp+1), (void*) pid, len);
data/netsniff-ng-0.6.5/staging/mops_ext_lldp.c:383: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((void*) tlv, (void*) &tln, 2);
data/netsniff-ng-0.6.5/staging/mops_ext_lldp.c:384: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((void*) &tlv[2], (void*) value, len);
data/netsniff-ng-0.6.5/staging/mops_ext_lldp.c:386: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((void*) (pd->optional_tlvs + pd->optional_tlvs_s), (void*) tlv, len+2); 
data/netsniff-ng-0.6.5/staging/mops_ext_lldp.c:417: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((void*) (tmp+4), (void*) inf, len);
data/netsniff-ng-0.6.5/staging/mops_ext_rtp.c:238: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((void*) &mp->frame[j], (void*) pd->payload, pd->payload_s);
data/netsniff-ng-0.6.5/staging/mops_ip.c:112: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 cs[4], ps[4], str[16];
data/netsniff-ng-0.6.5/staging/mops_mpls.c:120:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(&mp->mpls[a], &mp->mpls[b], (k-j)*4);
data/netsniff-ng-0.6.5/staging/mops_sequence.c:99:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[256], t[16];
data/netsniff-ng-0.6.5/staging/mops_sequence.c:121:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(str, "(no sequences found)");
data/netsniff-ng-0.6.5/staging/mops_tcp.c:83:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(str, "(no valid mops)\n");
data/netsniff-ng-0.6.5/staging/mops_tcp.c:148:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void*) mp->tcp_option, (void*) tcp_default_options, 20);
data/netsniff-ng-0.6.5/staging/mops_threads.c:252:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char
data/netsniff-ng-0.6.5/staging/mops_threads.c:369: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((void*) original_msg, (void*) mp->msg, mp->msg_s);
data/netsniff-ng-0.6.5/staging/mops_threads.c:371: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((void*) ip_payload, (void*) &mp->frame[begin_ip_payload], ip_payload_s);
data/netsniff-ng-0.6.5/staging/mops_threads.c:410: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((void*) mp->msg, (void*) ip_payload+fragptr, fragsize);
data/netsniff-ng-0.6.5/staging/mops_threads.c:424: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((void*) mp->msg, (void*) ip_payload+fragptr, ip_payload_s-fragptr);
data/netsniff-ng-0.6.5/staging/mops_threads.c:439: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((void*) mp->msg, (void*) original_msg, original_msg_s);
data/netsniff-ng-0.6.5/staging/mops_tools.c:128: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((void *) &mp->msg[mp->msg_s], (void *) str, len);
data/netsniff-ng-0.6.5/staging/mops_tools.c:231:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(str, "(none)");
data/netsniff-ng-0.6.5/staging/mops_tools.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(str, "%u days %02u:%02u:%02u", d, h, m, s);
data/netsniff-ng-0.6.5/staging/mops_tools.c:247:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(str, "%02u:%02u:%02u", h, m, s); // ignore nanoseconds if delay is in order of hours
data/netsniff-ng-0.6.5/staging/mops_tools.c:251:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(str, "%u msec", (unsigned int) t->tv_nsec/1000000);
data/netsniff-ng-0.6.5/staging/mops_tools.c:253:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(str, "%u usec", (unsigned int) t->tv_nsec/1000);
data/netsniff-ng-0.6.5/staging/mops_tools.c:255:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	       	sprintf(str, "%lu nsec", t->tv_nsec);
data/netsniff-ng-0.6.5/staging/mops_update.c:339:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&ip_pseudo_header[0], &mp->frame[mp->begin_IP+12], 4); // copy SA to pseudoheader
data/netsniff-ng-0.6.5/staging/mops_update.c:340:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&ip_pseudo_header[4], &mp->frame[mp->begin_IP+16], 4); // copy DA to pseudoheader
data/netsniff-ng-0.6.5/staging/mops_update.c:343:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&ip_pseudo_header[10], &mp->frame[fp+4], 2); // copy UDP length to pseudoheader
data/netsniff-ng-0.6.5/staging/mops_update.c:356: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(&mp->frame[mp->frame_s+1], ip_pseudo_header, 12); 
data/netsniff-ng-0.6.5/staging/mops_update.c:359: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(&mp->frame[mp->frame_s], ip_pseudo_header, 12); 
data/netsniff-ng-0.6.5/staging/mops_update.c:390:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&ip_pseudo_header[0], &mp->frame[mp->begin_IP+12], 4); // copy SA to pseudoheader
data/netsniff-ng-0.6.5/staging/mops_update.c:391:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&ip_pseudo_header[4], &mp->frame[mp->begin_IP+16], 4); // copy DA to pseudoheader
data/netsniff-ng-0.6.5/staging/mops_update.c:396:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&ip_pseudo_header[10], &t16, 2); // copy TCP length to pseudoheader
data/netsniff-ng-0.6.5/staging/mops_update.c:408: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(&mp->frame[mp->frame_s+1], ip_pseudo_header, 12); 
data/netsniff-ng-0.6.5/staging/mops_update.c:411: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(&mp->frame[mp->frame_s], ip_pseudo_header, 12); 
data/netsniff-ng-0.6.5/staging/mopsrx_arp.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 errbuf[PCAP_ERRBUF_SIZE];
data/netsniff-ng-0.6.5/staging/mopsrx_arp.c:158: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((void*) da, (void*) ethernet->eth_da, 6);
data/netsniff-ng-0.6.5/staging/mopsrx_arp.c:159: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((void*) sa, (void*) ethernet->eth_sa, 6);
data/netsniff-ng-0.6.5/staging/mopsrx_arp.c:160: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((void*) smac, (void*) arp->arp_smac, 6);
data/netsniff-ng-0.6.5/staging/mopsrx_arp.c:161: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((void*) sip, (void*) arp->arp_sip, 4);
data/netsniff-ng-0.6.5/staging/mopsrx_arp.c:162: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((void*) tmac, (void*) arp->arp_tmac, 6);
data/netsniff-ng-0.6.5/staging/mopsrx_arp.c:163: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((void*) tip, (void*) arp->arp_tip, 4);
data/netsniff-ng-0.6.5/staging/mopsrx_arp.c:234:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy((void*) cur->smac_prev, (void*) cur->smac, 6);
data/netsniff-ng-0.6.5/staging/mopsrx_arp.c:235: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((void*) cur->smac, (void*) smac, 6);
data/netsniff-ng-0.6.5/staging/mopsrx_arp.c:259: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((void*) cur->sa, (void*) sa, 6);
data/netsniff-ng-0.6.5/staging/mopsrx_arp.c:260: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((void*) cur->smac, (void*) smac, 6);
data/netsniff-ng-0.6.5/staging/mopsrx_arp.c:267:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void*) cur->sip, (void*) sip, 4);
data/netsniff-ng-0.6.5/staging/mz.h:113: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 mz_default_config_path[256];
data/netsniff-ng-0.6.5/staging/mz.h:114: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 mz_default_log_path[256];
data/netsniff-ng-0.6.5/staging/mz.h:131:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char              when[10];  // human readable timestamp (e. g. "11:42:53")
data/netsniff-ng-0.6.5/staging/mz.h:141:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char       dev[16];               // Device name
data/netsniff-ng-0.6.5/staging/mz.h:151:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char       ip_str[IPADDRSIZE+1];  // Real IP address as string in dotted decimal notation		
data/netsniff-ng-0.6.5/staging/mz.h:283: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 path[256];
data/netsniff-ng-0.6.5/staging/mz.h:284: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 filename[256];
data/netsniff-ng-0.6.5/staging/mz.h:334: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 rtp_filter_str[64];
data/netsniff-ng-0.6.5/staging/mz.h:339: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 device[16];           // every packet could be sent through a different device
data/netsniff-ng-0.6.5/staging/mz.h:343: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 arg_string[MAX_PAYLOAD_SIZE];  // Argument-string when -t is used
data/netsniff-ng-0.6.5/staging/mz.h:348: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      eth_dst_txt[32]; // Text version of eth_dst (or keyword such as 'rand')
data/netsniff-ng-0.6.5/staging/mz.h:351: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      eth_src_txt[32]; // Text version of eth_src (or keyword such as 'rand')
data/netsniff-ng-0.6.5/staging/mz.h:374: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      dot1Q_txt[32];   // contains 802.1p(CoS) and VLAN-ID ("5:130" or only VLAN "130")
data/netsniff-ng-0.6.5/staging/mz.h:390: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      mpls_txt[128];   // contains MPLS parameters (label, exp, S, TTL)
data/netsniff-ng-0.6.5/staging/mz.h:391: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      mpls_verbose_string[1024]; // contains all labels for print_frame_details()
data/netsniff-ng-0.6.5/staging/mz.h:401: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      ip_src_txt[256];
data/netsniff-ng-0.6.5/staging/mz.h:411: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      ip_dst_txt[256];
data/netsniff-ng-0.6.5/staging/mz.h:439: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 
data/netsniff-ng-0.6.5/staging/parse_xml.c:153: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 p_clone[AUTOMOPS_MAX_FILE_SIZE+1];
data/netsniff-ng-0.6.5/staging/parse_xml.c:281: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(t, "%4i - closing bracket missing", i);
data/netsniff-ng-0.6.5/staging/parse_xml.c:287: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((void*) t, (void*) &p[j], k-j);
data/netsniff-ng-0.6.5/staging/parse_xml.c:323: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((void*) t, (void*) &p[0], i);
data/netsniff-ng-0.6.5/staging/parse_xml.c:341:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char t[XML_STRLEN];
data/netsniff-ng-0.6.5/staging/parse_xml.c:342: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 d[1500];
data/netsniff-ng-0.6.5/staging/parse_xml.c:447: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 t[XML_STRLEN];
data/netsniff-ng-0.6.5/staging/parse_xml.c:448: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 d[1500], errmsg[64];
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:45:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char argval[MAX_PAYLOAD_SIZE];
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dummy[512];
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:212: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(rtp_filter_str, "udp dst port %u", (unsigned int) port);
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:227:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fp = fopen (dummy, "w+");
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:255: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).
			fp2 = fopen (dummy, "w+");
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:286: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   errbuf[PCAP_ERRBUF_SIZE];
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:401: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 dummy[256];
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:402: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 ts_hms[10];
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:616:18:  [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  ( (fp2 = fopen (dummy, "w+")) == NULL) {
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:646:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[128], bar[150], 
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:739: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(str1,"%4.2f", (double) min/1000);
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:740: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(str2,"%4.2f", (double) (min+tmp)/1000);
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:741: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(str3,"%4.2f", (double) (max-tmp)/1000);
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:742: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(str4,"%4.2f", (double) max/1000);
data/netsniff-ng-0.6.5/staging/rtp.c:67:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char argval[MAX_PAYLOAD_SIZE];
data/netsniff-ng-0.6.5/staging/send_eth.c:37: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 errbuf[LIBNET_ERRBUF_SIZE];
data/netsniff-ng-0.6.5/staging/send_eth.c:39: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 argval[128];   
data/netsniff-ng-0.6.5/staging/send_eth.c:45: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 *f, mtag[64];
data/netsniff-ng-0.6.5/staging/send_eth.c:46: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 verbose_mpls_string[128];
data/netsniff-ng-0.6.5/staging/send_eth.c:51: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 *saveptr, *ptrsubstring, substring[16], tmp[4*MAX_8021Q_TAGS];
data/netsniff-ng-0.6.5/staging/send_eth.c:122: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(verbose_mpls_string,"[%u:%u:%u:%u]",
data/netsniff-ng-0.6.5/staging/syslog.c:77:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char  lt[8], host[314];
data/netsniff-ng-0.6.5/staging/syslog.c:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *Months[12] = 
data/netsniff-ng-0.6.5/staging/syslog.c:84: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 argval[MAX_PAYLOAD_SIZE];
data/netsniff-ng-0.6.5/staging/syslog.c:192:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(host, "MZ42"); 
data/netsniff-ng-0.6.5/staging/syslog.c:226: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((char *)tx.udp_payload, "%MZSYS-42-CRN: Main reactor exceeded critical temperature!");
data/netsniff-ng-0.6.5/staging/time.c:152: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 curtime_str[32];
data/netsniff-ng-0.6.5/staging/time.c:157:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(curtime_str, "%4i%02i%02i-%02i%02i%02i",
data/netsniff-ng-0.6.5/staging/time.c:193: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 curtime_str[32];
data/netsniff-ng-0.6.5/staging/time.c:198:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(curtime_str, "%02i:%02i:%02i",
data/netsniff-ng-0.6.5/staging/tools.c:76:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char tmp[MAX_PAYLOAD_SIZE];
data/netsniff-ng-0.6.5/staging/tools.c:931: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 params[256];
data/netsniff-ng-0.6.5/staging/tools.c:1193:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[32];
data/netsniff-ng-0.6.5/staging/tools.c:1232:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[32];
data/netsniff-ng-0.6.5/staging/tools.c:1375: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 usr[80], str[80];
data/netsniff-ng-0.6.5/staging/tools.c:1439: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 str2[4096], delim2[4]="", delim3[4]="";;
data/netsniff-ng-0.6.5/str.c:23: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(dest, src, len);
data/netsniff-ng-0.6.5/str.c:186: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(&fqdn[flen + 1], tmp, dlen);
data/netsniff-ng-0.6.5/sysctl.c:18:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/netsniff-ng-0.6.5/sysctl.c:19:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[64];
data/netsniff-ng-0.6.5/sysctl.c:26:7:  [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(path, O_WRONLY);
data/netsniff-ng-0.6.5/sysctl.c:44:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/netsniff-ng-0.6.5/sysctl.c:45:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[64];
data/netsniff-ng-0.6.5/sysctl.c:52:7:  [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(path, O_RDONLY);
data/netsniff-ng-0.6.5/sysctl.c:58: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).
		*value = atoi(str);
data/netsniff-ng-0.6.5/tprintf.c:25: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 buffer[1024];
data/netsniff-ng-0.6.5/trafgen.c:390: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(&packets[id].payload[csum->off], &sum, sizeof(sum));
data/netsniff-ng-0.6.5/trafgen.c:413: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 *zbuff, file[256];
data/netsniff-ng-0.6.5/trafgen.c:785: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(out, packets[i].payload, packets[i].len);
data/netsniff-ng-0.6.5/trafgen.c:997:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/dev/urandom", O_RDONLY);
data/netsniff-ng-0.6.5/trafgen_dev.c:35:14:  [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).
			dev->fd = open(name, O_RDONLY | O_LARGEFILE | O_NOATIME);
data/netsniff-ng-0.6.5/trafgen_dev.c:96: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(pkt->payload, buf, pkt_len);
data/netsniff-ng-0.6.5/trafgen_dev.c:273:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (dev->ops->open)
data/netsniff-ng-0.6.5/trafgen_dev.c:274:17:  [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 (dev->ops->open(dev, dev->name, dev->mode))
data/netsniff-ng-0.6.5/trafgen_dev.h:36:7:  [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).
	int(*open) (struct dev_io *dev, const char *name, enum dev_io_mode_t mode);
data/netsniff-ng-0.6.5/trafgen_dump.c:68: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 ip_str[INET_ADDRSTRLEN];
data/netsniff-ng-0.6.5/trafgen_dump.c:106:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ip_sa_str[INET_ADDRSTRLEN];
data/netsniff-ng-0.6.5/trafgen_dump.c:107: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 ip_da_str[INET_ADDRSTRLEN];
data/netsniff-ng-0.6.5/trafgen_dump.c:143: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 ip_sa_str[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/trafgen_dump.c:144: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 ip_da_str[INET6_ADDRSTRLEN];
data/netsniff-ng-0.6.5/trafgen_proto.c:297: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(proto_header_ptr(from), buf, from->len);
data/netsniff-ng-0.6.5/trafgen_proto.c:356: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(to, from, hdr->len - field->len);
data/netsniff-ng-0.6.5/trafgen_proto.c:423: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(payload, bytes, field->len);
data/netsniff-ng-0.6.5/ui.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 tmp[128];
data/netsniff-ng-0.6.5/xmalloc.c:100: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.
	return memcpy(xmallocz(len), data, len);
data/netsniff-ng-0.6.5/astraceroute.c:260: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).
		size_t lmin = min(len, strlen(payload));
data/netsniff-ng-0.6.5/astraceroute.c:787:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(50000);
data/netsniff-ng-0.6.5/astraceroute.c:919:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ctx->totlen += strlen(ctx->payload);
data/netsniff-ng-0.6.5/cookie.c:24:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(priov[prio]);
data/netsniff-ng-0.6.5/cpp.c:31: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).
	fd = mkstemps(out_file, strlen(base) + 1);
data/netsniff-ng-0.6.5/curvetun.c:202: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).
	user[strlen(user) - 1] = 0; /* omit last \n */
data/netsniff-ng-0.6.5/curvetun.c:203:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(user) == 0)
data/netsniff-ng-0.6.5/curvetun.c:208: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).
	ret = write(fd, user, strlen(user));
data/netsniff-ng-0.6.5/curvetun.c:209: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 (ret != strlen(user))
data/netsniff-ng-0.6.5/curvetun.c:332:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, secretkey, sizeof(secretkey));
data/netsniff-ng-0.6.5/curvetun.c:351:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, publickey, sizeof(publickey));
data/netsniff-ng-0.6.5/curvetun.c:404:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ret = read(fd, tmp, sizeof(tmp))) > 0) {
data/netsniff-ng-0.6.5/curvetun.c:417:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, tmp, sizeof(tmp));
data/netsniff-ng-0.6.5/curvetun.c:484:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(lperm);
data/netsniff-ng-0.6.5/curvetun.c:494: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 (write(lfp, pidstr, strlen(pidstr)) <= 0)
data/netsniff-ng-0.6.5/curvetun.c:512:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	get_serv_store_entry_by_alias(alias, alias ? strlen(alias) + 1 : 0,
data/netsniff-ng-0.6.5/curvetun_client.c:57:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((rlen = read(sfd, buff + off, len - off)) > 0) {
data/netsniff-ng-0.6.5/curvetun_client.c:146:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((rlen = read(sfd, buff + off, len - off)) > 0) {
data/netsniff-ng-0.6.5/curvetun_client.c:238:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	err = read(fd2, username, sizeof(username));
data/netsniff-ng-0.6.5/curvetun_client.c:250: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).
	err = username_msg(username, strlen(username) + 1,
data/netsniff-ng-0.6.5/curvetun_mgmt_servers.c:87:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (!strncmp("udp", str, strlen("udp")))
data/netsniff-ng-0.6.5/curvetun_mgmt_servers.c:89: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).
			else if (!strncmp("tcp", str, strlen("tcp")))
data/netsniff-ng-0.6.5/curvetun_mgmt_servers.c:99: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).
							   str, strlen(str)))
data/netsniff-ng-0.6.5/curvetun_mgmt_servers.c:222:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				     min(len, strlen(elem->alias) + 1)))
data/netsniff-ng-0.6.5/curvetun_mgmt_users.c:161:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    strlen(elem->username) + 1)) {
data/netsniff-ng-0.6.5/curvetun_mgmt_users.c:209:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (__check_duplicate_username(str, strlen(str) + 1)) {
data/netsniff-ng-0.6.5/curvetun_mgmt_users.c:218: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).
							   str, strlen(str))) {
data/netsniff-ng-0.6.5/curvetun_mgmt_users.c:297:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, token, sizeof(token));
data/netsniff-ng-0.6.5/curvetun_mgmt_users.c:370:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	crypto_hash_sha512(h, (unsigned char *) uname, strlen(uname));
data/netsniff-ng-0.6.5/curvetun_mgmt_users.c:399:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	crypto_hash_sha512(h, (unsigned char *) uname, strlen(uname));
data/netsniff-ng-0.6.5/curvetun_mgmt_users.c:513: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).
					   strlen(elem->username) + 1);
data/netsniff-ng-0.6.5/curvetun_mgmt_users.c:591: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).
					   strlen(elem->username) + 1);
data/netsniff-ng-0.6.5/curvetun_server.c:101:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((rlen = read(fd, buff + off, len - off)) > 0) {
data/netsniff-ng-0.6.5/curvetun_server.c:269:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((rlen = read(fd, buff + off, len - off)) > 0) {
data/netsniff-ng-0.6.5/curvetun_server.c:753:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				ret = read(fd_del, &test, sizeof(test));
data/netsniff-ng-0.6.5/dev.c:22: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 (!strncmp("any", ifname, strlen("any")))
data/netsniff-ng-0.6.5/dev.c:56: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 (!strncmp("any", ifname, strlen("any")))
data/netsniff-ng-0.6.5/dev.c:107: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 (!strncmp("any", ifname, strlen("any")))
data/netsniff-ng-0.6.5/dev.c:136: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 (!strncmp("any", ifname, strlen("any")))
data/netsniff-ng-0.6.5/dev.c:212: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 (!strncmp("any", ifname, strlen("any")))
data/netsniff-ng-0.6.5/dev.c:233: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 (!strncmp("any", ifname, strlen("any")))
data/netsniff-ng-0.6.5/dev.c:244: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 (!strncmp("any", ifname, strlen("any")))
data/netsniff-ng-0.6.5/flowtop.c:1836:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(USEC_PER_SEC * interval);
data/netsniff-ng-0.6.5/geoip.c:163: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).
	size_t lenl = strlen("Content-Length: ");
data/netsniff-ng-0.6.5/geoip.c:164: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).
	size_t lent = strlen("HTTP/1.1 200 OK");
data/netsniff-ng-0.6.5/geoip.c:165: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).
	size_t lenc = strlen("\r\n\r\n");
data/netsniff-ng-0.6.5/geoip.c:182: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).
	ret = write(sock, raw, strlen(raw));
data/netsniff-ng-0.6.5/geoip.c:192:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(sock, raw, sizeof(raw));
data/netsniff-ng-0.6.5/geoip.c:236:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(sock, raw, sizeof(raw));
data/netsniff-ng-0.6.5/geoip.c:634: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).
		buff[strlen(buff) - 1] = 0;
data/netsniff-ng-0.6.5/ifpps.c:233: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).
	ifname_colon = xstrndup(ifname, strlen(ifname) + 2);
data/netsniff-ng-0.6.5/ifpps.c:234: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).
	ifname_colon[strlen(ifname)]   = ':';
data/netsniff-ng-0.6.5/ifpps.c:235: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).
	ifname_colon[strlen(ifname) + 1] = '\0';
data/netsniff-ng-0.6.5/ifpps.c:361:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ptr += strlen("NET_xX:");
data/netsniff-ng-0.6.5/ifpps.c:397:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ptr += strlen("MemTotal:");
data/netsniff-ng-0.6.5/ifpps.c:400:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ptr += strlen("MemFree:");
data/netsniff-ng-0.6.5/ifpps.c:403:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ptr += strlen("Active:");
data/netsniff-ng-0.6.5/ifpps.c:406:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ptr += strlen("Inactive:");
data/netsniff-ng-0.6.5/ifpps.c:409:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ptr += strlen("SwapTotal:");
data/netsniff-ng-0.6.5/ifpps.c:412:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ptr += strlen("SwapFree:");
data/netsniff-ng-0.6.5/ifpps.c:415:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ptr += strlen("SwapCached:");
data/netsniff-ng-0.6.5/ifpps.c:444:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ptr += strlen("cpu");
data/netsniff-ng-0.6.5/ifpps.c:459:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ptr += strlen("ctxt");
data/netsniff-ng-0.6.5/ifpps.c:462:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ptr += strlen("procs_running");
data/netsniff-ng-0.6.5/ifpps.c:465:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			ptr += strlen("procs_blocked");
data/netsniff-ng-0.6.5/ifpps.c:614:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(ms_interval * 1000);
data/netsniff-ng-0.6.5/ioexact.c:15:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((written = read(fd, buf, len)) < 0) {
data/netsniff-ng-0.6.5/ioops.c:105:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t ret = read(fd, buf, len);
data/netsniff-ng-0.6.5/irq.c:20:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!strncmp("lo", ifname, strlen("lo")))
data/netsniff-ng-0.6.5/irq.c:62:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, nic_irq_affinity_list,
data/netsniff-ng-0.6.5/irq.c:116: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).
	ret = write(fd, list, strlen(list));
data/netsniff-ng-0.6.5/lookup.c:77:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ptr += strlen(", ");
data/netsniff-ng-0.6.5/netsniff-ng.c:271:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!strncmp("-", ctx->device_in, strlen("-"))) {
data/netsniff-ng-0.6.5/netsniff-ng.c:403:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!strncmp("-", ctx->device_in, strlen("-")))
data/netsniff-ng-0.6.5/netsniff-ng.c:588: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).
	write_or_die(fdo, bout, strlen(bout));
data/netsniff-ng-0.6.5/netsniff-ng.c:592: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).
		write_or_die(fdo, bout, strlen(bout));
data/netsniff-ng-0.6.5/netsniff-ng.c:598: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).
			write_or_die(fdo, bout, strlen(bout));
data/netsniff-ng-0.6.5/netsniff-ng.c:602: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).
				write_or_die(fdo, bout, strlen(bout));
data/netsniff-ng-0.6.5/netsniff-ng.c:606: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).
			write_or_die(fdo, bout, strlen(bout));
data/netsniff-ng-0.6.5/netsniff-ng.c:611: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).
		write_or_die(fdo, bout, strlen(bout));
data/netsniff-ng-0.6.5/netsniff-ng.c:615: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).
	write_or_die(fdo, bout, strlen(bout));
data/netsniff-ng-0.6.5/netsniff-ng.c:633:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!strncmp("-", ctx->device_in, strlen("-"))) {
data/netsniff-ng-0.6.5/netsniff-ng.c:676:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strncmp("-", ctx->device_out, strlen("-"))) {
data/netsniff-ng-0.6.5/netsniff-ng.c:770:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!strncmp("-", ctx->device_in, strlen("-")))
data/netsniff-ng-0.6.5/netsniff-ng.c:775:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strncmp("-", ctx->device_out, strlen("-")))
data/netsniff-ng-0.6.5/netsniff-ng.c:851: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 (ctx->device_out[strlen(ctx->device_out) - 1] == '/')
data/netsniff-ng-0.6.5/netsniff-ng.c:852:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ctx->device_out[strlen(ctx->device_out) - 1] = 0;
data/netsniff-ng-0.6.5/netsniff-ng.c:882:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp("-", ctx->device_out, strlen("-")))
data/netsniff-ng-0.6.5/netsniff-ng.c:895:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!strncmp("-", ctx->device_out, strlen("-"))) {
data/netsniff-ng-0.6.5/netsniff-ng.c:1359: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(optarg, "hash", strlen("hash")))
data/netsniff-ng-0.6.5/netsniff-ng.c:1361:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			else if (!strncmp(optarg, "lb", strlen("lb")) ||
data/netsniff-ng-0.6.5/netsniff-ng.c:1362: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).
				 !strncmp(optarg, "rr", strlen("rr")))
data/netsniff-ng-0.6.5/netsniff-ng.c:1364:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			else if (!strncmp(optarg, "cpu", strlen("cpu")))
data/netsniff-ng-0.6.5/netsniff-ng.c:1366:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			else if (!strncmp(optarg, "rnd", strlen("rnd")))
data/netsniff-ng-0.6.5/netsniff-ng.c:1368:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			else if (!strncmp(optarg, "roll", strlen("roll")))
data/netsniff-ng-0.6.5/netsniff-ng.c:1370:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			else if (!strncmp(optarg, "qm", strlen("qm")))
data/netsniff-ng-0.6.5/netsniff-ng.c:1376: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).
			if (!strncmp(optarg, "defrag", strlen("defrag")))
data/netsniff-ng-0.6.5/netsniff-ng.c:1378:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			else if (!strncmp(optarg, "roll", strlen("roll")))
data/netsniff-ng-0.6.5/netsniff-ng.c:1384: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(optarg, "host", strlen("host")))
data/netsniff-ng-0.6.5/netsniff-ng.c:1386:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			else if (!strncmp(optarg, "broadcast", strlen("broadcast")))
data/netsniff-ng-0.6.5/netsniff-ng.c:1388:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			else if (!strncmp(optarg, "multicast", strlen("multicast")))
data/netsniff-ng-0.6.5/netsniff-ng.c:1390:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			else if (!strncmp(optarg, "others", strlen("others")))
data/netsniff-ng-0.6.5/netsniff-ng.c:1392:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			else if (!strncmp(optarg, "outgoing", strlen("outgoing")))
data/netsniff-ng-0.6.5/netsniff-ng.c:1399:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			for (j = i = strlen(optarg); i > 0; --i) {
data/netsniff-ng-0.6.5/netsniff-ng.c:1405:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (!strncmp(ptr, "KiB", strlen("KiB")))
data/netsniff-ng-0.6.5/netsniff-ng.c:1407: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).
			else if (!strncmp(ptr, "MiB", strlen("MiB")))
data/netsniff-ng-0.6.5/netsniff-ng.c:1409: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).
			else if (!strncmp(ptr, "GiB", strlen("GiB")))
data/netsniff-ng-0.6.5/netsniff-ng.c:1465:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			for (j = i = strlen(optarg); i > 0; --i) {
data/netsniff-ng-0.6.5/netsniff-ng.c:1471:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (!strncmp(ptr, "KiB", strlen("KiB"))) {
data/netsniff-ng-0.6.5/netsniff-ng.c:1474:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			} else if (!strncmp(ptr, "MiB", strlen("MiB"))) {
data/netsniff-ng-0.6.5/netsniff-ng.c:1477:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			} else if (!strncmp(ptr, "GiB", strlen("GiB"))) {
data/netsniff-ng-0.6.5/netsniff-ng.c:1480:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			} else if (!strncmp(ptr, "sec", strlen("sec"))) {
data/netsniff-ng-0.6.5/netsniff-ng.c:1483:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			} else if (!strncmp(ptr, "min", strlen("min"))) {
data/netsniff-ng-0.6.5/netsniff-ng.c:1486:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			} else if (!strncmp(ptr, "hrs", strlen("hrs"))) {
data/netsniff-ng-0.6.5/netsniff-ng.c:1489: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).
			} else if (!strncmp(ptr, "s", strlen("s"))) {
data/netsniff-ng-0.6.5/netsniff-ng.c:1571:66:  [1] (buffer) strlen:
  Does not handle 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 (device_mtu(ctx.device_in) || !strncmp("any", ctx.device_in, strlen(ctx.device_in))) {
data/netsniff-ng-0.6.5/pcap_io.h:921:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, &hdr, sizeof(hdr));
data/netsniff-ng-0.6.5/pcap_rw.c:53:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, packet, hdrlen);
data/netsniff-ng-0.6.5/proto_nlmsg.c:114:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(buf, tbl->name, len - strlen(buf) - 1);
data/netsniff-ng-0.6.5/proto_nlmsg.c:114: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).
		strncat(buf, tbl->name, len - strlen(buf) - 1);
data/netsniff-ng-0.6.5/proto_nlmsg.c:117:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
			strncat(buf, ",", len - strlen(buf) - 1);
data/netsniff-ng-0.6.5/proto_nlmsg.c:117: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).
			strncat(buf, ",", len - strlen(buf) - 1);
data/netsniff-ng-0.6.5/proto_nlmsg.c:266:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, name, len);
data/netsniff-ng-0.6.5/rnd.c:32:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fdw, x, ret);
data/netsniff-ng-0.6.5/staging/automops.c:286:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(new_automops->name, amp->name, AUTOMOPS_MAX_NAME_LEN);
data/netsniff-ng-0.6.5/staging/automops.c:287:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(new_automops->desc, amp->desc, AUTOMOPS_MAX_SHORTDESC_LEN);
data/netsniff-ng-0.6.5/staging/automops.c:342:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(h->longdesc, f->longdesc, 1600);
data/netsniff-ng-0.6.5/staging/automops.c:441:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(d)>50) return -1; // TODO: replace 100 to a more reasonable value
data/netsniff-ng-0.6.5/staging/automops.c:991:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c=fgetc(fd)) != EOF) {
data/netsniff-ng-0.6.5/staging/cdp.c:312:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char*) tx.cdp_tlv_id, argval,2048);
data/netsniff-ng-0.6.5/staging/cdp.c:313: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).
	tx.cdp_tlv_id_len = strlen ((char*)tx.cdp_tlv_id);
data/netsniff-ng-0.6.5/staging/cdp.c:378:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tlv_len = create_tlv (3, (u_int8_t*) argval, strlen(argval), tlv);
data/netsniff-ng-0.6.5/staging/cdp.c:388:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(argval)>2)
data/netsniff-ng-0.6.5/staging/cdp.c:417:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tlv_len = create_tlv (5, (u_int8_t*) argval, strlen(argval), tlv);
data/netsniff-ng-0.6.5/staging/cdp.c:428:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tlv_len = create_tlv (6, (u_int8_t*) argval, strlen(argval), tlv);
data/netsniff-ng-0.6.5/staging/cdp.c:438:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tlv_len = create_tlv (9, (u_int8_t*) argval, strlen(argval), tlv);
data/netsniff-ng-0.6.5/staging/cdp.c:532: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).
	len1 = strlen((const char*) value1);
data/netsniff-ng-0.6.5/staging/cli.c:61:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(filename, str, 255);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:221: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 (mp->use_ETHER) strcat(ds,"E"); else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:221:47:  [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 (mp->use_ETHER) strcat(ds,"E"); else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:222: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 (mp->use_SNAP) strcat(ds,"S"); else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:222:46:  [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 (mp->use_SNAP) strcat(ds,"S"); else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:223: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 (mp->use_dot1Q) strcat(ds,"Q"); else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:223:47:  [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 (mp->use_dot1Q) strcat(ds,"Q"); else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:224: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 (mp->use_MPLS) strcat(ds,"M"); else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:224:46:  [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 (mp->use_MPLS) strcat(ds,"M"); else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:227:9:  [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(ds,"i"); 
data/netsniff-ng-0.6.5/staging/cli_cmds.c:229:9:  [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(ds,"I");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:230:14:  [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.
	     } else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:233:9:  [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(ds,"U"); 
data/netsniff-ng-0.6.5/staging/cli_cmds.c:235:23:  [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.
	       (mp->use_TCP) strcat(ds,"T"); 
data/netsniff-ng-0.6.5/staging/cli_cmds.c:236:12:  [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.
	     else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/cli_cmds.c:243:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  strncpy(pr, "ARP", 8);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:246:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  strncpy(pr, "BPDU", 8);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:249:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  strncpy(pr, "CDP", 8);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:252:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  strncpy(pr, "DNS", 8);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:255:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  strncpy(pr, "ICMP", 8);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:258:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  strncpy(pr, "IGMP", 8);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:261:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  strncpy(pr, "LLDP", 8);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:264:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  strncpy(pr, "RTP", 8);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:267:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  strncpy(pr, "SYSLOG", 8);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:300:5:  [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. Risk is low because the source is a
  constant string.
		  strncat(ps, "-i", 2);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:304:5:  [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. Risk is low because the source is a
  constant string.
		  strncat(ps, "+I", 2);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:311:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	     strncpy (name, mp->packet_name, 13); // only show first 13 chars
data/netsniff-ng-0.6.5/staging/cli_cmds.c:452:5:  [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(line, ds, 14);
data/netsniff-ng-0.6.5/staging/cli_cmds.c:480:5:  [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(line, ds, 20); 
data/netsniff-ng-0.6.5/staging/cli_ip.c:108:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	     if (strlen(argv[1])<4) // probably prefix?
data/netsniff-ng-0.6.5/staging/cli_ip.c:192:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	     if (strlen(argv[1])<4) // probably prefix?
data/netsniff-ng-0.6.5/staging/cli_ip.c:501:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(tmp)!=2) 
data/netsniff-ng-0.6.5/staging/cli_launch.c:49:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy (clipkt->packet_name, "sysBPDU", 7);
data/netsniff-ng-0.6.5/staging/cli_launch.c:114:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy (clipkt->packet_name, "sysFlood_TCPSYN", 15);
data/netsniff-ng-0.6.5/staging/cli_legacy.c:36: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 ((strlen(argv[i])+strlen(argstr))>10000)
data/netsniff-ng-0.6.5/staging/cli_legacy.c:36: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 ((strlen(argv[i])+strlen(argstr))>10000)
data/netsniff-ng-0.6.5/staging/cli_legacy.c:46:9:  [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(argstr, argv[i], 5000); // TODO: This is ugly!
data/netsniff-ng-0.6.5/staging/cli_legacy.c:103:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tx.arg_string, argstr, MAX_PAYLOAD_SIZE);
data/netsniff-ng-0.6.5/staging/cli_legacy.c:136:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tx.arg_string, argstr, MAX_PAYLOAD_SIZE);
data/netsniff-ng-0.6.5/staging/cli_packet.c:333:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen(argv[0])>MAX_MOPS_PACKET_NAME_LEN)
data/netsniff-ng-0.6.5/staging/cli_packet.c:345:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(clipkt->packet_name, argv[0], MAX_MOPS_PACKET_NAME_LEN);
data/netsniff-ng-0.6.5/staging/cli_packet.c:464:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		  strncpy(clipkt->device, argv[0], 16); // assign device to this mops
data/netsniff-ng-0.6.5/staging/cli_packet.c:939:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str);
data/netsniff-ng-0.6.5/staging/cli_packet.c:1011:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str);
data/netsniff-ng-0.6.5/staging/cli_sequence.c:246:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (name, seq->packet[i]->packet_name, 13); // only show first 13 chars
data/netsniff-ng-0.6.5/staging/cli_set.c:63:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	     if (strlen(argv[1])) 
data/netsniff-ng-0.6.5/staging/cli_set.c:76:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		       strncpy(tx.device, argv[1], 16);
data/netsniff-ng-0.6.5/staging/cli_set.c:97:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	     strncpy(tx.eth_src_txt, argv[1], 32);
data/netsniff-ng-0.6.5/staging/cli_set.c:121:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	     strncpy(tx.eth_dst_txt, argv[1], 32);
data/netsniff-ng-0.6.5/staging/cli_set.c:262:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	     strncpy((char *)tx.ascii_payload, argv[1], MAX_PAYLOAD_SIZE);
data/netsniff-ng-0.6.5/staging/cli_set.c:295:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	     if (strlen(argv[1])) // TODO: Better verification of 802.1Q syntax
data/netsniff-ng-0.6.5/staging/cli_set.c:297:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy(tx.mpls_txt, argv[1], 128);
data/netsniff-ng-0.6.5/staging/cli_set.c:314:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	     if (strlen(argv[1])) // TODO: Better verification of 802.1Q syntax
data/netsniff-ng-0.6.5/staging/cli_set.c:316:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy(tx.dot1Q_txt, argv[1], 32);
data/netsniff-ng-0.6.5/staging/dns.c:555: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).
	cnt = strlen(token);
data/netsniff-ng-0.6.5/staging/dns.c:634: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).
	cnt = strlen(token);
data/netsniff-ng-0.6.5/staging/dns.c:689:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen (argval);
data/netsniff-ng-0.6.5/staging/dns.c:701:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(field1, field, 512);
data/netsniff-ng-0.6.5/staging/dns.c:705:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(field2, field, 512);
data/netsniff-ng-0.6.5/staging/dns.c:709:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	     strncpy(field3, field, 512);
data/netsniff-ng-0.6.5/staging/dns.c:720:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(field3, field1, 512); 
data/netsniff-ng-0.6.5/staging/dns.c:721:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(field1, "A");
data/netsniff-ng-0.6.5/staging/dns.c:722:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(field2, "0");
data/netsniff-ng-0.6.5/staging/dns.c:725:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(field3, field2, 512);
data/netsniff-ng-0.6.5/staging/dns.c:726:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(field2, "0");
data/netsniff-ng-0.6.5/staging/hextools.c:92:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str)==0) return 0;
data/netsniff-ng-0.6.5/staging/hextools.c:96:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmp,str,8191); // necessary because strtok cannot operate on fixed strings
data/netsniff-ng-0.6.5/staging/hextools.c:126:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen(str)==0) return 0;
data/netsniff-ng-0.6.5/staging/hextools.c:130:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(tmp,str,8192); // necessary because strtok cannot operate on fixed strings
data/netsniff-ng-0.6.5/staging/hextools.c:169: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).
   str[strlen(str)-1]='\0'; //remove the last ":"
data/netsniff-ng-0.6.5/staging/hextools.c:210:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str)<3) return 0;
data/netsniff-ng-0.6.5/staging/hextools.c:245:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str)<3) return 0;
data/netsniff-ng-0.6.5/staging/hextools.c:282:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   i=strlen(hex);
data/netsniff-ng-0.6.5/staging/layer1.c:114: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).
   src = strlen(tx.eth_src_txt);
data/netsniff-ng-0.6.5/staging/layer1.c:115: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).
   dst = strlen(tx.eth_dst_txt);
data/netsniff-ng-0.6.5/staging/layer2.c:175: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).
   src = strlen(tx.eth_src_txt);
data/netsniff-ng-0.6.5/staging/layer2.c:176: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).
   dst = strlen(tx.eth_dst_txt);
data/netsniff-ng-0.6.5/staging/layer3.c:298:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char *)tx.ip_payload, (char *)tx.ascii_payload, MAX_PAYLOAD_SIZE);
data/netsniff-ng-0.6.5/staging/layer3.c:299:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tx.ip_payload_s = strlen((char *)tx.ascii_payload);
data/netsniff-ng-0.6.5/staging/layer3.c:331:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(argval);
data/netsniff-ng-0.6.5/staging/layer3.c:610:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char *)tx.ip_payload, (char *)tx.ascii_payload, MAX_PAYLOAD_SIZE);
data/netsniff-ng-0.6.5/staging/layer3.c:611:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tx.ip_payload_s = strlen((char *)tx.ascii_payload);
data/netsniff-ng-0.6.5/staging/layer3.c:675:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(argval);
data/netsniff-ng-0.6.5/staging/layer4.c:251:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char *)tx.udp_payload, (char *)tx.ascii_payload, MAX_PAYLOAD_SIZE);
data/netsniff-ng-0.6.5/staging/layer4.c:252: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).
	tx.udp_payload_s = strlen((char *)tx.ascii_payload);
data/netsniff-ng-0.6.5/staging/layer4.c:470:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char *)tx.icmp_payload, (char *)tx.ascii_payload, MAX_PAYLOAD_SIZE);
data/netsniff-ng-0.6.5/staging/layer4.c:471: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).
	tx.icmp_payload_s = strlen((char *)tx.ascii_payload);
data/netsniff-ng-0.6.5/staging/layer4.c:646:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char *)tx.icmp_payload, (char *)tx.ascii_payload, MAX_PAYLOAD_SIZE);
data/netsniff-ng-0.6.5/staging/layer4.c:647: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).
	tx.icmp_payload_s = strlen((char *)tx.ascii_payload);
data/netsniff-ng-0.6.5/staging/layer4.c:831:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char *)tx.tcp_payload, (char *)tx.ascii_payload, MAX_PAYLOAD_SIZE);
data/netsniff-ng-0.6.5/staging/layer4.c:832: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).
	tx.tcp_payload_s = strlen((char *)tx.ascii_payload);
data/netsniff-ng-0.6.5/staging/lookupdev.c:91:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				 strncpy(device_list[i].dev, index->name, 9);
data/netsniff-ng-0.6.5/staging/lookupdev.c:92:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				 strncpy(device_list[i].ip_str, ipaddress, IPADDRSIZE);
data/netsniff-ng-0.6.5/staging/lookupdev.c:105:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				 strncpy(device_list[i].dev, index->name, 9);
data/netsniff-ng-0.6.5/staging/lookupdev.c:106:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				 strncpy(device_list[i].ip_str, ipaddress, IPADDRSIZE);
data/netsniff-ng-0.6.5/staging/lookupdev.c:146:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy (tx.device, device_list[0].dev, 16);
data/netsniff-ng-0.6.5/staging/lookupdev.c:169: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, ifname , IFNAMSIZ-1);
data/netsniff-ng-0.6.5/staging/lookupdev.c:291:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(si.ifr_name, name, IFNAMSIZ);
data/netsniff-ng-0.6.5/staging/lookupdev.c:321:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(200); // this is a VERY short delay but it usually works in today's LANs
data/netsniff-ng-0.6.5/staging/mausezahn.c:435:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (mz_listen_addr, optarg, sizeof(mz_listen_addr));
data/netsniff-ng-0.6.5/staging/mausezahn.c:438:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (tx.eth_src_txt, optarg, 32);
data/netsniff-ng-0.6.5/staging/mausezahn.c:442:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (tx.ip_src_txt, optarg, sizeof(tx.ip_src_txt));
data/netsniff-ng-0.6.5/staging/mausezahn.c:445:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (tx.eth_dst_txt, optarg, 32);
data/netsniff-ng-0.6.5/staging/mausezahn.c:449:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (tx.ip_dst_txt, optarg, sizeof(tx.ip_dst_txt));
data/netsniff-ng-0.6.5/staging/mausezahn.c:524:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy (tx.mpls_txt, optarg, 128);
data/netsniff-ng-0.6.5/staging/mausezahn.c:531:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy((char*)tx.ascii_payload,  optarg, MAX_PAYLOAD_SIZE);
data/netsniff-ng-0.6.5/staging/mausezahn.c:552:23:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while ( (hexpld[i]=fgetc(afp))!=EOF ) {
data/netsniff-ng-0.6.5/staging/mausezahn.c:567:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy (tx.dot1Q_txt, optarg, 32);
data/netsniff-ng-0.6.5/staging/mausezahn.c:570:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				for (i=0; i<strlen(tx.dot1Q_txt); i++) {
data/netsniff-ng-0.6.5/staging/mausezahn.c:625:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(tx.device, argv[optind], 16);
data/netsniff-ng-0.6.5/staging/mausezahn.c:628:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (tx.arg_string, argv[optind], MAX_PAYLOAD_SIZE);
data/netsniff-ng-0.6.5/staging/mausezahn.c:643:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (tx.device, argv[optind], 16);
data/netsniff-ng-0.6.5/staging/mausezahn.c:644:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (tx.arg_string, argv[optind+1], MAX_PAYLOAD_SIZE);
data/netsniff-ng-0.6.5/staging/mausezahn.c:682: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(tx.ip_src_txt)) { // option -A has been specified
data/netsniff-ng-0.6.5/staging/mausezahn.c:720: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(tx.ip_dst_txt)) {  // option -B has been specified
data/netsniff-ng-0.6.5/staging/mausezahn.c:815: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(tx.arg_string)) {
data/netsniff-ng-0.6.5/staging/mops.c:68:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(new_mops->packet_name, "-------", 8);
data/netsniff-ng-0.6.5/staging/mops.c:118:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(new_mops->packet_name, pname, MAX_MOPS_PACKET_NAME_LEN);
data/netsniff-ng-0.6.5/staging/mops.c:219:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(cur->packet_name, pname, MAX_MOPS_PACKET_NAME_LEN);
data/netsniff-ng-0.6.5/staging/mops.c:258:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(str, output, 99);
data/netsniff-ng-0.6.5/staging/mops.c:399:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (mp->device, tx.device, 16);
data/netsniff-ng-0.6.5/staging/mops.c:536: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(hex, " "); // insert space after each 8 bytes
data/netsniff-ng-0.6.5/staging/mops.c:537: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).
		  hex[strlen(hex)-2]=' ';
data/netsniff-ng-0.6.5/staging/mops.c:551: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).
   hex[strlen(hex)-1]=' ';
data/netsniff-ng-0.6.5/staging/mops.c:715:21:  [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 (mp->use_ETHER) strcat(ds,"E"); else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/mops.c:715:42:  [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 (mp->use_ETHER) strcat(ds,"E"); else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/mops.c:716:20:  [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 (mp->use_SNAP) strcat(ds,"S"); else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/mops.c:716:41:  [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 (mp->use_SNAP) strcat(ds,"S"); else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/mops.c:717:21:  [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 (mp->use_dot1Q) strcat(ds,"Q"); else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/mops.c:717:42:  [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 (mp->use_dot1Q) strcat(ds,"Q"); else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/mops.c:718:20:  [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 (mp->use_MPLS) strcat(ds,"M"); else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/mops.c:718:41:  [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 (mp->use_MPLS) strcat(ds,"M"); else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/mops.c:721:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(ds,"i"); 
data/netsniff-ng-0.6.5/staging/mops.c:723:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(ds,"I");
data/netsniff-ng-0.6.5/staging/mops.c:724:9:  [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.
	} else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/mops.c:727: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(ds,"U"); 
data/netsniff-ng-0.6.5/staging/mops.c:729:17:  [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.
		(mp->use_TCP) strcat(ds,"T"); 
data/netsniff-ng-0.6.5/staging/mops.c:730:7:  [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.
	else strcat(ds,"-");
data/netsniff-ng-0.6.5/staging/mops.c:734:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(pr, "ARP", 8);
data/netsniff-ng-0.6.5/staging/mops.c:737:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(pr, "BPDU", 8);
data/netsniff-ng-0.6.5/staging/mops.c:740:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(pr, "CDP", 8);
data/netsniff-ng-0.6.5/staging/mops.c:743:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(pr, "DNS", 8);
data/netsniff-ng-0.6.5/staging/mops.c:746:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(pr, "ICMP", 8);
data/netsniff-ng-0.6.5/staging/mops.c:749:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(pr, "IGMP", 8);
data/netsniff-ng-0.6.5/staging/mops.c:752:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(pr, "LLDP", 8);
data/netsniff-ng-0.6.5/staging/mops.c:755:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(pr, "RTP", 8);
data/netsniff-ng-0.6.5/staging/mops.c:758:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(pr, "SYSLOG", 8);
data/netsniff-ng-0.6.5/staging/mops.c:764:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(layers, ds, 16);
data/netsniff-ng-0.6.5/staging/mops.c:765:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(proto, pr, 16);
data/netsniff-ng-0.6.5/staging/mops_ext.c:248: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 ((1+strlen(argv[i]))>(10000-strlen(tmp)))  // The '1+' counts for the additional space
data/netsniff-ng-0.6.5/staging/mops_ext.c:248: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 ((1+strlen(argv[i]))>(10000-strlen(tmp)))  // The '1+' counts for the additional space
data/netsniff-ng-0.6.5/staging/mops_ext.c:252:7:  [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(tmp, argv[i], 80); // Enforcing a maximum word length
data/netsniff-ng-0.6.5/staging/mops_ext.c:253:7:  [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(tmp, " "); // We get only the tokens, not the spaces inbetween
data/netsniff-ng-0.6.5/staging/mops_ext.c:257:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(dst, tmp, max);
data/netsniff-ng-0.6.5/staging/mops_ext.c:258:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen(tmp)>max) return MOPS_PDESC_OVERFLOW;
data/netsniff-ng-0.6.5/staging/mops_ext.c:390:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen(usr);
data/netsniff-ng-0.6.5/staging/mops_ext_arp.c:184:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (mp->packet_name, "sysARP_service", 15);
data/netsniff-ng-0.6.5/staging/mops_ext_arp.c:221:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(100000); // wait 100 ms
data/netsniff-ng-0.6.5/staging/mops_ip.c:115:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen(argv)==0) return -1;
data/netsniff-ng-0.6.5/staging/mops_ip.c:116:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(str,argv,15);
data/netsniff-ng-0.6.5/staging/mops_ip.c:120:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str)!=4)  return 1; // ERROR: Invalid AF codepoint
data/netsniff-ng-0.6.5/staging/mops_ip.c:135:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str)!=2)  return 2; // ERROR: Invalid Code Selector
data/netsniff-ng-0.6.5/staging/mops_ip.c:152: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).
   else if (strlen(str)==2) // decimal DSCP value
data/netsniff-ng-0.6.5/staging/mops_sequence.c:65:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(cur->name, name, MZ_LL_NAME_LEN);
data/netsniff-ng-0.6.5/staging/mops_sequence.c:133:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(tmp, t, 6);
data/netsniff-ng-0.6.5/staging/mops_sequence.c:134:14:  [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. Risk is low because the source is a
  constant string.
		if (i<c-1) strncat(tmp,", ", 2);
data/netsniff-ng-0.6.5/staging/mz.h:86:15:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define SLEEP usleep               // The sleep function to use. Consider 'nanosleep' in future.
data/netsniff-ng-0.6.5/staging/parse_xml.c:157:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(p_clone, p, AUTOMOPS_MAX_FILE_SIZE);
data/netsniff-ng-0.6.5/staging/parse_xml.c:184:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(p_clone, p, AUTOMOPS_MAX_FILE_SIZE);
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:175:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(argval);
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:181:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
			strncat(argval, "/",1); // ensure that all paths end with "/"
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:183:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(path, argval, 128);
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:203:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy (rtp_filter_str, "udp dst port 30000", 64);
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:223:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(dummy, path, 128);
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:224:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(dummy, filename, 64);
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:251:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(dummy, path, 128);
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:252:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(dummy, filename, 64);
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:611:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(dummy, path, 128);
data/netsniff-ng-0.6.5/staging/rcv_rtp.c:612:5:  [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(dummy, filename, 64);
data/netsniff-ng-0.6.5/staging/send_eth.c:71: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).
	mlen = strlen (tx.mpls_txt);
data/netsniff-ng-0.6.5/staging/send_eth.c:85:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	     strncpy(mtag, f, 64);
data/netsniff-ng-0.6.5/staging/send_eth.c:128: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(tx.mpls_verbose_string, " ");
data/netsniff-ng-0.6.5/staging/send_eth.c:195:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmp,tx.dot1Q_txt,(4*MAX_8021Q_TAGS));
data/netsniff-ng-0.6.5/staging/send_eth.c:201:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	     strncpy(substring, ptrsubstring, 16);
data/netsniff-ng-0.6.5/staging/send_eth.c:204: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).
	     len = strlen(substring);
data/netsniff-ng-0.6.5/staging/syslog.c:139:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	     strncpy(lt,argval,8);
data/netsniff-ng-0.6.5/staging/syslog.c:188:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(host,argval,314);  // 314 is just an arbitrary number ;-)
data/netsniff-ng-0.6.5/staging/syslog.c:221: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((char *)tx.udp_payload, (char *)tx.ascii_payload, 2048);
data/netsniff-ng-0.6.5/staging/syslog.c:230:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   tx.udp_payload_s = strlen((char *)tx.udp_payload);   
data/netsniff-ng-0.6.5/staging/time.c:167:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(result, curtime_str, 32);
data/netsniff-ng-0.6.5/staging/time.c:171:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(result, prefix, 32);
data/netsniff-ng-0.6.5/staging/time.c:172: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(result, curtime_str, 32);
data/netsniff-ng-0.6.5/staging/time.c:203:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(result, curtime_str, 9);
data/netsniff-ng-0.6.5/staging/tools.c:60: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 IPV6_MAX_RANGE_LEN strlen("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/128")
data/netsniff-ng-0.6.5/staging/tools.c:61: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 IPV6_MIN_RANGE_LEN strlen("::/0")
data/netsniff-ng-0.6.5/staging/tools.c:81:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(tmp,str,MAX_PAYLOAD_SIZE); // only operate on local strings
data/netsniff-ng-0.6.5/staging/tools.c:936:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(params, p, 256);
data/netsniff-ng-0.6.5/staging/tools.c:1070: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).
   len_str = strlen(str);
data/netsniff-ng-0.6.5/staging/tools.c:1071: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).
   len_ch = strlen(ch);
data/netsniff-ng-0.6.5/staging/tools.c:1094:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str);
data/netsniff-ng-0.6.5/staging/tools.c:1172:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(str, tmp, 15);
data/netsniff-ng-0.6.5/staging/tools.c:1200:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmp, filename, 32);
data/netsniff-ng-0.6.5/staging/tools.c:1207:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
			strncat(mz_default_config_path, "/",1);
data/netsniff-ng-0.6.5/staging/tools.c:1211: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).
		lenp = strlen(MZ_DEFAULT_CONFIG_PATH);
data/netsniff-ng-0.6.5/staging/tools.c:1239:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmp, filename, 32);
data/netsniff-ng-0.6.5/staging/tools.c:1245:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
			strncat(mz_default_log_path, "/",1);
data/netsniff-ng-0.6.5/staging/tools.c:1249: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).
		lenp = strlen(MZ_DEFAULT_LOG_PATH);
data/netsniff-ng-0.6.5/staging/tools.c:1274:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	tmp = strncpy(dest, src, n);
data/netsniff-ng-0.6.5/staging/tools.c:1310:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str);
data/netsniff-ng-0.6.5/staging/tools.c:1334:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str);
data/netsniff-ng-0.6.5/staging/tools.c:1377:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	usrlen = strlen(usr_orig);
data/netsniff-ng-0.6.5/staging/tools.c:1378: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).
	max = strlen(str_orig);
data/netsniff-ng-0.6.5/staging/tools.c:1380:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(usr, usr_orig, 80);
data/netsniff-ng-0.6.5/staging/tools.c:1381:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(str, str_orig, 80);
data/netsniff-ng-0.6.5/staging/tools.c:1441:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(delim)!=1) return -1; // delim must contain a single character!
data/netsniff-ng-0.6.5/staging/tools.c:1442:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(str2, str, 4095);        // protect the original str from strtok => operate on a copy only
data/netsniff-ng-0.6.5/staging/tools.c:1443:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str2);
data/netsniff-ng-0.6.5/staging/tools.c:1446:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(delim2, delim, 1); strncat(delim2, delim, 1);  // create the double-delim
data/netsniff-ng-0.6.5/staging/tools.c:1446:29:  [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.
	strncpy(delim2, delim, 1); strncat(delim2, delim, 1);  // create the double-delim
data/netsniff-ng-0.6.5/staging/tools.c:1447:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(delim3, delim2, 2); strncat(delim3, delim, 1); // create the double-delim
data/netsniff-ng-0.6.5/staging/tools.c:1447:30:  [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.
	strncpy(delim3, delim2, 2); strncat(delim3, delim, 1); // create the double-delim
data/netsniff-ng-0.6.5/staging/tools.c:1452: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(d)>2) { // '::' is not at the end of str2
data/netsniff-ng-0.6.5/staging/tools.c:1456:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			rlen = strlen(r);
data/netsniff-ng-0.6.5/staging/tools.c:1490:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(arg, token, 64);
data/netsniff-ng-0.6.5/staging/tools.c:1548: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).
			for (i=0; i<strlen(a); i++) {
data/netsniff-ng-0.6.5/str.c:18: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).
	size_t ret = strlen(src);
data/netsniff-ng-0.6.5/str.c:80:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(p);
data/netsniff-ng-0.6.5/str.c:87:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(p);
data/netsniff-ng-0.6.5/str.c:101:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t alen = strlen(argv[i]) + tlen;
data/netsniff-ng-0.6.5/str.c:102:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t slen = str ? strlen(str) : 0;
data/netsniff-ng-0.6.5/str.c:105: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).
		ret = slprintf(str + offset, strlen(argv[i]) + tlen, "%s%s",
data/netsniff-ng-0.6.5/str.c:166: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).
	size_t slen = strlen(str);
data/netsniff-ng-0.6.5/str.c:184:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			dlen = strlen(tmp);
data/netsniff-ng-0.6.5/stun.c:119:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(sock, rpkt, sizeof(rpkt));
data/netsniff-ng-0.6.5/sysctl.c:23:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(path, SYSCTL_PROC_PATH, PATH_MAX);
data/netsniff-ng-0.6.5/sysctl.c:24: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(path, file, PATH_MAX - sizeof(SYSCTL_PROC_PATH) - 1);
data/netsniff-ng-0.6.5/sysctl.c:36:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ret = write(fd, str, strlen(str));
data/netsniff-ng-0.6.5/sysctl.c:49:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(path, SYSCTL_PROC_PATH, PATH_MAX);
data/netsniff-ng-0.6.5/sysctl.c:50: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(path, file, PATH_MAX - sizeof(SYSCTL_PROC_PATH) - 1);
data/netsniff-ng-0.6.5/sysctl.c:56:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, str, sizeof(str));
data/netsniff-ng-0.6.5/trafgen.c:811:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(10000);
data/netsniff-ng-0.6.5/trafgen.c:1106:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			} else if (!strncmp("-", confname, strlen("-")))
data/netsniff-ng-0.6.5/trafgen.c:1134: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 (!strncmp(ptr, "ns", strlen("ns"))) {
data/netsniff-ng-0.6.5/trafgen.c:1137:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			} else if (*ptr == '\0' || !strncmp(ptr, "us", strlen("us"))) {
data/netsniff-ng-0.6.5/trafgen.c:1143: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).
			} else if (!strncmp(ptr, "ms", strlen("ms"))) {
data/netsniff-ng-0.6.5/trafgen.c:1146: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).
			} else if (!strncmp(ptr, "s", strlen("s"))) {
data/netsniff-ng-0.6.5/trafgen.c:1160: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 (strncmp(ptr, "pps", strlen("pps")) == 0) {
data/netsniff-ng-0.6.5/trafgen.c:1162: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).
			} else if (strncmp(ptr, "B", strlen("B")) == 0) {
data/netsniff-ng-0.6.5/trafgen.c:1164: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).
			} else if (strncmp(ptr, "kB", strlen("kB")) == 0) {
data/netsniff-ng-0.6.5/trafgen.c:1167: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).
			} else if (strncmp(ptr, "MB", strlen("MB")) == 0) {
data/netsniff-ng-0.6.5/trafgen.c:1170: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).
			} else if (strncmp(ptr, "GB", strlen("GB")) == 0) {
data/netsniff-ng-0.6.5/trafgen.c:1173:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			} else if (strncmp(ptr, "kbit", strlen("kbit")) == 0) {
data/netsniff-ng-0.6.5/trafgen.c:1176:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			} else if (strncmp(ptr, "Mbit", strlen("Mbit")) == 0) {
data/netsniff-ng-0.6.5/trafgen.c:1179:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			} else if (strncmp(ptr, "Gbit", strlen("Gbit")) == 0) {
data/netsniff-ng-0.6.5/trafgen.c:1182: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).
			} else if (strncmp(ptr, "KiB", strlen("KiB")) == 0) {
data/netsniff-ng-0.6.5/trafgen.c:1185: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).
			} else if (strncmp(ptr, "MiB", strlen("MiB")) == 0) {
data/netsniff-ng-0.6.5/trafgen.c:1188: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).
			} else if (strncmp(ptr, "GiB", strlen("GiB")) == 0) {
data/netsniff-ng-0.6.5/trafgen.c:1204:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (!strncmp(ptr, "KiB", strlen("KiB")))
data/netsniff-ng-0.6.5/trafgen.c:1206: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).
			else if (!strncmp(ptr, "MiB", strlen("MiB")))
data/netsniff-ng-0.6.5/trafgen.c:1208: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).
			else if (!strncmp(ptr, "GiB", strlen("GiB")))
data/netsniff-ng-0.6.5/trafgen_dev.c:31: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 (!strncmp("-", name, strlen("-"))) {
data/netsniff-ng-0.6.5/trafgen_dev.c:44: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 (!strncmp("-", name, strlen("-"))) {
data/netsniff-ng-0.6.5/trafgen_dev.c:295:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (dev->ops->read)
data/netsniff-ng-0.6.5/trafgen_dev.c:296:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return dev->ops->read(dev);
data/netsniff-ng-0.6.5/trafgen_dev.h:38:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	struct packet *(*read) (struct dev_io *dev);
data/netsniff-ng-0.6.5/trafgen_proto.c:652:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	proto_hdr_field_set_bytes(hdr, fid, (uint8_t *)str, strlen(str) + 1);
data/netsniff-ng-0.6.5/trafgen_proto.c:657:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	proto_hdr_field_set_default_bytes(hdr, fid, (uint8_t *)str, strlen(str) + 1);
data/netsniff-ng-0.6.5/trafgen_proto.c:720:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	proto_field_set_bytes(field, (uint8_t *)str, strlen(str) + 1);
data/netsniff-ng-0.6.5/trafgen_proto.c:725:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	__proto_field_set_bytes(field, (uint8_t *)str, strlen(str) + 1, true, false);
data/netsniff-ng-0.6.5/tstamping.c:19: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 (!strncmp("any", dev, strlen("any")))
data/netsniff-ng-0.6.5/ui.c:40: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).
	size_t slen = strlen(str);
data/netsniff-ng-0.6.5/ui.c:344: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).
	ui_table_col_add(&tab->tbl, id, name, strlen(name) + 1);
data/netsniff-ng-0.6.5/xmalloc.c:130:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str) + 1;
data/netsniff-ng-0.6.5/xmalloc.c:143:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str) + 1;

ANALYSIS SUMMARY:

Hits = 1124
Lines analyzed = 64247 in approximately 1.57 seconds (41041 lines/second)
Physical Source Lines of Code (SLOC) = 47146
Hits@level = [0] 658 [1] 411 [2] 619 [3]  23 [4]  68 [5]   3
Hits@level+ = [0+] 1782 [1+] 1124 [2+] 713 [3+]  94 [4+]  71 [5+]   3
Hits/KSLOC@level+ = [0+] 37.7975 [1+] 23.8408 [2+] 15.1232 [3+] 1.99381 [4+] 1.50596 [5+] 0.0636321
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.