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/png23d-1.10/mesh_simplify.h
Examining data/png23d-1.10/option.h
Examining data/png23d-1.10/out_pgm.c
Examining data/png23d-1.10/mesh.h
Examining data/png23d-1.10/out_pscad.h
Examining data/png23d-1.10/mesh_index.c
Examining data/png23d-1.10/out_rscad.c
Examining data/png23d-1.10/bitmap.h
Examining data/png23d-1.10/png23d.c
Examining data/png23d-1.10/out_stl.c
Examining data/png23d-1.10/mesh_gen.h
Examining data/png23d-1.10/out_pscad.c
Examining data/png23d-1.10/mesh_simplify.c
Examining data/png23d-1.10/out_stl.h
Examining data/png23d-1.10/out_rscad.h
Examining data/png23d-1.10/out_pgm.h
Examining data/png23d-1.10/option.c
Examining data/png23d-1.10/mesh_gen.c
Examining data/png23d-1.10/mesh_math.h
Examining data/png23d-1.10/mesh.c
Examining data/png23d-1.10/mesh_index.h
Examining data/png23d-1.10/bitmap.c

FINAL RESULTS:

data/png23d-1.10/option.h:20:41:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define INFO(...) if (options->verbose) printf(__VA_ARGS__) 
data/png23d-1.10/option.c:49: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 ((opt = getopt(argc, argv, "Vvf:w:d:h:m:t:l:o:O:b:c:")) != -1) {
data/png23d-1.10/bitmap.c:49:14:  [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).
        fp = fopen(filename, "rb");
data/png23d-1.10/mesh.c:34: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).
    mesh->dumpfile = fopen(filename, "w");
data/png23d-1.10/mesh_simplify.c:228:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(facet, rfacet, sizeof(struct facet));
data/png23d-1.10/png23d.c:54:14:  [2] (misc) open:
  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).
        fd = open(options->outfile, 

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 3069 in approximately 0.09 seconds (32335 lines/second)
Physical Source Lines of Code (SLOC) = 1951
Hits@level = [0]  73 [1]   0 [2]   4 [3]   1 [4]   1 [5]   0
Hits@level+ = [0+]  79 [1+]   6 [2+]   6 [3+]   2 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 40.4921 [1+] 3.07535 [2+] 3.07535 [3+] 1.02512 [4+] 0.512558 [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.