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/imapfilter-2.7.4/src/auth.c
Examining data/imapfilter-2.7.4/src/buffer.c
Examining data/imapfilter-2.7.4/src/buffer.h
Examining data/imapfilter-2.7.4/src/cert.c
Examining data/imapfilter-2.7.4/src/core.c
Examining data/imapfilter-2.7.4/src/file.c
Examining data/imapfilter-2.7.4/src/imapfilter.c
Examining data/imapfilter-2.7.4/src/imapfilter.h
Examining data/imapfilter-2.7.4/src/list.c
Examining data/imapfilter-2.7.4/src/list.h
Examining data/imapfilter-2.7.4/src/log.c
Examining data/imapfilter-2.7.4/src/lua.c
Examining data/imapfilter-2.7.4/src/memory.c
Examining data/imapfilter-2.7.4/src/misc.c
Examining data/imapfilter-2.7.4/src/namespace.c
Examining data/imapfilter-2.7.4/src/pathnames.h
Examining data/imapfilter-2.7.4/src/pcre.c
Examining data/imapfilter-2.7.4/src/regexp.c
Examining data/imapfilter-2.7.4/src/regexp.h
Examining data/imapfilter-2.7.4/src/request.c
Examining data/imapfilter-2.7.4/src/response.c
Examining data/imapfilter-2.7.4/src/session.c
Examining data/imapfilter-2.7.4/src/session.h
Examining data/imapfilter-2.7.4/src/signal.c
Examining data/imapfilter-2.7.4/src/socket.c
Examining data/imapfilter-2.7.4/src/system.c
Examining data/imapfilter-2.7.4/src/version.h

FINAL RESULTS:

data/imapfilter-2.7.4/src/cert.c:156: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(i != *mdlen - 1 ? "%02X:" : "%02X\n", md[i]);
data/imapfilter-2.7.4/src/file.c:63:6:  [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(fname, F_OK))
data/imapfilter-2.7.4/src/file.c:83:6:  [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(dname, F_OK))
data/imapfilter-2.7.4/src/log.c:41: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/imapfilter-2.7.4/src/log.c:59: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(debugfp, fmt, args);
data/imapfilter-2.7.4/src/log.c:88: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, args);
data/imapfilter-2.7.4/src/log.c:94:3:  [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(logfp, fmt, args);
data/imapfilter-2.7.4/src/log.c:113: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, args);
data/imapfilter-2.7.4/src/log.c:120:3:  [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(logfp, fmt, args);
data/imapfilter-2.7.4/src/request.c:81: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.
	n = vsnprintf(obuf.data + obuf.len, obuf.size - obuf.len -
data/imapfilter-2.7.4/src/request.c:87:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		vsnprintf(obuf.data + obuf.len, obuf.size - obuf.len -
data/imapfilter-2.7.4/src/system.c:121:8:  [4] (shell) popen:
  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.
	*fp = popen(lua_tostring(lua, 1), lua_tostring(lua, 2));
data/imapfilter-2.7.4/src/file.c:27: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.
	h = getenv("HOME");
data/imapfilter-2.7.4/src/file.c:28: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.
	i = getenv("IMAPFILTER_HOME");
data/imapfilter-2.7.4/src/imapfilter.c:79: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, "Vc:d:e:il:nt:v?")) != -1) {
data/imapfilter-2.7.4/src/auth.c:21:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char md[EVP_MAX_MD_SIZE], mdhex[EVP_MAX_MD_SIZE * 2 + 1];
data/imapfilter-2.7.4/src/cert.c:34: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 md[EVP_MAX_MD_SIZE];
data/imapfilter-2.7.4/src/cert.c:93: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 md[EVP_MAX_MD_SIZE];
data/imapfilter-2.7.4/src/cert.c:104: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).
	fd = fopen(certf, "r");
data/imapfilter-2.7.4/src/cert.c:203: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 c, buf[LINE_MAX];
data/imapfilter-2.7.4/src/cert.c:222: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).
	fd = fopen(certf, "a");
data/imapfilter-2.7.4/src/file.c:106: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(fname, O_CREAT | O_WRONLY | O_TRUNC, mode);
data/imapfilter-2.7.4/src/log.c:151: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).
	debugfp = fopen(opts.debug, "w");
