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/rampler-1.1.1/src/sampler.cpp
Examining data/rampler-1.1.1/src/sampler.hpp
Examining data/rampler-1.1.1/src/sequence.cpp
Examining data/rampler-1.1.1/src/sequence.hpp
Examining data/rampler-1.1.1/src/main.cpp

FINAL RESULTS:

data/rampler-1.1.1/src/main.cpp:28:24:  [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 ((argument = getopt_long(argc, argv, "o:h", options, nullptr)) != -1) {
data/rampler-1.1.1/src/main.cpp:75:39:  [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).
        sampler->split(out_directory, atoi(input_parameters[2].c_str()));
data/rampler-1.1.1/src/main.cpp:77:37:  [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).
        uint32_t reference_length = atoi(input_parameters[2].c_str());
data/rampler-1.1.1/src/main.cpp:80:17:  [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).
                atoi(input_parameters[i].c_str()));
data/rampler-1.1.1/src/sampler.cpp:105:16:  [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).
    auto out = fopen(out_path.c_str(), "w");
data/rampler-1.1.1/src/sampler.cpp:154:20:  [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).
        auto out = fopen(out_path.c_str(), "w");

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 423 in approximately 0.09 seconds (4887 lines/second)
Physical Source Lines of Code (SLOC) = 319
Hits@level = [0]  15 [1]   0 [2]   5 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]  21 [1+]   6 [2+]   6 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 65.8307 [1+] 18.8088 [2+] 18.8088 [3+] 3.1348 [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.