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-randomforest-4.6-14/src/rf.h Examining data/r-cran-randomforest-4.6-14/src/regTree.c Examining data/r-cran-randomforest-4.6-14/src/rf.c Examining data/r-cran-randomforest-4.6-14/src/classTree.c Examining data/r-cran-randomforest-4.6-14/src/regrf.c Examining data/r-cran-randomforest-4.6-14/src/init.c Examining data/r-cran-randomforest-4.6-14/src/rfutils.c FINAL RESULTS: data/r-cran-randomforest-4.6-14/src/rf.c:333: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(a, at, sizeof(int) * mdim * nsample); ANALYSIS SUMMARY: Hits = 1 Lines analyzed = 2406 in approximately 0.09 seconds (27930 lines/second) Physical Source Lines of Code (SLOC) = 1806 Hits@level = [0] 0 [1] 0 [2] 1 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 1 [1+] 1 [2+] 1 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 0.55371 [1+] 0.55371 [2+] 0.55371 [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.