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/cxxopts-2.2.1/include/cxxopts.hpp
Examining data/cxxopts-2.2.1/src/example.cpp
Examining data/cxxopts-2.2.1/test/catch.hpp
Examining data/cxxopts-2.2.1/test/link_a.cpp
Examining data/cxxopts-2.2.1/test/link_b.cpp
Examining data/cxxopts-2.2.1/test/main.cpp
Examining data/cxxopts-2.2.1/test/options.cpp

FINAL RESULTS:

data/cxxopts-2.2.1/test/options.cpp:20:7:  [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(ptr.get(), *iter);
data/cxxopts-2.2.1/test/catch.hpp:7824:18:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            std::srand( config.rngSeed() );
data/cxxopts-2.2.1/test/catch.hpp:1601:23:  [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.
    struct TrueType { char sizer[1]; };
data/cxxopts-2.2.1/test/catch.hpp:1602:24:  [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.
    struct FalseType { char sizer[2]; };
data/cxxopts-2.2.1/test/catch.hpp:2777:9:  [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.
        char storage[sizeof(T)];
data/cxxopts-2.2.1/test/catch.hpp:5624: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).
        void open() {
data/cxxopts-2.2.1/test/catch.hpp:5701:26:  [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).
                section->open();
data/cxxopts-2.2.1/test/catch.hpp:5734:26:  [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).
                tracker->open();
data/cxxopts-2.2.1/test/catch.hpp:6799:9:  [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.
        char data[bufferSize];
data/cxxopts-2.2.1/test/catch.hpp:6836:15:  [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).
        m_ofs.open( filename.c_str() );
data/cxxopts-2.2.1/test/catch.hpp:7992:21:  [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.
                    char asChar[sizeof (int)];
data/cxxopts-2.2.1/test/catch.hpp:8751:16:  [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 line[CATCH_CONFIG_CONSOLE_WIDTH] = {0};
data/cxxopts-2.2.1/test/options.cpp:17: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).
      auto len = strlen(*iter) + 1;

ANALYSIS SUMMARY:

Hits = 13
Lines analyzed = 13438 in approximately 0.29 seconds (46545 lines/second)
Physical Source Lines of Code (SLOC) = 10672
Hits@level = [0]   0 [1]   1 [2]  10 [3]   1 [4]   1 [5]   0
Hits@level+ = [0+]  13 [1+]  13 [2+]  12 [3+]   2 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 1.21814 [1+] 1.21814 [2+] 1.12444 [3+] 0.187406 [4+] 0.0937031 [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.