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-minerva-1.5.8/src/mine_int.h
Examining data/r-cran-minerva-1.5.8/src/mine.h
Examining data/r-cran-minerva-1.5.8/src/mine.c
Examining data/r-cran-minerva-1.5.8/src/mine_interface.c
Examining data/r-cran-minerva-1.5.8/src/mine_int.cpp
Examining data/r-cran-minerva-1.5.8/src/RcppExports.cpp

FINAL RESULTS:

data/r-cran-minerva-1.5.8/src/mine.c:101: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(a_cpy, a, n * sizeof(double));
data/r-cran-minerva-1.5.8/src/mine.c:355: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(Q_tilde, Q_map, n*sizeof(int));

ANALYSIS SUMMARY:

Hits = 2
Lines analyzed = 2344 in approximately 0.06 seconds (38090 lines/second)
Physical Source Lines of Code (SLOC) = 1460
Hits@level = [0]   0 [1]   0 [2]   2 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   2 [1+]   2 [2+]   2 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 1.36986 [1+] 1.36986 [2+] 1.36986 [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.