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/fdm-1.9+git20181219/array.h
Examining data/fdm-1.9+git20181219/attach.c
Examining data/fdm-1.9+git20181219/buffer.c
Examining data/fdm-1.9+git20181219/cache-op.c
Examining data/fdm-1.9+git20181219/child-deliver.c
Examining data/fdm-1.9+git20181219/child-fetch.c
Examining data/fdm-1.9+git20181219/child.c
Examining data/fdm-1.9+git20181219/cleanup.c
Examining data/fdm-1.9+git20181219/command.c
Examining data/fdm-1.9+git20181219/compat/base64.c
Examining data/fdm-1.9+git20181219/compat/queue.h
Examining data/fdm-1.9+git20181219/compat/strlcat.c
Examining data/fdm-1.9+git20181219/compat/strlcpy.c
Examining data/fdm-1.9+git20181219/compat/strtonum.c
Examining data/fdm-1.9+git20181219/compat/tree.h
Examining data/fdm-1.9+git20181219/connect.c
Examining data/fdm-1.9+git20181219/db-tdb.c
Examining data/fdm-1.9+git20181219/deliver-add-header.c
Examining data/fdm-1.9+git20181219/deliver-add-to-cache.c
Examining data/fdm-1.9+git20181219/deliver-drop.c
Examining data/fdm-1.9+git20181219/deliver-imap.c
Examining data/fdm-1.9+git20181219/deliver-keep.c
Examining data/fdm-1.9+git20181219/deliver-maildir.c
Examining data/fdm-1.9+git20181219/deliver-mbox.c
Examining data/fdm-1.9+git20181219/deliver-pipe.c
Examining data/fdm-1.9+git20181219/deliver-remove-from-cache.c
Examining data/fdm-1.9+git20181219/deliver-remove-header.c
Examining data/fdm-1.9+git20181219/deliver-rewrite.c
Examining data/fdm-1.9+git20181219/deliver-smtp.c
Examining data/fdm-1.9+git20181219/deliver-stdout.c
Examining data/fdm-1.9+git20181219/deliver-tag.c
Examining data/fdm-1.9+git20181219/deliver-write.c
Examining data/fdm-1.9+git20181219/deliver.h
Examining data/fdm-1.9+git20181219/fdm.c
Examining data/fdm-1.9+git20181219/fetch-imap.c
Examining data/fdm-1.9+git20181219/fetch-imappipe.c
Examining data/fdm-1.9+git20181219/fetch-maildir.c
Examining data/fdm-1.9+git20181219/fetch-mbox.c
Examining data/fdm-1.9+git20181219/fetch-nntp.c
Examining data/fdm-1.9+git20181219/fetch-pop3.c
Examining data/fdm-1.9+git20181219/fetch-pop3pipe.c
Examining data/fdm-1.9+git20181219/fetch-stdin.c
Examining data/fdm-1.9+git20181219/fetch.h
Examining data/fdm-1.9+git20181219/file.c
Examining data/fdm-1.9+git20181219/imap-common.c
Examining data/fdm-1.9+git20181219/io.c
Examining data/fdm-1.9+git20181219/io.h
Examining data/fdm-1.9+git20181219/lex.c
Examining data/fdm-1.9+git20181219/log.c
Examining data/fdm-1.9+git20181219/lookup-passwd.c
Examining data/fdm-1.9+git20181219/lookup.c
Examining data/fdm-1.9+git20181219/mail-state.c
Examining data/fdm-1.9+git20181219/mail-time.c
Examining data/fdm-1.9+git20181219/mail.c
Examining data/fdm-1.9+git20181219/match-account.c
Examining data/fdm-1.9+git20181219/match-age.c
Examining data/fdm-1.9+git20181219/match-all.c
Examining data/fdm-1.9+git20181219/match-attachment.c
Examining data/fdm-1.9+git20181219/match-command.c
Examining data/fdm-1.9+git20181219/match-in-cache.c
Examining data/fdm-1.9+git20181219/match-matched.c
Examining data/fdm-1.9+git20181219/match-regexp.c
Examining data/fdm-1.9+git20181219/match-size.c
Examining data/fdm-1.9+git20181219/match-string.c
Examining data/fdm-1.9+git20181219/match-tagged.c
Examining data/fdm-1.9+git20181219/match-unmatched.c
Examining data/fdm-1.9+git20181219/match.h
Examining data/fdm-1.9+git20181219/netrc.c
Examining data/fdm-1.9+git20181219/parent-deliver.c
Examining data/fdm-1.9+git20181219/parent-fetch.c
Examining data/fdm-1.9+git20181219/parse-fn.c
Examining data/fdm-1.9+git20181219/pcre.c
Examining data/fdm-1.9+git20181219/pop3-common.c
Examining data/fdm-1.9+git20181219/privsep.c
Examining data/fdm-1.9+git20181219/re.c
Examining data/fdm-1.9+git20181219/replace.c
Examining data/fdm-1.9+git20181219/shm-mmap.c
Examining data/fdm-1.9+git20181219/strb.c
Examining data/fdm-1.9+git20181219/timer.c
Examining data/fdm-1.9+git20181219/xmalloc.c
Examining data/fdm-1.9+git20181219/fdm.h

