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-exfat-1.3.0/libexfat/byteorder.h
Examining data/fuse-exfat-1.3.0/libexfat/cluster.c
Examining data/fuse-exfat-1.3.0/libexfat/compiler.h
Examining data/fuse-exfat-1.3.0/libexfat/exfat.h
Examining data/fuse-exfat-1.3.0/libexfat/exfatfs.h
Examining data/fuse-exfat-1.3.0/libexfat/io.c
Examining data/fuse-exfat-1.3.0/libexfat/log.c
Examining data/fuse-exfat-1.3.0/libexfat/lookup.c
Examining data/fuse-exfat-1.3.0/libexfat/mount.c
Examining data/fuse-exfat-1.3.0/libexfat/node.c
Examining data/fuse-exfat-1.3.0/libexfat/platform.h
Examining data/fuse-exfat-1.3.0/libexfat/repair.c
Examining data/fuse-exfat-1.3.0/libexfat/time.c
Examining data/fuse-exfat-1.3.0/libexfat/utf.c
Examining data/fuse-exfat-1.3.0/libexfat/utils.c
Examining data/fuse-exfat-1.3.0/fuse/main.c

FINAL RESULTS:

data/fuse-exfat-1.3.0/fuse/main.c:410: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(options, name);
data/fuse-exfat-1.3.0/fuse/main.c:414: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(options, value);
data/fuse-exfat-1.3.0/libexfat/compiler.h:33:38:  [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 __attribute__((format(printf, 1, 2)))
data/fuse-exfat-1.3.0/libexfat/compiler.h:42:38:  [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 __attribute__((format(printf, 1, 2)))
data/fuse-exfat-1.3.0/libexfat/log.c:46: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, ap);
data/fuse-exfat-1.3.0/libexfat/log.c:74: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, ap);
data/fuse-exfat-1.3.0/libexfat/log.c:100: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, ap);
data/fuse-exfat-1.3.0/libexfat/log.c:123: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, ap);
data/fuse-exfat-1.3.0/libexfat/node.c:1224: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(ef->label, label);
data/fuse-exfat-1.3.0/fuse/main.c:541:16:  [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 ((opt = getopt(argc, argv, "dno:Vv")) != -1)
data/fuse-exfat-1.3.0/fuse/main.c:104: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[EXFAT_UTF8_NAME_BUFFER_MAX];
data/fuse-exfat-1.3.0/fuse/main.c:477: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 blksize[20];
data/fuse-exfat-1.3.0/libexfat/exfat.h:121: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 label[EXFAT_UTF8_ENAME_BUFFER_MAX];
data/fuse-exfat-1.3.0/libexfat/exfat.h:193:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[EXFAT_UTF8_NAME_BUFFER_MAX]);
data/fuse-exfat-1.3.0/libexfat/io.c:64: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(spec, O_RDONLY);
data/fuse-exfat-1.3.0/libexfat/io.c:69:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(spec, O_RDWR);
data/fuse-exfat-1.3.0/libexfat/io.c:106:7:  [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 (open("/dev/null", O_RDWR) == -1)
data/fuse-exfat-1.3.0/libexfat/node.c:40: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[EXFAT_UTF8_NAME_BUFFER_MAX];
data/fuse-exfat-1.3.0/libexfat/node.c:158: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(node->name + i * EXFAT_ENAME_MAX,
data/fuse-exfat-1.3.0/libexfat/node.c:214: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[EXFAT_UTF8_NAME_BUFFER_MAX];
data/fuse-exfat-1.3.0/libexfat/node.c:594: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[EXFAT_UTF8_NAME_BUFFER_MAX];
data/fuse-exfat-1.3.0/libexfat/node.c:916: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(name_entry->name, name + i * EXFAT_ENAME_MAX,
data/fuse-exfat-1.3.0/libexfat/node.c:929: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(node->name, name, name_length * sizeof(le16_t));
data/fuse-exfat-1.3.0/libexfat/node.c:1042: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(name_entry->name, name + i * EXFAT_ENAME_MAX,
data/fuse-exfat-1.3.0/libexfat/node.c:1051: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(node->name, name, (EXFAT_NAME_MAX + 1) * sizeof(le16_t));
data/fuse-exfat-1.3.0/libexfat/repair.c:31: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 answer[8];
data/fuse-exfat-1.3.0/libexfat/utils.c:49:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[EXFAT_UTF8_NAME_BUFFER_MAX])
data/fuse-exfat-1.3.0/fuse/main.c:398:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size = strlen(options) + strlen(name) + strlen(value) + 3;
data/fuse-exfat-1.3.0/fuse/main.c:398: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).
		size = strlen(options) + strlen(name) + strlen(value) + 3;
data/fuse-exfat-1.3.0/fuse/main.c:398:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size = strlen(options) + strlen(name) + strlen(value) + 3;
data/fuse-exfat-1.3.0/fuse/main.c:400:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size = strlen(options) + strlen(name) + 2;
data/fuse-exfat-1.3.0/fuse/main.c:400: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).
		size = strlen(options) + strlen(name) + 2;
data/fuse-exfat-1.3.0/fuse/main.c:409:2:  [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(options, ",");
data/fuse-exfat-1.3.0/fuse/main.c:413: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(options, "=");
data/fuse-exfat-1.3.0/fuse/main.c:432: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).
	char* escaped = malloc(strlen(spec) * 2 + 1);
data/fuse-exfat-1.3.0/libexfat/io.c:337:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(dev->fd, buffer, size);
data/fuse-exfat-1.3.0/libexfat/lookup.c:116:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		return strlen(*comp);
data/fuse-exfat-1.3.0/libexfat/mount.c:64: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 length = strlen(option_name);
data/fuse-exfat-1.3.0/libexfat/mount.c:85: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 length = strlen(option_name);
data/fuse-exfat-1.3.0/libexfat/node.c:1204:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	rc = utf8_to_utf16(label_utf16, label, EXFAT_ENAME_MAX + 1, strlen(label));

ANALYSIS SUMMARY:

Hits = 40
Lines analyzed = 4847 in approximately 0.17 seconds (27987 lines/second)
Physical Source Lines of Code (SLOC) = 3770
Hits@level = [0]  11 [1]  13 [2]  17 [3]   1 [4]   9 [5]   0
Hits@level+ = [0+]  51 [1+]  40 [2+]  27 [3+]  10 [4+]   9 [5+]   0
Hits/KSLOC@level+ = [0+] 13.5279 [1+] 10.6101 [2+] 7.1618 [3+] 2.65252 [4+] 2.38727 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.