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-irlba-2.3.3/src/irlb.h
Examining data/r-cran-irlba-2.3.3/src/utility.c
Examining data/r-cran-irlba-2.3.3/src/irlb.c

FINAL RESULTS:

data/r-cran-irlba-2.3.3/src/irlb.c:45:3:  [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[4096];
data/r-cran-irlba-2.3.3/src/irlb.c:143: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 (scale, REAL (SCALE), n * sizeof (double));
data/r-cran-irlba-2.3.3/src/irlb.c:167: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 (REAL (V), REAL (RV), n * (restart + 1) * sizeof (double));
data/r-cran-irlba-2.3.3/src/irlb.c:168: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 (W, REAL (RW), m * restart * sizeof (double));
data/r-cran-irlba-2.3.3/src/irlb.c:273:11:  [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 (scale + n, V + j * n, n * sizeof (double));
data/r-cran-irlba-2.3.3/src/irlb.c:380:19:  [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 (x, V + (j + 1) * n, n * sizeof (double));

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 752 in approximately 0.04 seconds (17512 lines/second)
Physical Source Lines of Code (SLOC) = 573
Hits@level = [0]   1 [1]   0 [2]   6 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   7 [1+]   6 [2+]   6 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 12.2164 [1+] 10.4712 [2+] 10.4712 [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.