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-raw-zlib-perl-2.096/ppport.h
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/deflate.h
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/uncompr.c
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/infback.c
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/trees.h
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/zconf.h
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/inftrees.h
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/zutil.c
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/crc32.h
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/inflate.h
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/inffast.h
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/inflate.c
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/deflate.c
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/crc32.c
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/zlib.h
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/inffixed.h
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/inftrees.c
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/zutil.h
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/compress.c
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/inffast.c
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/trees.c
Examining data/libcompress-raw-zlib-perl-2.096/zlib-src/adler32.c
Examining data/libcompress-raw-zlib-perl-2.096/fallback/constants.h

FINAL RESULTS:

data/libcompress-raw-zlib-perl-2.096/ppport.h:8267:14:  [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-raw-zlib-perl-2.096/ppport.h:8269:14:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    retval = vsprintf(buffer, format, ap);
data/libcompress-raw-zlib-perl-2.096/ppport.h:8299:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(buffer, pat, args);
data/libcompress-raw-zlib-perl-2.096/zlib-src/zutil.h:246:39:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Trace(x) {if (z_verbose>=0) fprintf x ;}
data/libcompress-raw-zlib-perl-2.096/zlib-src/zutil.h:247:39:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Tracev(x) {if (z_verbose>0) fprintf x ;}
data/libcompress-raw-zlib-perl-2.096/zlib-src/zutil.h:248:40:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Tracevv(x) {if (z_verbose>1) fprintf x ;}
data/libcompress-raw-zlib-perl-2.096/zlib-src/zutil.h:249:48:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Tracec(c,x) {if (z_verbose>0 && (c)) fprintf x ;}
data/libcompress-raw-zlib-perl-2.096/zlib-src/zutil.h:250:49:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Tracecv(c,x) {if (z_verbose>1 && (c)) fprintf x ;}
data/libcompress-raw-zlib-perl-2.096/ppport.h:5293:42:  [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-raw-zlib-perl-2.096/ppport.h:8120:38:  [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-raw-zlib-perl-2.096/ppport.h:8346:9:  [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-raw-zlib-perl-2.096/ppport.h:8376:9:  [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-raw-zlib-perl-2.096/ppport.h:8469:5:  [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-raw-zlib-perl-2.096/ppport.h:8539:13:  [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-raw-zlib-perl-2.096/zlib-src/crc32.c:143:15:  [2] (misc) fopen:
  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).
        out = fopen("crc32.h", "w");
data/libcompress-raw-zlib-perl-2.096/zlib-src/inflate.c:640: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.
    unsigned char hbuf[4];      /* buffer for gzip header crc calculation */
data/libcompress-raw-zlib-perl-2.096/zlib-src/inflate.c:1423: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.
    unsigned char buf[4];       /* to restore bit buffer to byte string */
data/libcompress-raw-zlib-perl-2.096/zlib-src/trees.c:328:20:  [2] (misc) fopen:
  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).
    FILE *header = fopen("trees.h", "w");
data/libcompress-raw-zlib-perl-2.096/zlib-src/zutil.c:13:9:  [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.
z_const char * const z_errmsg[10] = {
data/libcompress-raw-zlib-perl-2.096/zlib-src/zutil.h:53:16:  [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.
extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
data/libcompress-raw-zlib-perl-2.096/zlib-src/zutil.h:113:6:  [2] (misc) fopen:
  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).
     fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
data/libcompress-raw-zlib-perl-2.096/zlib-src/zutil.h:206:30:  [2] (misc) fopen:
  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).
#  define F_OPEN(name, mode) fopen((name), (mode))
data/libcompress-raw-zlib-perl-2.096/zlib-src/zutil.h:230:21:  [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 zmemcpy memcpy
data/libcompress-raw-zlib-perl-2.096/ppport.h:6879: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).
  sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*));
data/libcompress-raw-zlib-perl-2.096/ppport.h:6887:59:  [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-raw-zlib-perl-2.096/ppport.h:6891:59:  [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-raw-zlib-perl-2.096/ppport.h:6912: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).
  sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
data/libcompress-raw-zlib-perl-2.096/ppport.h:6941: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).
  sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
data/libcompress-raw-zlib-perl-2.096/ppport.h:6962:27:  [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-raw-zlib-perl-2.096/ppport.h:6985: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).
  sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
data/libcompress-raw-zlib-perl-2.096/ppport.h:7014: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).
  sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
data/libcompress-raw-zlib-perl-2.096/ppport.h:7035:27:  [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-raw-zlib-perl-2.096/ppport.h:7090:65:  [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-raw-zlib-perl-2.096/ppport.h:7711: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).
        STRLEN len = strlen(radix);
data/libcompress-raw-zlib-perl-2.096/ppport.h:8301:12:  [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-raw-zlib-perl-2.096/ppport.h:8342:12:  [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-raw-zlib-perl-2.096/ppport.h:8343: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).
    length = strlen(src);
data/libcompress-raw-zlib-perl-2.096/ppport.h:8373: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).
    length = strlen(src);

ANALYSIS SUMMARY:

Hits = 38
Lines analyzed = 20466 in approximately 0.69 seconds (29846 lines/second)
Physical Source Lines of Code (SLOC) = 11362
Hits@level = [0]  34 [1]  15 [2]  15 [3]   0 [4]   8 [5]   0
Hits@level+ = [0+]  72 [1+]  38 [2+]  23 [3+]   8 [4+]   8 [5+]   0
Hits/KSLOC@level+ = [0+] 6.33691 [1+] 3.34448 [2+] 2.02429 [3+] 0.704101 [4+] 0.704101 [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.