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-urltools-1.7.3+dfsg/src/suffix.cpp
Examining data/r-cran-urltools-1.7.3+dfsg/src/punycode.h
Examining data/r-cran-urltools-1.7.3+dfsg/src/punycode.c
Examining data/r-cran-urltools-1.7.3+dfsg/src/puny.cpp
Examining data/r-cran-urltools-1.7.3+dfsg/src/utf8.c
Examining data/r-cran-urltools-1.7.3+dfsg/src/compose.h
Examining data/r-cran-urltools-1.7.3+dfsg/src/parsing.h
Examining data/r-cran-urltools-1.7.3+dfsg/src/parameter.h
Examining data/r-cran-urltools-1.7.3+dfsg/src/parsing.cpp
Examining data/r-cran-urltools-1.7.3+dfsg/src/credentials.cpp
Examining data/r-cran-urltools-1.7.3+dfsg/src/encoding.h
Examining data/r-cran-urltools-1.7.3+dfsg/src/utf8.h
Examining data/r-cran-urltools-1.7.3+dfsg/src/compose.cpp
Examining data/r-cran-urltools-1.7.3+dfsg/src/encoding.cpp
Examining data/r-cran-urltools-1.7.3+dfsg/src/parameter.cpp
Examining data/r-cran-urltools-1.7.3+dfsg/src/RcppExports.cpp

FINAL RESULTS:

data/r-cran-urltools-1.7.3+dfsg/src/utf8.c:25:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/r-cran-urltools-1.7.3+dfsg/src/utf8.c:25:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/r-cran-urltools-1.7.3+dfsg/src/puny.cpp:12:8:  [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 char buf[BUFLENT];
data/r-cran-urltools-1.7.3+dfsg/src/utf8.c:40: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 trailingBytesForUTF8[256] = {
data/r-cran-urltools-1.7.3+dfsg/src/puny.cpp:90:24:  [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).
      const int slen = strlen(s);
data/r-cran-urltools-1.7.3+dfsg/src/puny.cpp:181:24:  [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).
      const int slen = strlen(s);

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 2925 in approximately 0.11 seconds (26788 lines/second)
Physical Source Lines of Code (SLOC) = 1783
Hits@level = [0]   0 [1]   2 [2]   2 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]   6 [1+]   6 [2+]   4 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 3.36511 [1+] 3.36511 [2+] 2.24341 [3+] 1.1217 [4+] 1.1217 [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.