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/dhcpdump-1.8/dhcp_options.h
Examining data/dhcpdump-1.8/strsep.c
Examining data/dhcpdump-1.8/dhcpdump.c

FINAL RESULTS:

data/dhcpdump-1.8/dhcpdump.c:161: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(mac_origin, ether_ntoa((struct ether_addr *)eh->ether_shost));
data/dhcpdump-1.8/dhcpdump.c:162: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(mac_destination,
data/dhcpdump-1.8/dhcpdump.c:165: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(ip_origin, (char *)inet_ntoa(ip->ip_src));
data/dhcpdump-1.8/dhcpdump.c:166: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(ip_destination, (char *)inet_ntoa(ip->ip_dst));
data/dhcpdump-1.8/dhcpdump.c:43: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	timestamp[40];			// timestamp on header
data/dhcpdump-1.8/dhcpdump.c:44: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	mac_origin[40];			// mac address of origin
data/dhcpdump-1.8/dhcpdump.c:45: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	mac_destination[40];		// mac address of destination
data/dhcpdump-1.8/dhcpdump.c:46: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	ip_origin[40];			// ip address of origin
data/dhcpdump-1.8/dhcpdump.c:47: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	ip_destination[40];		// ip address of destination
data/dhcpdump-1.8/dhcpdump.c:51: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];
data/dhcpdump-1.8/dhcpdump.c:157: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(timestamp + strlen(timestamp), "%03ld",
data/dhcpdump-1.8/dhcpdump.c:184: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 ch_ip[50];
data/dhcpdump-1.8/dhcpdump.c:187:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(ch_ip,
data/dhcpdump-1.8/dhcpdump.c:314:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	buf[LARGESTRING];
data/dhcpdump-1.8/dhcpdump.c:157: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).
		sprintf(timestamp + strlen(timestamp), "%03ld",
data/dhcpdump-1.8/dhcpdump.c:377:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, (char *)&data[j + 2], data[j + 1]);
data/dhcpdump-1.8/dhcpdump.c:523:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, (char *)&data[j + 5], data[j + 1] - 3);

ANALYSIS SUMMARY:

Hits = 17
Lines analyzed = 1008 in approximately 0.07 seconds (13836 lines/second)
Physical Source Lines of Code (SLOC) = 816
Hits@level = [0]  72 [1]   3 [2]  10 [3]   0 [4]   4 [5]   0
Hits@level+ = [0+]  89 [1+]  17 [2+]  14 [3+]   4 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 109.069 [1+] 20.8333 [2+] 17.1569 [3+] 4.90196 [4+] 4.90196 [5+]   0
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.