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/pfb2t1c2pfb-0.3/pfb2t1c.c
Examining data/pfb2t1c2pfb-0.3/t1c2pfb.c

FINAL RESULTS:

data/pfb2t1c2pfb-0.3/pfb2t1c.c:106:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy(t+len, " -|"); /* sentinel */
data/pfb2t1c2pfb-0.3/t1c2pfb.c:43: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 head[6];
data/pfb2t1c2pfb-0.3/t1c2pfb.c:56: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 t[6];
data/pfb2t1c2pfb-0.3/t1c2pfb.c:57: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 filename[80];
data/pfb2t1c2pfb-0.3/t1c2pfb.c:85:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(bufend=buf+len, " -| \ne\n"); /* sentinels */
data/pfb2t1c2pfb-0.3/t1c2pfb.c:87:19:  [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 (NULL==(of=fopen(filename, "wb"))) { fprintf(stderr, "t1c2pfb: cannot rewrite outfile\n"); exit(9); }
data/pfb2t1c2pfb-0.3/t1c2pfb.c:117:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(bufend, "dup/FontName get exch definefont pop\nmark currentfile closefile\n");
data/pfb2t1c2pfb-0.3/t1c2pfb.c:76:16:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (0>(c=getchar())) { fprintf(stderr,"t1c2pfb: incomplete filename\n"); exit(4); }
data/pfb2t1c2pfb-0.3/t1c2pfb.c:94:7:  [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).
    k=strlen(q="currentfile eexec\n");

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 272 in approximately 0.04 seconds (7315 lines/second)
Physical Source Lines of Code (SLOC) = 225
Hits@level = [0]  36 [1]   2 [2]   7 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  45 [1+]   9 [2+]   7 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 200 [1+]  40 [2+] 31.1111 [3+]   0 [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.