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/assembly-stats-1.0.1+ds/assembly-stats.cpp
Examining data/assembly-stats-1.0.1+ds/fasta.cpp
Examining data/assembly-stats-1.0.1+ds/fasta.h
Examining data/assembly-stats-1.0.1+ds/fasta_unittest.cpp
Examining data/assembly-stats-1.0.1+ds/fastq.cpp
Examining data/assembly-stats-1.0.1+ds/fastq.h
Examining data/assembly-stats-1.0.1+ds/fastq_unittest.cpp
Examining data/assembly-stats-1.0.1+ds/filetype.cpp
Examining data/assembly-stats-1.0.1+ds/filetype.h
Examining data/assembly-stats-1.0.1+ds/filetype_unittest.cpp
Examining data/assembly-stats-1.0.1+ds/stats.cpp
Examining data/assembly-stats-1.0.1+ds/stats.h
Examining data/assembly-stats-1.0.1+ds/stats_unittest.cpp

FINAL RESULTS:

data/assembly-stats-1.0.1+ds/assembly-stats.cpp:100:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            ops.minLength = atoi(argv[ops.infileStartIndex + 1]);
data/assembly-stats-1.0.1+ds/filetype.cpp:20:9:  [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).
    ifs.open(filename.c_str());
data/assembly-stats-1.0.1+ds/stats.cpp:35: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).
    inStream.open(filename.c_str());

ANALYSIS SUMMARY:

Hits = 3
Lines analyzed = 1002 in approximately 0.04 seconds (26247 lines/second)
Physical Source Lines of Code (SLOC) = 753
Hits@level = [0]   0 [1]   0 [2]   3 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   3 [1+]   3 [2+]   3 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 3.98406 [1+] 3.98406 [2+] 3.98406 [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.