FINAL RESULTS:

data/fdm-1.9+git20181219/file.c:239:7:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		if (chown(path, uid, gid) != 0)
data/fdm-1.9+git20181219/command.c:138:3:  [4] (shell) execl:
  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.
		execl(_PATH_BSHELL, "sh", "-c", s, (char *) NULL);
data/fdm-1.9+git20181219/deliver-imap.c:184:30:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	if (conf.debug > 3 && !conf.syslog)
data/fdm-1.9+git20181219/deliver-smtp.c:84:30:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	if (conf.debug > 3 && !conf.syslog)
data/fdm-1.9+git20181219/fdm.c:407:11:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	if (conf.syslog)
data/fdm-1.9+git20181219/fdm.c:444:7:  [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 (access(conf.conf_file, R_OK) != 0) {
data/fdm-1.9+git20181219/fdm.h:135:45:  [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 printflike1 __attribute__ ((format (printf, 1, 2)))
data/fdm-1.9+git20181219/fdm.h:136:45:  [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 printflike2 __attribute__ ((format (printf, 2, 3)))
data/fdm-1.9+git20181219/fdm.h:137:45:  [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 printflike3 __attribute__ ((format (printf, 3, 4)))
data/fdm-1.9+git20181219/fdm.h:138:45:  [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 printflike4 __attribute__ ((format (printf, 4, 5)))
data/fdm-1.9+git20181219/fdm.h:139:45:  [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 printflike5 __attribute__ ((format (printf, 5, 6)))
data/fdm-1.9+git20181219/fdm.h:140:45:  [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 printflike6 __attribute__ ((format (printf, 6, 7)))
data/fdm-1.9+git20181219/fdm.h:612:9:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	int			 syslog;
data/fdm-1.9+git20181219/fetch-imap.c:87:30:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	if (conf.debug > 3 && !conf.syslog)
data/fdm-1.9+git20181219/fetch-imappipe.c:116:30:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	if (conf.debug > 3 && !conf.syslog) {
data/fdm-1.9+git20181219/fetch-nntp.c:404:30:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	if (conf.debug > 3 && !conf.syslog)
data/fdm-1.9+git20181219/fetch-pop3.c:91:30:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	if (conf.debug > 3 && !conf.syslog)
data/fdm-1.9+git20181219/fetch-pop3pipe.c:116:30:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	if (conf.debug > 3 && !conf.syslog) {
data/fdm-1.9+git20181219/fetch-stdin.c:87:30:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	if (conf.debug > 3 && !conf.syslog)
data/fdm-1.9+git20181219/log.c:124:7:  [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.
		if (vfprintf(f, fmt, ap) == -1)
data/fdm-1.9+git20181219/xmalloc.c:178:6:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	i = vsnprintf(buf, len, fmt, ap);
data/fdm-1.9+git20181219/fdm.c:339: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, "a:D:f:hklmnqu:vx:")) != -1) {
data/fdm-1.9+git20181219/fdm.c:352:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			home = getenv("HOME");
data/fdm-1.9+git20181219/fdm.c:613:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	s = getenv("TMPDIR");
data/fdm-1.9+git20181219/file.c:170:3:  [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((u_int) getpid());
data/fdm-1.9+git20181219/file.c:172:24:  [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.
	us = LOCKSLEEPTIME + (random() % LOCKSLEEPTIME);
data/fdm-1.9+git20181219/mail-time.c:59:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	saved_tz = getenv("TZ");
data/fdm-1.9+git20181219/array.h:107: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((a)->list + (a)->num, (b)->list, (b)->num * ARRAY_ITEMSIZE(a)); \
data/fdm-1.9+git20181219/attach.c:145: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(type, hdr, ptr - hdr);
data/fdm-1.9+git20181219/attach.c:198: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, hdr, llen);
data/fdm-1.9+git20181219/buffer.c:171: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(BUFFER_IN(b), data, size);
data/fdm-1.9+git20181219/buffer.c:184: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(data, BUFFER_OUT(b), size);
data/fdm-1.9+git20181219/child-deliver.c:127: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, *cause, *lbuf, *out, *err, tag[24];
data/fdm-1.9+git20181219/child-fetch.c:518: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		 s[128];
data/fdm-1.9+git20181219/child-fetch.c:519: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			 tmp[128];
data/fdm-1.9+git20181219/child-fetch.c:550: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			*hdr, rtime[128], *rhost, total[16];
data/fdm-1.9+git20181219/command.c:66: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_in[0] = open(_PATH_DEVNULL, O_RDONLY, 0);
data/fdm-1.9+git20181219/command.c:80:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd_out[1] = open(_PATH_DEVNULL, O_WRONLY, 0);
data/fdm-1.9+git20181219/connect.c:123: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		*fqdn, name[256], *ptr, *ptr2;
data/fdm-1.9+git20181219/connect.c:193: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			 ni[NI_MAXHOST];
data/fdm-1.9+git20181219/connect.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[1024], *ptr;
data/fdm-1.9+git20181219/connect.c:418:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ptr, pr->user, len);
data/fdm-1.9+git20181219/connect.c:426: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, pr->pass, len);
data/fdm-1.9+git20181219/connect.c:455: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(ptr, srv->host, len);
data/fdm-1.9+git20181219/db-tdb.c:113: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(&v, value.dptr, sizeof v);
data/fdm-1.9+git20181219/db-tdb.c:137: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(&v, value.dptr, sizeof v);
data/fdm-1.9+git20181219/deliver-imap.c:200: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(&fdata.server, &data->server, sizeof fdata.server);
data/fdm-1.9+git20181219/deliver-maildir.c:57: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	host1[MAXHOSTNAMELEN], host2[MAXHOSTNAMELEN];
data/fdm-1.9+git20181219/deliver-maildir.c:98: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[MAXPATHLEN];
data/fdm-1.9+git20181219/deliver-maildir.c:146: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				 src[MAXPATHLEN], dst[MAXPATHLEN];
data/fdm-1.9+git20181219/deliver-write.c:59: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).
		f = fopen(path, "a");
data/fdm-1.9+git20181219/deliver-write.c:62: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).
		f = fopen(path, "w");
data/fdm-1.9+git20181219/fdm.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	host[MAXHOSTNAMELEN];
data/fdm-1.9+git20181219/fdm.c:281: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		 tmp[BUFSIZ], *ptr, *lock = NULL, *user, *home = NULL;
data/fdm-1.9+git20181219/fdm.h:176: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[MAXNAMESIZE];
data/fdm-1.9+git20181219/fdm.h:240: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[MAXNAMLEN];
data/fdm-1.9+git20181219/fdm.h:502: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[MAXNAMESIZE];
data/fdm-1.9+git20181219/fdm.h:531: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[MAXNAMESIZE];
data/fdm-1.9+git20181219/fetch-maildir.c:156: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, entry[MAXPATHLEN];
data/fdm-1.9+git20181219/fetch-maildir.c:337: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, *maildir, name[MAXPATHLEN];
data/fdm-1.9+git20181219/fetch-maildir.c:388:12:  [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 = open(name, O_RDONLY, 0)) == -1) {
data/fdm-1.9+git20181219/fetch-mbox.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			 path[MAXPATHLEN], saved[MAXPATHLEN];
data/fdm-1.9+git20181219/fetch-mbox.c:127: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.
	static const char        c[2] = "\n\n";
data/fdm-1.9+git20181219/fetch-mbox.c:161:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	if ((fd = mkstemp(path)) == -1)
data/fdm-1.9+git20181219/fetch-nntp.c:171: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(*id, ptr, ptr2 - ptr);
data/fdm-1.9+git20181219/fetch-nntp.c:276:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	if ((fd = mkstemp(tmp)) == -1)
data/fdm-1.9+git20181219/fetch.h: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		 path[MAXPATHLEN];
data/fdm-1.9+git20181219/file.c:63: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	lock[MAXPATHLEN];
data/fdm-1.9+git20181219/file.c:88: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	lock[MAXPATHLEN];
data/fdm-1.9+git20181219/file.c:142:12:  [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 = open(path, flags, 0)) == -1)
data/fdm-1.9+git20181219/file.c:162: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		prefix[PATH_MAX * 2];
data/fdm-1.9+git20181219/file.c:221:12:  [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 = open(path, flags|O_CREAT|O_EXCL, mode)) == -1)
data/fdm-1.9+git20181219/file.c:280: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	msg[128];
data/fdm-1.9+git20181219/file.c:294: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	msg[128];
data/fdm-1.9+git20181219/file.c:310: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	msg[128];
data/fdm-1.9+git20181219/imap-common.c:479: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			 out[EVP_MAX_MD_SIZE * 2 + 1];
data/fdm-1.9+git20181219/lex.c:350: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		 token[128], *name;
data/fdm-1.9+git20181219/lex.c: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		 number[32];
data/fdm-1.9+git20181219/lex.c:461: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[MAXNAMESIZE];
data/fdm-1.9+git20181219/lex.c:523: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, s, slen);
data/fdm-1.9+git20181219/lex.c:533: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, s, slen);
data/fdm-1.9+git20181219/lex.c:609: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, s, slen);
data/fdm-1.9+git20181219/lex.c:636:11:  [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(file, "r")) == NULL) {
data/fdm-1.9+git20181219/lex.c:638: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")) == NULL)
data/fdm-1.9+git20181219/log.c:71:13:  [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).
	log_file = fopen(path, "w");
data/fdm-1.9+git20181219/mail-state.c:63: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		 desc[DESCBUFSIZE];
data/fdm-1.9+git20181219/mail.c:62: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(mm, m, sizeof *mm);
data/fdm-1.9+git20181219/mail.c:90: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(m, mm, sizeof *m);
data/fdm-1.9+git20181219/mail.c:256: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(ptr, hdr, hdrlen - newlines);
data/fdm-1.9+git20181219/mail.c:420: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(m->data + m->size, line, size);
data/fdm-1.9+git20181219/match-command.c:93: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				ret[11];
data/fdm-1.9+git20181219/netrc.c:32: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[MAXPATHLEN];
data/fdm-1.9+git20181219/netrc.c:50:11:  [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")) == NULL) {
data/fdm-1.9+git20181219/netrc.c:155: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	 token[BUFSIZ];
data/fdm-1.9+git20181219/parse-fn.c:195: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[BUFSIZ], *su, *ss, desc[DESCBUFSIZE];
data/fdm-1.9+git20181219/parse-fn.c:236: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[BUFSIZ], *su;
data/fdm-1.9+git20181219/parse-fn.c:256: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				 desc[DESCBUFSIZE], *s;
data/fdm-1.9+git20181219/pop3-common.c:243:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	if ((fd = mkstemp(tmp)) == -1)
data/fdm-1.9+git20181219/pop3-common.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			 out[MD5_DIGEST_LENGTH * 2 + 1];
data/fdm-1.9+git20181219/replace.c:128: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		 rtime[128];
data/fdm-1.9+git20181219/replace.c:320: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(dst + off, tptr, tlen);
data/fdm-1.9+git20181219/shm-mmap.c:34:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char	shm_block[BUFSIZ];
data/fdm-1.9+git20181219/shm-mmap.c:47: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	path[MAXPATHLEN];
data/fdm-1.9+git20181219/shm-mmap.c:115:17:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	if ((shm->fd = mkstemp(path)) == -1)
data/fdm-1.9+git20181219/shm-mmap.c:179:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((shm->fd = open(path, O_RDWR, 0)) == -1)
data/fdm-1.9+git20181219/strb.c:131: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(STRB_KEY(sb, &sbe), key, keylen);
data/fdm-1.9+git20181219/strb.c:134: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(&sbe, sbep, sizeof sbe);
data/fdm-1.9+git20181219/strb.c:139: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(sbep, &sbe, sizeof sbe);
data/fdm-1.9+git20181219/strb.c:149: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(&sbe, STRB_ENTRY(sb, i), sizeof sbe);
data/fdm-1.9+git20181219/strb.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(&sbe, sbep, sizeof sbe);
data/fdm-1.9+git20181219/strb.c:176: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(&sbe, STRB_ENTRY(sb, i), sizeof sbe);
data/fdm-1.9+git20181219/xmalloc.c:192: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	dst[MAXPATHLEN];
data/fdm-1.9+git20181219/xmalloc.c:201: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	dst[MAXPATHLEN];
data/fdm-1.9+git20181219/attach.c:162: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).
	namelen = strlen(name);
data/fdm-1.9+git20181219/attach.c:246: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).
	bl = strlen(b);
