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-psychotools-0.6-0/src/init.c
Examining data/r-cran-psychotools-0.6-0/src/esf.c

FINAL RESULTS:

data/r-cran-psychotools-0.6-0/src/esf.c:63: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(rgamma0, &cgamma0[(m-1)*rmax], rmax * sizeof(double));
data/r-cran-psychotools-0.6-0/src/esf.c:171:7:  [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(&gamma1[i* rmax], &gamma0[(i - 1) * rmax], sizeof(double) * rmax); /* cronecker case, j = i */
data/r-cran-psychotools-0.6-0/src/esf.c:172:7:  [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(gamma1_tmp, gamma1, m * rmax * sizeof(double));			/* backup current round for use in next round */

ANALYSIS SUMMARY:

Hits = 3
Lines analyzed = 227 in approximately 0.03 seconds (7948 lines/second)
Physical Source Lines of Code (SLOC) = 139
Hits@level = [0]   0 [1]   0 [2]   3 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   3 [1+]   3 [2+]   3 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 21.5827 [1+] 21.5827 [2+] 21.5827 [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.