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-fastmatch-1.1-0/src/common.h
Examining data/r-cran-fastmatch-1.1-0/src/ctapply.c
Examining data/r-cran-fastmatch-1.1-0/src/fastmatch.c
Examining data/r-cran-fastmatch-1.1-0/src/fasthash.c

FINAL RESULTS:

data/r-cran-fastmatch-1.1-0/src/ctapply.c:51:28:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	if (TYPEOF(by) == INTSXP) memcpy(INTEGER(cdi), INTEGER(by) + i0, sizeof(int) * N);
data/r-cran-fastmatch-1.1-0/src/ctapply.c:52:34:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	else if (TYPEOF(by) == REALSXP) memcpy(REAL(cdi), REAL(by) + i0, sizeof(double) * N);
data/r-cran-fastmatch-1.1-0/src/ctapply.c:53:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	else if (TYPEOF(by) == STRSXP) memcpy(STRING_PTR(cdi), STRING_PTR(by) + i0, sizeof(SEXP) * N);
data/r-cran-fastmatch-1.1-0/src/ctapply.c:55:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	if (TYPEOF(vec) == INTSXP) memcpy(INTEGER(cdv), INTEGER(vec) + i0, sizeof(int) * N);
data/r-cran-fastmatch-1.1-0/src/ctapply.c:56:35:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	else if (TYPEOF(vec) == REALSXP) memcpy(REAL(cdv), REAL(vec) + i0, sizeof(double) * N);
data/r-cran-fastmatch-1.1-0/src/ctapply.c:57:34:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	else if (TYPEOF(vec) == STRSXP) memcpy(STRING_PTR(cdv), STRING_PTR(vec) + i0, sizeof(SEXP) * N);
data/r-cran-fastmatch-1.1-0/src/ctapply.c:58:34:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	else if (TYPEOF(vec) == VECSXP) memcpy(VECTOR_PTR(cdv), VECTOR_PTR(vec) + i0, sizeof(SEXP) * N);
data/r-cran-fastmatch-1.1-0/src/ctapply.c:74:6:  [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 cbuf[64];
data/r-cran-fastmatch-1.1-0/src/fasthash.c:429: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(DATAPTR(res), DATAPTR(h->parent), sz);

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 1088 in approximately 0.05 seconds (21302 lines/second)
Physical Source Lines of Code (SLOC) = 856
Hits@level = [0]   5 [1]   0 [2]   9 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  14 [1+]   9 [2+]   9 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 16.3551 [1+] 10.514 [2+] 10.514 [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.