data/fdm-1.9+git20181219/attach.c:305: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).
	bl = strlen(b);
data/fdm-1.9+git20181219/attach.c:362: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).
		bl2 = strlen(b2);
data/fdm-1.9+git20181219/cache-op.c:42:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp(cmd, "add", strlen(cmd)) == 0)
data/fdm-1.9+git20181219/cache-op.c:44: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).
	if (strncmp(cmd, "remove", strlen(cmd)) == 0)
data/fdm-1.9+git20181219/cache-op.c:46: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).
	if (strncmp(cmd, "list", strlen(cmd)) == 0)
data/fdm-1.9+git20181219/cache-op.c:48: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).
	if (strncmp(cmd, "dump", strlen(cmd)) == 0)
data/fdm-1.9+git20181219/cache-op.c:50: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).
	if (strncmp(cmd, "clear", strlen(cmd)) == 0)
data/fdm-1.9+git20181219/command.c:329: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).
			len = strlen(*err);
data/fdm-1.9+git20181219/command.c:340: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).
			len = strlen(*out);
data/fdm-1.9+git20181219/compat/strlcat.c:47: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).
		return(dlen + strlen(s));
data/fdm-1.9+git20181219/connect.c:238: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(url, proxyent->proto, strlen(proxyent->proto)) == 0)
data/fdm-1.9+git20181219/connect.c:243: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).
	url += strlen(proxyent->proto);
