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/avfs-1.1.3/src/filtprog.h
Examining data/avfs-1.1.3/src/local.c
Examining data/avfs-1.1.3/src/zstdread.c
Examining data/avfs-1.1.3/src/realfile.c
Examining data/avfs-1.1.3/src/cache.c
Examining data/avfs-1.1.3/src/sysdeps.c
Examining data/avfs-1.1.3/src/ugid.c
Examining data/avfs-1.1.3/src/prog.c
Examining data/avfs-1.1.3/src/zread.c
Examining data/avfs-1.1.3/src/parsels.c
Examining data/avfs-1.1.3/src/remote.c
Examining data/avfs-1.1.3/src/xzread.c
Examining data/avfs-1.1.3/src/archint.h
Examining data/avfs-1.1.3/src/namespace.c
Examining data/avfs-1.1.3/src/modload.c
Examining data/avfs-1.1.3/src/mod_static.h
Examining data/avfs-1.1.3/src/filebuf.c
Examining data/avfs-1.1.3/src/tmpfile.c
Examining data/avfs-1.1.3/src/exit.c
Examining data/avfs-1.1.3/src/bzread.c
Examining data/avfs-1.1.3/src/local.h
Examining data/avfs-1.1.3/src/parse.c
Examining data/avfs-1.1.3/src/filter.c
Examining data/avfs-1.1.3/src/default.c
Examining data/avfs-1.1.3/src/archive.c
Examining data/avfs-1.1.3/src/passwords.c
Examining data/avfs-1.1.3/src/state.c
Examining data/avfs-1.1.3/src/virtual.c
Examining data/avfs-1.1.3/src/oper.c
Examining data/avfs-1.1.3/src/socket.c
Examining data/avfs-1.1.3/src/runprog.c
Examining data/avfs-1.1.3/src/utils.c
Examining data/avfs-1.1.3/src/filecache.c
Examining data/avfs-1.1.3/src/alloc.c
Examining data/avfs-1.1.3/src/serialfile.c
Examining data/avfs-1.1.3/src/filtprog.c
Examining data/avfs-1.1.3/src/archutil.c
Examining data/avfs-1.1.3/src/fdops.c
Examining data/avfs-1.1.3/fuse/avfsd.c
Examining data/avfs-1.1.3/bzlib/bzlib_private.h
Examining data/avfs-1.1.3/bzlib/decompress.c
Examining data/avfs-1.1.3/bzlib/compress.c
Examining data/avfs-1.1.3/bzlib/bzlib.c
Examining data/avfs-1.1.3/bzlib/crctable.c
Examining data/avfs-1.1.3/bzlib/blocksort.c
Examining data/avfs-1.1.3/bzlib/bzlib.h
Examining data/avfs-1.1.3/bzlib/bzconf.h
Examining data/avfs-1.1.3/bzlib/huffman.c
Examining data/avfs-1.1.3/bzlib/randtable.c
Examining data/avfs-1.1.3/glassfs/redir2mount.c
Examining data/avfs-1.1.3/glassfs/glassfs.c
Examining data/avfs-1.1.3/glassfs/redir2.c
Examining data/avfs-1.1.3/modules/bz2.c
Examining data/avfs-1.1.3/modules/floppy.c
Examining data/avfs-1.1.3/modules/dav.c
Examining data/avfs-1.1.3/modules/extfs.c
Examining data/avfs-1.1.3/modules/ubzip2.c
Examining data/avfs-1.1.3/modules/uxze.c
Examining data/avfs-1.1.3/modules/utar.c
Examining data/avfs-1.1.3/modules/http.c
Examining data/avfs-1.1.3/modules/gtar.h
Examining data/avfs-1.1.3/modules/ugz.c
Examining data/avfs-1.1.3/modules/ftp.c
Examining data/avfs-1.1.3/modules/uxz.c
Examining data/avfs-1.1.3/modules/gz.c
Examining data/avfs-1.1.3/modules/volatile.c
Examining data/avfs-1.1.3/modules/dav.h
Examining data/avfs-1.1.3/modules/uzstde.c
Examining data/avfs-1.1.3/modules/dav_ls.c
Examining data/avfs-1.1.3/modules/ubz2.c
Examining data/avfs-1.1.3/modules/ugzip.c
Examining data/avfs-1.1.3/modules/uar.c
Examining data/avfs-1.1.3/modules/uz.c
Examining data/avfs-1.1.3/modules/uzip.c
Examining data/avfs-1.1.3/modules/ucftp.c
Examining data/avfs-1.1.3/modules/rsh.c
Examining data/avfs-1.1.3/modules/zipconst.h
Examining data/avfs-1.1.3/modules/uzstd.c
Examining data/avfs-1.1.3/modules/urar.c
Examining data/avfs-1.1.3/include/ugid.h
Examining data/avfs-1.1.3/include/filter.h
Examining data/avfs-1.1.3/include/exit.h
Examining data/avfs-1.1.3/include/serialfile.h
Examining data/avfs-1.1.3/include/cache.h
Examining data/avfs-1.1.3/include/archive.h
Examining data/avfs-1.1.3/include/zfile.h
Examining data/avfs-1.1.3/include/passwords.h
Examining data/avfs-1.1.3/include/oper.h
Examining data/avfs-1.1.3/include/realfile.h
Examining data/avfs-1.1.3/include/zstdfile.h
Examining data/avfs-1.1.3/include/virtual.h
Examining data/avfs-1.1.3/include/filebuf.h
Examining data/avfs-1.1.3/include/prog.h
Examining data/avfs-1.1.3/include/remote.h
Examining data/avfs-1.1.3/include/state.h
Examining data/avfs-1.1.3/include/parsels.h
Examining data/avfs-1.1.3/include/runprog.h
Examining data/avfs-1.1.3/include/xzfile.h
Examining data/avfs-1.1.3/include/socket.h
Examining data/avfs-1.1.3/include/namespace.h
Examining data/avfs-1.1.3/include/avfs.h
Examining data/avfs-1.1.3/include/filecache.h
Examining data/avfs-1.1.3/include/internal.h
Examining data/avfs-1.1.3/include/bzfile.h
Examining data/avfs-1.1.3/include/operutil.h
Examining data/avfs-1.1.3/include/tmpfile.h
Examining data/avfs-1.1.3/test/gzip_multimember_test.c
Examining data/avfs-1.1.3/test/testread.c
Examining data/avfs-1.1.3/test/runtest.c
Examining data/avfs-1.1.3/zlib/inffixed.h
Examining data/avfs-1.1.3/zlib/zutil.c
Examining data/avfs-1.1.3/zlib/crc32.c
Examining data/avfs-1.1.3/zlib/infcodes.h
Examining data/avfs-1.1.3/zlib/zutil.h
Examining data/avfs-1.1.3/zlib/adler32.c
Examining data/avfs-1.1.3/zlib/zconf.h
Examining data/avfs-1.1.3/zlib/deflate.c
Examining data/avfs-1.1.3/zlib/trees.h
Examining data/avfs-1.1.3/zlib/infblock.h
Examining data/avfs-1.1.3/zlib/infcodes.c
Examining data/avfs-1.1.3/zlib/inffast.h
Examining data/avfs-1.1.3/zlib/inflate.c
Examining data/avfs-1.1.3/zlib/inftrees.h
Examining data/avfs-1.1.3/zlib/infutil.h
Examining data/avfs-1.1.3/zlib/infblock.c
Examining data/avfs-1.1.3/zlib/infutil.c
Examining data/avfs-1.1.3/zlib/inffast.c
Examining data/avfs-1.1.3/zlib/inftrees.c
Examining data/avfs-1.1.3/zlib/deflate.h
Examining data/avfs-1.1.3/zlib/trees.c
Examining data/avfs-1.1.3/zlib/zlib.h

