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/ent-1.2debian/chisq.c
Examining data/ent-1.2debian/iso8859.c
Examining data/ent-1.2debian/iso8859.h
Examining data/ent-1.2debian/randtest.h
Examining data/ent-1.2debian/ent.c
Examining data/ent-1.2debian/randtest.c

FINAL RESULTS:

data/ent-1.2debian/ent.c:75:12:  [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.
static int getopt(int argc, char *argv[], char *opts)
data/ent-1.2debian/ent.c:114: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 ((opt = getopt(argc, argv, "bcftu?BCFTU")) != -1) {
data/ent-1.2debian/ent.c:144:22:  [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).
           if ((fp = fopen(argv[optind], "rb")) == NULL) {
data/ent-1.2debian/iso8859.c:6:10:  [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.
unsigned char isoalpha[32] = {
data/ent-1.2debian/iso8859.c:11:10:  [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.
unsigned char isoupper[32] = {
data/ent-1.2debian/iso8859.c:16:10:  [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.
unsigned char isolower[32] = {
data/ent-1.2debian/iso8859.h:4:17:  [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.
extern unsigned char isoalpha[32], isoupper[32], isolower[32];
data/ent-1.2debian/ent.c:181:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((oc = fgetc(fp)) != EOF) {

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 644 in approximately 0.06 seconds (11423 lines/second)
Physical Source Lines of Code (SLOC) = 410
Hits@level = [0]  32 [1]   1 [2]   5 [3]   2 [4]   0 [5]   0
Hits@level+ = [0+]  40 [1+]   8 [2+]   7 [3+]   2 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 97.561 [1+] 19.5122 [2+] 17.0732 [3+] 4.87805 [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.