data/fdm-1.9+git20181219/connect.c:251: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).
	ptr = url + strlen(url) - 1;
data/fdm-1.9+git20181219/connect.c:412: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(pr->user);
data/fdm-1.9+git20181219/connect.c:420: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(pr->pass);
data/fdm-1.9+git20181219/connect.c:449: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(srv->host);
data/fdm-1.9+git20181219/connect.c:549:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(line) < 12 ||
data/fdm-1.9+git20181219/db-tdb.c:67: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).
	key.dsize = strlen(k);
data/fdm-1.9+git20181219/db-tdb.c:81: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).
	key.dsize = strlen(k);
data/fdm-1.9+git20181219/db-tdb.c:92: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).
	key.dsize = strlen(k);
data/fdm-1.9+git20181219/deliver-imap.c:215:52:  [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 (imap_putln(a, "%u APPEND {%zu}", ++fdata.tag, strlen(folder)) != 0)
data/fdm-1.9+git20181219/deliver-imap.c:309:52:  [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 (imap_putln(a, "%u CREATE {%zu}", ++fdata.tag, strlen(folder)) != 0)
data/fdm-1.9+git20181219/deliver-mbox.c:91: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(path);
data/fdm-1.9+git20181219/deliver-mbox.c:163:39:  [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 (deliver_mbox_write(f, gzf, from, strlen(from)) < 0) {
data/fdm-1.9+git20181219/deliver-rewrite.c:88: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).
		if (append_line(md, out, strlen(out)) != 0) {
data/fdm-1.9+git20181219/fdm.c:392: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).
		if (strncmp(argv[0], "poll", strlen(argv[0])) == 0) {
data/fdm-1.9+git20181219/fdm.c:396:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if (strncmp(argv[0], "fetch", strlen(argv[0])) == 0) {
data/fdm-1.9+git20181219/fdm.c:400:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if (strncmp(argv[0], "cache", strlen(argv[0])) == 0)
data/fdm-1.9+git20181219/fdm.c:480:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(conf.file_umask);
data/fdm-1.9+git20181219/fetch-maildir.c:407:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((n = read(fd, m->data, size)) == -1 || (size_t) n != size) {
data/fdm-1.9+git20181219/fetch-nntp.c:289: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).
		fprintf(f, "%zu %s %u %zu %s\n", strlen(group->name),
data/fdm-1.9+git20181219/fetch-nntp.c:290: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).
		    group->name, group->last, strlen(group->id), group->id);
data/fdm-1.9+git20181219/fetch-nntp.c:704: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).
		if (append_line(m, line, strlen(line)) != 0) {
data/fdm-1.9+git20181219/fetch-stdin.c:120: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).
		if (append_line(m, line, strlen(line)) != 0) {
data/fdm-1.9+git20181219/file.c:174:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(us);
data/fdm-1.9+git20181219/imap-common.c:213: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(in) * 2) + 1;
data/fdm-1.9+git20181219/imap-common.c:215:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (b64_ntop(in, strlen(in), out, size) < 0) {
data/fdm-1.9+git20181219/imap-common.c:229: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(in) * 4) + 1;
data/fdm-1.9+git20181219/imap-common.c:310: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).
		    "%u LOGIN {%zu}", ++data->tag, strlen(data->user)) != 0)
