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-sodium-1.1/src/secret.c
Examining data/r-cran-sodium-1.1/src/diffie.c
Examining data/r-cran-sodium-1.1/src/seal.c
Examining data/r-cran-sodium-1.1/src/hashing.c
Examining data/r-cran-sodium-1.1/src/password.c
Examining data/r-cran-sodium-1.1/src/stream.c
Examining data/r-cran-sodium-1.1/src/signing.c
Examining data/r-cran-sodium-1.1/src/keygen.c
Examining data/r-cran-sodium-1.1/src/messaging.c
Examining data/r-cran-sodium-1.1/src/init.c
Examining data/r-cran-sodium-1.1/src/helpers.c
Examining data/r-cran-sodium-1.1/src/xor.c

FINAL RESULTS:

data/r-cran-sodium-1.1/src/helpers.c:8: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 hex[hex_len];
data/r-cran-sodium-1.1/src/helpers.c:20:12:  [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.
  unsigned char bin[max_len];
data/r-cran-sodium-1.1/src/helpers.c:26: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(RAW(res), bin, bin_len);
data/r-cran-sodium-1.1/src/keygen.c:7:12:  [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.
  unsigned char pubkey[crypto_box_PUBLICKEYBYTES];
data/r-cran-sodium-1.1/src/password.c:5: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 out[crypto_pwhash_scryptsalsa208sha256_STRBYTES];
data/r-cran-sodium-1.1/src/seal.c:21:12:  [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.
  unsigned char pk[crypto_box_PUBLICKEYBYTES];
data/r-cran-sodium-1.1/src/signing.c:8:12:  [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.
  unsigned char pk[crypto_sign_PUBLICKEYBYTES];

ANALYSIS SUMMARY:

Hits = 7
Lines analyzed = 387 in approximately 0.04 seconds (10413 lines/second)
Physical Source Lines of Code (SLOC) = 329
Hits@level = [0]   0 [1]   0 [2]   7 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   7 [1+]   7 [2+]   7 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 21.2766 [1+] 21.2766 [2+] 21.2766 [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.