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/ansilove-4.1.4/compat/compat.h
Examining data/ansilove-4.1.4/compat/pledge.c
Examining data/ansilove-4.1.4/compat/pledge.h
Examining data/ansilove-4.1.4/compat/strtonum.c
Examining data/ansilove-4.1.4/compat/strtonum.h
Examining data/ansilove-4.1.4/src/ansilove.c
Examining data/ansilove-4.1.4/src/config.h
Examining data/ansilove-4.1.4/src/fonts.h
Examining data/ansilove-4.1.4/src/sauce.c
Examining data/ansilove-4.1.4/src/sauce.h
Examining data/ansilove-4.1.4/src/seccomp.h
Examining data/ansilove-4.1.4/src/strtolower.c
Examining data/ansilove-4.1.4/src/strtolower.h
Examining data/ansilove-4.1.4/src/types.c
Examining data/ansilove-4.1.4/src/types.h

FINAL RESULTS:

data/ansilove-4.1.4/src/ansilove.c:101:23:  [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 ((getoptFlag = getopt(argc, argv, "b:c:df:him:o:qrR:sSt:v")) != -1) {
data/ansilove-4.1.4/src/ansilove.c:142:15:  [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).
			messages = fopen("/dev/null", "w");
data/ansilove-4.1.4/src/sauce.c:23:15:  [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).
	FILE *file = fopen(fileName, "r");
data/ansilove-4.1.4/src/sauce.c:111: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 ID[6];
data/ansilove-4.1.4/src/sauce.c:123: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 buf[COMMENT_SIZE + 1] = "";
data/ansilove-4.1.4/src/sauce.h:26: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 ID[6];
data/ansilove-4.1.4/src/sauce.h:27: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 version[3];
data/ansilove-4.1.4/src/sauce.h:28: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 title[36];
data/ansilove-4.1.4/src/sauce.h:29: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 author[21];
data/ansilove-4.1.4/src/sauce.h:30: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 group[21];
data/ansilove-4.1.4/src/sauce.h:31: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 date[9];
data/ansilove-4.1.4/src/sauce.h:41: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 tinfos[23];
data/ansilove-4.1.4/src/seccomp.h:63:25:  [2] (misc) open:
  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).
	ANSILOVE_SYSCALL_ALLOW(open),
data/ansilove-4.1.4/src/seccomp.h:75:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ANSILOVE_SYSCALL_ALLOW(read),

ANALYSIS SUMMARY:

Hits = 14
Lines analyzed = 1087 in approximately 0.05 seconds (22023 lines/second)
Physical Source Lines of Code (SLOC) = 791
Hits@level = [0]  32 [1]   1 [2]  12 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]  46 [1+]  14 [2+]  13 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 58.1542 [1+] 17.6991 [2+] 16.4349 [3+] 1.26422 [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.