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/tcptraceroute-1.5beta7+debian/tcptraceroute.h
Examining data/tcptraceroute-1.5beta7+debian/util.c
Examining data/tcptraceroute-1.5beta7+debian/datalink.h
Examining data/tcptraceroute-1.5beta7+debian/capture.c
Examining data/tcptraceroute-1.5beta7+debian/probe.h
Examining data/tcptraceroute-1.5beta7+debian/datalink.c
Examining data/tcptraceroute-1.5beta7+debian/probe.c
Examining data/tcptraceroute-1.5beta7+debian/util.h
Examining data/tcptraceroute-1.5beta7+debian/capture.h
Examining data/tcptraceroute-1.5beta7+debian/main.c

FINAL RESULTS:

data/tcptraceroute-1.5beta7+debian/datalink.c:198:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(ifr.ifr_name, ifrp->ifr_name);
data/tcptraceroute-1.5beta7+debian/datalink.c:266:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(p->name, ifr.ifr_name);
data/tcptraceroute-1.5beta7+debian/probe.c:391:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(record->string, record->delta);
data/tcptraceroute-1.5beta7+debian/util.c:36:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/tcptraceroute-1.5beta7+debian/util.c:48:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/tcptraceroute-1.5beta7+debian/util.c:59:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/tcptraceroute-1.5beta7+debian/util.c:124:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = vsnprintf(s, size, fmt, ap);
data/tcptraceroute-1.5beta7+debian/main.c:399:15:  [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 ((op = getopt(argc, argv, optstring)) != -1)
data/tcptraceroute-1.5beta7+debian/capture.c:86: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(buf, packet + (offset), len - (offset)); \
data/tcptraceroute-1.5beta7+debian/capture.c:310: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 s[TEXTSIZE];
data/tcptraceroute-1.5beta7+debian/datalink.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 name[TEXTSIZE];
data/tcptraceroute-1.5beta7+debian/main.c:29: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 dst_name[TEXTSIZE], dst_prt_name[TEXTSIZE], filter[TEXTSIZE];
data/tcptraceroute-1.5beta7+debian/main.c:36: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 errbuf [PCAP_ERRBUF_SIZE > LIBNET_ERRBUF_SIZE ?
data/tcptraceroute-1.5beta7+debian/main.c:219: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).
	return atoi(optarg);
data/tcptraceroute-1.5beta7+debian/main.c:507: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).
			o_pktlen = atoi(argv[2]);
data/tcptraceroute-1.5beta7+debian/main.c:512: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).
				dst_prt = atoi(argv[1]);
data/tcptraceroute-1.5beta7+debian/probe.c:299: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 laststate[TEXTSIZE];
data/tcptraceroute-1.5beta7+debian/probe.c:354:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[TEXTSIZE];
data/tcptraceroute-1.5beta7+debian/util.c:138: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 buf[TEXTSIZE];
data/tcptraceroute-1.5beta7+debian/util.c:224: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 output[IPTOSBUFFERS][IPTOSBUFSIZ];
data/tcptraceroute-1.5beta7+debian/datalink.c:265:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		p->name = xrealloc(NULL, strlen(ifr.ifr_name) + 1);
data/tcptraceroute-1.5beta7+debian/util.c:115:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	return strncpy(dst, src, size-1);

ANALYSIS SUMMARY:

Hits = 22
Lines analyzed = 2361 in approximately 0.44 seconds (5312 lines/second)
Physical Source Lines of Code (SLOC) = 1519
Hits@level = [0]  30 [1]   2 [2]  12 [3]   1 [4]   7 [5]   0
Hits@level+ = [0+]  52 [1+]  22 [2+]  20 [3+]   8 [4+]   7 [5+]   0
Hits/KSLOC@level+ = [0+] 34.233 [1+] 14.4832 [2+] 13.1666 [3+] 5.26662 [4+] 4.60829 [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.