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-glue-1.4.2/src/init.c
Examining data/r-cran-glue-1.4.2/src/glue.c
Examining data/r-cran-glue-1.4.2/src/trim.c

FINAL RESULTS:

data/r-cran-glue-1.4.2/src/glue.c:41:28:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  size_t open_len = strlen(open);
data/r-cran-glue-1.4.2/src/glue.c:46:29:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int delim_equal = strncmp(open, close, open_len) == 0;
data/r-cran-glue-1.4.2/src/glue.c:62:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if (strncmp(&xx[i], open, open_len) == 0) {
data/r-cran-glue-1.4.2/src/glue.c:64:40:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (strncmp(&xx[i + open_len], open, open_len) == 0) {
data/r-cran-glue-1.4.2/src/glue.c:119:43:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if (!delim_equal && strncmp(&xx[i], open, open_len) == 0) {
data/r-cran-glue-1.4.2/src/glue.c:36:20:  [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).
  size_t str_len = strlen(xx);
data/r-cran-glue-1.4.2/src/glue.c:41:21:  [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).
  size_t open_len = strlen(open);
data/r-cran-glue-1.4.2/src/glue.c:44:22:  [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).
  size_t close_len = strlen(close);
data/r-cran-glue-1.4.2/src/trim.c:15:22:  [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).
    size_t str_len = strlen(xx);
data/r-cran-glue-1.4.2/src/trim.c:92:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy(str + j, xx + i, skipped);

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 331 in approximately 0.02 seconds (17136 lines/second)
Physical Source Lines of Code (SLOC) = 273
Hits@level = [0]   0 [1]   5 [2]   5 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  10 [1+]  10 [2+]   5 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 36.63 [1+] 36.63 [2+] 18.315 [3+]   0 [4+]   0 [5+]   0
Dot directories skipped = 2 (--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.