data/imapfilter-2.7.4/src/log.c:190: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).
	logfp = fopen(opts.log, "a");
data/imapfilter-2.7.4/src/lua.c:161: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[LINE_MAX];
data/imapfilter-2.7.4/src/memory.c:87: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(dup, str, len);
data/imapfilter-2.7.4/src/namespace.c:102: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 ucp[4], ucplast, ucptemp;
data/imapfilter-2.7.4/src/namespace.c:238: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 ucp[4], ucptemp;
data/imapfilter-2.7.4/src/namespace.c:239: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 b64[6], b64last;
data/imapfilter-2.7.4/src/request.c:582: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 f[n];
data/imapfilter-2.7.4/src/request.c:606: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 f[n];
data/imapfilter-2.7.4/src/response.c:114: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 t[4 + 1];
data/imapfilter-2.7.4/src/system.c:290:13:  [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("/dev/null", O_RDWR)) == -1 ||
data/imapfilter-2.7.4/src/auth.c:29: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).
	n = strlen((char *)(chal)) * 3 / 4 + 1;
data/imapfilter-2.7.4/src/auth.c:33: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).
	EVP_DecodeBlock(resp, chal, strlen((char *)(chal)));
data/imapfilter-2.7.4/src/auth.c:37: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).
	HMAC_Init_ex(ctx, (const unsigned char *)pass, strlen(pass),
data/imapfilter-2.7.4/src/auth.c:39: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).
	HMAC_Update(ctx, resp, strlen((char *)(resp)));
data/imapfilter-2.7.4/src/auth.c:44: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).
	HMAC_Init(&ctx, (const unsigned char *)pass, strlen(pass), EVP_md5());
data/imapfilter-2.7.4/src/auth.c:45: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).
	HMAC_Update(&ctx, resp, strlen((char *)(resp)));
data/imapfilter-2.7.4/src/auth.c:58: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).
	n = strlen(user) + 1 + strlen((char *)(mdhex)) + 1;
data/imapfilter-2.7.4/src/auth.c:58: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).
	n = strlen(user) + 1 + strlen((char *)(mdhex)) + 1;
data/imapfilter-2.7.4/src/auth.c:64: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).
	n = (strlen((char *)(buf)) + 3) * 4 / 3 + 1;
data/imapfilter-2.7.4/src/auth.c:68: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).
	EVP_EncodeBlock(out, buf, strlen((char *)(buf)));
data/imapfilter-2.7.4/src/cert.c:187: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(buf);
data/imapfilter-2.7.4/src/file.c:31: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).
		n = strlen(h ? h : "") + strlen(h ? "/" : "") +
data/imapfilter-2.7.4/src/file.c:31: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).
		n = strlen(h ? h : "") + strlen(h ? "/" : "") +
data/imapfilter-2.7.4/src/file.c:32: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(".imapfilter");
data/imapfilter-2.7.4/src/file.c:34: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).
		n = strlen(i);
data/imapfilter-2.7.4/src/file.c:150: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).
	n = strlen(env.home) + strlen("/") + strlen(fname);
data/imapfilter-2.7.4/src/file.c:150: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).
	n = strlen(env.home) + strlen("/") + strlen(fname);
data/imapfilter-2.7.4/src/file.c:150: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).
	n = strlen(env.home) + strlen("/") + strlen(fname);
data/imapfilter-2.7.4/src/lua.c:77: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).
		if (luaL_loadbuffer(lua, opts.oneline, strlen(opts.oneline),
data/imapfilter-2.7.4/src/lua.c:172: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).
		if (luaL_loadbuffer(lua, buf, strlen(buf), "=<line>") ||
data/imapfilter-2.7.4/src/misc.c:19: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).
	hl = strlen(haystack);
data/imapfilter-2.7.4/src/misc.c:20: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).
	nl = strlen(needle);
data/imapfilter-2.7.4/src/namespace.c:77: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).
	o = strlen(prefix ? prefix : "");
data/imapfilter-2.7.4/src/namespace.c:105: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).
	buffer_check(&nbuf, strlen(mbox));
data/imapfilter-2.7.4/src/namespace.c:108: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).
	nbuf.len = strlen(nbuf.data);
data/imapfilter-2.7.4/src/namespace.c:242: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).
	buffer_check(&cbuf, strlen(mbox));
