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/ms-gsl-3.1.0/tests/algorithm_tests.cpp
Examining data/ms-gsl-3.1.0/tests/assertion_tests.cpp
Examining data/ms-gsl-3.1.0/tests/at_tests.cpp
Examining data/ms-gsl-3.1.0/tests/bounds_tests.cpp
Examining data/ms-gsl-3.1.0/tests/byte_tests.cpp
Examining data/ms-gsl-3.1.0/tests/no_exception_ensure_tests.cpp
Examining data/ms-gsl-3.1.0/tests/notnull_tests.cpp
Examining data/ms-gsl-3.1.0/tests/owner_tests.cpp
Examining data/ms-gsl-3.1.0/tests/span_compatibility_tests.cpp
Examining data/ms-gsl-3.1.0/tests/span_ext_tests.cpp
Examining data/ms-gsl-3.1.0/tests/span_tests.cpp
Examining data/ms-gsl-3.1.0/tests/strict_notnull_tests.cpp
Examining data/ms-gsl-3.1.0/tests/string_span_tests.cpp
Examining data/ms-gsl-3.1.0/tests/utils_tests.cpp
Examining data/ms-gsl-3.1.0/tests/array_bounds.cpp
Examining data/ms-gsl-3.1.0/tests/multi_span_tests.cpp
Examining data/ms-gsl-3.1.0/tests/strided_span_tests.cpp

FINAL RESULTS:

data/ms-gsl-3.1.0/tests/string_span_tests.cpp:277:15:  [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.
        const char ar2[10] = "Hello";
data/ms-gsl-3.1.0/tests/string_span_tests.cpp:317: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 ar2[10] = "Hello";
data/ms-gsl-3.1.0/tests/string_span_tests.cpp:351:15:  [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.
        const char ar2[10] = "Hello";
data/ms-gsl-3.1.0/tests/string_span_tests.cpp:387: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 _ar2[10] = "Hello";
data/ms-gsl-3.1.0/tests/string_span_tests.cpp:485:15:  [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.
        const char ar2[10] = "Hello";
data/ms-gsl-3.1.0/tests/string_span_tests.cpp:522: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 ar2[10] = "Hello";
data/ms-gsl-3.1.0/tests/string_span_tests.cpp:960: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 buf[1];
data/ms-gsl-3.1.0/tests/string_span_tests.cpp:972: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 buf[1];
data/ms-gsl-3.1.0/tests/string_span_tests.cpp:981: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 buf[10];
data/ms-gsl-3.1.0/tests/string_span_tests.cpp:1001:9:  [2] (buffer) wchar_t:
  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.
        wchar_t buf[1];
data/ms-gsl-3.1.0/tests/string_span_tests.cpp:1013:9:  [2] (buffer) wchar_t:
  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.
        wchar_t buf[1];
data/ms-gsl-3.1.0/tests/string_span_tests.cpp:1022:9:  [2] (buffer) wchar_t:
  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.
        wchar_t buf[10];
data/ms-gsl-3.1.0/tests/string_span_tests.cpp:44:6:  [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 strlen(const CharT* s)
data/ms-gsl-3.1.0/tests/string_span_tests.cpp:965:30:  [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).
        EXPECT_TRUE(generic::strlen(zspan.assume_z()) == 0);
data/ms-gsl-3.1.0/tests/string_span_tests.cpp:986:34:  [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).
            EXPECT_TRUE(generic::strlen(str) == 3);

ANALYSIS SUMMARY:

Hits = 15
Lines analyzed = 8179 in approximately 0.24 seconds (33707 lines/second)
Physical Source Lines of Code (SLOC) = 6304
Hits@level = [0]   0 [1]   3 [2]  12 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  15 [1+]  15 [2+]  12 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.37944 [1+] 2.37944 [2+] 1.90355 [3+]   0 [4+]   0 [5+]   0
Dot directories skipped = 2 (--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.