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/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse.h
Examining data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse_common.h
Examining data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse_kernel.h
Examining data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse_lowlevel.h
Examining data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse_lowlevel_compat.h
Examining data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse_opt.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/lcnalloc.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/acls.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/attrib.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/attrlist.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/bitmap.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/bootsect.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/cache.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/collate.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/compat.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/compress.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/debug.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/device.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/device_io.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/dir.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/ea.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/efs.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/endians.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/index.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/inode.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/ioctl.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/layout.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/logfile.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/logging.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/mft.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/misc.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/mst.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/ntfstime.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/object_id.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/param.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/plugin.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/realpath.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/reparse.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/runlist.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/security.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/support.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/types.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/unistr.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/volume.h
Examining data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/xattrs.h
Examining data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c
Examining data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c
Examining data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_i.h
Examining data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_kern_chan.c
Examining data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_loop.c
Examining data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c
Examining data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_misc.h
Examining data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_opt.c
Examining data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_session.c
Examining data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_signals.c
Examining data/ntfs-3g-2017.3.23AR.5/libfuse-lite/helper.c
Examining data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c
Examining data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c
Examining data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.h
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/attrib.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/attrlist.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/bitmap.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/bootsect.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/cache.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/collate.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/compat.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/compress.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/debug.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/device.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/ea.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/efs.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/index.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/inode.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/ioctl.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/lcnalloc.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/logfile.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/logging.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/mft.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/misc.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/mst.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/object_id.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/realpath.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/runlist.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/unistr.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/unix_io.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/volume.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/win32_io.c
Examining data/ntfs-3g-2017.3.23AR.5/libntfs-3g/xattrs.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/attrdef.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/attrdef.h
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/boot.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/boot.h
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/cluster.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/cluster.h
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/list.h
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscat.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscat.h
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsck.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscluster.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscluster.h
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscmp.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscp.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdecrypt.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdump_logfile.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfstruncate.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsundelete.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsundelete.h
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfswipe.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfswipe.h
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/sd.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/sd.h
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/utils.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/utils.h
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsfallocate.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsfix.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsinfo.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfslabel.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsls.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsmftalloc.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsmove.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsmove.h
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.h
Examining data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c
Examining data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c
Examining data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c
Examining data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.probe.c
Examining data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c
Examining data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.h

FINAL RESULTS:

data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse.h:88:8:  [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) (const char *, char *, size_t);
data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse.h:122:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	int (*chmod) (const char *, mode_t);
data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse.h:125:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	int (*chown) (const char *, uid_t, gid_t);
data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse_lowlevel.h:258:9:  [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.
	void (*readlink) (fuse_req_t req, fuse_ino_t ino);
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/plugin.h:118:8:  [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)(ntfs_inode *ni, const REPARSE_POINT *reparse,
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:913:16:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    if (fs->op.chown)
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:914:23:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
        return fs->op.chown(path, uid, gid);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:968:16:  [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 (fs->op.readlink)
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:969:23:  [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.
        return fs->op.readlink(path, buf, len);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:1414:16:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    if (fs->op.chmod)
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:1415:23:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        return fs->op.chmod(path, mode);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:556:20:  [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 (req->f->op.readlink)
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:557:20:  [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.
        req->f->op.readlink(req, nodeid);
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:1009:33:  [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 = CALL_REPARSE_PLUGIN(ni, readlink, &buf);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:1097:33:  [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 = CALL_REPARSE_PLUGIN(ni, readlink, &gotlink);
data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse.h:327:8:  [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) (const char *, int);
data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse_lowlevel.h:704:9:  [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.
	void (*access) (fuse_req_t req, fuse_ino_t ino, int mask);
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/logging.h:42:28:  [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, 6, 0))));
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/logging.h:45:65:  [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.
ntfs_log_handler ntfs_log_handler_syslog  __attribute__((format(printf, 6, 0)));
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/logging.h:46:65:  [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.
ntfs_log_handler ntfs_log_handler_fprintf __attribute__((format(printf, 6, 0)));
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/logging.h:47:65:  [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.
ntfs_log_handler ntfs_log_handler_null    __attribute__((format(printf, 6, 0)));
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/logging.h:48:65:  [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.
ntfs_log_handler ntfs_log_handler_stdout  __attribute__((format(printf, 6, 0)));
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/logging.h:49:65:  [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.
ntfs_log_handler ntfs_log_handler_outerr  __attribute__((format(printf, 6, 0)));
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/logging.h:50:65:  [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.
ntfs_log_handler ntfs_log_handler_stderr  __attribute__((format(printf, 6, 0)));
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/logging.h:67:24:  [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, 6, 7)));
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/logging.h:118:39:  [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, 1, 2)));
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:198:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(soname, "libfusemod_%s.so", module);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:958:16:  [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 (fs->op.access)
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:959:23:  [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.
        return fs->op.access(path, mask);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:546:20:  [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 (req->f->op.access)
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:547:20:  [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.
        req->f->op.access(req, nodeid, arg->mask);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_opt.c:109: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(newopts + oldlen + 1, opt);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_opt.c:188:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        if (sscanf(param, format, var) != 1) {
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_opt.c:235: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(newarg + sep, param);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:269:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(newopts + oldsize, ",%s", opt);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:306:9:  [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(*mnt_optsp, user);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:419: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(type, blkdev ? "fuseblk" : "fuse");
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:422: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(source, fsname);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:424: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(source, dev);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:513:15:  [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(mnt, W_OK);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:173:5:  [4] (shell) execv:
  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.
    execv(FUSERMOUNT_DIR "/" FUSERMOUNT_PROG, (char **) argv);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:174:5:  [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(FUSERMOUNT_PROG, (char **) argv);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:538: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(type, mo->blkdev ? "fuseblk" : "fuse");
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:541:9:  [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(type, mo->subtype);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:543: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(source,
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:552: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(type, mo->blkdev ? "fuseblk" : "fuse");
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:555:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(source, "%s#%s", mo->subtype, mo->fsname);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:557: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(source, type);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:92:9:  [4] (shell) execle:
  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.
        execle("/sbin/mount", "/sbin/mount", "-F", type, "-o", opts,
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:129:13:  [4] (shell) execle:
  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.
            execle("/sbin/umount", "/sbin/umount", mnt,
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:132:13:  [4] (shell) execle:
  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.
            execle("/sbin/umount", "/sbin/umount", "-f", mnt,
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:205:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(dst, "%s%s", buf, lastcomp);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:207:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(dst, "%s/%s", buf, lastcomp);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:292:9:  [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_MOUNTED, W_OK);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:338:9:  [4] (shell) execle:
  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.
        execle("/bin/mount", "/bin/mount", "-i", "-f", "-t", type, "-o", opts,
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:372:13:  [4] (shell) execle:
  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.
            execle("/bin/umount", "/bin/umount", "-i", mnt, "-l",
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:375:13:  [4] (shell) execle:
  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.
            execle("/bin/umount", "/bin/umount", "-i", mnt,
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:448:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(dst, "%s%s", buf, lastcomp);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:450:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(dst, "%s/%s", buf, lastcomp);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/ioctl.c:131:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	if (sscanf(line, "%" SCNu64, n) != 1)
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/logging.c:62:61:  [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.
# define  BROKEN_GCC_FORMAT_ATTRIBUTE __attribute__((format(printf, 6, 0)))
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/logging.c:372:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = vsnprintf(logbuf, LOG_LINE_LEN, format, args);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/logging.c:410:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr,format,args);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/logging.c:477:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	ret += vfprintf(stream, format, args);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/realpath.c:60: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).
		res = strcpy(canonical, path);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:397:3:  [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(defines,mappingdir);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:400:3:  [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(defines,drive);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:550: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(fulltarget,mnt_point);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:552:5:  [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(fulltarget,target);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:581: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(fulltarget,mnt_point);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:583:5:  [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(fulltarget,mappingdir);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:584:5:  [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(fulltarget,target);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:657: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(fulltarget,mnt_point);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:659:5:  [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(fulltarget,target);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:685: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(fulltarget,mnt_point);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:687:5:  [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(fulltarget,mappingdir);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:688:5:  [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(fulltarget,target);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/win32_io.c:882:14:  [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_MASK access;
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/win32_io.c:918: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.
	st = NtOpenFile(&handle, access,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/xattrs.c:327: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(item->name,pu);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/xattrs.c:452:4:  [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(mapping->name,nf_ns_alt_xattr_efsinfo);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:281:23:  [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, 1, 2)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:287:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(msg_out, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:292:23:  [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, 1, 2)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:300:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(msg_out, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:306:23:  [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, 1, 2)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:313:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(msg_out, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:319:23:  [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, 1, 2)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:326:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(msg_out, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:335:23:  [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, 1, 2)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:343:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(msg_out, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscmp.c:84:23:  [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/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscmp.c:90:2:  [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(stdout, PERR_PREFIX, eo);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscmp.c:92:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stdout, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscmp.c:104:23:  [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, 1, 2)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscmp.c:109:2:  [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(stdout, NERR_PREFIX);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscmp.c:111:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stdout, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscmp.c:123:23:  [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, 1, 2)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscmp.c:128:2:  [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(stdout, NERR_PREFIX);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscmp.c:130:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stdout, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscmp.c:143:23:  [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, 1, 2)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscmp.c:149:2:  [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(stdout, PERR_PREFIX, eo);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscmp.c:151:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stdout, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscmp.c:979:4:  [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.
			printf(invalid_ntfs_msg, volume);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscp.c:1019:3:  [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(overwrite_filename, unix_name);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscp.c:1021:3:  [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(overwrite_filename, opts.dest_file);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscp.c:1026:3:  [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(overwrite_filename, filename);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdecrypt.c:1569:13:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
	password = getpass("Enter the password with which the private key was "
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdump_logfile.c:123:23:  [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, 4, 5)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdump_logfile.c:139:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdump_logfile.c:150:23:  [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/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdump_logfile.c:159:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsfallocate.c:122:23:  [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/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsfallocate.c:129:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsfallocate.c:184:23:  [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, 1, 2)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsfallocate.c:191:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsinfo.c:2025:3:  [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.
		printf(cnt ? " 0x" : "(NONE)");
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsinfo.c:2143:4:  [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.
			printf(cnt ? "0x" : "(NONE)");
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsls.c:114:6:  [4] (shell) system:
  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.
	int system;
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsls.c:294:12:  [4] (shell) system:
  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.
	if (!opts.system)
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsls.c:510:47:  [4] (shell) system:
  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.
	if ((MREF(mref) < FILE_first_user) && (!opts.system))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsls.c:535:3:  [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(dir->name, filename);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsls.c:577:3:  [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(t_buf, ctime(&change_time.tv_sec));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsmftalloc.c:96:23:  [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, 1, 2)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsmftalloc.c:103:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:397:4:  [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.
			printf((j & 3 ? "%02x" : " %02x"),buf[j] & 255);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:260:23:  [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, 1, 2)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:266:2:  [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(stdout, PERR_PREFIX, eo);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:268:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stdout, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:275:23:  [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, 1, 2)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:280:2:  [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(stdout, NERR_PREFIX);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:282:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stdout, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:294:23:  [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, 1, 2)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:299:2:  [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(stdout, NERR_PREFIX);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:301:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stdout, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:314:23:  [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, 1, 2)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:320:2:  [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(stdout, PERR_PREFIX, eo);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:322:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stdout, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:583:4:  [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.
			printf(NERR_PREFIX "Options --info(-mb-only) and --expand "
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:588:4:  [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.
			printf(NERR_PREFIX "Options --info-mb-only "
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:2895:4:  [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.
			printf(invalid_ntfs_msg, opt.volume);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:340:26:  [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, 1, 2)));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:690:3:  [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(uname, name);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:784:4:  [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.
			printf((j & 3 ? "%02x" : " %02x"),attr[j] & 255);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:875:3:  [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(wname, name);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:918:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr,format,args);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:1898:3:  [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(mapfile,"x:\\" MAPDIR "\\" MAPFILE);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:1924:6:  [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(p,"/" MAPDIR "/" MAPFILE);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:2417:6:  [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(fullname,&line[5]);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:2419:6:  [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(fullname,&line[10]);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:4708:4:  [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(linkage->name,dircontext->dir);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:6092:7:  [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(filename, &arg[2]);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:6094:7:  [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(filename, arg);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:6096:6:  [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(filename, &curdir[2]);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:6100:7:  [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(filename, &arg[2]);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:6102:7:  [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(filename, arg);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfstruncate.c:104:23:  [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, 1, 2)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfstruncate.c:111:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfstruncate.c:417:3:  [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.
		printf(skip, "DATA");
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfstruncate.c:428:3:  [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.
		printf(skip, "BITMAP");
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsundelete.c:510:2:  [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(result, pattern);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsundelete.c:2041:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(defname,"%s%lld",UNKNOWN,
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:469: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(idstr, p);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:484: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(login,accname);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:545:3:  [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(fullname, dir);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:547:3:  [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(fullname, name);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:597:4:  [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(fullname, context->dir);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:628:6:  [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(accname, name);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:798:3:  [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(fullname, volume);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:800: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(fullname, DIRSEP);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:801: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(fullname,dir);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:810:3:  [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(fullname, DIRSEP);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:811:3:  [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(fullname, MAPFILE);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:814:3:  [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(fullname, MAPFILE);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:821:4:  [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(backup,fullname);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:841:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(buf,"# %s\n",BANNER);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:852:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(buf,"%s:%s:%s\n",
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:867:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(buf,"%s:%s:%s\n",
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:953: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(owner, p);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/utils.h:114:9:  [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.
#define printf(fmt, args...) \
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/utils.h:116:3:  [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.
		printf(ntfs_utils_reformat(_b,MAX_FMT,fmt), args); } while (0)
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/utils.h:117:9:  [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 fprintf(str, fmt, args...) \
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/utils.h:119:3:  [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(str, ntfs_utils_reformat(_b,MAX_FMT,fmt), args); } while (0)
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/utils.h:120:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define vfprintf(file, fmt, args) \
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/utils.h:121:26:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		do { char _b[MAX_FMT]; vfprintf(file, \
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:2871:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(ghostname,ghostformat,of->ghost);
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:3181:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(ghostname,ghostformat,of->ghost);
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:3490:4:  [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(prefixed,xattr_ntfs_3g);
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:3491: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(prefixed,name);
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:4454:4:  [4] (shell) execle:
  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.
			execle(cmd, cmd, "fuse", (char*)NULL, &env);
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:4649:5:  [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(ctx->abs_mnt_point, opts.mnt_point);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:1116: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(buf,ntfs_bad_reparse);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:2997:4:  [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(prefixed,xattr_ntfs_3g);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:2998: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(prefixed,name);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:3984:4:  [4] (shell) execle:
  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.
			execle(cmd, cmd, "fuse", (char*)NULL, &env);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:4184:5:  [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(ctx->abs_mnt_point, opts.mnt_point);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:162:2:  [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(*dest + size_dest, append);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:198:2:  [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(p, *dest);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:201:3:  [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(q, append);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:204: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(p, q);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:210:3:  [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(*dest + size_dest, append);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:706:6:  [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(to, nf_ns_user_prefix);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:742:6:  [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(to, item->name);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:821:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(name,sizeof(name), PLUGIN_DIR
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/realpath.h:13:23:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
#define ntfs_realpath realpath
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:192:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    if (realpath(toresolv, buf) == NULL) {
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:435:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    if (realpath(toresolv, buf) == NULL) {
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:369:2:  [3] (random) srandom:
  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.
	srandom(time((time_t*)NULL) ^ (getpid() << 16));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:371:15:  [3] (random) random:
  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.
		p[i] = (u8)(random() & 0xFF);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:636:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:4703:47:  [3] (random) random:
  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.
	bs->volume_serial_number = cpu_to_le64(((u64)random() << 32) |
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:4704:10:  [3] (random) random:
  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.
			((u64)random() & 0xffffffff));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:4980:2:  [3] (random) srandom:
  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.
	srandom(sle64_to_cpu(mkntfs_time())/10000000);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscat.c:190:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:119:9:  [3] (random) srandom:
  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.
#define srandom(seed) srand(seed)
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:119:23:  [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.
#define srandom(seed) srand(seed)
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:120:9:  [3] (random) random:
  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.
#define random() rand()
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:431:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:603:2:  [3] (random) srandom:
  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.
	srandom(time((time_t*)NULL) ^ (getpid() << 16));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:604:13:  [3] (random) random:
  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.
	sn = ((u64)random() << 32) | ((u64)random() & 0xffffffff);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:604:37:  [3] (random) random:
  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.
	sn = ((u64)random() << 32) | ((u64)random() & 0xffffffff);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscluster.c:142:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscmp.c:203:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscp.c:186:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdecrypt.c:217:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdecrypt.c:1474:5:  [3] (random) srandom:
  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.
				srandom((unsigned int)(sle64_to_cpu(
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdecrypt.c:1480:12:  [3] (random) random:
  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.
					val = random();
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsfallocate.c:281:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, "fh?no:qvVl:", lopt, NULL)) != EOF) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsfix.c:181:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsinfo.c:187:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfslabel.c:145:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfslabel.c:296:4:  [3] (random) srandom:
  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.
			srandom(time((time_t*)NULL) ^ (getpid() << 16));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfslabel.c:297:15:  [3] (random) random:
  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.
			sn = ((u64)random() << 32)
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfslabel.c:298:14:  [3] (random) random:
  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.
					| ((u64)random() & 0xffffffff);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsls.c:224:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsmftalloc.c:163:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "fh?nqvVl")) != EOF) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsmove.c:135:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:4184:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:509:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:6157:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfstruncate.c:173:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "fh?nqvVl")) != EOF)
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsundelete.c:645:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfswipe.c:304:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfswipe.c:1661:25:  [3] (random) random:
  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.
		bits = (unsigned int)(random() & 0xFFF);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfswipe.c:1669:16:  [3] (random) random:
  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.
			i = (size_t)random() % NPAT;
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfswipe.c:2202:2:  [3] (random) srandom:
  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.
	srandom(time(NULL));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfswipe.c:2205:2:  [3] (random) srandom:
  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.
	srandom((int)vol + npasses);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.probe.c:103:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:583:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, sopt, lopt, NULL)) != -1) {
data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse.h:153:8:  [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) (const char *, struct fuse_file_info *);
data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse.h:412:24:  [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.
	int (*utimens) (const char *, const struct timespec tv[2]);
data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse.h:605:47:  [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.
int fuse_fs_utimens(struct fuse_fs *fs, const char *path,
data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse_kernel.h:435: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 name[0];
data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse_lowlevel.h:387: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).
	void (*open) (fuse_req_t req, fuse_ino_t ino,
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/acls.h:99:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char BIGSID[MAX_SID_SIZE];
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/acls.h:111: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 maptext[LINESZ + 1];
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/device.h:104:8:  [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)(struct ntfs_device *dev, int flags);
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/plugin.h:71:8:  [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)(ntfs_inode *ni, const REPARSE_POINT *reparse,
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/xattrs.h:69: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 name[1]; /* variable length */
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:466: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, name, len);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:476: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[FUSE_MAX_PATH];
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:801:16:  [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 (fs->op.open)
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:802:23:  [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).
        return fs->op.open(path, fi);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:940:47:  [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.
int fuse_fs_utimens(struct fuse_fs *fs, const char *path,
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:1111: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 newname[64];
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:1527: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 linkname[PATH_MAX + 1];
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:2767: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(out_buf, in_buf, in_bufsz);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:3049: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(&fs->op, op, op_size);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:222: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(padded_iov + 1, iov, count * sizeof(struct iovec));
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:250: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(dirent->name, name, namelen);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:683:20:  [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 (req->f->op.open)
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:684:20:  [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).
        req->f->op.open(req, nodeid, &fi);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:1452:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&f->op, op, op_size);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_opt.c:234: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(newarg, arg, sep);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:332: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(*val, s + opt_len, len - opt_len);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:393: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.
                    memcpy(d, s, len);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:408: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(d, "fd=%i,rootmode=%o,user_id=%i,group_id=%i",
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:432:9:  [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(d, "fd=%i,rootmode=%o,user_id=%i", fd, rootmode, getuid());
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:487:23:  [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).
        *currdir_fd = open(".", O_RDONLY);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:520:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char procfile[256];
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:521:26:  [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).
        *mountpoint_fd = open(mnt, O_WRONLY);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:539:9:  [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(procfile, "/proc/self/fd/%i", *mountpoint_fd);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:558: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(dev, O_RDWR);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/helper.c:24: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).
        fd = open("/dev/null", O_RDWR);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:37:16:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
#define fork() vfork()
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:325: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[1];
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:445:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char env[10];
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:446:15:  [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 *argv[32];
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:450:22:  [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 fd = open("/dev/null", O_RDONLY);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:484: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 tmp[128];
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:510: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(devname, O_RDWR);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:152: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[PATH_MAX];
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:250: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/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:251:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *f = fopen("/proc/filesystems", "r");
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:395: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[PATH_MAX];
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:461: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/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:462:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *f = fopen("/proc/filesystems", "r");
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:367: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(&defsid,pattern,ntfs_sid_size(pattern));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:431: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(defusid, p->sid, ntfs_sid_size(p->sid));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:475: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(defgsid, p->sid, ntfs_sid_size(p->sid));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:766: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(pnewace,poldace,acesz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:853: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(pnewace,poldace,acesz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:860: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(&pnewace->sid, usid, usidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:878: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(&pnewace->sid, gsid, gsidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:902: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(pnewace,poldace,acesz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:1157: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(&ace,&pacl->ace[i-1],sizeof(struct POSIX_ACE));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:1158: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(&pacl->ace[i-1],&pacl->ace[i],sizeof(struct POSIX_ACE));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:1159: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(&pacl->ace[i],&ace,sizeof(struct POSIX_ACE));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:1182:6:  [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(&ace,&pacl->ace[i-1],sizeof(struct POSIX_ACE));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:1183:6:  [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(&pacl->ace[i-1],&pacl->ace[i],sizeof(struct POSIX_ACE));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:1184:6:  [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(&pacl->ace[i],&ace,sizeof(struct POSIX_ACE));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:1444: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(&pydesc->acl.ace[pydesc->firstdef],
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:1672: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((char*)&pdace->sid, sid, sidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:1748: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((char*)&pdace->sid, sid, sidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:1825: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((char*)&pgace->sid, sid, sidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:1915: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((char*)&pdace->sid, sid, sidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:1978: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((char*)&pdace->sid, sid, sidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:1999: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((char*)&pgace->sid, sid, sidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:2269: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((char*)&pdace->sid, worldsid, wsidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:2356: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((char*)&pgace->sid, worldsid, wsidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:2385: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((char*)&pgace->sid, adminsid, asidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:2398: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((char*)&pgace->sid, systemsid, ssidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:2419: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((char*)&pgace->sid, nullsid, nsidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:2543: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((char*)&pdace->sid, usid, usidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:2559: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((char*)&pdace->sid, worldsid, wsidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:2571: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((char*)&pgace->sid, usid, usidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:2629: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((char*)&pdace->sid, gsid, gsidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:2645: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((char*)&pgace->sid, gsid, gsidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:2675: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((char*)&pgace->sid, worldsid, wsidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:2691: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((char*)&pgace->sid, adminsid, asidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:2707: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((char*)&pgace->sid, systemsid, ssidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:2728: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((char*)&pgace->sid, nullsid, nsidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:2811: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(&newattr[sizeof(SECURITY_DESCRIPTOR_RELATIVE)
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:2813: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(&newattr[sizeof(SECURITY_DESCRIPTOR_RELATIVE)
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:2902: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(&newattr[sizeof(SECURITY_DESCRIPTOR_RELATIVE)
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:2904: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(&newattr[sizeof(SECURITY_DESCRIPTOR_RELATIVE)
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:4182: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(sid, bsid, 4 * cnt + 8);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:4279: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[BUFSZ];
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:4369:10:  [2] (integer) atoi:
  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).
			uid = atoi(item->uidstr);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/acls.c:4455:11:  [2] (integer) atoi:
  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).
				gid = atoi(item->gidstr);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/attrib.c:181: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(b, (const char*)a + le16_to_cpu(a->value_offset),
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/attrib.c:269: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(b + total, intbuf, sle64_to_cpu(a->data_size) -
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/attrib.c:1012: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(b, val + pos, count);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/attrib.c:1918: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(val + pos, b, count);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/attrib.c:2193: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(cb, b, to_write);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/attrib.c:3863: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((u8*)a + le16_to_cpu(a->value_offset), val, size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/attrib.c:3871: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((u8*)a + le16_to_cpu(a->name_offset),
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/attrib.c:4010: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((u8*)a + le16_to_cpu(a->name_offset),
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/attrib.c:4657: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(nctx->attr, a, le32_to_cpu(a->length));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/attrlist.c:199: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(ale->name, (u8 *)attr + le16_to_cpu(attr->name_offset),
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/attrlist.c:216: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(new_al, ni->attr_list, entry_offset);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/attrlist.c:217: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(new_al + entry_offset + entry_len, ni->attr_list +
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/attrlist.c:296: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(new_al, base_ni->attr_list, (u8*)ale - base_ni->attr_list);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/attrlist.c:297: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(new_al + ((u8*)ale - base_ni->attr_list), (u8*)ale + le16_to_cpu(
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/cache.c:301: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(current->payload, item->payload, cache->fixed_size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/cache.c:304:6:  [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(current->variable,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/compat.c:141: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 (!noclose && (fd = open("/dev/null", O_RDWR, 0)) != -1) {
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/compress.c:435: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(&outbuf[2], inbuf, bufsize);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/compress.c:522: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(dest, cb, NTFS_SB_SIZE);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/compress.c:605: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(dest, dest_back_addr, length);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/compress.c:615: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(dest, dest_back_addr, max_non_overlap);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/compress.c:951: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(b, dest + ofs, to_read);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/compress.c:1586: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(&outbuf[pos],b,to_write);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/compress.c:1601: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(&outbuf[pos],b,to_write);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/compress.c:1802:6:  [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(&inbuf[to_read],b,to_write);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/debug.c:48: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.
	const char *lcn_str[5] = { "LCN_HOLE         ", "LCN_RL_NOT_MAPPED",
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:1023: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(loname, fn->file_name,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:1656: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(data->target, target,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:1708: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(fn->file_name, name, name_len * sizeof(ntfschar));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:2205: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(fn->file_name, name, name_len * sizeof(ntfschar));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:2325: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(dosname,fn->file_name,outsize*sizeof(ntfschar));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:2375: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(longname,fn->file_name,outsize*sizeof(ntfschar));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:2399: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(longname,fn->file_name,outsize*sizeof(ntfschar));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:2437: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(value, outname, outsize);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:2639: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 newname[3*MAX_DOS_NAME_LENGTH + 1];
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/ea.c:201: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(value, ea_buf, ea_size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/efs.c:85:7:  [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(value,efs_info,attr_size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/index.c:356: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(pos, ie, ie_size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/index.c:367: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(dup, ie, le16_to_cpu(ie->length));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/index.c:384: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(dup, ie, size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/index.c:1012: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(ntfs_ie_get_first(&ib->index), ies_start, i);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/index.c:1060: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(ntfs_ie_get_first(&dst->index), ie_head, tail_size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/index.c:1085: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(ie, ie_last, le16_to_cpu(ie_last->length));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/index.c:1547: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(&ie->key, fn, fn_size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/inode.c:661: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(extent_nis, base_ni->extent_nis,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/inode.c:1173: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(ale->name, (u8 *)ctx->attr +
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/ioctl.c:111:7:  [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, "r");
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/ioctl.c:125: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 line[64];
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/ioctl.c:144: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 path1[40]; /* holds "/sys/dev/block/%d:%d" */
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/ioctl.c:145: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 path2[40 + sizeof(path1)]; /* less than 40 bytes more than path1 */
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/logfile.c:393: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(trp, rp, le32_to_cpu(rp->system_page_size));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/logfile.c:710: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[NTFS_BUF_SIZE];
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/logging.c:365: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 logbuf[LOG_LINE_LEN];
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/mft.c:178: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(bmirr, b, cnt * vol->mft_record_size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/mft.c:1512: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(extent_nis, base_ni->extent_nis,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/mft.c:1838: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(extent_nis, base_ni->extent_nis,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/object_id.c:165: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(&indx.key.object_id,object_id,sizeof(GUID));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/object_id.c:168: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(&indx.data.birth_volume_id,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/object_id.c:170: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(&indx.data.birth_object_id,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/object_id.c:172: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(&indx.data.domain_id,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/object_id.c:235: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(&key.object_id,objectid_attr,sizeof(GUID));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/object_id.c:243: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(&full_objectid->birth_volume_id,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/object_id.c:246: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(&full_objectid->birth_object_id,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/object_id.c:249: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(&full_objectid->domain_id,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/object_id.c:284: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(&key.object_id,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/object_id.c:289: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(&old_attr->birth_volume_id,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/object_id.c:292: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(&old_attr->birth_object_id,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/object_id.c:295: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(&old_attr->domain_id,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/object_id.c:357: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(&old_attr, value,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/object_id.c:479: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(&full_objectid.object_id,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/object_id.c:489:7:  [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(value,&full_objectid,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/object_id.c:531: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(&key.object_id, value, sizeof(GUID));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/realpath.c:48: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	name[MAPPERNAMELTH + 16];
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/realpath.c:49: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	path[sizeof(name) + 16];
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/realpath.c:53:12:  [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).
	if (!(f = fopen(path, "r")))
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:65: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	path_buffer[0];      /* above data assume this is char array */
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:74: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	path_buffer[0];      /* above data assume this is char array */
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:386: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 defines[NTFS_MAX_NAME_LEN + 5];
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:888: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(&indx.key.file_id, &file_id, 8);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:923: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(&key.file_id, &file_id, 8);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:1094:7:  [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(value,reparse_attr,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/runlist.c:85: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(dstbase + dst, srcbase + src, size * sizeof(*dstbase));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/runlist.c:1783: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.
	const char *lcn_str[5] = { "HOLE", "NOTMAP", "ENOENT", "XXXX" };
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/runlist.c:1862:9:  [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).
	fptr = fopen(file, "r");
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/runlist.c:1942: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(dst, file, size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:501: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(&fullattr[gap + sizeof(SECURITY_DESCRIPTOR_HEADER)],
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:1183: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 filename[64];
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:1197:3:  [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(filename,"/proc/%u/cred",tid);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:1198:8:  [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(filename,O_RDONLY);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:1257: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[BUFSZ+1];
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:1258: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 filename[64];
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:1274:3:  [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(filename,"/proc/%u/task/%u/status",tid,tid);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:1275:8:  [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(filename,O_RDONLY);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:1550: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(newcache,oldcache,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:1618:6:  [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(pxcached, pxdesc, pxsize);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:1662:8:  [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(pxcached, pxdesc, pxsize);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:2266:7:  [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(value,&pxdesc->acl,sizeof(struct POSIX_ACL));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:2267:7:  [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(&value[sizeof(struct POSIX_ACL)],
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:2275:7:  [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(value,&pxdesc->acl,outsize);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:2426: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(value,securattr,outsize);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:3205: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(attr,value,size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:3284: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(newpxdesc, oldpxdesc, pxsize);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:3785: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(newpxdesc, oldpxdesc, pxsize);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:3996: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(&newattr[pos],usid,usidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:4002: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(&newattr[pos],gsid,gsidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:4182: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(sid,usid,sidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:4339:8:  [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(usermap_path,O_RDONLY);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:4404: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(value,&attrib,outsize);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:4431: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(&attrib,value,sizeof(FILE_ATTR_FLAGS));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:4659: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,attr,sizeof(SECURITY_DESCRIPTOR_RELATIVE));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:4667: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(&buf[pos],&attr[offdacl],daclsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:4675: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(&buf[pos],&attr[offsacl],saclsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:4683: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(&buf[pos],&attr[offowner],usidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:4691: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(&buf[pos],&attr[offgroup],gsidsz);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:4757: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(&target[pos], pdacl, size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:4789: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(&target[pos], psacl, size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:4821: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(&target[pos], powner, size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:4848: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(&target[pos], pgroup, size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:5237: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(buf,usid,size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:5263: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(buf,gsid,size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/unistr.c:376: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(dst, s, len * sizeof(ntfschar));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/unistr.c:955: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(tc, mbs, mbs_len);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/unix_io.c:143:26:  [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*)dev->d_private = open(dev->d_name, flags);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/volume.c:525: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).
	if ((dev->d_ops->open)(dev, NVolReadOnly(vol) ? O_RDONLY: O_RDWR)) {
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/volume.c:527: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).
			if ((dev->d_ops->open)(dev, O_RDONLY)) {
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/volume.c:965:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		const char *ESTR[12] = { "$MFT", "$MFTMirr", "$LogFile",
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/volume.c:1527:12:  [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).
	if (!(f = fopen(MNTTAB, "r"))) {
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/win32_io.c:52:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char data4[8];    /* The first two bytes are the third group of four
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/win32_io.c:844: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 filename[MAX_PATH];
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/win32_io.c:846: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(filename, "\\\\.\\PhysicalDrive%d", drive_id);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/win32_io.c:968:2:  [2] (buffer) TCHAR:
  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.
	TCHAR vol_name[MAX_PATH];
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/win32_io.c:1008: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 extents[EXTENTS_SIZE];
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/win32_io.c:1135: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 drive_name[MAX_PATH];
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/win32_io.c:1137: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(drive_name, "\\\\.\\PhysicalDrive%d", drive_id);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/win32_io.c:1262: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(dev->d_private, &fd, sizeof(win32_fd));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/win32_io.c:1513: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((void*)b, alignedbuffer + old_ofs, br);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/win32_io.c:1711: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(readbuffer + ofs, b, count);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/xattrs.c:275: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 maptext[LINESZ];
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/xattrs.c:356: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[BUFSZ];
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/xattrs.c:421:8:  [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(xattrmap_path,O_RDONLY);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/xattrs.c:616: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[4*sizeof(u64)];
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/xattrs.c:673: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(buf,value,4);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/xattrs.c:708: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(buf,value,size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/xattrs.c:722: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(buf,value,sizeof(u64));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/attrdef.c:6:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const unsigned char attrdef_ntfs3x_array[2560] = {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/attrdef.h:4:23:  [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 unsigned char attrdef_ntfs3x_array[2560];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/boot.c:38:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const unsigned char boot_array[BOOTCODE_SIZE] =
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/boot.h:4:23:  [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 unsigned char boot_array[4136];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:1564: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((char*)a + hdr_size, uname, name_len << 1);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:1761: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((char*)a + hdr_size, uname, name_len << 1);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:1901: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((char*)a + 24, uname, name_len << 1);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:1903: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((char*)a + le16_to_cpu(a->value_offset), val, val_len);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:2516: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((char*)&ia_val->index +
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:2809: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((u8*)idx_entry, (u8*)idx, idx_size);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:3139: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((char*)&ie->key.file_name, (char*)file_name, file_name_size);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:3240: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((u8*)idx_entry_new + 0x10, (u8*)fn, fn_size);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:3480:23:  [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 (vol->dev->d_ops->open(vol->dev, i)) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:4640: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(bs, boot_array, sizeof(boot_array));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:4802: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_sds + 0x40000, buf_sds, buf_sds_first_size);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:5020: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(g_vol->attrdef, attrdef_ntfs3x_array,
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsck.c:832: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).
	if (dev->d_ops->open(dev, O_RDONLY)) { //O_RDWR/O_RDONLY?
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:250: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 magic[IMAGE_MAGIC_SIZE];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:898: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[1 + sizeof(count)];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:903: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[1], &count, sizeof(count));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:913: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 buff[1 + sizeof(count)];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:917: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(buff + 1, &count_buf, sizeof(count_buf));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:926: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 alignment[IMAGE_HDR_ALIGN];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:945: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 alignment[IMAGE_HDR_ALIGN];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:2389:16:  [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 ((fd_in = open(opt.volume, O_RDONLY | O_BINARY)) == -1)
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:2481: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(image_hdr.magic, IMAGE_MAGIC, IMAGE_MAGIC_SIZE);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:2642:17:  [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).
			stream_out = fopen(opt.output,BINWMODE);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:2653:29:  [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).
				    || (dev_out->d_ops->open)(dev_out, flags))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:2659:22:  [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_out = open(opt.output, flags,
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscluster.c:389: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 buffer[1024];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscp.c:405: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(prl, alctx->rl, alctx->rl_allocated
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscp.c:905:7:  [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).
	in = fopen(opts.src_file, "r");
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdecrypt.c:328:6:  [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).
	f = open(keyfile, O_RDONLY);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdecrypt.c:481: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 purpose_oid[100];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdecrypt.c:1072: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(fek->key_data, fek_buf + 16, key_size);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdecrypt.c:1548: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 thumbprint[NTFS_SHA1_THUMBPRINT_SIZE];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdump_logfile.c:245:8:  [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(filename, O_RDONLY);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsfallocate.c:416: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(save, rl, (n + 1)*sizeof(runlist_element));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsfix.c:516:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		const char *ESTR[12] = { "$MFT", "$MFTMirr", "$LogFile",
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsfix.c:1476: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).
	if ((dev->d_ops->open)(dev, NVolReadOnly(vol) ? O_RDONLY: O_RDWR)) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsinfo.c:334:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char str[50];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsinfo.c:921: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 printable_GUID[37];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsinfo.c:1477: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 printable_GUID[37];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsinfo.c:1578: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 printable_GUID[37];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsinfo.c:1734: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 file_name[64];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfslabel.c:251: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(oldbs, bs, vol->sector_size);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsls.c:66: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 name[MAX_PATH];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsls.c:554: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 t_buf[26];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsmove.c:263: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.
	const char *lcn_str[5] = { "HOLE", "NOTMAP", "ENOENT", "EINVAL", "XXXX" };
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:531:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buffer[24];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:650:3:  [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(buffer,"*Unknown-Action-%d*",op);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:659:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char name[256];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:695:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char badattr[24];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:751:3:  [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(badattr,"*0x%x-Unknown*",attr);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:1238:6:  [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(pa->name,&buf[extra],len);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:1275:8:  [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(pa->name,
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:1490: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(&w, &buf[base + 64], 8);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:1570: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(&inode, &buf[base + 20], 8); /* bad align */
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:1755: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(pa->name,&buf[extra],len);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:1840:7:  [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(pa->name,&buf[i+4],l);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:2302: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(&action->record, logr, size);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:2479: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(fullrec,&data[k],space);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:2480: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(&fullrec[space],
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:2520: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(fullrec,&data[k],space);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:2528:7:  [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(&fullrec[pos],
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:2544:6:  [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(&fullrec[pos],
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:2838: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(&log_header, rph,
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:2841: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(&restart, &data[offs],
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:2844: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(&client, &data[offs],
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:2884: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(&log_header, rph,
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:2887: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(&restart, &data[offs],
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:2890: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(&client, &data[offs],
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:3021: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(buffer, &log_header,
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:3024: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(&buffer[off], &restart,
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:3027: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(&buffer[off], &client,
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:3268: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 buf[1024];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:3283: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).
	ctx->file = fopen(device_name, "rb");
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:3359: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(fullrec,&data[k],space);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:3361: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(&fullrec[space], nextdata + blkheadsz,
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.c:3384:6:  [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(&fullrec[total],
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsrecover.h:85: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 data[1];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:380: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[256];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:1560: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(attr_name,(u8*)a + le16_to_cpu(a->name_offset),
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:2712: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(vol->lcnbmp_ni->mrec,resize->ctx->mrec,vol->mft_record_size);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:3789: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(&hidden_sectors_le,&bs->bpb.hidden_sectors,4);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:3798: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(&bs->bpb.hidden_sectors,&hidden_sectors_le,4);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:3806:6:  [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, expand->bootsector, vol->sector_size);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:4499:29:  [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 (!(*dev->d_ops->open)(dev,
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:454: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 name[1];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:1160: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 account[ACCOUNTSIZE];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:1216: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(sidcopy,sid,ntfs_sid_size((const SID*)sid));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:1509: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 txperm[4];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:1804: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,&dummymapping[pos],sz);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:1828: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(sid,usid,sidsz);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:1863: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 mapfile[sizeof(MAPDIR) + sizeof(MAPFILE) + 6];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:1864: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 currpath[MAXFILENAME];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:1905:8:  [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(mapfile,O_RDONLY);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:1925: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).
					fd = open(mapfile,O_RDONLY);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:2071:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char attr[MAXATTRSZ];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:2072: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 line[MAXLINE+1];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:2223: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(newattr,attr,ntfs_attr_size(attr));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:2275:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char attr[MAXATTRSZ];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:2276: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 line[MAXFILENAME+25];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:2277: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 fullname[MAXFILENAME+25];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:2705: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(&pace->sid,sid,sidsz);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:2716: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(&attr[pos], usid, usidsz);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:2720: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(&attr[pos + usidsz], gsid, gsidsz);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:3657:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char part[MAXATTRSZ];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:3677: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(ownsid,&part[xowner],ownersz);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:3706: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(&attr[attrsz],&part[20],partsz-20);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:3730: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(&attr[attrsz],ownsid,ownersz);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:3746: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(&attr[attrsz],&part[20],partsz-20);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:3807:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char attr[MAXATTRSZ];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:3921:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char attr[MAXATTRSZ];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:3984: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 fullname[MAXFILENAME];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:4112:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char attr[MAXATTRSZ];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:4113:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char part[MAXATTRSZ];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:4193:6:  [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(newattr,attr,attrsz);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:4394:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char attr[MAXATTRSZ];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:4495:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char attr[MAXATTRSZ];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:4815: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 attr[256]; /* header (20) and a couple of SIDs (max 68 each) */
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:4999:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char attr[MAXATTRSZ + 20];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:5085:6:  [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(attr,&attr[entryalsz],20);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:6050: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 curdir[MAXFILENAME];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:6234: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 *split[2];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:6292: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).
				fd = fopen(argv[xarg],"rb");
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:6357: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).
				fd = fopen(argv[xarg+1],"rb");
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfstruncate.c:533: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 s[0x200];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsundelete.c:1565: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 buffer[20];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsundelete.c:1689: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 buffer[20];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsundelete.c:1915: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).
	return open(pathname, flags, S_IRUSR | S_IWUSR);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsundelete.c:1968: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 pathname[256];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsundelete.c:2033: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 defname[sizeof(UNKNOWN) + 25];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsundelete.c:2352: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 pathname[256];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:351:3:  [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(&str[strlen(str)], "-%d", sid[0]);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:355:3:  [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(&str[strlen(str)], "-%I64u", auth);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:357:3:  [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(&str[strlen(str)], "-%llu", auth);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:362:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(&str[strlen(str)], "-%lu", subauth);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:383:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static unsigned char groupsid[MAXSIDSZ];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:387: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(groupsid, sid, size);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:400: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[81];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:491: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(p, sid, sidsz);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:539: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.
	unsigned char attr[MAXATTRSZ];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:781: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[256];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:822:4:  [2] (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 string.
			strcat(backup,".bak");
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:834:8:  [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).
		fn = open(fullname,O_CREAT + O_TRUNC + O_WRONLY + O_BINARY, 
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:837:8:  [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).
		fn = open(fullname,O_CREAT + O_TRUNC + O_WRONLY,
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:903: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[81];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfswipe.c:92: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		 padding[7];	/* Unused: padding to 64 bit. */
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfswipe.c:112: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		 padding[4];	/* Unused: padding to 64 bit. */
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfswipe.c:126: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		 padding[4];	/* Unused: padding to 64 bit. */
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfswipe.c:1389: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[NTFS_BUF_SIZE2];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfswipe.c:1498: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[NTFS_BUF_SIZE2];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfswipe.c:1683: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(buffer + i, buffer, i);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfswipe.c:1694: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(buffer + i, buffer, buflen - i);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:78: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 data[1];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:246: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(&inode, &buffer[k + 20], 8);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:450:6:  [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(target, store->data, clustersz);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:512: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(store->data, source, clustersz);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:601: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(buffer, full + pos, size);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:700:6:  [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(full + pos, buffer, size);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:900: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(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:948: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(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:994: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(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:1055:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:1137:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:1222: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(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:1458:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:1514: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(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:1590: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(attr->resident_end, &index->key.file_name, datalth);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:1654: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(buffer + offs + 0x40, buffer + pos + 0x18,
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:1680: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(buffer + offs + length - 8 + 0x18,
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:1686: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((char*)attr->resident_end + 2*namelength,
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:1904: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(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:1970: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(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:2037: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(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:2137: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(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:2372: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(&inode, &attr_old->inode, 8);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:2396: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(pa->name, data, namelen);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:2529: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(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:2602:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:2734:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:2819:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:2886: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(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:3147: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(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:3224: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(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:3276: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(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:3328: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(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:3449: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(&inode, &attr_old->inode, 8);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:3568: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(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:3669: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(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:3739:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:3852:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:3921:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/playlog.c:3988:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buffer + target, data, length);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/sd.c:179:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char sd_array[0x102c];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/utils.c:183: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(*outs, tmpstr,
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/utils.c:537: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 *names[max_path + 1];// XXX ntfs_malloc? and make max bigger?
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/utils.c:729:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static unsigned char buffer[512];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/utils.h:112: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.
		do { char _b[MAX_FMT]; ntfs_log_redirect(fn,fi,li,le,d, \
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/utils.h:115: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.
		do { char _b[MAX_FMT]; \
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/utils.h:118: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.
		do { char _b[MAX_FMT]; \
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/utils.h:121: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.
		do { char _b[MAX_FMT]; vfprintf(file, \
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:196: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[0];
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:1499:34:  [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 = CALL_REPARSE_PLUGIN(ni, open, fi);
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:1540: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(&of->fi, fi, sizeof(struct fuse_file_info));
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:2781: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 ghostname[GHOSTLTH];
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:3124: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 ghostname[GHOSTLTH];
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:3264: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(buf, data, in_bufsz);
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:4419: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[256];
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:4422:12:  [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 *f = fopen("/proc/filesystems", "r");
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:4499: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 options[64];
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:4599:8:  [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("/dev/null", O_RDWR);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:1438:34:  [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 = CALL_REPARSE_PLUGIN(ni, open, fi);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:2638: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 ntfs_fuse_utimens(const char *path, const struct timespec tv[2])
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:3949: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[256];
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:3952:12:  [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 *f = fopen("/proc/filesystems", "r");
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:4029: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 options[64];
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:4134:8:  [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("/dev/null", O_RDWR);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:755: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(to, nf_ns_alt_xattr_efsinfo,
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:819: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 name[sizeof(PLUGIN_DIR) + 64];
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:825: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 name[64];
data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse.h:166:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int (*read) (const char *, char *, size_t, off_t,
data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse.h:475:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mode_t umask;
data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse_kernel.h:228:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	__u32	umask;
data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse_kernel.h:234:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	__u32	umask;
data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse_kernel.h:272:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	__u32	umask;
data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse_lowlevel.h:105:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mode_t umask;
data/ntfs-3g-2017.3.23AR.5/include/fuse-lite/fuse_lowlevel.h:413:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void (*read) (fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/acls.h:153:10:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		mode_t umask, BOOL isdir);
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/acls.h:156:10:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		mode_t umask, BOOL isdir);
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/device.h:107:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	s64 (*read)(struct ntfs_device *dev, void *buf, s64 count);
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/plugin.h:92:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int (*read)(ntfs_inode *ni, const REPARSE_POINT *reparse,
data/ntfs-3g-2017.3.23AR.5/include/ntfs-3g/security.h:148:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mode_t umask; /* umask of requesting thread */
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:48:19:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    unsigned int  umask;
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:193: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).
    char *soname = malloc(strlen(module) + 64);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:434:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(name);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:549:13:  [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(buf, "/");
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:631:71:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        stbuf->st_mode = (stbuf->st_mode & S_IFMT) | (0777 & ~f->conf.umask);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:811:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (fs->op.read)
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:812:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return fs->op.read(path, buf, size, off, fi);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:1263:25:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    c->ctx.umask = ctx->umask;
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse.c:2883:43:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    FUSE_LIB_OPT("umask=%o",              umask, 0),
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_kern_chan.c:29:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    res = read(fuse_chan_fd(ch), buf, size);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:240: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).
    unsigned namelen = strlen(name);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:263:32:  [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).
    entsize = fuse_dirent_size(strlen(name));
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:394: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).
    return send_reply_ok(req, linkname, strlen(linkname));
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:568:24:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	req->ctx.umask = arg->umask;
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:593:24:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	req->ctx.umask = arg->umask;
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:624:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char *linkname = ((const char *) inarg) + strlen((const char *) inarg) + 1;
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:636:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char *newname = oldname + strlen(oldname) + 1;
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:666:25:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		req->ctx.umask = arg->umask;
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:693:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (req->f->op.read) {
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:699:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        req->f->op.read(req, nodeid, arg->size, arg->offset, &fi);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_lowlevel.c:859:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char *value = name + strlen(name) + 1;
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_opt.c:105: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 oldlen = strlen(*opts);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_opt.c:106:47:  [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).
        newopts = realloc(*opts, oldlen + 1 + strlen(opt) + 1);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_opt.c:143:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int arglen = strlen(arg);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fuse_opt.c:230: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).
    newarg = malloc(sep + strlen(param) + 1);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:209:25:  [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(s, beg, strlen(beg)) == 0)
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:245: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(opt) == len && strncmp(opt, s, len) == 0) {
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:265:28:  [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 oldsize = strlen(*optsp);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:266: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).
        unsigned newsize = oldsize + 1 + strlen(opt) + expand + 1;
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:296: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).
    l = strlen(*mnt_optsp);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:304:44:  [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 (add_option(mnt_optsp, "user=", strlen(user)) == -1)
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:313: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(opt) == len && strncmp(s, opt, len) == 0)
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:322: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).
    unsigned opt_len = strlen(opt);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:352: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).
    optbuf = (char *) malloc(strlen(opts) + 128);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:411: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).
    source = malloc((fsname ? strlen(fsname) : 0) + strlen(dev) + 32);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:411:53:  [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).
    source = malloc((fsname ? strlen(fsname) : 0) + strlen(dev) + 32);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:678:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    old_umask = umask(033);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/fusermount.c:700:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(old_umask);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:528: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).
    source = malloc((mo->fsname ? strlen(mo->fsname) : 0) +
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:529: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).
                    (mo->subtype ? strlen(mo->subtype) : 0) +
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:530: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).
                    strlen(devname) + 32);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:532:34:  [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).
    type = malloc((mo->subtype ? strlen(mo->subtype) : 0) + 32);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount.c:540:9:  [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(type, ".");
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:42:37:  [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(mnt, _PATH_MOUNTED, strlen(mnt)) == 0 &&
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:43:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        _PATH_MOUNTED[strlen(mnt)] == '/')
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:172:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (end = copy + strlen(copy) - 1; end > copy && *end == '/'; end --);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:201: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).
        dst = (char *) malloc(strlen(buf) + 1 + strlen(lastcomp) + 1);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:201: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).
        dst = (char *) malloc(strlen(buf) + 1 + strlen(lastcomp) + 1);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:203: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 buflen = strlen(buf);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:273:34:  [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(mnt, _PATH_MOUNTED, strlen(mnt)) == 0 &&
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:274: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).
	    _PATH_MOUNTED[strlen(mnt)] == '/')
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:415:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (end = copy + strlen(copy) - 1; end > copy && *end == '/'; end --);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:444: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).
        dst = (char *) malloc(strlen(buf) + 1 + strlen(lastcomp) + 1);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:444: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).
        dst = (char *) malloc(strlen(buf) + 1 + strlen(lastcomp) + 1);
data/ntfs-3g-2017.3.23AR.5/libfuse-lite/mount_util.c:446: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 buflen = strlen(buf);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/device.c:512:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			dev->d_ops->read(dev, &ch, 1) == 1)
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/device.c:666: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).
		const int d_name_len = strlen(dev->d_name) + 1;
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:113:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return (((name[0] << 1) + name[1] + strlen((const char*)name))
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:150: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).
		len = strlen(w->pathname);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:574: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).
			item.namesize = strlen(const_name) + 1;
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:639: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).
			item.namesize = strlen(item.name) + 1;
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:703: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).
	if (p[0] && (p[strlen(p)-1] == PATH_SEP))
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:715: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).
			item.varsize = strlen(fullname) + 1;
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:759: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).
			item.varsize = strlen(fullname) + 1;
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:2026:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (p[0] && (p[strlen(p)-1] == PATH_SEP))
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:2029:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		item.varsize = strlen(p);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/dir.c:2650:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(newname, value, size);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/logging.c:380:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat(logbuf, ": ", LOG_LINE_LEN - ret - 1);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/logging.c:381:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(logbuf, strerror(olderr), LOG_LINE_LEN - (ret + 3));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/logging.c:382: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).
		ret = strlen(logbuf);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/realpath.c:28:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
       strncpy(resolved_path, path, PATH_MAX);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/realpath.c:57:44:  [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 (fgets(name, sizeof(name), f) && (sz = strlen(name)) > 1) {
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:401:3:  [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(defines,":");
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:547: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).
			fulltarget = (char*)ntfs_malloc(strlen(mnt_point)
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:548: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).
					+ strlen(target) + 2);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:551:5:  [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(fulltarget,"/");
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:578: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).
			fulltarget = (char*)ntfs_malloc(strlen(mnt_point)
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:579:32:  [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).
				    + sizeof(mappingdir) + strlen(target) + 1);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:582:5:  [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(fulltarget,"/");
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:654: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).
			fulltarget = (char*)ntfs_malloc(strlen(mnt_point)
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:655: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).
					+ strlen(target) + 2);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:658:5:  [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(fulltarget,"/");
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:682: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).
			fulltarget = (char*)ntfs_malloc(strlen(mnt_point)
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:683:32:  [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).
				    + sizeof(mappingdir) + strlen(target) + 1);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/reparse.c:686:5:  [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(fulltarget,"/");
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:1200:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			got = read(fd, &basecreds, sizeof(prcred_t));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:1215:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						got = read(fd, groups,
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:1277:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			got = read(fd, buf, BUFSZ);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:1291:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					got = read(fd, buf, BUFSZ);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:2577:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
					mode, scx->umask, isdir);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:2580:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
					mode, scx->umask, isdir);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:2628:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
						scx->umask, isdir);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:2632:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
						scx->umask, isdir);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/security.c:4281:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return (read(*(int*)fileid, buf, size));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/unistr.c:668:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(*outs, new_outs, original_outs_len-1);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/unistr.c:1049: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).
	ins_size = strlen(ins);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/unistr.c:1058: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).
		ins_len = strlen(ins);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/unistr.c:1065: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).
	ins_len = strlen(ins);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/unistr.c:1160: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).
	size = strlen(low);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/unix_io.c:263:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(DEV_FD(dev), buf, count);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/win32_io.c:992:21:  [1] (buffer) wcslen:
  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).
		vol_name_length = wcslen(vol_name);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/win32_io.c:994: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).
		vol_name_length = strlen(vol_name);
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/xattrs.c:241:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return (read(*(int*)fileid, buf, size));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/xattrs.c:314: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(pu) < 6) || strncmp(pu,"user.",5))
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/xattrs.c:324:7:  [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(pu));
data/ntfs-3g-2017.3.23AR.5/libntfs-3g/xattrs.c:448:7:  [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(nf_ns_alt_xattr_efsinfo));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:2034:7:  [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).
	i = (strlen(file_name) + 1) * sizeof(ntfschar);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:3169:7:  [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).
	i = (strlen(file_name) + 1) * sizeof(ntfschar);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:3284:7:  [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).
	i = (strlen(file_name) + 1) * sizeof(ntfschar);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/mkntfs.c:4311:5:  [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(g_vol->vol_name) : 0);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:692:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = read(*(int *)fd, buf, count);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:694:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = dev->d_ops->read(dev, buf, count);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:1907:11:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
				if (++mismatch > 10)
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:1918:6:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if (mismatch) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:1919:57:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		Printf("Totally %d cluster accounting mismatches.\n", mismatch);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsclone.c:2238:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (lseek(fd, ofs, SEEK_SET) >= 0 && read(fd, &ch, 1) == 1)
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscp.c:1007:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		filename_len = strlen(filename);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscp.c:1008: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).
		dest_dirname_len = strlen(opts.dest_file);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfscp.c:1024: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(overwrite_filename, "/");
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdecrypt.c:355:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		br = read(f, *pfx + total, to_read);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdecrypt.c:516:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				password && !strlen(password)) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdecrypt.c:1581: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).
	memset(password, 0, strlen(password));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdump_logfile.c:273:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		br = read(logfile->fd, buf, count);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsdump_logfile.c:688: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 (strncmp(argv[1], "-f", strlen("-f")))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsls.c:521:3:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
		sprintf(filename + strlen(filename), "/");
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsls.c:521: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).
		sprintf(filename + strlen(filename), "/");
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:435:6:  [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(suffix) == 2 && suffix[1] == 'i')
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:437: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).
	else if (strlen(suffix) > 1)
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:973:10:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
				if (!mismatch && !bit && !backup_boot &&
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:982:11:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
				if (++mismatch > 10 && !opt.verbose)
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:994:6:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if (mismatch) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:996:38:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		       "accounting mismatches.\n", mismatch);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:1830:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			i = dev->d_ops->read(dev, buf, count);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsresize.c:2764:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (vol->dev->d_ops->read(vol->dev, bs, bs_size) == -1)
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:688: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).
	uname = (char*)malloc(strlen(name) + 1);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:873: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).
	wname = (char*)malloc(strlen(name) + 1);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:1782:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return (read(*(int*)fileid, buf, size));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:2098:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = getc(fd);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:2173:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = getc(fd);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:2312:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = getc(fd);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:2366:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = getc(fd);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:2636:6:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	u32 umask;
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:2699:23:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			mask = cpu_to_le32(umask);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:4702:7:  [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(dircontext->dir)
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:4709: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).
			if (linkage->name[strlen(linkage->name) - 1] != '/')
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:4710:5:  [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(linkage->name,"/");
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:4711: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).
			name = &linkage->name[strlen(linkage->name)];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:6067: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).
			lthd = strlen(curdir);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:6088: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).
			filename = (char*)malloc(strlen(arg) + lthd + 2);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfssecaudit.c:6098:7:  [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(filename, "\\");
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfstruncate.c:558:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy(s, "Error converting Unicode string",
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfstruncate.c:562:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(s, "UNKNOWN_TYPE", sizeof(s));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfstruncate.c:578:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy(s, "Error converting Unicode string",
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsundelete.c:237:6:  [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(pattern)*sizeof(ntfschar));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsundelete.c:299:6:  [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(optarg);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsundelete.c:469: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).
	length = strlen(pattern);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsundelete.c:563:6:  [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(suffix) > 1) {
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsundelete.c:1870: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).
	len = strlen(buffer);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsundelete.c:1887: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).
	return strlen(buffer);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:349:3:  [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(str, "S");
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:351: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).
		sprintf(&str[strlen(str)], "-%d", sid[0]);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:355: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).
		sprintf(&str[strlen(str)], "-%I64u", auth);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:357: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).
		sprintf(&str[strlen(str)], "-%llu", auth);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:362: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).
			sprintf(&str[strlen(str)], "-%lu", subauth);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:441:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (p && p[0] && (p[strlen(p) - 1] == '\n'))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:442:6:  [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(p) - 1] = '\0';
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:467: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).
			idstr = (char *)malloc(strlen(p) + 1);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:482: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).
			login = (char*)malloc(strlen(accname) + 1);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:543:28:  [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).
	fullname = (char *)malloc(strlen(dir) + strlen(name) + 2);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:543: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).
	fullname = (char *)malloc(strlen(dir) + strlen(name) + 2);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:546:3:  [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(fullname, "/");
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:592:28:  [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).
	fullname = (char *)malloc(strlen(context->dir)
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:598: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(fullname, "/");
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:600:4:  [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(fullname,"/");
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:602: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).
		name = &fullname[strlen(fullname)];
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:626: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).
				accname = (char*)malloc(strlen(name) + 1);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:793:28:  [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).
	fullname = (char *)malloc(strlen(MAPFILE) + 1
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:794:7:  [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(volume) + 1
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:795:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				+ (dir ? strlen(dir) + 1 : 0));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:820: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).
			backup = (char*)malloc(strlen(fullname + 5));
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:842: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).
			if (!write(fn,buf,strlen(buf)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:856: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 (!write(fn,buf,strlen(buf)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:871: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 (!write(fn,buf,strlen(buf)))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:946:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (p && p[0] && (p[strlen(p) - 1] == '\n'))
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:947:6:  [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(p) - 1] = '\0';
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:951: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).
			owner = (char*)malloc(strlen(p) + 1);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfsusermap.c:969: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).
							strlen(mapping
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfswipe.c:1685:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy((char *)(buffer + i), (char *)buffer, i);
data/ntfs-3g-2017.3.23AR.5/ntfsprogs/ntfswipe.c:1696:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy((char *)(buffer + i), (char *)buffer, buflen - i);
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:352:29:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		scx->umask = fusecontext->umask;
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:597: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).
			stbuf->st_size = strlen(target);
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:674:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					stbuf->st_size = strlen(target);
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:920:6:  [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(name) < 256) {
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:1589:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		res = CALL_REPARSE_PLUGIN(ni, read, buf, size, offset, &of->fi);
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:2535:23:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
					perm & ~security.umask, S_ISDIR(type));
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:2575:23:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
					perm & ~security.umask) < 0)
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:3008: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).
	len = strlen(newname) + strlen(ext) + 10 + 1; /* wc(str(2^32)) + \0 */
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:3008: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).
	len = strlen(newname) + strlen(ext) + 10 + 1; /* wc(str(2^32)) + \0 */
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:3444: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).
		    && (strlen(name) != (size_t)nf_ns_user_prefix_len))
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:3448: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).
		    && (strlen(name) != (size_t)nf_ns_system_prefix_len))
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:3452: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).
		    && (strlen(name) != (size_t)nf_ns_security_prefix_len))
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:3456: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).
		    && (strlen(name) != (size_t)nf_ns_trusted_prefix_len))
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:3487:33:  [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).
		prefixed = (char*)ntfs_malloc(strlen(xattr_ntfs_3g)
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:3488:7:  [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(name) + 1);
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:4389:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		mode_t mask = umask(0); 
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:4395:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(mask);
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:4408:18:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			mode_t mask = umask(0); 
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:4410:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			umask(mask);
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:4645: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(opts.mnt_point) < PATH_MAX)
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:4647: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).
				     PATH_MAX - strlen(opts.mnt_point) - 1)) {
data/ntfs-3g-2017.3.23AR.5/src/lowntfs-3g.c:4648:5:  [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(ctx->abs_mnt_point, "/");
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:300:28:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	scx->umask = fusecontext->umask;
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:720: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).
			stbuf->st_size = strlen(target);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:825:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					stbuf->st_size = strlen(target);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:1099:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(buf, gotlink, buf_size);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:1102:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(buf, ntfs_bad_reparse, buf_size);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:1112:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(buf,target,buf_size);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:1506:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		res = CALL_REPARSE_PLUGIN(ni, read, buf, size, offset, fi);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:2060:23:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
					perm & ~security.umask, S_ISDIR(type));
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:2100:23:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
					perm & ~security.umask) < 0)
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:2294:37:  [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).
	samedir = !strncmp(old_path, path, strlen(path))
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:2295: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).
			&& (old_path[strlen(path)] == '/');
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:2515: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).
	len = strlen(new_path) + strlen(ext) + 10 + 1; /* wc(str(2^32)) + \0 */
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:2515: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).
	len = strlen(new_path) + strlen(ext) + 10 + 1; /* wc(str(2^32)) + \0 */
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:2951: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).
		    && (strlen(name) != (size_t)nf_ns_user_prefix_len))
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:2955: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).
		    && (strlen(name) != (size_t)nf_ns_system_prefix_len))
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:2959: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).
		    && (strlen(name) != (size_t)nf_ns_security_prefix_len))
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:2963: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).
		    && (strlen(name) != (size_t)nf_ns_trusted_prefix_len))
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:2994: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).
		prefixed = ntfs_malloc(strlen(xattr_ntfs_3g)
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:2995:7:  [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(name) + 1);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:3127:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(to, tmp_name, tmp_name_len);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:3919:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		mode_t mask = umask(0); 
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:3925:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(mask);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:3938:18:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			mode_t mask = umask(0); 
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:3940:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			umask(mask);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:4180: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(opts.mnt_point) < PATH_MAX)
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:4182: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).
				     PATH_MAX - strlen(opts.mnt_point) - 1)) {
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.c:4183:5:  [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(ctx->abs_mnt_point, "/");
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g.probe.c:111:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(opts.device, optarg, PATH_MAX);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:145: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).
	size_append = strlen(append);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:147: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).
		size_dest = strlen(*dest);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:183: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).
	size_append = strlen(append);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:185: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).
		size_dest = strlen(*dest);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:694: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(tmp_name) > sizeof(xattr_ntfs_3g))
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:709:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(to, tmp_name, tmp_name_len);
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:739: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).
			ret += strlen(item->name) + 1;
data/ntfs-3g-2017.3.23AR.5/src/ntfs-3g_common.c:743: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).
					to += strlen(item->name);

ANALYSIS SUMMARY:

Hits = 965
Lines analyzed = 126366 in approximately 3.12 seconds (40453 lines/second)
Physical Source Lines of Code (SLOC) = 89913
Hits@level = [0] 1995 [1] 259 [2] 457 [3]  45 [4] 189 [5]  15
Hits@level+ = [0+] 2960 [1+] 965 [2+] 706 [3+] 249 [4+] 204 [5+]  15
Hits/KSLOC@level+ = [0+] 32.9207 [1+] 10.7326 [2+] 7.85203 [3+] 2.76934 [4+] 2.26886 [5+] 0.166828
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.