data/imapfilter-2.7.4/src/namespace.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).
	cbuf.len = strlen(cbuf.data);
data/imapfilter-2.7.4/src/pcre.c:91: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).
	subject_length = strlen((char *)subject);
data/imapfilter-2.7.4/src/request.c:82: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("\r\n") + 1, fmt, args);
data/imapfilter-2.7.4/src/request.c:88: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("\r\n") + 1, fmt, args);
data/imapfilter-2.7.4/src/request.c:91: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).
	obuf.len = strlen(obuf.data);
data/imapfilter-2.7.4/src/request.c:94: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).
	obuf.len = strlen(obuf.data);
data/imapfilter-2.7.4/src/request.c:96: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).
	if (!strncasecmp(fmt, "LOGIN", strlen("LOGIN"))) {
data/imapfilter-2.7.4/src/request.c:98: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).
		    obuf.len - strlen(ssn->password) - strlen("\"\"\r\n"),
data/imapfilter-2.7.4/src/request.c:98: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).
		    obuf.len - strlen(ssn->password) - strlen("\"\"\r\n"),
data/imapfilter-2.7.4/src/request.c:101: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(ssn->password) - strlen("\"\"\r\n"),  obuf.data);
data/imapfilter-2.7.4/src/request.c:101: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).
		    strlen(ssn->password) - strlen("\"\"\r\n"),  obuf.data);
data/imapfilter-2.7.4/src/request.c:128: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).
	    socket_write(ssn, "\r\n", strlen("\r\n")) == -1)
data/imapfilter-2.7.4/src/request.c:252: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).
				    strlen((char *)(out))));
data/imapfilter-2.7.4/src/request.c:580: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).
		int n = strlen("BODY.PEEK[HEADER.FIELDS ()]") +
data/imapfilter-2.7.4/src/request.c:581: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(headerfields) + 1;
data/imapfilter-2.7.4/src/request.c:605: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).
		int n = strlen("BODY.PEEK[]") + strlen(part) + 1;
data/imapfilter-2.7.4/src/request.c:605: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).
		int n = strlen("BODY.PEEK[]") + strlen(part) + 1;
data/imapfilter-2.7.4/src/request.c:842: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).
			TRY(send_continuation(ssn, "DONE", strlen("DONE")));
data/imapfilter-2.7.4/src/response.c:125: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(t))) {
data/imapfilter-2.7.4/src/response.c:127: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).
			    "OK", strlen("OK")))
data/imapfilter-2.7.4/src/response.c:130: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).
			    "NO", strlen("NO")))
data/imapfilter-2.7.4/src/response.c:133: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).
			    "BAD", strlen("BAD")))
data/imapfilter-2.7.4/src/response.c:534: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).
		n = strlen(v);
data/imapfilter-2.7.4/src/response.c:540: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).
			m += strlen("\n");
data/imapfilter-2.7.4/src/response.c:551: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).
			f += strlen("\n");
data/imapfilter-2.7.4/src/response.c:879: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).
		    "RECENT", strlen("RECENT")))
data/imapfilter-2.7.4/src/response.c:882: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).
		    "EXISTS", strlen("EXISTS")))
data/imapfilter-2.7.4/src/socket.c:170: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(ssn->server))) {
data/imapfilter-2.7.4/src/socket.c:334:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				r = read(ssn->socket, buf, len);
data/imapfilter-2.7.4/src/system.c:194: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).
		n = strlen(c);
data/imapfilter-2.7.4/src/system.c:221: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).
	n = fwrite(lua_tostring(lua, 2), sizeof(char), strlen(lua_tostring(lua,

ANALYSIS SUMMARY:

Hits = 90
Lines analyzed = 6270 in approximately 1.70 seconds (3679 lines/second)
Physical Source Lines of Code (SLOC) = 4332
Hits@level = [0]  44 [1]  57 [2]  18 [3]   3 [4]  12 [5]   0
Hits@level+ = [0+] 134 [1+]  90 [2+]  33 [3+]  15 [4+]  12 [5+]   0
Hits/KSLOC@level+ = [0+] 30.9326 [1+] 20.7756 [2+] 7.61773 [3+] 3.4626 [4+] 2.77008 [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.