data/fdm-1.9+git20181219/imap-common.c:496: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).
	    data->pass, strlen(data->pass), b64, strlen(b64), digest, &n);
data/fdm-1.9+git20181219/imap-common.c:496: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).
	    data->pass, strlen(data->pass), b64, strlen(b64), digest, &n);
data/fdm-1.9+git20181219/imap-common.c:528: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).
	passlen = strlen(data->pass);
data/fdm-1.9+git20181219/imap-common.c:604: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).
	    ++data->tag, strlen(ARRAY_ITEM(data->folders, data->folder))) != 0)
data/fdm-1.9+git20181219/imap-common.c:922: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(line);
data/fdm-1.9+git20181219/imap-common.c:1033: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).
	lblen = strlen(lb);
data/fdm-1.9+git20181219/io.c:321:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read(io->fd, BUFFER_IN(io->rd), BUFFER_FREE(io->rd));
data/fdm-1.9+git20181219/io.c:532: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).
	eollen = strlen(io->eol);
data/fdm-1.9+git20181219/io.c:663: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).
	io_write(io, io->eol, strlen(io->eol));
data/fdm-1.9+git20181219/io.c:666: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).
	    n + strlen(io->eol), BUFFER_USED(io->wr), BUFFER_FREE(io->wr));
data/fdm-1.9+git20181219/lex.c:47:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define lex_getc() getc(parse_file->f)
data/fdm-1.9+git20181219/lex.c:520: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).
			slen = strlen(s);