FINAL RESULTS:

data/avfs-1.1.3/fuse/avfsd.c:291:5:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    readlink:	avfsd_readlink,
data/avfs-1.1.3/fuse/avfsd.c:300:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod:	avfsd_chmod,
data/avfs-1.1.3/fuse/avfsd.c:301:5:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    chown:	avfsd_chown,
data/avfs-1.1.3/glassfs/glassfs.c:803:36:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	if (ninode->i_op && ninode->i_op->readlink) {
data/avfs-1.1.3/glassfs/glassfs.c:807:24:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
			err = ninode->i_op->readlink(ndentry, buf, buflen);
data/avfs-1.1.3/include/avfs.h:122:17:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    int       (*readlink)(ventry *ve, char **bufp);
data/avfs-1.1.3/src/local.c:255:16:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        return chmod(fi->path, mode);
data/avfs-1.1.3/src/local.c:274:16:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
        return chown(fi->path, uid, gid);
data/avfs-1.1.3/src/local.c:319:15:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
        res = readlink(path, buf, bufsize);
data/avfs-1.1.3/src/oper.c:447:17:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    res = avfs->readlink(ve, bufp);
data/avfs-1.1.3/bzlib/bzlib.c:1464:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(mode2, writing ? "w" : "r" );
data/avfs-1.1.3/bzlib/bzlib_private.h:73:7:  [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.
      fprintf ( stderr,   \
data/avfs-1.1.3/bzlib/bzlib_private.h:82:4:  [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.
   fprintf(stderr,zf)
data/avfs-1.1.3/bzlib/bzlib_private.h:84:4:  [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.
   fprintf(stderr,zf,za1)
data/avfs-1.1.3/bzlib/bzlib_private.h:86:4:  [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.
   fprintf(stderr,zf,za1,za2)
data/avfs-1.1.3/bzlib/bzlib_private.h:88:4:  [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.
   fprintf(stderr,zf,za1,za2,za3)
data/avfs-1.1.3/bzlib/bzlib_private.h:90:4:  [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.
   fprintf(stderr,zf,za1,za2,za3,za4)
data/avfs-1.1.3/bzlib/bzlib_private.h:92:4:  [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.
   fprintf(stderr,zf,za1,za2,za3,za4,za5)
data/avfs-1.1.3/fuse/avfsd.c:308:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    access:	avfsd_access,
data/avfs-1.1.3/include/avfs.h:121:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    int       (*access)  (ventry *ve, int amode);
data/avfs-1.1.3/include/avfs.h:307: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/avfs-1.1.3/modules/extfs.c:283:5:  [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(newelist, elist);
data/avfs-1.1.3/src/local.c:300:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    res = access(path, amode);
data/avfs-1.1.3/src/oper.c:15:45:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
static int check_file_access(vfile *vf, int access)
data/avfs-1.1.3/src/oper.c:21:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if(((vf->flags + 1) & access) == 0)
data/avfs-1.1.3/src/oper.c:357:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    res = avfs->access(ve, amode);
data/avfs-1.1.3/src/oper.c:432: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(s, l);
data/avfs-1.1.3/src/prog.c:61:9:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execvp(pi->prog[0], (char **) pi->prog);
data/avfs-1.1.3/src/sysdeps.c:160:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buf, "%02i/%02i %02i:%02i:%02i avfs[%lu]: %s\n", 
data/avfs-1.1.3/src/sysdeps.c:204: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.
    vsnprintf(buf, LOGMSG_SIZE, format, ap);
data/avfs-1.1.3/src/tmpfile.c:99:5:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
    mktemp(path);
data/avfs-1.1.3/src/utils.c:71: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(pp, exts[i].from);
data/avfs-1.1.3/src/utils.c:75:13:  [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(pp, exts[i].to);
data/avfs-1.1.3/src/utils.c:186:5:  [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(ns, s);
data/avfs-1.1.3/src/utils.c:228: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(ns, s);
data/avfs-1.1.3/test/runtest.c:83:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(newpath, "%s.%s", path, tg->name);
data/avfs-1.1.3/test/runtest.c:135:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(newname, "%s/%s", file, name);
data/avfs-1.1.3/test/runtest.c:155:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fullname, "%s/%s", TESTDIR, name);
data/avfs-1.1.3/zlib/zutil.h:195: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/avfs-1.1.3/zlib/zutil.h:196: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/avfs-1.1.3/zlib/zutil.h:197: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/avfs-1.1.3/zlib/zutil.h:198: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/avfs-1.1.3/zlib/zutil.h:199: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/avfs-1.1.3/modules/http.c:664:16:  [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.
    proxyenv = getenv("http_proxy");
data/avfs-1.1.3/src/sysdeps.c:98: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.
    logenv = getenv("AVFS_DEBUG");
data/avfs-1.1.3/src/sysdeps.c:105:15:  [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.
    logfile = getenv("AVFS_LOGFILE");
data/avfs-1.1.3/test/runtest.c:262:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(1);
data/avfs-1.1.3/bzlib/bzlib.c:1437:4:  [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   unused[BZ_MAX_UNUSED];
data/avfs-1.1.3/bzlib/bzlib.c:1440:4:  [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   mode2[10]     = "";
data/avfs-1.1.3/bzlib/bzlib.c:1472: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(path,mode2);
data/avfs-1.1.3/fuse/avfsd.c:304:5:  [2] (misc) open:
  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).
    open:	avfsd_open,
data/avfs-1.1.3/glassfs/glassfs.c:233: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(end, " (deleted)", 10);
data/avfs-1.1.3/glassfs/glassfs.c:266: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(end, dentry->d_name.name, namelen);
data/avfs-1.1.3/glassfs/glassfs.c:280: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(retval, dentry->d_name.name, namelen);
data/avfs-1.1.3/glassfs/glassfs.c:306:4:  [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(path + pathlen + 1, dentry->d_name.name,
data/avfs-1.1.3/glassfs/glassfs.c:310:4:  [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(path, OVERLAY_DIR, OVERLAY_DIR_LEN);
data/avfs-1.1.3/glassfs/redir2.c:96: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(end, dentry->d_name.name, namelen);
data/avfs-1.1.3/glassfs/redir2.c:110: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(retval, dentry->d_name.name, namelen);
data/avfs-1.1.3/glassfs/redir2.c:225:4:  [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(path, OVERLAY_DIR, OVERLAY_DIR_LEN);
data/avfs-1.1.3/glassfs/redir2.c:402: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 buf[32];
data/avfs-1.1.3/glassfs/redir2mount.c:16:10:  [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("/proc/fs/redir2/mount_pid", "w");
data/avfs-1.1.3/include/archive.h:22:11:  [2] (misc) open:
  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).
    int (*open) (ventry *ve, struct archfile *fil);
data/avfs-1.1.3/include/avfs.h:131:17:  [2] (misc) open:
  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).
    int       (*open)    (ventry *ve, int flags, avmode_t mode, void **retp);
data/avfs-1.1.3/include/avfs.h:331:33:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
void       av_del_tmpfile(char *tmpfile);
data/avfs-1.1.3/modules/bz2.c:19:11:  [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.
    const char *ubz2_args[3];
data/avfs-1.1.3/modules/bz2.c:20:11:  [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.
    const char *bz2_args[2];
data/avfs-1.1.3/modules/dav.c:38: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 AV_UserAgent[128];
data/avfs-1.1.3/modules/dav.c:42:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char *tmpfile;
data/avfs-1.1.3/modules/dav.c:330:14:  [2] (misc) open:
  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).
    lf->fd = open (lf->tmpfile, O_WRONLY|O_CREAT|O_TRUNC|O_APPEND, 0700);
data/avfs-1.1.3/modules/dav.c:330:24:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    lf->fd = open (lf->tmpfile, O_WRONLY|O_CREAT|O_TRUNC|O_APPEND, 0700);
data/avfs-1.1.3/modules/dav.c:332:69:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        av_log(AVLOG_ERROR, "DAV: failed to write to '%s': %s", lf->tmpfile,
data/avfs-1.1.3/modules/dav.c:537: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 urlbuf[512];
data/avfs-1.1.3/modules/dav.c:605: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 urlbuf[512];
data/avfs-1.1.3/modules/dav.c:608:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char *tmpfile;
data/avfs-1.1.3/modules/dav.c:610:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    res = av_get_tmpfile(&tmpfile);
data/avfs-1.1.3/modules/dav.c:622:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    lf->tmpfile = tmpfile;
data/avfs-1.1.3/modules/dav.c:629:28:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        av_del_tmpfile(lf->tmpfile);
data/avfs-1.1.3/modules/dav.c:635:25:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    gp->localname = lf->tmpfile;
data/avfs-1.1.3/modules/extfs.c:40:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char *tmpfile;
data/avfs-1.1.3/modules/extfs.c:50:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if( cent->tmpfile != NULL ) {
data/avfs-1.1.3/modules/extfs.c:51:30:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        av_del_tmpfile(cent->tmpfile);
data/avfs-1.1.3/modules/extfs.c:175:11:  [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.
    const char *prog[4];
data/avfs-1.1.3/modules/extfs.c:225:39:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                          const char *tmpfile)
data/avfs-1.1.3/modules/extfs.c:231:11:  [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.
    const char *prog[6];
data/avfs-1.1.3/modules/extfs.c:254:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    prog[4] = tmpfile;
data/avfs-1.1.3/modules/extfs.c:334:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        char *tmpfile;
data/avfs-1.1.3/modules/extfs.c:338:31:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        res = av_get_tmpfile(&tmpfile);
data/avfs-1.1.3/modules/extfs.c:344:32:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	res = get_extfs_file(ve, fil, tmpfile);
data/avfs-1.1.3/modules/extfs.c:347:21:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	    av_del_tmpfile(tmpfile);
data/avfs-1.1.3/modules/extfs.c:354:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	cent->tmpfile = tmpfile;
data/avfs-1.1.3/modules/extfs.c:360:38:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        tmpsize = av_tmpfile_blksize(tmpfile);
data/avfs-1.1.3/modules/extfs.c:368:10:  [2] (misc) open:
  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).
    fd = open(cent->tmpfile, O_RDONLY);
data/avfs-1.1.3/modules/extfs.c:368:21:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    fd = open(cent->tmpfile, O_RDONLY);
data/avfs-1.1.3/modules/extfs.c:371:67:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        av_log(AVLOG_ERROR, "EXTFS: Could not open %s: %s", cent->tmpfile,
data/avfs-1.1.3/modules/extfs.c:464:10:  [2] (misc) open:
  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).
    fd = open(extfs_conf, O_RDONLY);
data/avfs-1.1.3/modules/floppy.c:18:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char *tmpfile;
data/avfs-1.1.3/modules/floppy.c:138: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 shortname[32];
data/avfs-1.1.3/modules/floppy.c:265: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 drive[2];
data/avfs-1.1.3/modules/floppy.c:288:11:  [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.
    const char *prog[4];
data/avfs-1.1.3/modules/floppy.c:323:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char *tmpfile;
data/avfs-1.1.3/modules/floppy.c:324:11:  [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.
    const char *prog[4];
data/avfs-1.1.3/modules/floppy.c:331:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    res = av_get_tmpfile(&tmpfile);
data/avfs-1.1.3/modules/floppy.c:339:9:  [2] (misc) open:
  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).
        open(tmpfile, O_WRONLY | O_CREAT | O_TRUNC, 0600);
data/avfs-1.1.3/modules/floppy.c:339:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        open(tmpfile, O_WRONLY | O_CREAT | O_TRUNC, 0600);
data/avfs-1.1.3/modules/floppy.c:341:25:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        gp->localname = tmpfile;
data/avfs-1.1.3/modules/floppy.c:347:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    lf->tmpfile = tmpfile;
data/avfs-1.1.3/modules/floppy.c:351:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    prog[2] = lf->tmpfile;
data/avfs-1.1.3/modules/floppy.c:358:24:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        av_del_tmpfile(tmpfile);
data/avfs-1.1.3/modules/floppy.c:365:25:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    gp->localname = lf->tmpfile;
data/avfs-1.1.3/modules/floppy.c:383:24:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        res = stat(lf->tmpfile, &stbuf);
data/avfs-1.1.3/modules/ftp.c:69:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char *tmpfile;
data/avfs-1.1.3/modules/ftp.c:203: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 replystr[4];
data/avfs-1.1.3/modules/ftp.c:292:36:  [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 int ftp_get_addrbytes(const char *line, int addrbytes[6])
data/avfs-1.1.3/modules/ftp.c:333: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 addrbuf[128];
data/avfs-1.1.3/modules/ftp.c:364:5:  [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(addrbuf, "%i.%i.%i.%i:%i", 
data/avfs-1.1.3/modules/ftp.c:795:31:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    res = av_get_tmpfile(&lf->tmpfile);
data/avfs-1.1.3/modules/ftp.c:799:14:  [2] (misc) open:
  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).
    lf->fd = open(lf->tmpfile, O_RDWR | O_CREAT | O_TRUNC | O_APPEND, 0600);
data/avfs-1.1.3/modules/ftp.c:799:23:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    lf->fd = open(lf->tmpfile, O_RDWR | O_CREAT | O_TRUNC | O_APPEND, 0600);
data/avfs-1.1.3/modules/ftp.c:849:28:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        av_del_tmpfile(lf->tmpfile);
data/avfs-1.1.3/modules/ftp.c:856:25:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    gp->localname = lf->tmpfile;
data/avfs-1.1.3/modules/ftp.c:914: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 buf[READBUF];
data/avfs-1.1.3/modules/gtar.h:39:3:  [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 name[100];		/*   0 */
data/avfs-1.1.3/modules/gtar.h:40:3:  [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 mode[8];			/* 100 */
data/avfs-1.1.3/modules/gtar.h:41:3:  [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 uid[8];			/* 108 */
data/avfs-1.1.3/modules/gtar.h:42:3:  [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 gid[8];			/* 116 */
data/avfs-1.1.3/modules/gtar.h:43:3:  [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 size[12];		/* 124 */
data/avfs-1.1.3/modules/gtar.h:44:3:  [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 mtime[12];		/* 136 */
data/avfs-1.1.3/modules/gtar.h:45:3:  [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 chksum[8];		/* 148 */
data/avfs-1.1.3/modules/gtar.h:47:3:  [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 linkname[100];		/* 157 */
data/avfs-1.1.3/modules/gtar.h:48:3:  [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 magic[6];		/* 257 */
data/avfs-1.1.3/modules/gtar.h:49:3:  [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 version[2];		/* 263 */
data/avfs-1.1.3/modules/gtar.h:50:3:  [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 uname[32];		/* 265 */
data/avfs-1.1.3/modules/gtar.h:51:3:  [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 gname[32];		/* 297 */
data/avfs-1.1.3/modules/gtar.h:52:3:  [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 devmajor[8];		/* 329 */
data/avfs-1.1.3/modules/gtar.h:53:3:  [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 devminor[8];		/* 337 */
data/avfs-1.1.3/modules/gtar.h:54:3:  [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 prefix[155];		/* 345 */
data/avfs-1.1.3/modules/gtar.h:115:3:  [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 offset[12];		/*   0 */
data/avfs-1.1.3/modules/gtar.h:116:3:  [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 numbytes[12];		/*  12 */
data/avfs-1.1.3/modules/gtar.h:141:3:  [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 atime[12];		/*   0 */
data/avfs-1.1.3/modules/gtar.h:142:3:  [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 ctime[12];		/*  12 */
data/avfs-1.1.3/modules/gtar.h:143:3:  [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 offset[12];		/*  24 */
data/avfs-1.1.3/modules/gtar.h:144:3:  [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 realsize[12];		/*  36 */
data/avfs-1.1.3/modules/gtar.h:145:3:  [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 longnames[4];		/*  48 */
data/avfs-1.1.3/modules/gtar.h:146:3:  [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 unused_pad1[68];		/*  52 */
data/avfs-1.1.3/modules/gtar.h:176:3:  [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 unused_pad1[345];	/*   0 */
data/avfs-1.1.3/modules/gtar.h:177:3:  [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 atime[12];		/* 345 */
data/avfs-1.1.3/modules/gtar.h:178:3:  [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 ctime[12];		/* 357 */
data/avfs-1.1.3/modules/gtar.h:179:3:  [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 offset[12];		/* 369 */
data/avfs-1.1.3/modules/gtar.h:180:3:  [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 longnames[4];		/* 381 */
data/avfs-1.1.3/modules/gtar.h:185:3:  [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 realsize[12];		/* 483 */
data/avfs-1.1.3/modules/gtar.h:238:3:  [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 buffer[BLOCKSIZE];
data/avfs-1.1.3/modules/gz.c:19:11:  [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.
    const char *ugz_args[3];
data/avfs-1.1.3/modules/gz.c:20:11:  [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.
    const char *gz_args[2];
data/avfs-1.1.3/modules/rsh.c:21:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char *tmpfile;
data/avfs-1.1.3/modules/rsh.c:160:11:  [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.
    const char *prog[8];
data/avfs-1.1.3/modules/rsh.c:217:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char *tmpfile;
data/avfs-1.1.3/modules/rsh.c:220:11:  [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.
    const char *prog[4];
data/avfs-1.1.3/modules/rsh.c:221: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 progname[4];
data/avfs-1.1.3/modules/rsh.c:223:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(progname, "rcp");
data/avfs-1.1.3/modules/rsh.c:226:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    res = av_get_tmpfile(&tmpfile);
data/avfs-1.1.3/modules/rsh.c:237:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    lf->tmpfile = tmpfile;
data/avfs-1.1.3/modules/rsh.c:241:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    prog[2] = lf->tmpfile;
data/avfs-1.1.3/modules/rsh.c:248:24:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        av_del_tmpfile(tmpfile);
data/avfs-1.1.3/modules/rsh.c:255:25:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    gp->localname = lf->tmpfile;
data/avfs-1.1.3/modules/rsh.c:273:24:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        res = stat(lf->tmpfile, &stbuf);
data/avfs-1.1.3/modules/uar.c:20: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 name[16];
data/avfs-1.1.3/modules/uar.c:21: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 date[12];
data/avfs-1.1.3/modules/uar.c:22: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 uid[6];
data/avfs-1.1.3/modules/uar.c:23: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 gid[6];
data/avfs-1.1.3/modules/uar.c:24: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 mode[8];
data/avfs-1.1.3/modules/uar.c:25: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 size[10];
data/avfs-1.1.3/modules/uar.c:26: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 endmagic[2];
data/avfs-1.1.3/modules/uar.c:285: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 magic[ARMAGICLEN];
data/avfs-1.1.3/modules/ubzip2.c:19:11:  [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.
    const char *ubz2_args[3];
data/avfs-1.1.3/modules/ubzip2.c:20:11:  [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.
    const char *bz2_args[2];
data/avfs-1.1.3/modules/ucftp.c:102: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 *ucftp_op_cmd[3] = { "DELE ", "MKD ", "RMD " };
data/avfs-1.1.3/modules/ucftp.c:161: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.
static int ucftp_get_addrbytes(const char *line, int addrbytes[6])
data/avfs-1.1.3/modules/ucftp.c:687: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 replystr[4];
data/avfs-1.1.3/modules/ucftp.c:894: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 addrbuf[128];
data/avfs-1.1.3/modules/ucftp.c:925:5:  [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(addrbuf, "%i.%i.%i.%i:%i", 
data/avfs-1.1.3/modules/ugz.c:37: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[GZBUFSIZE];
data/avfs-1.1.3/modules/ugz.c:113: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[GZHEADER_SIZE];
data/avfs-1.1.3/modules/ugzip.c:19:11:  [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.
    const char *ugz_args[3];
data/avfs-1.1.3/modules/ugzip.c:20:11:  [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.
    const char *gz_args[2];
data/avfs-1.1.3/modules/urar.c:166:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char *tmpfile;
data/avfs-1.1.3/modules/urar.c:1057:11:  [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.
    const char *prog[7];
data/avfs-1.1.3/modules/urar.c:1077:19:  [2] (misc) open:
  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).
        pri.ifd = open("/dev/null", O_RDWR);
data/avfs-1.1.3/modules/urar.c:1099:19:  [2] (misc) open:
  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).
        pri.ifd = open("/dev/null", O_RDWR);
data/avfs-1.1.3/modules/urar.c:1124:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char *tmpfile;
data/avfs-1.1.3/modules/urar.c:1127:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    res = av_get_tmpfile(&tmpfile);
data/avfs-1.1.3/modules/urar.c:1131:10:  [2] (misc) open:
  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).
    fd = open(tmpfile, O_RDWR | O_CREAT | O_TRUNC, 0644);
data/avfs-1.1.3/modules/urar.c:1131:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    fd = open(tmpfile, O_RDWR | O_CREAT | O_TRUNC, 0644);
data/avfs-1.1.3/modules/urar.c:1134:59:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        av_log(AVLOG_ERROR, "RAR: Could not open %s: %s", tmpfile,
data/avfs-1.1.3/modules/urar.c:1136:24:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        av_del_tmpfile(tmpfile);
data/avfs-1.1.3/modules/urar.c:1143:24:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        av_del_tmpfile(tmpfile);
data/avfs-1.1.3/modules/urar.c:1148:21:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    rfil->tmpfile = tmpfile;
data/avfs-1.1.3/modules/urar.c:1183:30:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        av_del_tmpfile(rfil->tmpfile);
data/avfs-1.1.3/modules/utar.c:54: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 uname[UNAME_FIELD_SIZE];
data/avfs-1.1.3/modules/utar.c:55: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 gname[UNAME_FIELD_SIZE];
data/avfs-1.1.3/modules/utar.c:373:25:  [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, data_block.buffer, (avsize_t) written);
data/avfs-1.1.3/modules/utar.c:456: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 ugname[UNAME_FIELD_SIZE+1];
data/avfs-1.1.3/modules/utar.c:764: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 buf[COPYBUFSIZE];
data/avfs-1.1.3/modules/utar.c:861: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 ugname[AV_TUNMLEN];
data/avfs-1.1.3/modules/utar.c:963:17:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        if(ino->tmpfile != NULL) {
data/avfs-1.1.3/modules/utar.c:967:41:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            f.fh = av_localopen(v, ino->tmpfile, AVO_RDONLY, 0);
data/avfs-1.1.3/modules/utar.c:1126: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 buf[COPYBUFSIZE];
data/avfs-1.1.3/modules/utar.c:1133:31:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    fd = av_localopen(v, ino->tmpfile, AVO_RDWR | AVO_CREAT | AVO_EXCL,
data/avfs-1.1.3/modules/utar.c:1167:25:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    av_del_tmpfile(ino->tmpfile);
data/avfs-1.1.3/modules/uxze.c:20:11:  [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.
    const char *uxze_args[3];
data/avfs-1.1.3/modules/uxze.c:21:11:  [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.
    const char *xze_args[2];
data/avfs-1.1.3/modules/uz.c:19:11:  [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.
    const char *uz_args[3];
data/avfs-1.1.3/modules/uzip.c:179: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 buf[BUFSIZE+3];
data/avfs-1.1.3/modules/uzip.c:364: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 buf[4];
data/avfs-1.1.3/modules/uzip.c:386:21:  [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 buf8[8];
data/avfs-1.1.3/modules/uzip.c:414:21:  [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 buf8[8];
data/avfs-1.1.3/modules/uzip.c:441:21:  [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 buf8[8];
data/avfs-1.1.3/modules/uzip.c:468: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 buf[CDIRENT_SIZE];
data/avfs-1.1.3/modules/uzip.c:525: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 buf[Z64_ECD_SIZE];
data/avfs-1.1.3/modules/uzip.c:556: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 buf[Z64_ECDL_SIZE];
data/avfs-1.1.3/modules/uzip.c:740: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 buf[LDIRENT_SIZE];
data/avfs-1.1.3/modules/uzstde.c:20:11:  [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.
    const char *uzstde_args[4];
data/avfs-1.1.3/modules/uzstde.c:21:11:  [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.
    const char *zstde_args[3];
data/avfs-1.1.3/modules/volatile.c:436: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(buf, nod->content + vf->ptr, nact);
data/avfs-1.1.3/modules/volatile.c:458: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(nod->content + vf->ptr, buf, nbyte);
data/avfs-1.1.3/src/archive.c:377:24:  [2] (misc) open:
  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).
    if(realopen && ap->open != NULL) {
data/avfs-1.1.3/src/archive.c:378:19:  [2] (misc) open:
  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).
        res = ap->open(ve, fil);
data/avfs-1.1.3/src/bzread.c:56: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 inbuf[INBUFSIZE];
data/avfs-1.1.3/src/bzread.c:321: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 outbuf[OUTBUFSIZE];
data/avfs-1.1.3/src/cache.c:75: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 buf[64];
data/avfs-1.1.3/src/cache.c:80:5:  [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(buf, "%llu\n", *offp);
data/avfs-1.1.3/src/filebuf.c:147: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(buf, fb->buf + fb->ptr, nact);
data/avfs-1.1.3/src/filtprog.c:30: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 cbuf[cbufsize];
data/avfs-1.1.3/src/local.c:60:18:  [2] (misc) open:
  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).
            fd = open(path, avoflags_to_oflags(flags), mode);
data/avfs-1.1.3/src/oper.c:47:17:  [2] (misc) open:
  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).
    res = avfs->open(ve, flags, (mode & 07777), &vf->data);
data/avfs-1.1.3/src/oper.c:429:9:  [2] (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). Risk is low because the source is a constant string.
        strcpy(s, "../");
data/avfs-1.1.3/src/parse.c:52: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 buf[256];
data/avfs-1.1.3/src/parse.c:54:5:  [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(buf, 
data/avfs-1.1.3/src/parse.c:69: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 buf[128];
data/avfs-1.1.3/src/parse.c:80:2:  [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(buf, "%2d.%d.%d\t", (ver / 100) % 100, (ver / 10) % 10,
data/avfs-1.1.3/src/parse.c:106: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 buf[128];
data/avfs-1.1.3/src/parse.c:111:5:  [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(buf, "%i.%i.%i", AV_VER / 100, (AV_VER / 10) % 10, AV_VER % 10);
data/avfs-1.1.3/src/parse.c:131: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 buf[32];
data/avfs-1.1.3/src/parse.c:134:5:  [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(buf, "%d\n", symlink_rewrite);
data/avfs-1.1.3/src/parsels.c:31: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 *cols[MAXCOLS];
data/avfs-1.1.3/src/parsels.c:336:29:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            tim.day = (int) atol (INC_COL(col));
data/avfs-1.1.3/src/parsels.c:501:20:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    stbuf->nlink = atol (INC_COL(col));
data/avfs-1.1.3/src/parsels.c:512:30:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        stbuf->uid = (uid_t) atol (CURR_COL(col));
data/avfs-1.1.3/src/parsels.c:539:34:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            stbuf->gid = (gid_t) atol (INC_COL(col));
data/avfs-1.1.3/src/parsels.c:565:33:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        stbuf->size = (avoff_t) atol (INC_COL(col));
data/avfs-1.1.3/src/realfile.c:22: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 buf[COPY_BUFSIZE];
data/avfs-1.1.3/src/realfile.c:31:14:  [2] (misc) open:
  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).
    destfd = open(destpath, O_WRONLY | O_CREAT | O_TRUNC, 0600);
data/avfs-1.1.3/src/remote.c:824:10:  [2] (misc) open:
  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).
    fd = open(fil->localname, O_RDONLY);
data/avfs-1.1.3/src/runprog.c:82:19:  [2] (misc) open:
  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).
    pr->pri.ifd = open("/dev/null", O_RDONLY);
data/avfs-1.1.3/src/serialfile.c:93:15:  [2] (misc) open:
  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).
    fil->fd = open(fil->localfile, openfl, 0600);
data/avfs-1.1.3/src/serialfile.c:201: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 tmpbuf[tmpbufsize];
data/avfs-1.1.3/src/serialfile.c:421: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 tmpbuf[tmpbufsize];
data/avfs-1.1.3/src/socket.c:39: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(&sn.sin_addr, host->h_addr_list[0], host->h_length);
data/avfs-1.1.3/src/state.c:197: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(buf, sf->contents + vf->ptr, nact);
data/avfs-1.1.3/src/state.c:220: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(sf->contents + vf->ptr, buf, nbyte);
data/avfs-1.1.3/src/sysdeps.c:44: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 buf[32];
data/avfs-1.1.3/src/sysdeps.c:47:5:  [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(buf, "%02o\n", logmask);
data/avfs-1.1.3/src/sysdeps.c:77:21:  [2] (misc) open:
  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).
            logfd = open(logfile, O_WRONLY | O_APPEND | O_CREAT, 0600);
data/avfs-1.1.3/src/sysdeps.c:154: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 buf[LOGMSG_SIZE + 128];
data/avfs-1.1.3/src/sysdeps.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 buf[LOGMSG_SIZE+1];
data/avfs-1.1.3/src/tmpfile.c:117: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 buf[64];
data/avfs-1.1.3/src/tmpfile.c:134:2:  [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(buf, "/atmp%06i", tmpdir->ctr++);
data/avfs-1.1.3/src/virtual.c:207: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 _trail[NAME_MAX + 1];
data/avfs-1.1.3/src/xzread.c:49: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 inbuf[INBUFSIZE];
data/avfs-1.1.3/src/zread.c:73: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 inbuf[INBUFSIZE];
data/avfs-1.1.3/src/zread.c:254:10:  [2] (misc) open:
  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).
    fd = open(zc->indexfile, O_WRONLY | O_CREAT, 0600);
data/avfs-1.1.3/src/zread.c:321:10:  [2] (misc) open:
  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).
    fd = open(zc->indexfile, O_RDONLY, 0);
data/avfs-1.1.3/src/zread.c:646: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 outbuf[OUTBUFSIZE];
data/avfs-1.1.3/src/zstdread.c:42: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 inbuf[INBUFSIZE];
data/avfs-1.1.3/test/gzip_multimember_test.c:15: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 buf[128*1024];
data/avfs-1.1.3/test/runtest.c:34: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 data[TESTFILESIZE];
data/avfs-1.1.3/test/runtest.c:216: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 buf[TESTFILESIZE / 2];
data/avfs-1.1.3/test/testread.c:19: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 buf[128*1024];
data/avfs-1.1.3/zlib/infblock.c:465: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(buf + at, &scpy, sizeof(struct inflate_blocks_state));
data/avfs-1.1.3/zlib/infblock.c:472: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(buf + at, s->sub.trees.blens, t * sizeof(uInt));
data/avfs-1.1.3/zlib/infblock.c:476: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(buf + at, s->hufts, sizeof(inflate_huft) * MANY);
data/avfs-1.1.3/zlib/infblock.c:479: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(buf + at, s->window, w);
data/avfs-1.1.3/zlib/infblock.c:505: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(s, buf, sizeof(struct inflate_blocks_state));
data/avfs-1.1.3/zlib/infblock.c:533: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(s->sub.trees.blens, buf, t * sizeof(uInt));
data/avfs-1.1.3/zlib/infblock.c:542: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(s->hufts, buf, sizeof(inflate_huft) * MANY);
data/avfs-1.1.3/zlib/infblock.c:545: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(s->window, buf, w);
data/avfs-1.1.3/zlib/infcodes.c:294: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(buf + at, &ccpy, sizeof(struct inflate_codes_state));
data/avfs-1.1.3/zlib/infcodes.c:315: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(c, buf, sizeof(struct inflate_codes_state));
data/avfs-1.1.3/zlib/inflate.c:392: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(buf + at, &zcpy, sizeof(z_stream));
data/avfs-1.1.3/zlib/inflate.c:396: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(buf + at, &statecpy, sizeof(struct internal_state));
data/avfs-1.1.3/zlib/inflate.c:418: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(&zcpy, buf, sizeof(z_stream));
data/avfs-1.1.3/zlib/inflate.c:441: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(z->state, buf, sizeof(struct internal_state));
data/avfs-1.1.3/zlib/trees.c:333: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/avfs-1.1.3/zlib/zutil.c:16: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.
const char *z_errmsg[10] = {
data/avfs-1.1.3/zlib/zutil.h: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.
extern const char *z_errmsg[10]; /* indexed by 2-zlib_error */
data/avfs-1.1.3/zlib/zutil.h:102: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/avfs-1.1.3/zlib/zutil.h:148: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/avfs-1.1.3/zlib/zutil.h:179: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/avfs-1.1.3/bzlib/bzlib.c:955:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   Int32 c = fgetc ( f );
data/avfs-1.1.3/bzlib/bzlib.c:1465:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
   strcat(mode2,"b");   /* binary mode */
data/avfs-1.1.3/fuse/avfsd.c:305:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read:	avfsd_read,
data/avfs-1.1.3/glassfs/glassfs.c:304: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).
			unsigned int pathlen = strlen(path);
data/avfs-1.1.3/include/archive.h:24:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    avssize_t (*read)  (vfile *vf, char *buf, avsize_t nbyte);
data/avfs-1.1.3/include/avfs.h:133:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    avssize_t (*read)    (vfile *vf, char *buf, avsize_t nbyte);
data/avfs-1.1.3/include/serialfile.h:15:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    avssize_t (*read)     (void *data, char *buf, avsize_t nbyte);
data/avfs-1.1.3/modules/dav.c:142:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(username, pass->username, NE_ABUFSIZ - 1);
data/avfs-1.1.3/modules/dav.c:143:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(password, pass->password, NE_ABUFSIZ - 1);
data/avfs-1.1.3/modules/dav.c:486:13:  [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).
  pathlen = strlen (conn->uri.path);
data/avfs-1.1.3/modules/dav.c:505:30:  [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).
      endchar = shortname + (strlen(shortname)-1);
data/avfs-1.1.3/modules/extfs.c:280:48:  [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).
    exts = av_malloc((n + 1) * sizeof(*exts) + strlen(elist) + 1);
data/avfs-1.1.3/modules/extfs.c:308:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    res = read(efil->fd, buf, nbyte);
data/avfs-1.1.3/modules/extfs.c:416:11:  [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).
    end = strlen(name) - 1;
data/avfs-1.1.3/modules/extfs.c:483: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).
            c = line + strlen(line) - 1;
data/avfs-1.1.3/modules/floppy.c:39: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).
    unsigned int i = strlen(buf);
data/avfs-1.1.3/modules/floppy.c:154:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(shortname, buf, namelen);
data/avfs-1.1.3/modules/floppy.c:167:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(shortname+namelen, buf+9, extlen);
data/avfs-1.1.3/modules/floppy.c:271: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).
        if(strlen(hp->host) != 1)
data/avfs-1.1.3/modules/ftp.c:127: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).
    avsize_t len = strlen(line);
data/avfs-1.1.3/modules/ftp.c:183: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).
    if(strlen(line) < 4 || !isdigit((int) line[0]) ||
data/avfs-1.1.3/modules/ftp.c:224:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(replystr, line, 3);
data/avfs-1.1.3/modules/ftp.c:272:42:  [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).
    res = write_socket(conn->sock, line, strlen(line));
data/avfs-1.1.3/modules/ftp.c:973:11:  [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(fts->password);
data/avfs-1.1.3/modules/http.c:64: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).
    avsize_t len = strlen(line);
data/avfs-1.1.3/modules/http.c:319:35:  [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).
    res = write_socket(sock, req, strlen(req));
data/avfs-1.1.3/modules/http.c:461:26:  [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).
    if(strncmp(str, beg, strlen(beg)) == 0)
data/avfs-1.1.3/modules/http.c:643:11:  [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(s);
data/avfs-1.1.3/modules/rsh.c:80:40:  [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).
    char *newname = (char *) av_malloc(strlen(name) * 2 + 1);
data/avfs-1.1.3/modules/rsh.c:115:9:  [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).
    if (strlen(username) > 32) {
data/avfs-1.1.3/modules/rsh.c:137:9:  [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).
    if (strlen(host) > 255) {
data/avfs-1.1.3/modules/ucftp.c:135: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).
    avsize_t len = strlen(line);
data/avfs-1.1.3/modules/ucftp.c:667: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).
    if(strlen(line) < 4 || !isdigit((int) line[0]) ||
data/avfs-1.1.3/modules/ucftp.c:708:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(replystr, line, 3);
data/avfs-1.1.3/modules/ucftp.c:739:42:  [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).
    res = write_socket(conn->sock, line, strlen(line));
data/avfs-1.1.3/modules/ucftp.c:2153:11:  [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(fts->password);
data/avfs-1.1.3/modules/urar.c:1202:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    res = read(rfil->fd, buf, nbyte);
data/avfs-1.1.3/modules/utar.c:527:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ugname, header->header.uname, UNAME_FIELD_SIZE);
data/avfs-1.1.3/modules/utar.c:531:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ugname, header->header.gname, UNAME_FIELD_SIZE);
data/avfs-1.1.3/modules/utar.c:638:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tn->uname, header->header.uname, UNAME_FIELD_SIZE);
data/avfs-1.1.3/modules/utar.c:639:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tn->gname, header->header.gname, UNAME_FIELD_SIZE);
data/avfs-1.1.3/modules/utar.c:644: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).
        nod->st.size = strlen(nod->linkname);
data/avfs-1.1.3/modules/utar.c:685:46:  [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).
    if(AV_ISREG(tarstat->mode) && tinf->name[strlen(tinf->name)-1] == '/') 
data/avfs-1.1.3/modules/uzip.c:281: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).
    if(path[0] && path[strlen(path)-1] == '/')
data/avfs-1.1.3/modules/volatile.c:791:26:  [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).
    ent->node->st.size = strlen(path);
data/avfs-1.1.3/src/archive.c:459:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	res =  ap->read(vf, buf, nbyte);
data/avfs-1.1.3/src/cache.c:67: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).
    if(strlen(val) > 0)
data/avfs-1.1.3/src/filebuf.c:131:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    res = read(fb->fd, buf, nbytes);
data/avfs-1.1.3/src/local.c:108:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    res = read(fi->fd, buf, nbyte);
data/avfs-1.1.3/src/namespace.c:148:13:  [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(ent->name));
data/avfs-1.1.3/src/namespace.c:218:30:  [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).
	if(ent->parent == parent && strlen(ent->name) == namelen &&
data/avfs-1.1.3/src/namespace.c:263:43:  [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).
        ent = lookup_name(ns, prev, name, strlen(name));
data/avfs-1.1.3/src/oper.c:85:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        res = avfs->read(vf, buf, nbyte);
data/avfs-1.1.3/src/oper.c:107:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            res = avfs->read(vf, buf, nbyte);
data/avfs-1.1.3/src/oper.c:423:36:  [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).
    newlink = malloc(dotdots * 3 + strlen(l) + 2);
data/avfs-1.1.3/src/oper.c:434:9:  [1] (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). Risk is low because the source is a constant character.
        strcpy(s, ".");
data/avfs-1.1.3/src/parse.c:145: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).
    if(strlen(val) < 2)
data/avfs-1.1.3/src/parse.c:390:31:  [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).
    unsigned int prevseglen = strlen(prevseg);
data/avfs-1.1.3/src/parse.c:393:31:  [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).
        unsigned int extlen = strlen(exts[ei].from);
data/avfs-1.1.3/src/parse.c:425: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).
    unsigned int extlen = strlen(ext->from);
data/avfs-1.1.3/src/parse.c:426:31:  [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).
    unsigned int prevseglen = strlen(ps->prevseg);
data/avfs-1.1.3/src/parsels.c:113:11:  [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 (str);
data/avfs-1.1.3/src/parsels.c:133:11:  [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 (str);
data/avfs-1.1.3/src/parsels.c:193:9:  [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).
    if (strlen(str)!=4)
data/avfs-1.1.3/src/parsels.c:474:13:  [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).
        if (strlen (line) <= 8 || line [8] != ']')
data/avfs-1.1.3/src/parsels.c:613:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(s, line + col->cptr[col->idx], len);
data/avfs-1.1.3/src/parsels.c:618:13:  [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).
        p = strlen (s);
data/avfs-1.1.3/src/parsels.c:631:13:  [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).
        p = strlen (s);
data/avfs-1.1.3/src/passwords.c:144:11:  [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(fts->username);
data/avfs-1.1.3/src/passwords.c:173:11:  [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(fts->password);
data/avfs-1.1.3/src/remote.c:832:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	res = read(fd, buf, nbyte);
data/avfs-1.1.3/src/serialfile.c:131:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        res = fil->func->read(fil->conndata, buf, nbyte);
data/avfs-1.1.3/src/state.c:190: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).
    size = strlen(sf->contents);
data/avfs-1.1.3/src/state.c:210: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).
    size = strlen(sf->contents);
data/avfs-1.1.3/src/state.c:233: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).
    size = strlen(sf->contents);
data/avfs-1.1.3/src/state.c:325:21:  [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).
        buf->size = strlen(sf->contents);
data/avfs-1.1.3/src/sysdeps.c:132:11:  [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(s);
data/avfs-1.1.3/src/sysdeps.c:164: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).
        write(logfd, buf, strlen(buf));
data/avfs-1.1.3/src/sysdeps.c:206:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, format, LOGMSG_SIZE);
data/avfs-1.1.3/src/utils.c:61:17:  [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(exts[i].from) + 1);
data/avfs-1.1.3/src/utils.c:62:40:  [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).
        if(exts[i].to != NULL) len += (strlen(exts[i].to) + 1);
data/avfs-1.1.3/src/utils.c:73: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).
        pp += (strlen(pp) + 1);
data/avfs-1.1.3/src/utils.c:77: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).
            pp += (strlen(pp) + 1);
data/avfs-1.1.3/src/utils.c:185: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).
    ns = (char *) av_malloc(strlen(s) + 1);
data/avfs-1.1.3/src/utils.c:199:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ns, s, len);
data/avfs-1.1.3/src/utils.c:215: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).
        origlen = strlen(str);
data/avfs-1.1.3/src/utils.c:220: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(s);
data/avfs-1.1.3/src/utils.c:229: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).
        ns += strlen(ns);
data/avfs-1.1.3/src/virtual.c:284:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ent->d_name, avent->name, NAME_MAX);
data/avfs-1.1.3/src/virtual.c:492: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).
    nact = strlen(avbuf);
data/avfs-1.1.3/src/virtual.c:495:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, avbuf, nact);
data/avfs-1.1.3/src/zread.c:331:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    res = read(fd, cstate, zi->indexsize);
data/avfs-1.1.3/test/runtest.c:81: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).
    newpath = malloc(strlen(path) + 1 + strlen(tg->name) + 1);
data/avfs-1.1.3/test/runtest.c:81:41:  [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).
    newpath = malloc(strlen(path) + 1 + strlen(tg->name) + 1);
data/avfs-1.1.3/test/runtest.c:134:30:  [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).
            newname = malloc(strlen(file) + 1 + strlen(name) + 1);
data/avfs-1.1.3/test/runtest.c:134:49:  [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).
            newname = malloc(strlen(file) + 1 + strlen(name) + 1);
data/avfs-1.1.3/test/runtest.c:153: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).
    char *fullname = malloc(strlen(TESTDIR) + 1 + strlen(name) + 1);
data/avfs-1.1.3/test/runtest.c:153:51:  [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).
    char *fullname = malloc(strlen(TESTDIR) + 1 + strlen(name) + 1);
data/avfs-1.1.3/zlib/infblock.c:214:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              z->total_out + (q >= s->read ? q - s->read :
data/avfs-1.1.3/zlib/infblock.c:214:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              z->total_out + (q >= s->read ? q - s->read :
data/avfs-1.1.3/zlib/infblock.c:215:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              (s->end - s->read) + (q - s->window))));
data/avfs-1.1.3/zlib/infblock.c:348:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              z->total_out + (q >= s->read ? q - s->read :
data/avfs-1.1.3/zlib/infblock.c:348:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              z->total_out + (q >= s->read ? q - s->read :
data/avfs-1.1.3/zlib/infblock.c:349:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              (s->end - s->read) + (q - s->window))));
data/avfs-1.1.3/zlib/infblock.c:358:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (s->read != s->write)
data/avfs-1.1.3/zlib/infblock.c:450:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  assert(s->read >= s->window && s->read <= s->window + w);
data/avfs-1.1.3/zlib/infblock.c:450:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  assert(s->read >= s->window && s->read <= s->window + w);
data/avfs-1.1.3/zlib/infblock.c:549:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  s->read = s->window + (long) s->read;
data/avfs-1.1.3/zlib/infcodes.c:228:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (s->read != s->write)
data/avfs-1.1.3/zlib/infutil.c:34:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  q = s->read;
data/avfs-1.1.3/zlib/infutil.h:56:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Bytef *read;          /* window read pointer */
data/avfs-1.1.3/zlib/infutil.h:78:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define WAVAIL (uInt)(q<s->read?s->read-q-1:s->end-q)
data/avfs-1.1.3/zlib/infutil.h:80:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define WRAP {if(q==s->end&&s->read!=s->window){q=s->window;m=(uInt)WAVAIL;}}

ANALYSIS SUMMARY:

Hits = 410
Lines analyzed = 42491 in approximately 1.00 seconds (42301 lines/second)
Physical Source Lines of Code (SLOC) = 30528
Hits@level = [0]  54 [1] 113 [2] 250 [3]   4 [4]  33 [5]  10
Hits@level+ = [0+] 464 [1+] 410 [2+] 297 [3+]  47 [4+]  43 [5+]  10
Hits/KSLOC@level+ = [0+] 15.1992 [1+] 13.4303 [2+] 9.72877 [3+] 1.53957 [4+] 1.40854 [5+] 0.327568
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.