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/metrohash-1.1.3/src/metrohash.h
Examining data/metrohash-1.1.3/src/metrohash128.cpp
Examining data/metrohash-1.1.3/src/metrohash128.h
Examining data/metrohash-1.1.3/src/metrohash128crc.cpp
Examining data/metrohash-1.1.3/src/metrohash128crc.h
Examining data/metrohash-1.1.3/src/metrohash64.cpp
Examining data/metrohash-1.1.3/src/metrohash64.h
Examining data/metrohash-1.1.3/src/platform.h
Examining data/metrohash-1.1.3/src/testvector.h

FINAL RESULTS:

data/metrohash-1.1.3/src/metrohash128.cpp:66:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(input.b + (bytes % 32), ptr, static_cast<size_t>(fill));
data/metrohash-1.1.3/src/metrohash128.cpp:93:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(input.b, ptr, end - ptr);
data/metrohash-1.1.3/src/metrohash128.cpp:153:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(hash, state.v, 16);
data/metrohash-1.1.3/src/metrohash128.cpp:226:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(hash, v, 16);
data/metrohash-1.1.3/src/metrohash128.cpp:333:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(out, v, 16);
data/metrohash-1.1.3/src/metrohash128.cpp:411:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(out, v, 16);
data/metrohash-1.1.3/src/metrohash128crc.cpp:96:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(out, v, 16);
data/metrohash-1.1.3/src/metrohash128crc.cpp:172:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(out, v, 16);
data/metrohash-1.1.3/src/metrohash64.cpp:62:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(input.b + (bytes % 32), ptr, static_cast<size_t>(fill));
data/metrohash-1.1.3/src/metrohash64.cpp:89:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(input.b, ptr, static_cast<size_t>(end - ptr));
data/metrohash-1.1.3/src/metrohash64.cpp:151:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(hash, state.v, 8);
data/metrohash-1.1.3/src/metrohash64.cpp:223:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(hash, &h, 8);
data/metrohash-1.1.3/src/metrohash64.cpp:330:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(out, &hash, 8);
data/metrohash-1.1.3/src/metrohash64.cpp:407:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(out, &hash, 8);
data/metrohash-1.1.3/src/metrohash128.cpp:236:29:  [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).
    MetroHash128::Hash(key, strlen(MetroHash128::test_string), hash, 0);
data/metrohash-1.1.3/src/metrohash128.cpp:239:29:  [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).
    MetroHash128::Hash(key, strlen(MetroHash128::test_string), hash, 1);
data/metrohash-1.1.3/src/metrohash128.cpp:246:80:  [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).
    metro.Update(reinterpret_cast<const uint8_t *>(MetroHash128::test_string), strlen(MetroHash128::test_string));
data/metrohash-1.1.3/src/metrohash128.cpp:251:80:  [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).
    metro.Update(reinterpret_cast<const uint8_t *>(MetroHash128::test_string), strlen(MetroHash128::test_string));
data/metrohash-1.1.3/src/metrohash64.cpp:233:28:  [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).
    MetroHash64::Hash(key, strlen(MetroHash64::test_string), hash, 0);
data/metrohash-1.1.3/src/metrohash64.cpp:236:28:  [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).
    MetroHash64::Hash(key, strlen(MetroHash64::test_string), hash, 1);
data/metrohash-1.1.3/src/metrohash64.cpp:243:79:  [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).
    metro.Update(reinterpret_cast<const uint8_t *>(MetroHash64::test_string), strlen(MetroHash64::test_string));
data/metrohash-1.1.3/src/metrohash64.cpp:248:79:  [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).
    metro.Update(reinterpret_cast<const uint8_t *>(MetroHash64::test_string), strlen(MetroHash64::test_string));

ANALYSIS SUMMARY:

Hits = 22
Lines analyzed = 1305 in approximately 0.05 seconds (26889 lines/second)
Physical Source Lines of Code (SLOC) = 842
Hits@level = [0]   0 [1]   8 [2]  14 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  22 [1+]  22 [2+]  14 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 26.1283 [1+] 26.1283 [2+] 16.6271 [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.