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/libfile-rsyncp-perl-0.74/Digest/global.h
Examining data/libfile-rsyncp-perl-0.74/Digest/md4.h
Examining data/libfile-rsyncp-perl-0.74/Digest/md4c.c
Examining data/libfile-rsyncp-perl-0.74/Digest/rsync_lib.c
Examining data/libfile-rsyncp-perl-0.74/FileList/byteorder.h
Examining data/libfile-rsyncp-perl-0.74/FileList/errcode.h
Examining data/libfile-rsyncp-perl-0.74/FileList/exclude.c
Examining data/libfile-rsyncp-perl-0.74/FileList/flist.c
Examining data/libfile-rsyncp-perl-0.74/FileList/hlink.c
Examining data/libfile-rsyncp-perl-0.74/FileList/pool_alloc.c
Examining data/libfile-rsyncp-perl-0.74/FileList/pool_alloc.h
Examining data/libfile-rsyncp-perl-0.74/FileList/proto.h
Examining data/libfile-rsyncp-perl-0.74/FileList/rsync.h
Examining data/libfile-rsyncp-perl-0.74/FileList/snprintf.c
Examining data/libfile-rsyncp-perl-0.74/FileList/wildmatch.c
Examining data/libfile-rsyncp-perl-0.74/FileList/wildmatch.h

FINAL RESULTS:

