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/r-cran-v8-3.4.0+dfsg/tools/test.cpp
Examining data/r-cran-v8-3.4.0+dfsg/src/legacy/v8_json.h
Examining data/r-cran-v8-3.4.0+dfsg/src/legacy/v8_typed_array.h
Examining data/r-cran-v8-3.4.0+dfsg/src/legacy/v8_typed_array.cpp
Examining data/r-cran-v8-3.4.0+dfsg/src/legacy/V8_types.h
Examining data/r-cran-v8-3.4.0+dfsg/src/legacy/test.cpp
Examining data/r-cran-v8-3.4.0+dfsg/src/legacy/V8.cpp
Examining data/r-cran-v8-3.4.0+dfsg/src/legacy/RcppExports.cpp
Examining data/r-cran-v8-3.4.0+dfsg/src/V8_types.h
Examining data/r-cran-v8-3.4.0+dfsg/src/RcppExports.cpp
Examining data/r-cran-v8-3.4.0+dfsg/src/bindings.cpp

FINAL RESULTS:

data/r-cran-v8-3.4.0+dfsg/src/bindings.cpp:47:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if( access( V8_ICU_DATA_PATH, F_OK ) != -1 ) {
data/r-cran-v8-3.4.0+dfsg/src/bindings.cpp:174: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(data.begin(), buffer->GetContents().Data(), data.size());
data/r-cran-v8-3.4.0+dfsg/src/bindings.cpp:244:3:  [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(buffer->GetContents().Data(), data.begin(), data.size());
data/r-cran-v8-3.4.0+dfsg/src/legacy/V8.cpp:161: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(buf.begin(), obj->GetIndexedPropertiesExternalArrayData(), len * size);
data/r-cran-v8-3.4.0+dfsg/src/legacy/V8.cpp:252:3:  [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(obj->GetIndexedPropertiesExternalArrayData(), data.begin(), data.length());
data/r-cran-v8-3.4.0+dfsg/src/legacy/v8_typed_array.cpp:614:5:  [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[sizeof(T)];
data/r-cran-v8-3.4.0+dfsg/src/legacy/v8_typed_array.cpp:615: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(buf, reinterpret_cast<char*>(ptr) + index, sizeof(T));
data/r-cran-v8-3.4.0+dfsg/src/legacy/v8_typed_array.cpp:619: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(&val, buf, sizeof(T));
data/r-cran-v8-3.4.0+dfsg/src/legacy/v8_typed_array.cpp:625:5:  [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[sizeof(T)];
data/r-cran-v8-3.4.0+dfsg/src/legacy/v8_typed_array.cpp:626: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(buf, &val, sizeof(T));
data/r-cran-v8-3.4.0+dfsg/src/legacy/v8_typed_array.cpp:629: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(reinterpret_cast<char*>(ptr) + index, buf, sizeof(T));

ANALYSIS SUMMARY:

Hits = 11
Lines analyzed = 1692 in approximately 0.06 seconds (26850 lines/second)
Physical Source Lines of Code (SLOC) = 1242
Hits@level = [0]   0 [1]   0 [2]  10 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]  11 [1+]  11 [2+]  11 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 8.85668 [1+] 8.85668 [2+] 8.85668 [3+] 0.805153 [4+] 0.805153 [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.