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/fuse-umfuse-ext2-0.4/fuse-ext2/op_statfs.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_unlink.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/do_readinode.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_init.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_write.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_chmod.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/do_fillstatbuf.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_utimens.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_mknod.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_fsync.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_access.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_rename.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_open.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_read.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/do_check.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_destroy.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_getattr.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/vnode_hash.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_release.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/do_probe.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_readdir.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_mkdir.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_chown.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/ext2-fileio.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_rmdir.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/do_killfilebyinode.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_create.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_flush.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_symlink.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.probe.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_fgetattr.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_link.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_truncate.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/op_readlink.c
Examining data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.h

FINAL RESULTS:

data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:79: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(p, append);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:81: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(p, append);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:90:2:  [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(usage_msg, PACKAGE, VERSION, fuse_version(), V2, HOME);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:238: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(ret, opt);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:241: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(ret, val);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:252:2:  [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(ret, def_opts);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:254: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(ret, def_opts_rd);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:259:2:  [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(ret, opts->device);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:267: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(ret, s + 1);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:269: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(ret, opts->device);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:272: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(ret, opts->volname);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.h:113:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, args);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.h:127:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, args);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.probe.c:40:2:  [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(usage_msg, PACKAGE, VERSION, fuse_version(), PACKAGE, HOME);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.probe.c:74: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(opts->device, optarg);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:115: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/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:144: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(optarg, fulldevice)) {
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.probe.c:57: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/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.probe.c:67:12:  [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(optarg, opts->device)) {
data/fuse-umfuse-ext2-0.4/fuse-ext2/do_killfilebyinode.c:44: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 scratchbuf[3*e2fs->blocksize];
data/fuse-umfuse-ext2-0.4/fuse-ext2/ext2-fileio.c:62: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(&file->inode, inode, sizeof(struct ext2_inode));
data/fuse-umfuse-ext2-0.4/fuse-ext2/ext2-fileio.c:247: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(ptr, file->buf+start, c);
data/fuse-umfuse-ext2-0.4/fuse-ext2/ext2-fileio.c:294:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(file->buf+start, ptr, c);
data/fuse-umfuse-ext2-0.4/fuse-ext2/ext2-fileio.c:446: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 scratchbuf[3 * blocksize];
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:143: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 fulldevice[PATH_MAX+1];
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:221: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(ret, "debug,");
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:235: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(ret, "force,");
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:255:3:  [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(ret, "ro,");
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:257:3:  [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(ret, "rw,");
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:258:2:  [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(ret, "fsname=");
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:261:2:  [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(ret, ",fstypename=");
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:262:2:  [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(ret, "ext2");
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:263:2:  [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(ret, ",volname=");
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.h:235: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.
int op_utimens (const char *path, const struct timespec tv[2]);
data/fuse-umfuse-ext2-0.4/fuse-ext2/op_utimens.c:23: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.
int op_utimens (const char *path, const struct timespec tv[2])
data/fuse-umfuse-ext2-0.4/fuse-ext2/do_check.c:32: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(basename_path) > 255) {
data/fuse-umfuse-ext2-0.4/fuse-ext2/do_check.c:51: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(tmp) > 255) {
data/fuse-umfuse-ext2-0.4/fuse-ext2/do_probe.c:49:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(opts->volname, e2fs->super->s_volume_name, VOLNAME_SIZE_MAX);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:67: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(append) + 1;
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:69: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).
		size += strlen(*dest);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:180: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).
	ret = malloc(strlen(def_opts) + strlen(def_opts_rd) + strlen(orig_opts) + 256 + PATH_MAX);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:180: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).
	ret = malloc(strlen(def_opts) + strlen(def_opts_rd) + strlen(orig_opts) + 256 + PATH_MAX);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:180:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ret = malloc(strlen(def_opts) + strlen(def_opts_rd) + strlen(orig_opts) + 256 + PATH_MAX);
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:240: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(ret, "=");
data/fuse-umfuse-ext2-0.4/fuse-ext2/fuse-ext2.c:243: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(ret, ",");
data/fuse-umfuse-ext2-0.4/fuse-ext2/op_create.c:138: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).
		inode.i_size = strlen(fastsymlink);
data/fuse-umfuse-ext2-0.4/fuse-ext2/op_create.c:139:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy((char *)&(inode.i_block[0]),fastsymlink,
data/fuse-umfuse-ext2-0.4/fuse-ext2/op_readlink.c:72: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).
	s = (size < strlen(pathname) + 1) ? size : strlen(pathname) + 1;
data/fuse-umfuse-ext2-0.4/fuse-ext2/op_readlink.c:72:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	s = (size < strlen(pathname) + 1) ? size : strlen(pathname) + 1;
data/fuse-umfuse-ext2-0.4/fuse-ext2/op_symlink.c:29: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 sourcelen = strlen(sourcename);
data/fuse-umfuse-ext2-0.4/fuse-ext2/op_symlink.c:56: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 (wr != strlen(sourcename)) {
data/fuse-umfuse-ext2-0.4/fuse-ext2/op_symlink.c:57:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			debugf("do_write(vnode, %s, %d, 0); failed", sourcename, strlen(sourcename) + 1);

ANALYSIS SUMMARY:

Hits = 52
Lines analyzed = 4078 in approximately 0.15 seconds (27866 lines/second)
Physical Source Lines of Code (SLOC) = 2774
Hits@level = [0]  10 [1]  17 [2]  16 [3]   4 [4]  15 [5]   0
Hits@level+ = [0+]  62 [1+]  52 [2+]  35 [3+]  19 [4+]  15 [5+]   0
Hits/KSLOC@level+ = [0+] 22.3504 [1+] 18.7455 [2+] 12.6172 [3+] 6.84932 [4+] 5.40735 [5+]   0
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.