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-webutils-1.1/src/memmem.c
Examining data/r-cran-webutils-1.1/src/register.c
Examining data/r-cran-webutils-1.1/src/split.c

FINAL RESULTS:

data/r-cran-webutils-1.1/src/split.c:22:5:  [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(header), haystack, len);
data/r-cran-webutils-1.1/src/split.c:25:5:  [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(body), cur + 4, n - len - 4);
data/r-cran-webutils-1.1/src/split.c:31: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(body), haystack, n);
data/r-cran-webutils-1.1/src/split.c:43: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 * offsets[1000] = { 0 };
data/r-cran-webutils-1.1/src/split.c:83:39:  [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).
  SET_STRING_ELT(res, 1, mkChar(out + strlen(cut)));
data/r-cran-webutils-1.1/src/split.c:90:16:  [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 len = strlen(str);

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 280 in approximately 0.03 seconds (10037 lines/second)
Physical Source Lines of Code (SLOC) = 198
Hits@level = [0]   0 [1]   2 [2]   4 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   6 [1+]   6 [2+]   4 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 30.303 [1+] 30.303 [2+] 20.202 [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.