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/libcompress-lz4-perl-0.25+ds/ppport.h

FINAL RESULTS:

data/libcompress-lz4-perl-0.25+ds/ppport.h:3120:10:  [4] (format) vsnprintf:
  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.
retval = vsnprintf(buffer, len, format, ap);
data/libcompress-lz4-perl-0.25+ds/ppport.h:3122:10:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
retval = vsprintf(buffer, format, ap);
data/libcompress-lz4-perl-0.25+ds/ppport.h:3146:1:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
vsprintf(buffer, pat, args);
data/libcompress-lz4-perl-0.25+ds/ppport.h:474:24:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define CopyD(s,d,n,t) memcpy((char*)(d),(char*)(s), (n) * sizeof(t))
data/libcompress-lz4-perl-0.25+ds/ppport.h:3001:22:  [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.
&& (xdigit = strchr((char *) PL_hexdigit, s[1])))
data/libcompress-lz4-perl-0.25+ds/ppport.h:3185:1:  [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(dst + used, src, copy);
data/libcompress-lz4-perl-0.25+ds/ppport.h:3209:1:  [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(dst, src, copy);
data/libcompress-lz4-perl-0.25+ds/ppport.h:3278:1:  [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 octbuf[32] = "%123456789ABCDF";
data/libcompress-lz4-perl-0.25+ds/ppport.h:3344:1:  [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 tmp[2];
data/libcompress-lz4-perl-0.25+ds/ppport.h:1706: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).
sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*));
data/libcompress-lz4-perl-0.25+ds/ppport.h:1712:56:  [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).
#define sv_vcatpvf(sv, pat, args) sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*))
data/libcompress-lz4-perl-0.25+ds/ppport.h:1715:56:  [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).
#define sv_vsetpvf(sv, pat, args) sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*))
data/libcompress-lz4-perl-0.25+ds/ppport.h:1731: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).
sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
data/libcompress-lz4-perl-0.25+ds/ppport.h:1754: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).
sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
data/libcompress-lz4-perl-0.25+ds/ppport.h:1771: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).
sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)); \
data/libcompress-lz4-perl-0.25+ds/ppport.h:1789: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).
sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
data/libcompress-lz4-perl-0.25+ds/ppport.h:1812: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).
sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
data/libcompress-lz4-perl-0.25+ds/ppport.h:1829: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).
sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)); \
data/libcompress-lz4-perl-0.25+ds/ppport.h:1870:50:  [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).
#define HvNAMELEN_get(hv) (HvNAME_get(hv) ? (I32)strlen(HvNAME_get(hv)) : 0)
data/libcompress-lz4-perl-0.25+ds/ppport.h:2667:14:  [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).
STRLEN len = strlen(radix);
data/libcompress-lz4-perl-0.25+ds/ppport.h:3148:8:  [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).
return strlen(buffer);
data/libcompress-lz4-perl-0.25+ds/ppport.h:3181:8:  [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).
used = strlen(dst);
data/libcompress-lz4-perl-0.25+ds/ppport.h:3182:10:  [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).
length = strlen(src);
data/libcompress-lz4-perl-0.25+ds/ppport.h:3206:10:  [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).
length = strlen(src);

ANALYSIS SUMMARY:

Hits = 24
Lines analyzed = 3422 in approximately 0.10 seconds (33894 lines/second)
Physical Source Lines of Code (SLOC) = 3381
Hits@level = [0]   0 [1]  15 [2]   6 [3]   0 [4]   3 [5]   0
Hits@level+ = [0+]  24 [1+]  24 [2+]   9 [3+]   3 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 7.09849 [1+] 7.09849 [2+] 2.66193 [3+] 0.887311 [4+] 0.887311 [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.