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/dvidvi-1.0/dvidvi.c
Examining data/dvidvi-1.0/dvidvi.h

FINAL RESULTS:

data/dvidvi-1.0/dvidvi.c:313:10:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   (void)fprintf(stderr,banner);
data/dvidvi-1.0/dvidvi.c:803:14:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
       (void)fprintf(stderr, banner) ;
data/dvidvi-1.0/dvidvi.c:811:14:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
       (void)fprintf(stderr, banner) ;
data/dvidvi-1.0/dvidvi.c:92:1:  [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 fontseen[256] ; /* have we defined this font yet? */
data/dvidvi-1.0/dvidvi.c:143:1:  [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 *headers[256];
data/dvidvi-1.0/dvidvi.c:772:25:  [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 ((infile=fopen(iname, READBIN))==NULL)
data/dvidvi-1.0/dvidvi.c:190:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((i=getc(infile))==EOF)
data/dvidvi-1.0/dvidvi.c:211:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((i=getc(infile))==EOF)

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 1281 in approximately 0.07 seconds (18906 lines/second)
Physical Source Lines of Code (SLOC) = 987
Hits@level = [0]  24 [1]   2 [2]   3 [3]   0 [4]   3 [5]   0
Hits@level+ = [0+]  32 [1+]   8 [2+]   6 [3+]   3 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 32.4215 [1+] 8.10537 [2+] 6.07903 [3+] 3.03951 [4+] 3.03951 [5+]   0
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.