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/potool-0.19/common.h
Examining data/potool-0.19/i18n.h
Examining data/potool-0.19/po-gram.h
Examining data/potool-0.19/potool.c

FINAL RESULTS:

data/potool-0.19/potool.c:348:8:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	ret = vprintf(format, ap);
data/potool-0.19/potool.c:652: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, "f:n:scph")) != EOF) {
data/potool-0.19/potool.c:62: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(ret->line_lengths, block->line_lengths, sizeof(int) * ret->num_lines);
data/potool-0.19/potool.c:377:9:  [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).
	slen = strlen (s->str);
data/potool-0.19/potool.c:386:15:  [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).
	prefix_len = strlen (prefix);
data/potool-0.19/potool.c:444:19:  [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).
	int prefix_len = strlen(prefix);

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 857 in approximately 0.04 seconds (23553 lines/second)
Physical Source Lines of Code (SLOC) = 718
Hits@level = [0]   1 [1]   3 [2]   1 [3]   1 [4]   1 [5]   0
Hits@level+ = [0+]   7 [1+]   6 [2+]   3 [3+]   2 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 9.7493 [1+] 8.35655 [2+] 4.17827 [3+] 2.78552 [4+] 1.39276 [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.