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/pgpdump-0.33/keys.c
Examining data/pgpdump-0.33/os/riscos/config.h
Examining data/pgpdump-0.33/packet.c
Examining data/pgpdump-0.33/pgpdump.c
Examining data/pgpdump-0.33/pgpdump.h
Examining data/pgpdump-0.33/signature.c
Examining data/pgpdump-0.33/subfunc.c
Examining data/pgpdump-0.33/tagfuncs.c
Examining data/pgpdump-0.33/types.c
Examining data/pgpdump-0.33/uatfunc.c
Examining data/pgpdump-0.33/buffer.c

FINAL RESULTS:

data/pgpdump-0.33/pgpdump.c:73:17:  [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/pgpdump-0.33/pgpdump.c:86:17:  [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/pgpdump-0.33/pgpdump.c:114: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, "hvagilmpu")) != -1)
data/pgpdump-0.33/buffer.c:438: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(d_buf2, NEXT_IN, AVAIL_COUNT);
data/pgpdump-0.33/types.c:348:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char temp[4];
data/pgpdump-0.33/buffer.c:125:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c = getchar();
data/pgpdump-0.33/buffer.c:156:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (getchar() != EOF);
data/pgpdump-0.33/packet.c:287:6:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getchar();

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 3022 in approximately 0.08 seconds (36108 lines/second)
Physical Source Lines of Code (SLOC) = 2334
Hits@level = [0] 273 [1]   3 [2]   2 [3]   1 [4]   2 [5]   0
Hits@level+ = [0+] 281 [1+]   8 [2+]   5 [3+]   3 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 120.394 [1+] 3.42759 [2+] 2.14225 [3+] 1.28535 [4+] 0.856898 [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.