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/dnstap-ldns-0.2.0/dnstap-ldns.c
Examining data/dnstap-ldns-0.2.0/host2str.c

FINAL RESULTS:

data/dnstap-ldns-0.2.0/dnstap-ldns.c:824:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "qyxr:")) != -1) {
data/dnstap-ldns-0.2.0/dnstap-ldns.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 buf[INET6_ADDRSTRLEN] = {0};
data/dnstap-ldns-0.2.0/dnstap-ldns.c:211: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[100] = {0};
data/dnstap-ldns-0.2.0/dnstap-ldns.c:710:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		r = fopen(input_fname, "r");
data/dnstap-ldns-0.2.0/dnstap-ldns.c:654: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).
					 strlen(g_dnstap_content_type)))

ANALYSIS SUMMARY:

Hits = 5
Lines analyzed = 1053 in approximately 0.05 seconds (19173 lines/second)
Physical Source Lines of Code (SLOC) = 793
Hits@level = [0]  37 [1]   1 [2]   3 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]  42 [1+]   5 [2+]   4 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 52.9634 [1+] 6.30517 [2+] 5.04414 [3+] 1.26103 [4+]   0 [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.