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/libtrace3-3.0.21/examples/skeleton/event.c
Examining data/libtrace3-3.0.21/examples/skeleton/trivial.c
Examining data/libtrace3-3.0.21/examples/skeleton/output.c
Examining data/libtrace3-3.0.21/examples/skeleton/complete.c
Examining data/libtrace3-3.0.21/examples/stats/stats.c
Examining data/libtrace3-3.0.21/examples/rate/rate.c
Examining data/libtrace3-3.0.21/examples/rate/rate-dir.c
Examining data/libtrace3-3.0.21/examples/tutorial/gettcpdemo.c
Examining data/libtrace3-3.0.21/examples/tutorial/writedemo.c
Examining data/libtrace3-3.0.21/examples/tutorial/configdemo.c
Examining data/libtrace3-3.0.21/examples/tutorial/sourcedemo.c
Examining data/libtrace3-3.0.21/examples/tutorial/httpcount.c
Examining data/libtrace3-3.0.21/examples/tutorial/filterdemo.c
Examining data/libtrace3-3.0.21/examples/tutorial/createdemo.c
Examining data/libtrace3-3.0.21/examples/tutorial/mplscount.c
Examining data/libtrace3-3.0.21/examples/tutorial/getpayloaddemo.c
Examining data/libtrace3-3.0.21/examples/tutorial/gettransportdemo.c
Examining data/libtrace3-3.0.21/examples/tutorial/headerdemo.c
Examining data/libtrace3-3.0.21/examples/tutorial/timedemo.c
Examining data/libtrace3-3.0.21/examples/tutorial/lengthdemo.c
Examining data/libtrace3-3.0.21/examples/tutorial/readdemo.c
Examining data/libtrace3-3.0.21/examples/tutorial/mplstag.c
Examining data/libtrace3-3.0.21/lib/protocols_ospf.c
Examining data/libtrace3-3.0.21/lib/linktypes.c
Examining data/libtrace3-3.0.21/lib/erftypes.h
Examining data/libtrace3-3.0.21/lib/format_erf.h
Examining data/libtrace3-3.0.21/lib/format_atmhdr.c
Examining data/libtrace3-3.0.21/lib/format_pcap.c
Examining data/libtrace3-3.0.21/lib/malloc.c
Examining data/libtrace3-3.0.21/lib/format_pcapfile.c
Examining data/libtrace3-3.0.21/lib/link_wireless.c
Examining data/libtrace3-3.0.21/lib/libtrace_arphrd.h
Examining data/libtrace3-3.0.21/lib/format_dpdk.c
Examining data/libtrace3-3.0.21/lib/trace.c
Examining data/libtrace3-3.0.21/lib/lt_bswap.h
Examining data/libtrace3-3.0.21/lib/format_bpf.c
Examining data/libtrace3-3.0.21/lib/libtrace_int.h
Examining data/libtrace3-3.0.21/lib/byteswap.c
Examining data/libtrace3-3.0.21/lib/protocols_pktmeta.c
Examining data/libtrace3-3.0.21/lib/format_helper.h
Examining data/libtrace3-3.0.21/lib/lt_inttypes.h
Examining data/libtrace3-3.0.21/lib/bpf-jit/bpf-jit.cc
Examining data/libtrace3-3.0.21/lib/checksum.c
Examining data/libtrace3-3.0.21/lib/dagformat.h
Examining data/libtrace3-3.0.21/lib/format_dag24.c
Examining data/libtrace3-3.0.21/lib/common.h
Examining data/libtrace3-3.0.21/lib/checksum.h
Examining data/libtrace3-3.0.21/lib/protocols_transport.c
Examining data/libtrace3-3.0.21/lib/format_rt.c
Examining data/libtrace3-3.0.21/lib/libtrace.h
Examining data/libtrace3-3.0.21/lib/format_linux.c
Examining data/libtrace3-3.0.21/lib/format_legacy.c
Examining data/libtrace3-3.0.21/lib/strndup.c
Examining data/libtrace3-3.0.21/lib/realloc.c
Examining data/libtrace3-3.0.21/lib/format_duck.c
Examining data/libtrace3-3.0.21/lib/format_dag25.c
Examining data/libtrace3-3.0.21/lib/format_erf.c
Examining data/libtrace3-3.0.21/lib/protocols_l2.c
Examining data/libtrace3-3.0.21/lib/protocols.h
Examining data/libtrace3-3.0.21/lib/rt_protocol.h
Examining data/libtrace3-3.0.21/lib/format_helper.c
Examining data/libtrace3-3.0.21/lib/format_tsh.c
Examining data/libtrace3-3.0.21/lib/protocols_l3.c
Examining data/libtrace3-3.0.21/lib/daglegacy.h
Examining data/libtrace3-3.0.21/tools/tracereport/tracereport.c
Examining data/libtrace3-3.0.21/tools/tracereport/port_report.c
Examining data/libtrace3-3.0.21/tools/tracereport/tcpsegment_report.c
Examining data/libtrace3-3.0.21/tools/tracereport/nlp_report.c
Examining data/libtrace3-3.0.21/tools/tracereport/protocol_report.c
Examining data/libtrace3-3.0.21/tools/tracereport/report.h
Examining data/libtrace3-3.0.21/tools/tracereport/contain.h
Examining data/libtrace3-3.0.21/tools/tracereport/drops_report.c
Examining data/libtrace3-3.0.21/tools/tracereport/tcpopt_report.c
Examining data/libtrace3-3.0.21/tools/tracereport/ttl_report.c
Examining data/libtrace3-3.0.21/tools/tracereport/flow_report.c
Examining data/libtrace3-3.0.21/tools/tracereport/dir_report.c
Examining data/libtrace3-3.0.21/tools/tracereport/tracereport.h
Examining data/libtrace3-3.0.21/tools/tracereport/contain.c
Examining data/libtrace3-3.0.21/tools/tracereport/tos_report.c
Examining data/libtrace3-3.0.21/tools/tracereport/ecn_report.c
Examining data/libtrace3-3.0.21/tools/tracereport/error_report.c
Examining data/libtrace3-3.0.21/tools/tracereport/misc_report.c
Examining data/libtrace3-3.0.21/tools/tracereport/synopt_report.c
Examining data/libtrace3-3.0.21/tools/tracestats/tracestats.c
Examining data/libtrace3-3.0.21/tools/tracediff/tracediff.c
Examining data/libtrace3-3.0.21/tools/traceanon/ipenc.c
Examining data/libtrace3-3.0.21/tools/traceanon/ipenc.h
Examining data/libtrace3-3.0.21/tools/traceanon/rijndael.c
Examining data/libtrace3-3.0.21/tools/traceanon/traceanon.c
Examining data/libtrace3-3.0.21/tools/traceanon/panon.h
Examining data/libtrace3-3.0.21/tools/traceanon/rijndael.h
Examining data/libtrace3-3.0.21/tools/traceanon/panon.c
Examining data/libtrace3-3.0.21/tools/tracertstats/output_html.c
Examining data/libtrace3-3.0.21/tools/tracertstats/output_png.c
Examining data/libtrace3-3.0.21/tools/tracertstats/output_txt.c
Examining data/libtrace3-3.0.21/tools/tracertstats/output.c
Examining data/libtrace3-3.0.21/tools/tracertstats/output.h
Examining data/libtrace3-3.0.21/tools/tracertstats/output_csv.c
Examining data/libtrace3-3.0.21/tools/tracertstats/tracertstats.c
Examining data/libtrace3-3.0.21/tools/tracereplay/tracereplay.c
Examining data/libtrace3-3.0.21/tools/tracepktdump/tracepktdump.cc
Examining data/libtrace3-3.0.21/tools/tracemerge/tracemerge.c
Examining data/libtrace3-3.0.21/tools/tracetop/tracetop.cc
Examining data/libtrace3-3.0.21/tools/tracesplit/tracesplit.c
Examining data/libtrace3-3.0.21/tools/tracesplit/tracesplit_dir.c
Examining data/libtrace3-3.0.21/tools/traceends/traceends.cc
Examining data/libtrace3-3.0.21/libwandio/iow-bzip.c
Examining data/libtrace3-3.0.21/libwandio/ior-zlib.c
Examining data/libtrace3-3.0.21/libwandio/iow-thread.c
Examining data/libtrace3-3.0.21/libwandio/ior-stdio.c
Examining data/libtrace3-3.0.21/libwandio/iow-lzo.c
Examining data/libtrace3-3.0.21/libwandio/iow-lzma.c
Examining data/libtrace3-3.0.21/libwandio/ior-peek.c
Examining data/libtrace3-3.0.21/libwandio/tools/wandiocat/wcat.c
Examining data/libtrace3-3.0.21/libwandio/iow-stdio.c
Examining data/libtrace3-3.0.21/libwandio/ior-thread.c
Examining data/libtrace3-3.0.21/libwandio/wandio.c
Examining data/libtrace3-3.0.21/libwandio/wandio_internal.h
Examining data/libtrace3-3.0.21/libwandio/iow-zlib.c
Examining data/libtrace3-3.0.21/libwandio/ior-bzip.c
Examining data/libtrace3-3.0.21/libwandio/wandio.h
Examining data/libtrace3-3.0.21/libwandio/ior-lzma.c
Examining data/libtrace3-3.0.21/libpacketdump/ip_17.c
Examining data/libtrace3-3.0.21/libpacketdump/eth_2048.c
Examining data/libtrace3-3.0.21/libpacketdump/ospf2_4.c
Examining data/libtrace3-3.0.21/libpacketdump/link_4.c
Examining data/libtrace3-3.0.21/libpacketdump/link_0.c
Examining data/libtrace3-3.0.21/libpacketdump/eth_34916.c
Examining data/libtrace3-3.0.21/libpacketdump/link_10.c
Examining data/libtrace3-3.0.21/libpacketdump/ospf2_1005.c
Examining data/libtrace3-3.0.21/libpacketdump/ospf2_1002.c
Examining data/libtrace3-3.0.21/libpacketdump/libpacketdump.cc
Examining data/libtrace3-3.0.21/libpacketdump/ip_132.c
Examining data/libtrace3-3.0.21/libpacketdump/ip_44.c
Examining data/libtrace3-3.0.21/libpacketdump/link_1.c
Examining data/libtrace3-3.0.21/libpacketdump/link_11.c
Examining data/libtrace3-3.0.21/libpacketdump/link_15.c
Examining data/libtrace3-3.0.21/libpacketdump/ospf2_1004.c
Examining data/libtrace3-3.0.21/libpacketdump/link_6.c
Examining data/libtrace3-3.0.21/libpacketdump/grammar.h
Examining data/libtrace3-3.0.21/libpacketdump/eth_34525.c
Examining data/libtrace3-3.0.21/libpacketdump/eth_34887.c
Examining data/libtrace3-3.0.21/libpacketdump/ospf2_1000.c
Examining data/libtrace3-3.0.21/libpacketdump/ospf2_1001.c
Examining data/libtrace3-3.0.21/libpacketdump/eth_34958.c
Examining data/libtrace3-3.0.21/libpacketdump/ospf2_1.c
Examining data/libtrace3-3.0.21/libpacketdump/bitbuffer.c
Examining data/libtrace3-3.0.21/libpacketdump/eth_2054.c
Examining data/libtrace3-3.0.21/libpacketdump/lexer.c
Examining data/libtrace3-3.0.21/libpacketdump/ip_33.c
Examining data/libtrace3-3.0.21/libpacketdump/link_2.c
Examining data/libtrace3-3.0.21/libpacketdump/ip_60.c
Examining data/libtrace3-3.0.21/libpacketdump/libpacketdump.h
Examining data/libtrace3-3.0.21/libpacketdump/parser.c
Examining data/libtrace3-3.0.21/libpacketdump/ip_47.c
Examining data/libtrace3-3.0.21/libpacketdump/link_9.c
Examining data/libtrace3-3.0.21/libpacketdump/ip_1.c
Examining data/libtrace3-3.0.21/libpacketdump/parser.h
Examining data/libtrace3-3.0.21/libpacketdump/eth_33024.c
Examining data/libtrace3-3.0.21/libpacketdump/ip_89.c
Examining data/libtrace3-3.0.21/libpacketdump/ip_0.c
Examining data/libtrace3-3.0.21/libpacketdump/eth_0.c
Examining data/libtrace3-3.0.21/libpacketdump/bitbuffer.h
Examining data/libtrace3-3.0.21/libpacketdump/ip_43.c
Examining data/libtrace3-3.0.21/libpacketdump/ip_6.c
Examining data/libtrace3-3.0.21/libpacketdump/ospf2_1003.c
Examining data/libtrace3-3.0.21/libpacketdump/ospf2_5.c

