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-base64url-1.4/src/base64.c
Examining data/r-cran-base64url-1.4/src/init.c
Examining data/r-cran-base64url-1.4/src/base32.c

FINAL RESULTS:

data/r-cran-base64url-1.4/src/base32.c:31:14:  [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.
static const char b32str[32] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
data/r-cran-base64url-1.4/src/base32.c:86:21:  [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.
static const signed char b32[0x100] = {
data/r-cran-base64url-1.4/src/base64.c:39:23:  [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.
static const unsigned char pr2six[256] = {
data/r-cran-base64url-1.4/src/base32.c:262:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            R_len_t n_in = strlen(plain);
data/r-cran-base64url-1.4/src/base32.c:298:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            R_len_t n_in = strlen(encoded);
data/r-cran-base64url-1.4/src/base64.c:149:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            char *encoded = malloc(sizeof(char) * Base64encode_len(strlen(plain)));
data/r-cran-base64url-1.4/src/base64.c:150:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            Base64encode(encoded, plain, strlen(plain));

ANALYSIS SUMMARY:

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