data/libfile-rsyncp-perl-0.74/FileList/rsync.h:642:16:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
#define lchown chown
data/libfile-rsyncp-perl-0.74/FileList/flist.c:1000:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(fbuf + len + 1, f->basename);
data/libfile-rsyncp-perl-0.74/FileList/flist.c:1002:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(fbuf, f->basename);
data/libfile-rsyncp-perl-0.74/FileList/rsync.h:611:9:  [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.
#define vsnprintf rsync_vsnprintf
data/libfile-rsyncp-perl-0.74/FileList/rsync.h:612:5:  [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.
int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
data/libfile-rsyncp-perl-0.74/FileList/rsync.h:616: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 rsync_snprintf
data/libfile-rsyncp-perl-0.74/FileList/rsync.h:617:5:  [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.
int snprintf(char *str,size_t count,const char *fmt,...);
data/libfile-rsyncp-perl-0.74/FileList/rsync.h:767:29:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__((format (printf, 2, 3)))
data/libfile-rsyncp-perl-0.74/FileList/rsync.h:773:29:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     __attribute__((format (printf, 3, 4)))
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:755:9:  [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.
#define vsnprintf rsync_vsnprintf
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:756:6:  [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.
 int vsnprintf(char *str, size_t count, const char *fmt, va_list args)
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:763: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 rsync_snprintf
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:764:6:  [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.
 int snprintf(char *str,size_t count,const char *fmt,...)
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:770:8:  [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.
	ret = vsnprintf(str, count, fmt, ap);
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:783:8:  [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.
	ret = vsnprintf(NULL, 0, format, ap);
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:788:8:  [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.
	ret = vsnprintf(*ptr, ret+1, format, ap);
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:811:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
 int sprintf(char *str,const char *fmt,...);
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:873:13:  [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.
			int l1 = snprintf(NULL, 0, fp_fmt[x], fp_nums[y]);
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:874:13:  [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.
			int l2 = snprintf(buf1, sizeof(buf1), fp_fmt[x], fp_nums[y]);
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:875:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf (buf2, fp_fmt[x], fp_nums[y]);
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:891:13:  [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.
			int l1 = snprintf(NULL, 0, int_fmt[x], int_nums[y]);
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:892:13:  [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.
			int l2 = snprintf(buf1, sizeof(buf1), int_fmt[x], int_nums[y]);
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:893:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf (buf2, int_fmt[x], int_nums[y]);
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:909:13:  [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.
			int l1 = snprintf(NULL, 0, str_fmt[x], str_vals[y]);
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:910:13:  [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.
			int l2 = snprintf(buf1, sizeof(buf1), str_fmt[x], str_vals[y]);
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:911:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf (buf2, str_fmt[x], str_vals[y]);
data/libfile-rsyncp-perl-0.74/FileList/exclude.c:431:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((p = getenv("HOME"))
data/libfile-rsyncp-perl-0.74/FileList/exclude.c:436:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    add_exclude(f, getenv("CVSIGNORE"), XFLG_WORD_SPLIT | XFLG_WORDS_ONLY);
data/libfile-rsyncp-perl-0.74/Digest/md4.h:30: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 buffer[64];                         /* input buffer */
data/libfile-rsyncp-perl-0.74/Digest/md4c.c:51:17:  [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 unsigned char PADDING[64] = {
data/libfile-rsyncp-perl-0.74/Digest/md4c.c:144:10:  [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 digest[16];                         /* message digest */
data/libfile-rsyncp-perl-0.74/Digest/md4c.c:147: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 bits[8];
data/libfile-rsyncp-perl-0.74/Digest/md4c.c:183:10:  [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 digest[16];                         /* message digest */
data/libfile-rsyncp-perl-0.74/Digest/md4c.c:186: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 bits[8];
data/libfile-rsyncp-perl-0.74/Digest/md4c.c:217:10:  [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 block[64];
data/libfile-rsyncp-perl-0.74/Digest/md4c.c:344:7:  [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 *)output)[i] = (char)value;
data/libfile-rsyncp-perl-0.74/Digest/rsync_lib.c:69: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 seedBytes[4];
data/libfile-rsyncp-perl-0.74/Digest/rsync_lib.c:93:17:  [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(digest, md4.buffer, thisLen % 64);
data/libfile-rsyncp-perl-0.74/Digest/rsync_lib.c:102: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 md4Digest[16];
data/libfile-rsyncp-perl-0.74/Digest/rsync_lib.c:107: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(digest, md4Digest, md4DigestLen);
data/libfile-rsyncp-perl-0.74/Digest/rsync_lib.c:136: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 seedBytes[4];
data/libfile-rsyncp-perl-0.74/Digest/rsync_lib.c:149:2:  [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(digestOut, digestIn, 4);
data/libfile-rsyncp-perl-0.74/Digest/rsync_lib.c:158:13:  [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(md4.buffer, digestIn, blockSize % 64);
data/libfile-rsyncp-perl-0.74/Digest/rsync_lib.c:163:13:  [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(md4.buffer, digestIn, blockLastLen % 64);
data/libfile-rsyncp-perl-0.74/Digest/rsync_lib.c:175: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.
            unsigned char md4Digest[16];
data/libfile-rsyncp-perl-0.74/Digest/rsync_lib.c:180:13:  [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(digestOut, md4Digest, md4DigestLen);
data/libfile-rsyncp-perl-0.74/FileList/byteorder.h:32:35:  [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.
#define CVAL(buf,pos) (((unsigned char *)(buf))[pos])
data/libfile-rsyncp-perl-0.74/FileList/exclude.c:55: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(ret->pattern, f->exclude_path_prefix, ex_len);
data/libfile-rsyncp-perl-0.74/FileList/exclude.c:108: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 *p, full_name[MAXPATHLEN];
data/libfile-rsyncp-perl-0.74/FileList/exclude.c:312: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 line[MAXPATHLEN+3]; /* Room for "x " prefix and trailing slash. */
data/libfile-rsyncp-perl-0.74/FileList/exclude.c:320:14:  [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).
        fp = fopen(fname, "rb");
data/libfile-rsyncp-perl-0.74/FileList/exclude.c:371: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.
        char p[MAXPATHLEN+1];
data/libfile-rsyncp-perl-0.74/FileList/exclude.c:401: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 line[MAXPATHLEN+3]; /* Room for "x " prefix and trailing slash. */
data/libfile-rsyncp-perl-0.74/FileList/exclude.c:426: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 fname[MAXPATHLEN];
data/libfile-rsyncp-perl-0.74/FileList/flist.c:45: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 empty_sum[MD4_SUM_LENGTH];
data/libfile-rsyncp-perl-0.74/FileList/flist.c:123: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(buffer, f->inBuf + f->inPosn, N);
data/libfile-rsyncp-perl-0.74/FileList/flist.c:129: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 b[4];
data/libfile-rsyncp-perl-0.74/FileList/flist.c:182: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 lastname[MAXPATHLEN];
data/libfile-rsyncp-perl-0.74/FileList/flist.c:190: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 thisname[MAXPATHLEN];
data/libfile-rsyncp-perl-0.74/FileList/flist.c:320: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(bp, dirname, dirname_len - 1);
data/libfile-rsyncp-perl-0.74/FileList/flist.c:330: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(bp, basename, basename_len);
data/libfile-rsyncp-perl-0.74/FileList/flist.c:419: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(f->outBuf + f->outPosn, buf, len);
data/libfile-rsyncp-perl-0.74/FileList/flist.c:425: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 b[4];
data/libfile-rsyncp-perl-0.74/FileList/flist.c:439: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 b[8];
data/libfile-rsyncp-perl-0.74/FileList/flist.c:485: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 lastname[MAXPATHLEN];
data/libfile-rsyncp-perl-0.74/FileList/flist.c:488: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 fname[MAXPATHLEN];
data/libfile-rsyncp-perl-0.74/FileList/flist.c:736: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(d, s, len);
data/libfile-rsyncp-perl-0.74/FileList/flist.c:998: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(fbuf, f->dirname, len);
data/libfile-rsyncp-perl-0.74/FileList/flist.c:1011: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.
    static char names[5][MAXPATHLEN];
data/libfile-rsyncp-perl-0.74/FileList/flist.c:1116:13:  [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(dest, rootdir, rlen);
data/libfile-rsyncp-perl-0.74/FileList/rsync.h:534: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.
        char exclude_curr_dir[MAXPATHLEN];
data/libfile-rsyncp-perl-0.74/FileList/rsync.h:542:2:  [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 lastname[MAXPATHLEN];
data/libfile-rsyncp-perl-0.74/FileList/rsync.h:552:2:  [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 sum2[SUM_LENGTH];	/**< checksum  */
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:444:2:  [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 convert[20];
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:597:2:  [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 iconvert[311];
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:598:2:  [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 fconvert[311];
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:815:2:  [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 buf1[1024];
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:816:2:  [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 buf2[1024];
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:932:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf2,                "%1.1f", v0*pow(10, x));
data/libfile-rsyncp-perl-0.74/FileList/exclude.c:48:18:  [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).
        ex_len = strlen(f->exclude_path_prefix);
data/libfile-rsyncp-perl-0.74/FileList/exclude.c:145:29:  [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).
            for (p = name + strlen(name) - 1; p >= name; p--) {
data/libfile-rsyncp-perl-0.74/FileList/exclude.c:174:18:  [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).
        int l1 = strlen(name);
data/libfile-rsyncp-perl-0.74/FileList/exclude.c:175:18:  [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).
        int l2 = strlen(pattern);
data/libfile-rsyncp-perl-0.74/FileList/exclude.c:262:15:  [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).
        len = strlen((const char *)s);
data/libfile-rsyncp-perl-0.74/FileList/exclude.c:336:23:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ((ch = getc(fp)) == EOF) {
data/libfile-rsyncp-perl-0.74/FileList/exclude.c:453: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).
            len += strlen(p2);
data/libfile-rsyncp-perl-0.74/FileList/exclude.c:457: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).
        len += strlen(p2) + 1; /* Assume we'd insert a '/'. */
data/libfile-rsyncp-perl-0.74/FileList/flist.c:247: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).
    basename_len = strlen(basename) + 1; /* count the '\0' */
data/libfile-rsyncp-perl-0.74/FileList/flist.c:467:23:  [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).
    write_buf(f, buf, strlen(buf));
data/libfile-rsyncp-perl-0.74/FileList/flist.c:557: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).
    l2 = strlen(fname+l1);
data/libfile-rsyncp-perl-0.74/FileList/flist.c:628:19:  [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).
        int len = strlen(file->u.link);
data/libfile-rsyncp-perl-0.74/FileList/flist.c:732: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 len = strlen(s);
data/libfile-rsyncp-perl-0.74/FileList/flist.c:900:29:  [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(flist->files[i]->dirname));
data/libfile-rsyncp-perl-0.74/FileList/flist.c:997:19:  [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).
        int len = strlen(f->dirname);
data/libfile-rsyncp-perl-0.74/FileList/flist.c:1102: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).
        int plen = strlen(p);
data/libfile-rsyncp-perl-0.74/FileList/flist.c:1106: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).
            rlen = strlen(rootdir);
data/libfile-rsyncp-perl-0.74/FileList/snprintf.c:340: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).
					max = strlen(strvalue);

ANALYSIS SUMMARY:

Hits = 97
Lines analyzed = 5087 in approximately 0.16 seconds (31353 lines/second)
Physical Source Lines of Code (SLOC) = 3651
Hits@level = [0]  24 [1]  18 [2]  51 [3]   2 [4]  25 [5]   1
Hits@level+ = [0+] 121 [1+]  97 [2+]  79 [3+]  28 [4+]  26 [5+]   1
Hits/KSLOC@level+ = [0+] 33.1416 [1+] 26.5681 [2+] 21.6379 [3+] 7.66913 [4+] 7.12134 [5+] 0.273898
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.