data/fdm-1.9+git20181219/lex.c:530: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).
			slen = strlen(s);
data/fdm-1.9+git20181219/lex.c:606: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).
			slen = strlen(s);
data/fdm-1.9+git20181219/mail.c:275: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).
	hdrlen = strlen(hdr) + 1; /* include : */
data/fdm-1.9+git20181219/mail.c:554: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).
		fromlen = strlen(from);
data/fdm-1.9+git20181219/netrc.c:162:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = fgetc(f)) != EOF && (isspace(c) || c == ','))
data/fdm-1.9+git20181219/netrc.c:169:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = fgetc(f)) != EOF && c != '"') {
data/fdm-1.9+git20181219/netrc.c:170:26:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (c == '\\' && (c = fgetc(f)) == EOF)
data/fdm-1.9+git20181219/netrc.c:180:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = fgetc(f)) != EOF && !isspace(c) && c != ',') {
data/fdm-1.9+git20181219/netrc.c:181:26:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (c == '\\' && (c = fgetc(f)) == EOF)
data/fdm-1.9+git20181219/parse-fn.c:66: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).
	ENSURE_SIZE(buf, len, strlen(prefix) + 1);
data/fdm-1.9+git20181219/parse-fn.c:71: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).
		ENSURE_SIZE(buf, len, off + strlen(s) + 4);
