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/docbook2x-0.8.8/utf8trans/mtable.c
Examining data/docbook2x-0.8.8/utf8trans/mtable.h
Examining data/docbook2x-0.8.8/utf8trans/strings_buffer.c
Examining data/docbook2x-0.8.8/utf8trans/strings_buffer.h
Examining data/docbook2x-0.8.8/utf8trans/utf8trans.c

FINAL RESULTS:

data/docbook2x-0.8.8/utf8trans/strings_buffer.c:58:13:  [4] (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).
            strcpy(p->cur, s);
data/docbook2x-0.8.8/utf8trans/strings_buffer.c:66:5:  [4] (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).
    strcpy(p->cur, s);
data/docbook2x-0.8.8/utf8trans/utf8trans.c:199:19:  [3] (buffer) getopt_long:
  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((optc = getopt_long(argc, argv, "vhm", 
data/docbook2x-0.8.8/utf8trans/utf8trans.c:202:19:  [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((optc = getopt(argc, argv, "vhm")) != -1)
data/docbook2x-0.8.8/utf8trans/utf8trans.c:83:17:  [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).
    charmap_f = fopen(charmap_filename, "r");
data/docbook2x-0.8.8/utf8trans/utf8trans.c:107:17:  [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).
            f = fopen(argv[i], "r");
data/docbook2x-0.8.8/utf8trans/utf8trans.c:127:23:  [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).
                out = fopen(argv[i], "w");
data/docbook2x-0.8.8/utf8trans/utf8trans.c:268:12:  [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.
    static char buf[7];
data/docbook2x-0.8.8/utf8trans/strings_buffer.c:54: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).
    size_t len = strlen(s)+1;
data/docbook2x-0.8.8/utf8trans/utf8trans.c:340:20:  [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).
        p = buf + (strlen(buf)-1);
data/docbook2x-0.8.8/utf8trans/utf8trans.c:401:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    b = fgetc(stream);
data/docbook2x-0.8.8/utf8trans/utf8trans.c:423:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            b = fgetc(stream);
data/docbook2x-0.8.8/utf8trans/utf8trans.c:496:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        c = fgetc(stream);

ANALYSIS SUMMARY:

Hits = 13
Lines analyzed = 891 in approximately 0.12 seconds (7502 lines/second)
Physical Source Lines of Code (SLOC) = 639
Hits@level = [0]  15 [1]   5 [2]   4 [3]   2 [4]   2 [5]   0
Hits@level+ = [0+]  28 [1+]  13 [2+]   8 [3+]   4 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 43.8185 [1+] 20.3443 [2+] 12.5196 [3+] 6.25978 [4+] 3.12989 [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.