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/taptempo-1.4.5/src/main.cpp
Examining data/taptempo-1.4.5/src/options.cpp
Examining data/taptempo-1.4.5/src/options.h
Examining data/taptempo-1.4.5/src/taptempo.cpp
Examining data/taptempo-1.4.5/src/taptempo.h
Examining data/taptempo-1.4.5/src/taptempogame.cpp
Examining data/taptempo-1.4.5/src/taptempogame.h
Examining data/taptempo-1.4.5/test/optionsTest.cpp

FINAL RESULTS:

data/taptempo-1.4.5/src/options.cpp:50:16:  [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((c = getopt_long (argc, argv, "hvs:r:p:g", longOptions, &optionIndex)) != -1)
data/taptempo-1.4.5/src/options.cpp:67:36:  [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).
                conversionBuffer = atoi(optarg);
data/taptempo-1.4.5/src/options.cpp:78:36:  [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).
                conversionBuffer = atoi(optarg);
data/taptempo-1.4.5/src/options.cpp:89:36:  [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).
                conversionBuffer = atoi(optarg);

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 870 in approximately 0.04 seconds (20681 lines/second)
Physical Source Lines of Code (SLOC) = 643
Hits@level = [0]  25 [1]   0 [2]   3 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]  29 [1+]   4 [2+]   4 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 45.1011 [1+] 6.22084 [2+] 6.22084 [3+] 1.55521 [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.