data/fdm-1.9+git20181219/parse-fn.c:147: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(s) > MAXNAMESIZE)
data/fdm-1.9+git20181219/parse-fn.c:644: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).
				slen += strlen(out) + 1;
data/fdm-1.9+git20181219/pcre.c:56: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).
	return (re_block(re, s, strlen(s), rml, cause));
data/fdm-1.9+git20181219/pop3-common.c:254: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).
		fprintf(f, "%zu %s\n", strlen(aux->uid), aux->uid);
data/fdm-1.9+git20181219/pop3-common.c:427: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).
			MD5(src, strlen(src), digest);
data/fdm-1.9+git20181219/pop3-common.c:976: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).
		if (append_line(m, line, strlen(line)) != 0) {
data/fdm-1.9+git20181219/re.c:61: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).
	return (re_block(re, s, strlen(s), rml, cause));
data/fdm-1.9+git20181219/replace.c:278: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).
			tlen = strlen(tptr);
data/fdm-1.9+git20181219/replace.c:312: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).
			tlen = strlen(tptr);
data/fdm-1.9+git20181219/strb.c:90: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).
	keylen = strlen(key) + 1;
data/fdm-1.9+git20181219/xmalloc.c:78: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(s) + 1;
data/fdm-1.9+git20181219/xmalloc.c:81:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	return (strncpy(ptr, s, len));

ANALYSIS SUMMARY:

Hits = 189
Lines analyzed = 21423 in approximately 0.62 seconds (34521 lines/second)
Physical Source Lines of Code (SLOC) = 15416
Hits@level = [0]  25 [1]  76 [2]  86 [3]   6 [4]  20 [5]   1
Hits@level+ = [0+] 214 [1+] 189 [2+] 113 [3+]  27 [4+]  21 [5+]   1
Hits/KSLOC@level+ = [0+] 13.8817 [1+] 12.26 [2+] 7.33005 [3+] 1.75143 [4+] 1.36222 [5+] 0.0648677
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.