FINAL RESULTS:

data/libtrace3-3.0.21/examples/stats/stats.c:37:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf("%"PRIu64",%"PRIu64",%"PRIu64,icmp,tcp,udp);
data/libtrace3-3.0.21/lib/format_dag24.c:56:11:  [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.
#  define snprintf sprintf_s
data/libtrace3-3.0.21/lib/format_dag25.c:61:11:  [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.
#  define snprintf sprintf_s
data/libtrace3-3.0.21/lib/format_dpdk.c:334:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(pci_str, sizeof(pci_str), PCI_PRI_FMT,
data/libtrace3-3.0.21/lib/format_dpdk.c:532:5:  [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(format_data->mempool_name, MEMPOOL_NAME_LEN,
data/libtrace3-3.0.21/lib/format_dpdk.c:536:9:  [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(err, errlen, 
data/libtrace3-3.0.21/lib/format_helper.c:301:3:  [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.
		vsnprintf(buf,sizeof(buf),msg,va);
data/libtrace3-3.0.21/lib/format_helper.c:305:3:  [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.
		vsnprintf(trace->err.problem,sizeof(trace->err.problem),
data/libtrace3-3.0.21/lib/format_helper.c:324:3:  [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.
		vsnprintf(buf,sizeof(buf),msg,va);
data/libtrace3-3.0.21/lib/format_helper.c:328:3:  [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.
		vsnprintf(trace->err.problem,sizeof(trace->err.problem),
data/libtrace3-3.0.21/lib/format_linux.c:297: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(ifr.ifr_name, uri);
data/libtrace3-3.0.21/lib/libtrace.h:192:59:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define PRINTF(formatpos, argpos) __attribute__((format(printf,formatpos, argpos)))
data/libtrace3-3.0.21/lib/libtrace_int.h:125:5:  [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.
int snprintf(char *str, size_t size, const char *format, ...);
data/libtrace3-3.0.21/lib/libtrace_int.h:127:10:  [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.
# define snprintf sprintf_s
data/libtrace3-3.0.21/lib/trace.c:1574:2:  [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.
	vsnprintf(buf,sizeof(buf),msg,va);
data/libtrace3-3.0.21/lib/trace.c:1614:2:  [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.
	vsnprintf(buf,sizeof(buf),msg,va);
data/libtrace3-3.0.21/libpacketdump/libpacketdump.cc:179:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(path,sizeof(path),DIRNAME "/%s_%i.so",name,type);
data/libtrace3-3.0.21/libpacketdump/libpacketdump.cc:201:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(path,sizeof(path),DIRNAME "/%s_%i.protocol",
data/libtrace3-3.0.21/libpacketdump/libpacketdump.h:14:17:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                printf(fmt,exp); \
data/libtrace3-3.0.21/libpacketdump/parser.c:665:21:  [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 YYFPRINTF fprintf
data/libtrace3-3.0.21/libwandio/iow-lzo.c:239: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(namebuf+15-strlen(label),label);
data/libtrace3-3.0.21/tools/tracertstats/output_csv.c:25:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				printf("%" PRIu64,out->data[i].d.d_int);
data/libtrace3-3.0.21/tools/tracesplit/tracesplit.c:43:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(buffer,sizeof(buffer),"%" PRIu64,i);
data/libtrace3-3.0.21/tools/tracesplit/tracesplit.c:159:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr," count=%" PRIu64,pktcount);
data/libtrace3-3.0.21/tools/tracesplit/tracesplit.c:161:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr," bytes=%" PRIu64,bytes);
data/libtrace3-3.0.21/examples/skeleton/complete.c:43:10:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		int c= getopt_long(argc, argv, "f:s:p:hH",
data/libtrace3-3.0.21/examples/stats/stats.c:126:10:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		int c= getopt_long(argc, argv, "f:s:p:hH",
data/libtrace3-3.0.21/examples/tutorial/headerdemo.c:541:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "i:f:")) != EOF) {
data/libtrace3-3.0.21/libpacketdump/libpacketdump.cc:172:31:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getuid() == geteuid() && getenv("LIBPKTDUMPDIR")) {
data/libtrace3-3.0.21/libpacketdump/libpacketdump.cc:173:44:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		snprintf(path,sizeof(path),"%s/%s_%i.so",getenv("LIBPKTDUMPDIR"),name,type);
data/libtrace3-3.0.21/libpacketdump/libpacketdump.cc:194:31:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getuid() == geteuid() && getenv("LIBPKTDUMPDIR")) {
data/libtrace3-3.0.21/libpacketdump/libpacketdump.cc:195:50:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		snprintf(path,sizeof(path),"%s/%s_%i.protocol",getenv("LIBPKTDUMPDIR"),name,type);
data/libtrace3-3.0.21/libwandio/iow-stdio.c:97:12:  [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.
	sudoenv = getenv("SUDO_UID");
data/libtrace3-3.0.21/libwandio/iow-stdio.c:101:12:  [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.
	sudoenv = getenv("SUDO_GID");
data/libtrace3-3.0.21/libwandio/tools/wandiocat/wcat.c:32:21:  [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, "Z:z:o:h")) != -1) {
data/libtrace3-3.0.21/libwandio/wandio.c:102:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *str = getenv("LIBTRACEIO");
data/libtrace3-3.0.21/tools/traceanon/traceanon.c:143:9:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		int c=getopt_long(argc, argv, "Z:z:sc:f:dp:H",
data/libtrace3-3.0.21/tools/tracediff/tracediff.c:98:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "m:")) != EOF) {
data/libtrace3-3.0.21/tools/traceends/traceends.cc:370:23:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
                int c=getopt_long(argc, argv, "A:f:H",
data/libtrace3-3.0.21/tools/tracemerge/tracemerge.c:62:9:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		int c=getopt_long(argc, argv, "i::uHz:Z:",
data/libtrace3-3.0.21/tools/tracepktdump/tracepktdump.cc:41:9:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		int c=getopt_long(argc,argv,"f:c:H",
data/libtrace3-3.0.21/tools/tracereplay/tracereplay.c:191:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		int c = getopt_long(argc, argv, "bhs:f:",
data/libtrace3-3.0.21/tools/tracereport/tracereport.c:189:9:  [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.
		opt = getopt_long(argc, argv, "Df:HemFPpTtOondCsc:", 
data/libtrace3-3.0.21/tools/tracertstats/tracertstats.c:234:9:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		int c=getopt_long(argc, argv, "c:f:i:o:Hm",
data/libtrace3-3.0.21/tools/tracesplit/tracesplit.c:251:9:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		int c=getopt_long(argc, argv, "f:c:b:s:e:i:m:S:Hvz:Z:",
data/libtrace3-3.0.21/tools/tracestats/tracestats.c:182:9:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		int c=getopt_long(argc, argv, "f:H",
data/libtrace3-3.0.21/tools/tracetop/tracetop.cc:538:10:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		int c= getopt_long(argc, argv, "BPf:Fs:p:hHi:w12345",
data/libtrace3-3.0.21/examples/skeleton/complete.c:54:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				snaplen=atoi(optarg);
data/libtrace3-3.0.21/examples/skeleton/complete.c:57:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				promisc=atoi(optarg);
data/libtrace3-3.0.21/examples/stats/stats.c:137:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				snaplen=atoi(optarg);
data/libtrace3-3.0.21/examples/stats/stats.c:140:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				promisc=atoi(optarg);
data/libtrace3-3.0.21/examples/tutorial/headerdemo.c:544:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				interval = atoi(optarg);
data/libtrace3-3.0.21/examples/tutorial/sourcedemo.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 str[20];
data/libtrace3-3.0.21/lib/bpf-jit/bpf-jit.cc:47: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 *opcode_names[256];
data/libtrace3-3.0.21/lib/bpf-jit/bpf-jit.cc:401:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    	    char name[32];
data/libtrace3-3.0.21/lib/bpf-jit/bpf-jit.cc:402: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(name,"bpf_isn_%d",i);
data/libtrace3-3.0.21/lib/format_bpf.c:155: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 buffer[64];
data/libtrace3-3.0.21/lib/format_bpf.c:159:28:  [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).
		FORMATIN(libtrace)->fd = open(buffer, O_RDONLY);
data/libtrace3-3.0.21/lib/format_dag25.c:418: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).
		stream = atoi(++scan);
data/libtrace3-3.0.21/lib/format_dag25.c:470: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).
		stream = atoi(++scan);
data/libtrace3-3.0.21/lib/format_dag25.c:518:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char conf_str[4096];
data/libtrace3-3.0.21/lib/format_dag25.c:882: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(FORMAT_DATA_OUT->txbuffer + FORMAT_DATA_OUT->waiting,erfptr,(dag_record_size + pad));
data/libtrace3-3.0.21/lib/format_dag25.c:892: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(FORMAT_DATA_OUT->txbuffer + FORMAT_DATA_OUT->waiting,buffer,size);
data/libtrace3-3.0.21/lib/format_dpdk.c:249: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 mempool_name[MEMPOOL_NAME_LEN]; /* The name of the mempool that we are using */
data/libtrace3-3.0.21/lib/format_dpdk.c:333:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pci_str[20] = {0};
data/libtrace3-3.0.21/lib/format_dpdk.c:364:31:  [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).
    addr->domain = (uint16_t) atoi(pch);
data/libtrace3-3.0.21/lib/format_dpdk.c:370:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    addr->bus = (uint8_t) atoi(pch);
data/libtrace3-3.0.21/lib/format_dpdk.c:376:29:  [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).
    addr->devid = (uint8_t) atoi(pch);
data/libtrace3-3.0.21/lib/format_dpdk.c:382:32:  [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).
    addr->function = (uint8_t) atoi(pch);
data/libtrace3-3.0.21/lib/format_dpdk.c:387:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *core = (long) atoi(pch);
data/libtrace3-3.0.21/lib/format_dpdk.c:480: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 cpu_number[10] = {0}; /* The CPU mask we want to bind to */
data/libtrace3-3.0.21/lib/format_dpdk.c:481: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 mem_map[20] = {0}; /* The memory name */
data/libtrace3-3.0.21/lib/format_dpdk.c:601: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 err[500];
data/libtrace3-3.0.21/lib/format_dpdk.c:636: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 err[500];
data/libtrace3-3.0.21/lib/format_dpdk.c:927: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 err[500];
data/libtrace3-3.0.21/lib/format_dpdk.c:941: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 err[500];
data/libtrace3-3.0.21/lib/format_dpdk.c:988: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(rte_pktmbuf_append(m_buff[0], caplen), packet->payload, caplen);
data/libtrace3-3.0.21/lib/format_erf.c:163:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[4096];
data/libtrace3-3.0.21/lib/format_erf.c:328: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 buffer[PATH_MAX];
data/libtrace3-3.0.21/lib/format_helper.c:295:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/libtrace3-3.0.21/lib/format_helper.c:318:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/libtrace3-3.0.21/lib/format_linux.c:592:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char error[2048];	
data/libtrace3-3.0.21/lib/format_linux.c:630:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char error[2048];	
data/libtrace3-3.0.21/lib/format_linux.c:726: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(f, filter, sizeof(libtrace_filter_t));
data/libtrace3-3.0.21/lib/format_linux.c:891: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 controlbuf[CMSG_BUF_SIZE];
data/libtrace3-3.0.21/lib/format_linux.c:1170: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(hdr.sll_addr,packet->payload,(size_t)ntohs(hdr.sll_halen));
data/libtrace3-3.0.21/lib/format_linux.c:1241: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(off, 
data/libtrace3-3.0.21/lib/format_pcap.c:121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libtrace3-3.0.21/lib/format_pcap.c:244:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libtrace3-3.0.21/lib/format_rt.c:237:33:  [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).
                                atoi(++scan);
data/libtrace3-3.0.21/lib/format_rt.c:345:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(RT_INFO->pkt_buffer, RT_INFO->buf_current, 
data/libtrace3-3.0.21/lib/libtrace.h:245:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char problem[255];	/**< the format, uri etc that caused the error for reporting purposes */
data/libtrace3-3.0.21/lib/libtrace.h:1049:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char addr[8];          /**< Link-layer address */
data/libtrace3-3.0.21/lib/libtrace_int.h:297:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char 	   ifname[IFNAMSIZ];
data/libtrace3-3.0.21/lib/libtrace_int.h:298:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char 	   ruleset[PF_RULESET_NAME_SIZE];
data/libtrace3-3.0.21/lib/linktypes.c:286: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(tmpbuffer,packet->header,
data/libtrace3-3.0.21/lib/linktypes.c:288: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(tmpbuffer
data/libtrace3-3.0.21/lib/linktypes.c:346: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(tmp+sizeof(libtrace_pcapfile_pkt_hdr_t),
data/libtrace3-3.0.21/lib/protocols_l3.c:414: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(l2addr->sll_addr,ethernet->ether_shost, 6);
data/libtrace3-3.0.21/lib/protocols_l3.c:435: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(l2addr->sdl_data, ethernet->ether_shost, 6);
data/libtrace3-3.0.21/lib/protocols_l3.c:522: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 staticspace[INET6_ADDRSTRLEN];
data/libtrace3-3.0.21/lib/protocols_l3.c:558: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(l2addr->sll_addr,ethernet->ether_dhost, 6);
data/libtrace3-3.0.21/lib/protocols_l3.c:579: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(l2addr->sdl_data, ethernet->ether_dhost, 6);
data/libtrace3-3.0.21/lib/protocols_l3.c:664: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 staticspace[INET6_ADDRSTRLEN];
data/libtrace3-3.0.21/lib/protocols_l3.c:709: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(safety, ip, ip->ip_hl * sizeof(uint32_t));
data/libtrace3-3.0.21/lib/protocols_transport.c:495: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(ptr, tcp, tcp->doff * 4);
data/libtrace3-3.0.21/lib/protocols_transport.c:509: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(ptr, udp, sizeof(libtrace_udp_t));
data/libtrace3-3.0.21/lib/protocols_transport.c:525: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(ptr, icmp, sizeof(libtrace_icmp_t));
data/libtrace3-3.0.21/lib/strndup.c:71: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(str, s, size);
data/libtrace3-3.0.21/lib/trace.c:391: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(libtrace->err.problem,"Error message set\n");
data/libtrace3-3.0.21/lib/trace.c:668: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(dest->header,packet->header,trace_get_framing_length(packet));
data/libtrace3-3.0.21/lib/trace.c:669: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(dest->payload,packet->payload,trace_get_capture_length(packet));
data/libtrace3-3.0.21/lib/trace.c:1150: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(filter->filter.bf_insns, bf_insns,
data/libtrace3-3.0.21/lib/trace.c:1571:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/libtrace3-3.0.21/lib/trace.c:1611:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/libtrace3-3.0.21/lib/trace.c:1713: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 staticbuf[18]={0,};
data/libtrace3-3.0.21/lib/trace.c:1796: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->header,&hdr,sizeof(hdr));
data/libtrace3-3.0.21/lib/trace.c:1797: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->payload,data,(size_t)len);
data/libtrace3-3.0.21/libpacketdump/bitbuffer.c:68:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    yyin = fopen(filename, "r");
data/libtrace3-3.0.21/libpacketdump/eth_2054.c:23: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 buffer[1024] = {0,};
data/libtrace3-3.0.21/libpacketdump/eth_2054.c:53: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 buffer[1024] = {0,};
data/libtrace3-3.0.21/libpacketdump/eth_34525.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 ipstr[INET6_ADDRSTRLEN];                             
data/libtrace3-3.0.21/libpacketdump/lexer.c:825: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).
{ yylval.intval = atoi(yytext); 
data/libtrace3-3.0.21/libpacketdump/libpacketdump.cc:167:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/libtrace3-3.0.21/libpacketdump/libpacketdump.cc: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[1024];
data/libtrace3-3.0.21/libpacketdump/link_2.c:11:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ether_buf[18] = {0, };
data/libtrace3-3.0.21/libpacketdump/link_4.c:119: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 ether_buf[18] = {0, };
data/libtrace3-3.0.21/libpacketdump/parser.c:961: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/libtrace3-3.0.21/libpacketdump/parser.c:1196: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 yymsgbuf[128];
data/libtrace3-3.0.21/libwandio/ior-bzip.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 inbuff[1024*1024];
data/libtrace3-3.0.21/libwandio/ior-peek.c:162: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(buffer, 
data/libtrace3-3.0.21/libwandio/ior-peek.c:203: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(buffer, DATA(io)->buffer, len);
data/libtrace3-3.0.21/libwandio/ior-peek.c:237: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(new,old,oldsize);
data/libtrace3-3.0.21/libwandio/ior-peek.c:286: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(buffer, DATA(io)->buffer + DATA(io)->offset, ret);
data/libtrace3-3.0.21/libwandio/ior-stdio.c:64:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		DATA(io)->fd = open(filename,
data/libtrace3-3.0.21/libwandio/ior-thread.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 buffer[BUFFERSIZE];	/* The buffer itself */
data/libtrace3-3.0.21/libwandio/ior-thread.c:105:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char namebuf[17];
data/libtrace3-3.0.21/libwandio/ior-thread.c:110: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(namebuf+10,"[ior]");
data/libtrace3-3.0.21/libwandio/ior-thread.c:229:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(
data/libtrace3-3.0.21/libwandio/iow-bzip.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 outbuff[1024*1024];
data/libtrace3-3.0.21/libwandio/iow-lzo.c:99:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char lzop_magic[9] =
data/libtrace3-3.0.21/libwandio/iow-lzo.c:116:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[MAX_BUFFER_SIZE];
data/libtrace3-3.0.21/libwandio/iow-lzo.c:147: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(&buffer->buffer[buffer->offset], data, len);
data/libtrace3-3.0.21/libwandio/iow-lzo.c:170:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char b2[MAX_BUFFER_SIZE];
data/libtrace3-3.0.21/libwandio/iow-lzo.c:173:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char scratch[LZO1X_1_MEM_COMPRESS];
data/libtrace3-3.0.21/libwandio/iow-lzo.c:230:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char namebuf[17];
data/libtrace3-3.0.21/libwandio/iow-lzo.c:234:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char label[16];
data/libtrace3-3.0.21/libwandio/iow-lzo.c:236: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(label,"[lzo%d]",me->num);
data/libtrace3-3.0.21/libwandio/iow-lzo.c:444: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(&get_next_thread(iow)->inbuf.buffer[get_next_thread(iow)->inbuf.offset], 
data/libtrace3-3.0.21/libwandio/iow-stdio.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 buffer[MIN_WRITE_SIZE];
data/libtrace3-3.0.21/libwandio/iow-stdio.c:71: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(filename,
data/libtrace3-3.0.21/libwandio/iow-stdio.c:81: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(filename,
data/libtrace3-3.0.21/libwandio/iow-stdio.c:207:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(DATA(iow)->buffer + DATA(iow)->offset, buffer, towrite);
data/libtrace3-3.0.21/libwandio/iow-thread.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 buffer[BUFFERSIZE];	/* The buffer itself */
data/libtrace3-3.0.21/libwandio/iow-thread.c:105:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char namebuf[17];
data/libtrace3-3.0.21/libwandio/iow-thread.c:110: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(namebuf+10,"[iow]");
data/libtrace3-3.0.21/libwandio/iow-thread.c:210:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(
data/libtrace3-3.0.21/libwandio/tools/wandiocat/wcat.c:40:42:  [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).
                        compress_level = atoi(optarg);
data/libtrace3-3.0.21/libwandio/tools/wandiocat/wcat.c:65: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.
                char buffer[1024*1024];
data/libtrace3-3.0.21/libwandio/wandio.c:92:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		use_threads = atoi(option+8);
data/libtrace3-3.0.21/libwandio/wandio.c:94:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		max_buffers = atoi(option+8);
data/libtrace3-3.0.21/libwandio/wandio.c:103:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char option[1024];
data/libtrace3-3.0.21/libwandio/wandio.c:144: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 buffer[1024];
data/libtrace3-3.0.21/tools/traceanon/ipenc.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 cryptopan_key[32];
data/libtrace3-3.0.21/tools/traceanon/panon.c:41: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(rin_input, m_pad, 16);
data/libtrace3-3.0.21/tools/traceanon/panon.c:48: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(rin_input, m_pad, 16);
data/libtrace3-3.0.21/tools/traceanon/panon.c:82: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(m_key, key, 16);
data/libtrace3-3.0.21/tools/traceanon/panon.c:89: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(m_key, key, 16);
data/libtrace3-3.0.21/tools/traceanon/panon.c:102: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(rin_input, m_pad, 16);
data/libtrace3-3.0.21/tools/traceanon/panon.c:165: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(rin_input, m_pad, 16);
data/libtrace3-3.0.21/tools/traceanon/panon.c:223: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(rin_input, m_pad, 16);
data/libtrace3-3.0.21/tools/traceanon/rijndael.c:1103:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(iv,m_initVector,16);
data/libtrace3-3.0.21/tools/traceanon/rijndael.c:1174:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(block, input, 16 - padLen);
data/libtrace3-3.0.21/tools/traceanon/rijndael.c:1240:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(iv,m_initVector,16);
data/libtrace3-3.0.21/tools/traceanon/rijndael.c:1255:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                memcpy(iv, input, 16);
data/libtrace3-3.0.21/tools/traceanon/rijndael.c:1256:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                memcpy(outBuf, block, 16);
data/libtrace3-3.0.21/tools/traceanon/rijndael.c:1275:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(iv, m_initVector, 16);
data/libtrace3-3.0.21/tools/traceanon/rijndael.c:1352:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(outBuffer, blockb, 16 - padLen);
data/libtrace3-3.0.21/tools/traceanon/rijndael.c:1355:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(iv, m_initVector, 16);
data/libtrace3-3.0.21/tools/traceanon/rijndael.c:1364:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                memcpy(iv, input, 16);
data/libtrace3-3.0.21/tools/traceanon/rijndael.c:1365:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                memcpy(outBuffer, block, 16);
data/libtrace3-3.0.21/tools/traceanon/rijndael.c:1381:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(outBuffer, blockb, 16 - padLen);
data/libtrace3-3.0.21/tools/traceanon/traceanon.c:151:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			case 'z': level = atoi(optarg); break;
data/libtrace3-3.0.21/tools/traceanon/traceanon.c:167:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				  FILE * infile = fopen(optarg,"rb");
data/libtrace3-3.0.21/tools/tracediff/tracediff.c:101: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).
				if (atoi(optarg) < 0) {
data/libtrace3-3.0.21/tools/tracediff/tracediff.c:104:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					max_diff = (uint32_t) atoi(optarg);
data/libtrace3-3.0.21/tools/traceends/traceends.cc:113:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[80];
data/libtrace3-3.0.21/tools/traceends/traceends.cc:114:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char timestr[80];
data/libtrace3-3.0.21/tools/traceends/traceends.cc: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 timestr[80];
data/libtrace3-3.0.21/tools/traceends/traceends.cc: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 ip6_addr[128];
data/libtrace3-3.0.21/tools/traceends/traceends.cc:161:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char timestr[80];
data/libtrace3-3.0.21/tools/traceends/traceends.cc:230: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(&(key.addr), src, sizeof(key.addr));
data/libtrace3-3.0.21/tools/tracemerge/tracemerge.c:71:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					interfaces_per_input=atoi(optarg);
data/libtrace3-3.0.21/tools/tracemerge/tracemerge.c:81: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).
				compression = atoi(optarg);
data/libtrace3-3.0.21/tools/tracepktdump/tracepktdump.cc:53:20:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			case 'c': count=atol(optarg); break;
data/libtrace3-3.0.21/tools/tracereplay/tracereplay.c:202:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				snaplen = atoi(optarg);
data/libtrace3-3.0.21/tools/tracereport/dir_report.c:23:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *out = fopen("dir.rpt", "w");
data/libtrace3-3.0.21/tools/tracereport/drops_report.c:52:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *out = fopen("drop.rpt", "w");
data/libtrace3-3.0.21/tools/tracereport/ecn_report.c:33:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *out = fopen("ecn.rpt", "w");
data/libtrace3-3.0.21/tools/tracereport/error_report.c:42:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *out = fopen("error.rpt", "w");
data/libtrace3-3.0.21/tools/tracereport/flow_report.c:53:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *out = fopen("flows.rpt", "w");
data/libtrace3-3.0.21/tools/tracereport/misc_report.c:33: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 ret[1024];
data/libtrace3-3.0.21/tools/tracereport/misc_report.c:41: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 ret[1024];
data/libtrace3-3.0.21/tools/tracereport/misc_report.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 tmp[1024];
data/libtrace3-3.0.21/tools/tracereport/misc_report.c:75:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *out = fopen("misc.rpt", "w");
data/libtrace3-3.0.21/tools/tracereport/nlp_report.c:32:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *out = fopen("nlp.rpt", "w");
data/libtrace3-3.0.21/tools/tracereport/port_report.c:13: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 protn[256]={0};
data/libtrace3-3.0.21/tools/tracereport/port_report.c:97:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *out = fopen("ports.rpt", "w");
data/libtrace3-3.0.21/tools/tracereport/protocol_report.c:31:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *out = fopen("protocol.rpt", "w");
data/libtrace3-3.0.21/tools/tracereport/synopt_report.c:168:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *out = fopen("tcpopt_syn.rpt", "w");
data/libtrace3-3.0.21/tools/tracereport/tcpopt_report.c:49:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *out = fopen("tcpopt.rpt", "w");
data/libtrace3-3.0.21/tools/tracereport/tcpsegment_report.c:46:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *out = fopen("tcpseg.rpt", "w");
data/libtrace3-3.0.21/tools/tracereport/tos_report.c:32:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *out = fopen("tos.rpt", "w");
data/libtrace3-3.0.21/tools/tracereport/tracereport.c:196:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				count = atoi(optarg);
data/libtrace3-3.0.21/tools/tracereport/ttl_report.c:33:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *out = fopen("ttl.rpt", "w");
data/libtrace3-3.0.21/tools/tracertstats/output_png.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 *labels[prv->rows];
data/libtrace3-3.0.21/tools/tracertstats/tracertstats.c:112:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buff[1024];
data/libtrace3-3.0.21/tools/tracertstats/tracertstats.c:253: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).
				packet_count=atoi(optarg);
data/libtrace3-3.0.21/tools/tracesplit/tracesplit.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 buffer[64];
data/libtrace3-3.0.21/tools/tracesplit/tracesplit.c:260:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			case 'c': count=atoi(optarg);
data/libtrace3-3.0.21/tools/tracesplit/tracesplit.c:262:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			case 'b': bytes=atoi(optarg);
data/libtrace3-3.0.21/tools/tracesplit/tracesplit.c:264:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			case 's': starttime=atoi(optarg); /* FIXME: use getdate */
data/libtrace3-3.0.21/tools/tracesplit/tracesplit.c:266:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			case 'e': endtime=atoi(optarg);
data/libtrace3-3.0.21/tools/tracesplit/tracesplit.c:268:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			case 'i': interval=atoi(optarg);
data/libtrace3-3.0.21/tools/tracesplit/tracesplit.c:270:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			case 'm': maxfiles=atoi(optarg);
data/libtrace3-3.0.21/tools/tracesplit/tracesplit.c:272:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			case 'S': snaplen=atoi(optarg);
data/libtrace3-3.0.21/tools/tracesplit/tracesplit.c:282:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				  compress_level=atoi(optarg);
data/libtrace3-3.0.21/tools/tracetop/tracetop.cc:102: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 intbuffer[NI_MAXHOST];
data/libtrace3-3.0.21/tools/tracetop/tracetop.cc:215: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 ret[1024];
data/libtrace3-3.0.21/tools/tracetop/tracetop.cc: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 sipstr[1024];
data/libtrace3-3.0.21/tools/tracetop/tracetop.cc: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 dipstr[1024];
data/libtrace3-3.0.21/tools/tracetop/tracetop.cc:552:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				snaplen=atoi(optarg);
data/libtrace3-3.0.21/tools/tracetop/tracetop.cc:555:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				promisc=atoi(optarg);
data/libtrace3-3.0.21/lib/format_bpf.c:210:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifr.ifr_name, libtrace->uridata, sizeof(ifr.ifr_name));
data/libtrace3-3.0.21/lib/format_bpf.c:457:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret=read(FORMATIN(libtrace)->fd,
data/libtrace3-3.0.21/lib/format_linux.c:426: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(libtrace->uridata)) {
data/libtrace3-3.0.21/lib/format_linux.c:550: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(error, "TPACKET2 not supported", 2048);
data/libtrace3-3.0.21/lib/format_linux.c:559: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(error,"Cannot allocate enough memory for ring buffer", 2048);
data/libtrace3-3.0.21/lib/format_linux.c:571: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(error, "Error setting the ring buffer size", 2048);
data/libtrace3-3.0.21/lib/format_linux.c:585: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(error, "Failed to map memory for ring buffer", 2048);
data/libtrace3-3.0.21/lib/format_linux.c:598: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(error, "No known error", 2048);
data/libtrace3-3.0.21/lib/format_linux.c:740:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ifr.ifr_name, libtrace->uridata, IF_NAMESIZE);
data/libtrace3-3.0.21/lib/format_rt.c:219: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 (strlen(uridata) == 0) {
data/libtrace3-3.0.21/lib/strndup.c:60:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size > (len = strlen(s)))
data/libtrace3-3.0.21/lib/trace.c:114:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(dest,src,n);
data/libtrace3-3.0.21/lib/trace.c:270: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(scan) == strlen(tmp->name) &&
data/libtrace3-3.0.21/lib/trace.c:270: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).
			if (strlen(scan) == strlen(tmp->name) &&
data/libtrace3-3.0.21/lib/trace.c:271: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).
					strncasecmp(scan, tmp->name, strlen(scan)) == 0
data/libtrace3-3.0.21/lib/trace.c:332: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).
		xstrncpy(scan, uri, strlen(uri));
data/libtrace3-3.0.21/lib/trace.c:352:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(scan) == strlen(tmp->name) &&
data/libtrace3-3.0.21/lib/trace.c:352: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 (strlen(scan) == strlen(tmp->name) &&
data/libtrace3-3.0.21/lib/trace.c:355:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        strlen(scan))) {
data/libtrace3-3.0.21/lib/trace.c:405:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(scan) == strlen(tmp->name) &&
data/libtrace3-3.0.21/lib/trace.c:405: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 (strlen(scan) == strlen(tmp->name) &&
data/libtrace3-3.0.21/lib/trace.c:408:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        strlen(scan))) {
data/libtrace3-3.0.21/libpacketdump/eth_2054.c:27: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(buffer, "(Truncated)", sizeof(buffer));
data/libtrace3-3.0.21/libpacketdump/eth_2054.c:57: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(buffer, "(Truncated)", sizeof(buffer));
data/libtrace3-3.0.21/libpacketdump/eth_2054.c:72: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(buffer,")",sizeof(buffer) - strlen(buffer) - 1);
data/libtrace3-3.0.21/libpacketdump/eth_2054.c:72: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).
			strncat(buffer,")",sizeof(buffer) - strlen(buffer) - 1);
data/libtrace3-3.0.21/libpacketdump/lexer.c:605:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/libtrace3-3.0.21/libpacketdump/lexer.c:1572: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).
	return yy_scan_bytes(yystr,strlen(yystr) );
data/libtrace3-3.0.21/libpacketdump/parser.c:845: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).
#   define yystrlen strlen
data/libtrace3-3.0.21/libwandio/ior-peek.c:138:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bytes_read = DATA(io)->child->source->read(	
data/libtrace3-3.0.21/libwandio/ior-peek.c:181:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			bytes_read = DATA(io)->child->source->read(
data/libtrace3-3.0.21/libwandio/ior-stdio.c:82:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(DATA(io)->fd,buffer,len);
data/libtrace3-3.0.21/libwandio/ior-thread.c:109: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(namebuf)>9) {
data/libtrace3-3.0.21/libwandio/ior-thread.c:113: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 string.
			strncat(namebuf," [ior]",16);
data/libtrace3-3.0.21/libwandio/iow-lzo.c:238:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(namebuf)>=16-strlen(label)) {
data/libtrace3-3.0.21/libwandio/iow-lzo.c:238:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(namebuf)>=16-strlen(label)) {
data/libtrace3-3.0.21/libwandio/iow-lzo.c:239: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).
			strcpy(namebuf+15-strlen(label),label);
data/libtrace3-3.0.21/libwandio/iow-lzo.c:242: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(namebuf," ",16);
data/libtrace3-3.0.21/libwandio/iow-lzo.c:243: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(namebuf,label,16);
data/libtrace3-3.0.21/libwandio/iow-lzo.c:331:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	write8(&buffer, strlen("compresseddata"));
data/libtrace3-3.0.21/libwandio/iow-lzo.c:332: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).
	write_buf(&buffer, "compresseddata",strlen("compresseddata"));
data/libtrace3-3.0.21/libwandio/iow-thread.c:109: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(namebuf)>9) {
data/libtrace3-3.0.21/libwandio/iow-thread.c:113: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 string.
			strncat(namebuf," [iow]",16);
data/libtrace3-3.0.21/libwandio/wandio.c:256:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret=io->source->read(io,buffer,len); 
data/libtrace3-3.0.21/libwandio/wandio.h:94:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	off_t (*read)(io_t *io, void *buffer, off_t len);
data/libtrace3-3.0.21/tools/tracereport/misc_report.c:34:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ret,ctime(&sec),1024-1);
data/libtrace3-3.0.21/tools/tracereport/misc_report.c:35: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).
	ret[strlen(ret)-1]='\0'; /* Get rid of the annoying \n */
data/libtrace3-3.0.21/tools/tracereport/misc_report.c:54: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(ret,tmp, 1024 - strlen(ret) - 1);
data/libtrace3-3.0.21/tools/tracereport/misc_report.c:54: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).
		strncat(ret,tmp, 1024 - strlen(ret) - 1);
data/libtrace3-3.0.21/tools/tracereport/misc_report.c:61: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(ret,tmp, 1024 - strlen(ret) - 1);
data/libtrace3-3.0.21/tools/tracereport/misc_report.c:61: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).
		strncat(ret,tmp, 1024 - strlen(ret) - 1);
data/libtrace3-3.0.21/tools/tracereport/misc_report.c:68: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(ret,tmp, 1024 - strlen(ret) - 1);
data/libtrace3-3.0.21/tools/tracereport/misc_report.c:68: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).
		strncat(ret,tmp, 1024 - strlen(ret) - 1);
data/libtrace3-3.0.21/tools/tracertstats/output_txt.c:14: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(out->labels[i])>8)
data/libtrace3-3.0.21/tools/tracertstats/output_txt.c:19: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(out->labels[i])>8)
data/libtrace3-3.0.21/tools/tracesplit/tracesplit.c:35:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	str=realloc(str,strlen(str)+strlen(app)+1);
data/libtrace3-3.0.21/tools/tracesplit/tracesplit.c:35: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).
	str=realloc(str,strlen(str)+strlen(app)+1);
data/libtrace3-3.0.21/tools/tracesplit/tracesplit.c:36: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(str,app,strlen(str) + strlen(app));
data/libtrace3-3.0.21/tools/tracesplit/tracesplit.c:36:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strncat(str,app,strlen(str) + strlen(app));
data/libtrace3-3.0.21/tools/tracesplit/tracesplit.c:36: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).
	strncat(str,app,strlen(str) + strlen(app));
data/libtrace3-3.0.21/tools/tracetop/tracetop.cc:119:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(mybuf,gai_strerror(err),mybufflen);
data/libtrace3-3.0.21/tools/tracetop/tracetop.cc:125:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(mybuf,gai_strerror(err),mybufflen);

ANALYSIS SUMMARY:

Hits = 295
Lines analyzed = 45519 in approximately 1.31 seconds (34644 lines/second)
Physical Source Lines of Code (SLOC) = 29572
Hits@level = [0] 1194 [1]  62 [2] 186 [3]  22 [4]  25 [5]   0
Hits@level+ = [0+] 1489 [1+] 295 [2+] 233 [3+]  47 [4+]  25 [5+]   0
Hits/KSLOC@level+ = [0+] 50.3517 [1+] 9.97565 [2+] 7.87907 [3+] 1.58934 [4+] 0.845394 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.