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/utf8gen-1.1/src/utf8gen.c

FINAL RESULTS:

data/utf8gen-1.1/src/utf8gen.c:469:7:  [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.
      fprintf (outfp, utf_format, utf8_bytes[i] & 0xFF);
data/utf8gen-1.1/src/utf8gen.c:526:7:  [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.
      fprintf (outfp, in_format, codept);
data/utf8gen-1.1/src/utf8gen.c:528:7:  [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.
      fprintf (outfp, in_format, codept, codept);
data/utf8gen-1.1/src/utf8gen.c:545:13:  [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.
            fprintf (outfp, rem_format, &instring[i]);
data/utf8gen-1.1/src/utf8gen.c:73: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 instring[MAXSTRING]; /* input line                      */
data/utf8gen-1.1/src/utf8gen.c:174:28:  [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).
                    infp = fopen (argv[i], "r");
data/utf8gen-1.1/src/utf8gen.c:190:29:  [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).
                    outfp = fopen (argv[i], "w");
data/utf8gen-1.1/src/utf8gen.c:531:17:  [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).
      instring [strlen (instring) - 1] = '\0';
data/utf8gen-1.1/src/utf8gen.c:544:18:  [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).
         if (i < strlen (instring) && instring[i] != '\0') {

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 589 in approximately 0.03 seconds (21133 lines/second)
Physical Source Lines of Code (SLOC) = 366
Hits@level = [0]  35 [1]   2 [2]   3 [3]   0 [4]   4 [5]   0
Hits@level+ = [0+]  44 [1+]   9 [2+]   7 [3+]   4 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 120.219 [1+] 24.5902 [2+] 19.1257 [3+] 10.929 [4+] 10.929 [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.