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/milter-greylist-4.6.2/acl.c
Examining data/milter-greylist-4.6.2/acl.h
Examining data/milter-greylist-4.6.2/brokenmfapi.c
Examining data/milter-greylist-4.6.2/brokenmfapi.h
Examining data/milter-greylist-4.6.2/brokenmfapi_gen.c
Examining data/milter-greylist-4.6.2/clock.c
Examining data/milter-greylist-4.6.2/clock.h
Examining data/milter-greylist-4.6.2/conf.c
Examining data/milter-greylist-4.6.2/conf.h
Examining data/milter-greylist-4.6.2/config.h
Examining data/milter-greylist-4.6.2/dkimcheck.c
Examining data/milter-greylist-4.6.2/dkimcheck.h
Examining data/milter-greylist-4.6.2/dump.c
Examining data/milter-greylist-4.6.2/dnsrbl.c
Examining data/milter-greylist-4.6.2/dnsrbl.h
Examining data/milter-greylist-4.6.2/dump.h
Examining data/milter-greylist-4.6.2/fd_pool.c
Examining data/milter-greylist-4.6.2/fd_pool.h
Examining data/milter-greylist-4.6.2/geoip.c
Examining data/milter-greylist-4.6.2/geoip.h
Examining data/milter-greylist-4.6.2/ldapcheck.c
Examining data/milter-greylist-4.6.2/ldapcheck.h
Examining data/milter-greylist-4.6.2/list.c
Examining data/milter-greylist-4.6.2/list.h
Examining data/milter-greylist-4.6.2/macro.c
Examining data/milter-greylist-4.6.2/macro.h
Examining data/milter-greylist-4.6.2/milter-greylist.c
Examining data/milter-greylist-4.6.2/milter-greylist.h
Examining data/milter-greylist-4.6.2/mx.c
Examining data/milter-greylist-4.6.2/mx.h
Examining data/milter-greylist-4.6.2/nsupdate.c
Examining data/milter-greylist-4.6.2/nsupdate.h
Examining data/milter-greylist-4.6.2/p0f.c
Examining data/milter-greylist-4.6.2/p0f.h
Examining data/milter-greylist-4.6.2/pending.c
Examining data/milter-greylist-4.6.2/pending.h
Examining data/milter-greylist-4.6.2/prop.c
Examining data/milter-greylist-4.6.2/prop.h
Examining data/milter-greylist-4.6.2/queue.h
Examining data/milter-greylist-4.6.2/ratelimit.c
Examining data/milter-greylist-4.6.2/ratelimit.h
Examining data/milter-greylist-4.6.2/sm_os.h
Examining data/milter-greylist-4.6.2/spamd.c
Examining data/milter-greylist-4.6.2/spamd.h
Examining data/milter-greylist-4.6.2/spf.c
Examining data/milter-greylist-4.6.2/spf.h
Examining data/milter-greylist-4.6.2/stat.c
Examining data/milter-greylist-4.6.2/stat.h
Examining data/milter-greylist-4.6.2/store.c
Examining data/milter-greylist-4.6.2/store.h
Examining data/milter-greylist-4.6.2/sync.c
Examining data/milter-greylist-4.6.2/sync.h
Examining data/milter-greylist-4.6.2/urlcheck.c
Examining data/milter-greylist-4.6.2/urlcheck.h

FINAL RESULTS:

data/milter-greylist-4.6.2/milter-greylist.c:1935:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			if (chmod(conf.c_socket, conf.c_socket_mode) == -1)
data/milter-greylist-4.6.2/milter-greylist.c:2042:8:  [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(conf.c_pidfile, pw->pw_uid, pw->pw_gid) != 0)
data/milter-greylist-4.6.2/milter-greylist.c:2053:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		    (chown(conf.c_socket, pw->pw_uid, pw->pw_gid) != 0))
data/milter-greylist-4.6.2/acl.c:2662: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(cbig, big);
data/milter-greylist-4.6.2/acl.c:2669: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(clittle, little);
data/milter-greylist-4.6.2/dkimcheck.c:131: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(header, name);
data/milter-greylist-4.6.2/milter-greylist.c:897: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(l->l_line, name);
data/milter-greylist-4.6.2/milter-greylist.c:898: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(l->l_line, sep);
data/milter-greylist-4.6.2/milter-greylist.c:899: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(l->l_line, value);
data/milter-greylist-4.6.2/milter-greylist.c:900: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(l->l_line, crlf);
data/milter-greylist-4.6.2/milter-greylist.c:1287:10:  [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).
			(void)strcat((char *)newbody, l->l_line);
data/milter-greylist-4.6.2/milter-greylist.c:1289:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		(void)strcat((char *)newbody, footer);
data/milter-greylist-4.6.2/milter-greylist.c:1330:10:  [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).
			(void)strcat(newline, subjhdr);
data/milter-greylist-4.6.2/milter-greylist.c:1331:10:  [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).
			(void)strcat(newline, tag);
data/milter-greylist-4.6.2/milter-greylist.c:1332:10:  [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).
			(void)strcat(newline, oldline);
data/milter-greylist-4.6.2/milter-greylist.c:2052:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if ((access(conf.c_socket, F_OK) == 0) &&
data/milter-greylist-4.6.2/milter-greylist.c:2156: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(path, F_OK) != -1 || access(parent, F_OK) != -1)
data/milter-greylist-4.6.2/milter-greylist.c:2156:34:  [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(path, F_OK) != -1 || access(parent, F_OK) != -1)
data/milter-greylist-4.6.2/milter-greylist.c:2159:35:  [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 (mkdir(parent, mode) == -1 || access(parent, F_OK) == -1) {
data/milter-greylist-4.6.2/milter-greylist.c:2603:2:  [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(messagebuf, sizeof(messagebuf), fmt, ap);
data/milter-greylist-4.6.2/milter-greylist.c:2619: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(stderr, fmt, ap);
data/milter-greylist-4.6.2/p0f.c:337:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void)sprintf(priv->priv_p0f, "%s %s", rep.genre, rep.detail);
data/milter-greylist-4.6.2/p0f.c:436:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void)sprintf(priv->priv_p0f, "%s %s", rep.os_name, rep.os_flavor);
data/milter-greylist-4.6.2/spamd.c:436: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(host, path);
data/milter-greylist-4.6.2/stat.c:118:11:  [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.
		outfp = popen(output + 1, "w");
data/milter-greylist-4.6.2/urlcheck.c:342:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buffer, len, post_header_templ, pd->pd_boundary);
data/milter-greylist-4.6.2/urlcheck.c:417:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(buffer, len, post_trailer_templ, pd->pd_boundary);
data/milter-greylist-4.6.2/urlcheck.c:952:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(head, head_templ, pd.pd_boundary);
data/milter-greylist-4.6.2/milter-greylist.c:1631:15:  [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 ((ch = getopt(argc, argv, "Aa:cvDd:qw:f:hp:P:Tu:rSL:M:l")) != -1) {
data/milter-greylist-4.6.2/acl.c:777: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(ap->ap_pmatch[i - 1], string + pmatch[i].rm_so, len - 1);
data/milter-greylist-4.6.2/acl.c:939: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 lh_priv[ADDRLEN + 1];
data/milter-greylist-4.6.2/acl.c:940: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 lh_test[ADDRLEN + 1];
data/milter-greylist-4.6.2/acl.c:1286: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 errstr[ERRLEN + 1];
data/milter-greylist-4.6.2/acl.c:1530: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(ad->netblock.addr, sa, salen);
data/milter-greylist-4.6.2/acl.c:1531: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(ad->netblock.mask, &mask, masklen);
data/milter-greylist-4.6.2/acl.c:1551: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 addrstr[IPADDRSTRLEN];
data/milter-greylist-4.6.2/acl.c:1552: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 maskstr[IPADDRSTRLEN];
data/milter-greylist-4.6.2/acl.c:2025:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char tmpbuf[64];
data/milter-greylist-4.6.2/acl.c:2040: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 tmpbuf[64];
data/milter-greylist-4.6.2/acl.c:2064:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char b[1024];
data/milter-greylist-4.6.2/acl.c:2147:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char b[1024];
data/milter-greylist-4.6.2/acl.c:2228: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 addrstr[IPADDRSTRLEN];
data/milter-greylist-4.6.2/acl.c:2371: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 aclstr[HDRLEN + 1];
data/milter-greylist-4.6.2/acl.c:2396: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 addrstr[IPADDRSTRLEN];
data/milter-greylist-4.6.2/acl.c:2397: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 whystr[HDRLEN];
data/milter-greylist-4.6.2/acl.c:2398: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 tmpstr[HDRLEN];
data/milter-greylist-4.6.2/acl.c:2722: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 tempstr[HDRLEN];
data/milter-greylist-4.6.2/acl.c:2765: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 tempstr2[HDRLEN];
data/milter-greylist-4.6.2/acl.c:2884: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 aclstr[HDRLEN + 11];
data/milter-greylist-4.6.2/clock.c:142:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[CS_MAX][QSTRLEN + 1];
data/milter-greylist-4.6.2/clock.c:323:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[QSTRLEN + 1];
data/milter-greylist-4.6.2/conf.c:135: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 textdate[DATELEN];
data/milter-greylist-4.6.2/conf.c:169: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(newconf, &defconf, sizeof *newconf);
data/milter-greylist-4.6.2/conf.c:373: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 textdate[DATELEN];
data/milter-greylist-4.6.2/conf.c:402: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 textdate[DATELEN];
data/milter-greylist-4.6.2/conf.h:105: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_pidfile_storage[QSTRLEN + 1];
data/milter-greylist-4.6.2/conf.h:106: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_dumpfile_storage[QSTRLEN + 1];
data/milter-greylist-4.6.2/conf.h:107: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_socket_storage[QSTRLEN + 1];
data/milter-greylist-4.6.2/conf.h:108: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_user_storage[QSTRLEN + 1];
data/milter-greylist-4.6.2/conf.h:109: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_syncaddr_storage[IPADDRSTRLEN + 1];
data/milter-greylist-4.6.2/conf.h:110: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_syncport_storage[NUMLEN + 1];
data/milter-greylist-4.6.2/conf.h:111:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char c_syncsrcaddr_storage[IPADDRSTRLEN + 1];
data/milter-greylist-4.6.2/conf.h:112:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char c_syncsrcport_storage[NUMLEN + 1];
data/milter-greylist-4.6.2/conf.h:113: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_dracdb_storage[QSTRLEN + 1];
data/milter-greylist-4.6.2/conf.h:117: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_p0fsock[QSTRLEN + 1];
data/milter-greylist-4.6.2/conf.h:120: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_spamdsock[QSTRLEN + 1];
data/milter-greylist-4.6.2/conf.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 c_spamdsocktype[QSTRLEN + 1];
data/milter-greylist-4.6.2/conf.h:124: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_localaddr_string[IPADDRSTRLEN];
data/milter-greylist-4.6.2/dkimcheck.c:235:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_dkim_result, "pass");
data/milter-greylist-4.6.2/dkimcheck.c:242:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_dkim_result, "fail");
data/milter-greylist-4.6.2/dkimcheck.c:252:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_dkim_result, "permerror");
data/milter-greylist-4.6.2/dkimcheck.c:261:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_dkim_result, "temperror");
data/milter-greylist-4.6.2/dkimcheck.c:266:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_dkim_result, "none");
data/milter-greylist-4.6.2/dkimcheck.c:271:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_dkim_result, "neutral");
data/milter-greylist-4.6.2/dkimcheck.c:325: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[QSTRLEN + 1];
data/milter-greylist-4.6.2/dnsrbl.c:116: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 req[NS_MAXDNAME + 1];
data/milter-greylist-4.6.2/dnsrbl.c:231: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(saddr, rr.rdata, len);
data/milter-greylist-4.6.2/dnsrbl.c:239: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(saddr, rr.rdata, len);
data/milter-greylist-4.6.2/dnsrbl.c:270:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char addrstr[NS_MAXDNAME + 1];
data/milter-greylist-4.6.2/dnsrbl.c:307:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%x.%x", addr[i] & 0x0f, (addr[i] & 0xf0) >> 4);
data/milter-greylist-4.6.2/dnsrbl.c:309:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf + (sizeof(struct in6_addr) - i) * 4 - 5,
data/milter-greylist-4.6.2/dnsrbl.c:328: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 addrstr[IPADDRSTRLEN];
data/milter-greylist-4.6.2/dnsrbl.c:369: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(&de->d_blacklisted, blacklisted, salen);
data/milter-greylist-4.6.2/dnsrbl.h:42: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 d_name[QSTRLEN + 1];
data/milter-greylist-4.6.2/dnsrbl.h:43: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 d_domain[NS_MAXDNAME + 1];
data/milter-greylist-4.6.2/dump.c:198: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 newdumpfile[MAXPATHLEN + 1];
data/milter-greylist-4.6.2/dump.c:236:16:  [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 ((dumpfd = mkstemp(newdumpfile)) == -1) {
data/milter-greylist-4.6.2/dump.c:364: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 textdate[DATELEN + 1];
data/milter-greylist-4.6.2/fd_pool.c:99:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char fd_pool[256];
data/milter-greylist-4.6.2/fd_pool.c:120:27:  [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 ((descriptor = open(FNAME, O_RDWR)) < 0) {
data/milter-greylist-4.6.2/fd_pool.c:336:29:  [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 (descriptor < 0) return fopen(path, mode);
data/milter-greylist-4.6.2/fd_pool.c:342: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).
	stream = fopen(path, mode);
data/milter-greylist-4.6.2/fd_pool.h:52:27:  [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).
# define Fopen(path,mode) fopen(path,mode)
data/milter-greylist-4.6.2/geoip.c:63:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char geoip_database[MAXPATHLEN + 1];
data/milter-greylist-4.6.2/geoip.c:64:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char geoip_database_v6[MAXPATHLEN + 1];
data/milter-greylist-4.6.2/geoip.c:147: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 ipstr[IPADDRSTRLEN];
data/milter-greylist-4.6.2/ldapcheck.c:400:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			(void)sprintf(dp, "%%%02X", *cp);
data/milter-greylist-4.6.2/ldapcheck.c:416:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			(void)sprintf(dp, "%%%02X", *cp);
data/milter-greylist-4.6.2/ldapcheck.c:423:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			(void)sprintf(dp, "%%5c%02x", *cp);
data/milter-greylist-4.6.2/ldapcheck.c:701:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(op, "%25");
data/milter-greylist-4.6.2/ldapcheck.h:42: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 lce_name[QSTRLEN + 1];
data/milter-greylist-4.6.2/ldapcheck.h:43:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char lce_url[QSTRLEN + 1];
data/milter-greylist-4.6.2/list.c:166:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/milter-greylist-4.6.2/list.c:194:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char b[1024];
data/milter-greylist-4.6.2/list.c:204:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char b[1024];
data/milter-greylist-4.6.2/list.c:220:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char b[1024];
data/milter-greylist-4.6.2/list.h:47: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 al_name[QSTRLEN + 1];
data/milter-greylist-4.6.2/macro.c:211: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 errstr[ERRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:395: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(&priv->priv_addr, addr, priv->priv_addrlen);
data/milter-greylist-4.6.2/milter-greylist.c:404: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(&priv->priv_addr, addr, priv->priv_addrlen);
data/milter-greylist-4.6.2/milter-greylist.c:472: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 tmpfrom[ADDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:604: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 addrstr[IPADDRSTRLEN];
data/milter-greylist-4.6.2/milter-greylist.c:605: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 rcpt[ADDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:1057: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(l->l_line, priv->priv_buf, bsize);
data/milter-greylist-4.6.2/milter-greylist.c:1063: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(l->l_line + bsize, chunk, i);
data/milter-greylist-4.6.2/milter-greylist.c:1082: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(&priv->priv_buf[priv->priv_buflen], 
data/milter-greylist-4.6.2/milter-greylist.c:1095: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 whystr [HDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:1164: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 addrstr[IPADDRSTRLEN];
data/milter-greylist-4.6.2/milter-greylist.c:1348: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(&priv->priv_sr, &rcpt_sr, sizeof(rcpt_sr));
data/milter-greylist-4.6.2/milter-greylist.c:1757:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char maskstr[IPADDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:1765:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			cidr = atoi(optarg);
data/milter-greylist-4.6.2/milter-greylist.c:1785:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char maskstr[INET6_ADDRSTRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:1795:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			plen = atoi(optarg);
data/milter-greylist-4.6.2/milter-greylist.c:1956:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		(void)open("/dev/null", O_RDONLY, 0);
data/milter-greylist-4.6.2/milter-greylist.c:1958:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		(void)open("/dev/null", O_WRONLY, 0);
data/milter-greylist-4.6.2/milter-greylist.c:1960:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		(void)open("/dev/null", O_WRONLY, 0);
data/milter-greylist-4.6.2/milter-greylist.c:2232: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 numstr[NUMLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:2270:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		return atoi(str);
data/milter-greylist-4.6.2/milter-greylist.c:2277:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	return (atoi(numstr) * unit);
data/milter-greylist-4.6.2/milter-greylist.c:2417: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 addrstr[IPADDRSTRLEN];
data/milter-greylist-4.6.2/milter-greylist.c:2471: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 ipkey[64];
data/milter-greylist-4.6.2/milter-greylist.c:2601: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 messagebuf[LINE_MAX];
data/milter-greylist-4.6.2/milter-greylist.c:2697: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(str + slen, append, alen);
data/milter-greylist-4.6.2/milter-greylist.c:2858: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 tmpaddr[ADDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:2977:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char ipstr[IPADDRSTRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:2985:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char ipstr[IPADDRSTRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:2986:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char revipstr[IPADDRSTRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:3002:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				(void)memcpy(revipstr + len - cplen, cp, cplen);
data/milter-greylist-4.6.2/milter-greylist.c:3010:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char dnsrbl[QSTRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:3024:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[QSTRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:3036:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char ipstr[IPADDRSTRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:3076:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&addr, &priv->priv_addr, 
data/milter-greylist-4.6.2/milter-greylist.c:3089:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&addr, &priv->priv_addr, 
data/milter-greylist-4.6.2/milter-greylist.c:3140:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char tzstr[HDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:3173:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char host[ADDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:3174:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char output[HDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:3191:6:  [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 tmpfrom[
data/milter-greylist-4.6.2/milter-greylist.c:3281:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char num[16];
data/milter-greylist-4.6.2/milter-greylist.c:3318:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char num[16];
data/milter-greylist-4.6.2/milter-greylist.c:3354:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char host[ADDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:3355:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char timestr[HDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:3356:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char tzstr[HDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:3357:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char tznamestr[HDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:3358:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char output[HDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:3462: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(format, fstring + offset, fstr_len - 3);
data/milter-greylist-4.6.2/milter-greylist.c:3511: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(symname, ptok + 1, fstr_len - 1);
data/milter-greylist-4.6.2/milter-greylist.c:3553:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[16];
data/milter-greylist-4.6.2/milter-greylist.c:3565:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[QSTRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:3583:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[16];
data/milter-greylist-4.6.2/milter-greylist.c:3596:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[QSTRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.c:3616:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[32];
data/milter-greylist-4.6.2/milter-greylist.c:3687: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(name, ptok + 2, fstr_len - 3);
data/milter-greylist-4.6.2/milter-greylist.c:3854:4:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			bcopy(cp + 1, cp, strlen(cp + 1) + 1);
data/milter-greylist-4.6.2/milter-greylist.c:3856:4:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			bcopy(cp + 1 + slen, cp + 1, strlen(cp + 1 + slen) + 1);
data/milter-greylist-4.6.2/milter-greylist.c:3880:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[IPADDRSTRLEN];
data/milter-greylist-4.6.2/milter-greylist.c:4038: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 abuf[IPADDRSTRLEN];
data/milter-greylist-4.6.2/milter-greylist.h:180: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 r_addr[ADDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.h:196:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char priv_hostname[ADDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.h:197: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 priv_helo[ADDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.h:198: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 priv_from[ADDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.h:199: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 priv_rawfrom[ADDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.h:201: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 priv_cur_rcpt[ADDRLEN + 1];
data/milter-greylist-4.6.2/milter-greylist.h:229: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 priv_spf_result[10];
data/milter-greylist-4.6.2/milter-greylist.h:234: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 priv_dkim_result[10];
data/milter-greylist-4.6.2/mx.c:77: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 req[NS_MAXDNAME + 1];
data/milter-greylist-4.6.2/mx.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 str[INET_ADDRSTRLEN];
data/milter-greylist-4.6.2/mx.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 ans[NS_MAXMSG + 1];
data/milter-greylist-4.6.2/mx.c:94: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 ans2[NS_MAXMSG + 1];
data/milter-greylist-4.6.2/mx.c:108: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(saaddr, SADDR4(sa), len);
data/milter-greylist-4.6.2/mx.c:117: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(saaddr, SADDR6(sa), len);
data/milter-greylist-4.6.2/mx.c:236:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(mxaddr, ns_rr_rdata(rr2), len);
data/milter-greylist-4.6.2/mx.c:253:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(mxaddr, ns_rr_rdata(rr2), len);
data/milter-greylist-4.6.2/mx.c:282: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 addrstr[NS_MAXDNAME + 1];
data/milter-greylist-4.6.2/nsupdate.c:186:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&servers[servers_count++].sin,
data/milter-greylist-4.6.2/nsupdate.c:261:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	(void)memcpy(tse->tse_tsig.data, key, keylen);
data/milter-greylist-4.6.2/p0f.c:239: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 sastr[IPADDRSTRLEN + 1];
data/milter-greylist-4.6.2/p0f.c: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 dastr[IPADDRSTRLEN + 1];
data/milter-greylist-4.6.2/p0f.c:241: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 dpstr[IPADDRSTRLEN + 1];
data/milter-greylist-4.6.2/p0f.c:277:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	req.dst_port = atoi(dport);
data/milter-greylist-4.6.2/p0f.c:361: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(&req.addr, SADDR4(&priv->priv_addr), 
data/milter-greylist-4.6.2/p0f.c:367:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&req.addr, SADDR6(&priv->priv_addr),
data/milter-greylist-4.6.2/pending.c:168: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 addr[IPADDRSTRLEN];
data/milter-greylist-4.6.2/pending.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(pending->p_sa, sa, salen);
data/milter-greylist-4.6.2/pending.c:294: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 addr[IPADDRSTRLEN];
data/milter-greylist-4.6.2/pending.c:348: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 addr[IPADDRSTRLEN];
data/milter-greylist-4.6.2/pending.c:650: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 textdate[DATELEN + 1];
data/milter-greylist-4.6.2/pending.c:894: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(sa, res->ai_addr, res->ai_addrlen);
data/milter-greylist-4.6.2/pending.c:909: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(SADDR4(sa), &addr, sizeof(struct in_addr));
data/milter-greylist-4.6.2/pending.c:923: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(SADDR6(sa), &addr6, sizeof(struct in6_addr));
data/milter-greylist-4.6.2/pending.c:943: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 addr[IPADDRSTRLEN];
data/milter-greylist-4.6.2/pending.c:948:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char aclstr[16];
data/milter-greylist-4.6.2/prop.c:322:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		val2 = atoi(up->up_value);
data/milter-greylist-4.6.2/prop.c:347:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	return acl_opnum_cmp(atoi(current), aond->op, aond->num);
data/milter-greylist-4.6.2/prop.c:371:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	return acl_opnum_cmp(atoi(lhs_str), apop->apop_op, atoi(rhs_str));
data/milter-greylist-4.6.2/prop.c:371:53:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	return acl_opnum_cmp(atoi(lhs_str), apop->apop_op, atoi(rhs_str));
data/milter-greylist-4.6.2/prop.c:525:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char errstr[ERRLEN + 1];
data/milter-greylist-4.6.2/prop.c:667: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 newval[16]; /* 16 is enough for an int */
data/milter-greylist-4.6.2/prop.c:676:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void)sprintf(newval, "%d", atoi(current) + (coef * atoi(string)));
data/milter-greylist-4.6.2/prop.c:676:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	(void)sprintf(newval, "%d", atoi(current) + (coef * atoi(string)));
data/milter-greylist-4.6.2/prop.c:676:54:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	(void)sprintf(newval, "%d", atoi(current) + (coef * atoi(string)));
data/milter-greylist-4.6.2/prop.c:721: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 newval[16]; /* 16 is enough for an int */
data/milter-greylist-4.6.2/prop.c:733:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void)sprintf(newval, "%d", atoi(current) +(coef * atoi(string)));
data/milter-greylist-4.6.2/prop.c:733:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	(void)sprintf(newval, "%d", atoi(current) +(coef * atoi(string)));
data/milter-greylist-4.6.2/prop.c:733:53:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	(void)sprintf(newval, "%d", atoi(current) +(coef * atoi(string)));
data/milter-greylist-4.6.2/ratelimit.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 ra_key[QSTRLEN + 1];
data/milter-greylist-4.6.2/ratelimit.h: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.
        char rc_name[QSTRLEN + 1];
data/milter-greylist-4.6.2/ratelimit.h:61: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 rc_key[QSTRLEN + 1];
data/milter-greylist-4.6.2/spamd.c:160: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[SPAMD_BUFLEN];
data/milter-greylist-4.6.2/spamd.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 rcvhdr[SPAMD_BUFLEN];
data/milter-greylist-4.6.2/spamd.c:294: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 ipstr[IPADDRSTRLEN];
data/milter-greylist-4.6.2/spamd.c:295: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 myhostname[ADDRLEN + 1];
data/milter-greylist-4.6.2/spamd.c:296: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 hostname[ADDRLEN + 2] = { 0 };
data/milter-greylist-4.6.2/spamd.c:297: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 faddr[SPAMD_BUFLEN] = { 0 };
data/milter-greylist-4.6.2/spamd.c:298: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 raddr[SPAMD_BUFLEN] = ";\r\n\t";
data/milter-greylist-4.6.2/spamd.c:299: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 now[SPAMD_BUFLEN];
data/milter-greylist-4.6.2/spamd.c:324:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(myhostname, "unknown");
data/milter-greylist-4.6.2/spf.c:95: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 addr[IPADDRSTRLEN];
data/milter-greylist-4.6.2/spf.c:121:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "pass");
data/milter-greylist-4.6.2/spf.c:125:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "fail");
data/milter-greylist-4.6.2/spf.c:129:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "softfail");
data/milter-greylist-4.6.2/spf.c:133:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "neutral");
data/milter-greylist-4.6.2/spf.c:138:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "unknown");
data/milter-greylist-4.6.2/spf.c:142:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "error");
data/milter-greylist-4.6.2/spf.c:146:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "none");
data/milter-greylist-4.6.2/spf.c:207: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 addr[IPADDRSTRLEN];
data/milter-greylist-4.6.2/spf.c:208: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 from[NS_MAXDNAME + 1];
data/milter-greylist-4.6.2/spf.c:276:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "pass");
data/milter-greylist-4.6.2/spf.c:280:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "fail");
data/milter-greylist-4.6.2/spf.c:284:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "softfail");
data/milter-greylist-4.6.2/spf.c:288:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "neutral");
data/milter-greylist-4.6.2/spf.c:292:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "unknown");
data/milter-greylist-4.6.2/spf.c:296:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "error");
data/milter-greylist-4.6.2/spf.c:300:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "none");
data/milter-greylist-4.6.2/spf.c:349: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 from[NS_MAXDNAME + 1];
data/milter-greylist-4.6.2/spf.c:426:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "pass");
data/milter-greylist-4.6.2/spf.c:430:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "fail");
data/milter-greylist-4.6.2/spf.c:434:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "softfail");
data/milter-greylist-4.6.2/spf.c:438:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "neutral");
data/milter-greylist-4.6.2/spf.c:442:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "unknown");
data/milter-greylist-4.6.2/spf.c:446:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "permerror");
data/milter-greylist-4.6.2/spf.c:450:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "temperror");
data/milter-greylist-4.6.2/spf.c:454:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(priv->priv_spf_result, "none");
data/milter-greylist-4.6.2/spf.c:612:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		(void)memcpy(&priv->priv_addr, &conf.c_localaddr, 
data/milter-greylist-4.6.2/spf.c:617:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		(void)memcpy(&priv->priv_addr, &conf.c_localaddr, 
data/milter-greylist-4.6.2/sync.c:290:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[LINELEN + 1];
data/milter-greylist-4.6.2/sync.c:293: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 awstr[LINELEN + 1];
data/milter-greylist-4.6.2/sync.c:396:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	replycode = atoi(replystr);
data/milter-greylist-4.6.2/sync.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 line[LINELEN + 1];
data/milter-greylist-4.6.2/sync.c:443:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		service = htons(atoi(conf.c_syncport));
data/milter-greylist-4.6.2/sync.c:446:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    service = htons(atoi(MXGLSYNC_PORT));
data/milter-greylist-4.6.2/sync.c:643:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	replycode = atoi(replystr);
data/milter-greylist-4.6.2/sync.c:781: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 peerstr[IPADDRSTRLEN];
data/milter-greylist-4.6.2/sync.c:946:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		service = htons(atoi(port));
data/milter-greylist-4.6.2/sync.c:949:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    service = htons(atoi(MXGLSYNC_PORT));
data/milter-greylist-4.6.2/sync.c:1031: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 from_clean[ADDRLEN + 1];
data/milter-greylist-4.6.2/sync.c:1032: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 rcpt_clean[ADDRLEN + 1];
data/milter-greylist-4.6.2/sync.c:1036:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[LINELEN + 1];
data/milter-greylist-4.6.2/sync.c:1203:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		date = atoi(datestr);
data/milter-greylist-4.6.2/sync.c:1228:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			aw = atoi(awstr);
data/milter-greylist-4.6.2/sync.c:1513: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(&addr, sa, salen);
data/milter-greylist-4.6.2/sync.c:1571:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[LINELEN + 1];
data/milter-greylist-4.6.2/sync.c:1601:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		replycode = atoi(replystr);
data/milter-greylist-4.6.2/urlcheck.c:84: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 pd_boundary[BOUNDARY_LEN + 1];
data/milter-greylist-4.6.2/urlcheck.c:97: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 post_header[sizeof(post_header_templ) - 2 + BOUNDARY_LEN];
data/milter-greylist-4.6.2/urlcheck.c:98: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 post_trailer[sizeof(post_trailer_templ) - 2 + BOUNDARY_LEN];
data/milter-greylist-4.6.2/urlcheck.c:356:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buffer, pd->pd_curptr, len);
data/milter-greylist-4.6.2/urlcheck.c:375:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buffer, pd->pd_curptr, len);
data/milter-greylist-4.6.2/urlcheck.c:387:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buffer, pd->pd_curptr, len);
data/milter-greylist-4.6.2/urlcheck.c:470: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(ud->ud_iov.iov_base + ud->ud_iov.iov_len - 2, 
data/milter-greylist-4.6.2/urlcheck.c:587:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			(void)sprintf(dp, "%%%02X", *cp);
data/milter-greylist-4.6.2/urlcheck.c:943: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 head[sizeof(head_templ) - 2 + BOUNDARY_LEN];
data/milter-greylist-4.6.2/urlcheck.h:45: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 u_name[QSTRLEN + 1];
data/milter-greylist-4.6.2/urlcheck.h:46: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 u_url[QSTRLEN + 1];
data/milter-greylist-4.6.2/acl.c:626: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).
	hidx = strlen(host) - 1;
data/milter-greylist-4.6.2/acl.c:627: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).
	didx = strlen(domain) - 1;
data/milter-greylist-4.6.2/acl.c:1306: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).
	if ((strlen(regexstr) > 0) && (regexstr[strlen(regexstr) - 1] == '/'))
data/milter-greylist-4.6.2/acl.c:1306: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 ((strlen(regexstr) > 0) && (regexstr[strlen(regexstr) - 1] == '/'))
data/milter-greylist-4.6.2/acl.c:1307: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).
		regexstr[strlen(regexstr) - 1] = '\0';
data/milter-greylist-4.6.2/acl.c:1312: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).
			memmove(cp, cp + 1, strlen(cp + 1) + 1);
data/milter-greylist-4.6.2/acl.c:2657:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((cbig = malloc(strlen(big) + 1)) == NULL) {
data/milter-greylist-4.6.2/acl.c:2664:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((clittle = malloc(strlen(little) + 1)) == NULL) {
data/milter-greylist-4.6.2/acl.c:2678: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).
	i = strlen(cbig) - 1;
data/milter-greylist-4.6.2/acl.c:2681: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).
	i = strlen(clittle) - 1;
data/milter-greylist-4.6.2/conf.c:430:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dst, path, len);
data/milter-greylist-4.6.2/conf.c:434:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((len = strlen(dst)) > 0)
data/milter-greylist-4.6.2/dkimcheck.c:114: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/milter-greylist-4.6.2/dnsrbl.c:365:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(de->d_name, name, sizeof(de->d_name));
data/milter-greylist-4.6.2/dnsrbl.c:367:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(de->d_domain, domain, sizeof(de->d_domain));
data/milter-greylist-4.6.2/geoip.c:90:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(geoip_database, name, MAXPATHLEN);
data/milter-greylist-4.6.2/geoip.c:111:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(geoip_database_v6, name, MAXPATHLEN);
data/milter-greylist-4.6.2/ldapcheck.c:210:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(lce->lce_name, name, sizeof(lce->lce_name));
data/milter-greylist-4.6.2/ldapcheck.c:212:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(lce->lce_url, url, sizeof(lce->lce_url));
data/milter-greylist-4.6.2/ldapcheck.c:357: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).
	origlen = strlen(str) + 1;
data/milter-greylist-4.6.2/list.c:120:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ale->al_name, name, sizeof(ale->al_name));
data/milter-greylist-4.6.2/list.c:277:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ale->al_name, name, sizeof(ale->al_name));
data/milter-greylist-4.6.2/macro.c:216: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(regex);
data/milter-greylist-4.6.2/milter-greylist.c:385:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(priv->priv_hostname, hostname, ADDRLEN);
data/milter-greylist-4.6.2/milter-greylist.c:519:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(priv->priv_rawfrom, *envfrom, ADDRLEN);
data/milter-greylist-4.6.2/milter-greylist.c:537:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(priv->priv_from, idx, ADDRLEN);
data/milter-greylist-4.6.2/milter-greylist.c:728:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(priv->priv_cur_rcpt, rcpt, ADDRLEN);
data/milter-greylist-4.6.2/milter-greylist.c:870: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(name) + strlen(sep) + strlen(value) + strlen(crlf);
data/milter-greylist-4.6.2/milter-greylist.c:870:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(name) + strlen(sep) + strlen(value) + strlen(crlf);
data/milter-greylist-4.6.2/milter-greylist.c:870: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).
	len = strlen(name) + strlen(sep) + strlen(value) + strlen(crlf);
data/milter-greylist-4.6.2/milter-greylist.c:870:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(name) + strlen(sep) + strlen(value) + strlen(crlf);
data/milter-greylist-4.6.2/milter-greylist.c:891: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(name) + strlen(sep) + strlen(value) + strlen(crlf);
data/milter-greylist-4.6.2/milter-greylist.c:891:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(name) + strlen(sep) + strlen(value) + strlen(crlf);
data/milter-greylist-4.6.2/milter-greylist.c:891: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).
	len = strlen(name) + strlen(sep) + strlen(value) + strlen(crlf);
data/milter-greylist-4.6.2/milter-greylist.c:891:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(name) + strlen(sep) + strlen(value) + strlen(crlf);
data/milter-greylist-4.6.2/milter-greylist.c:975: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).
		l->l_len = strlen(crlf);
data/milter-greylist-4.6.2/milter-greylist.c:978: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).
		priv->priv_msgcount += strlen(crlf);
data/milter-greylist-4.6.2/milter-greylist.c:979: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).
		priv->priv_peekcount += strlen(crlf);
data/milter-greylist-4.6.2/milter-greylist.c:1254:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			hdrvalue += strlen(sep);
data/milter-greylist-4.6.2/milter-greylist.c:1276: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).
		newlen = strlen(footer);
data/milter-greylist-4.6.2/milter-greylist.c:1314: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).
				oldlinelen = strlen(oldline);
data/milter-greylist-4.6.2/milter-greylist.c:1325: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).
			newlen = subjhdrlen + strlen(tag) + strlen(oldline) + 1;
data/milter-greylist-4.6.2/milter-greylist.c:1325: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).
			newlen = subjhdrlen + strlen(tag) + strlen(oldline) + 1;
data/milter-greylist-4.6.2/milter-greylist.c:1502:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			hdrvalue += strlen(sep);
data/milter-greylist-4.6.2/milter-greylist.c:1669:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    strlen(PACKAGE_URL) ? 
data/milter-greylist-4.6.2/milter-greylist.c:1671:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    strlen(PACKAGE_BUGREPORT) ? 
data/milter-greylist-4.6.2/milter-greylist.c:2119: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(PACKAGE_URL) ?
data/milter-greylist-4.6.2/milter-greylist.c:2121: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(PACKAGE_BUGREPORT) ?
data/milter-greylist-4.6.2/milter-greylist.c:2234: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).
	if (((len = strlen(str)) || (len > NUMLEN)) == 0)
data/milter-greylist-4.6.2/milter-greylist.c:2274:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(numstr, str, NUMLEN);
data/milter-greylist-4.6.2/milter-greylist.c:2480:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	key.data = strncpy(ipkey, dotted_ip, sizeof(ipkey));
data/milter-greylist-4.6.2/milter-greylist.c:2482: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).
	key.size = strlen(ipkey);
data/milter-greylist-4.6.2/milter-greylist.c:2571: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 srclen = strlen(src);
data/milter-greylist-4.6.2/milter-greylist.c:2585:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dst + dstlen, src, len - dstlen - 1);
data/milter-greylist-4.6.2/milter-greylist.c:2655:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(nr->r_addr, rcpt, sizeof(nr->r_addr));
data/milter-greylist-4.6.2/milter-greylist.c:2680: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).
	slen = strlen(*s);
data/milter-greylist-4.6.2/milter-greylist.c:2681: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).
	alen = strlen(append);
data/milter-greylist-4.6.2/milter-greylist.c:2716:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(out, in, len);
data/milter-greylist-4.6.2/milter-greylist.c:2723: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).
	outlen = strlen(outp);
data/milter-greylist-4.6.2/milter-greylist.c:2993: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(ipstr);
data/milter-greylist-4.6.2/milter-greylist.c:3001:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				size_t cplen = strlen(cp);
data/milter-greylist-4.6.2/milter-greylist.c:3192: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(priv->priv_from) - 1];
data/milter-greylist-4.6.2/milter-greylist.c:3224: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 ((cx < HDRLEN) && (cx == strlen(fqdn)))
data/milter-greylist-4.6.2/milter-greylist.c:3467: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).
			(void)strftime(outstr + strlen(outstr), 
data/milter-greylist-4.6.2/milter-greylist.c:3468:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    outmaxlen - strlen(outstr), format, &tm);
data/milter-greylist-4.6.2/milter-greylist.c:3854: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).
			bcopy(cp + 1, cp, strlen(cp + 1) + 1);
data/milter-greylist-4.6.2/milter-greylist.c:3856: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).
			bcopy(cp + 1 + slen, cp + 1, strlen(cp + 1 + slen) + 1);
data/milter-greylist-4.6.2/milter-greylist.c:3980:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((len = strlen(priv->priv_sr.sr_msg_x)) <= MAXREPLYLEN) {
data/milter-greylist-4.6.2/milter-greylist.c:4007:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void)strncpy(lbufs[i], src, MAXREPLYLEN);
data/milter-greylist-4.6.2/milter-greylist.c:4041: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(addr);
data/milter-greylist-4.6.2/milter-greylist.c:4050:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void)strncpy(abuf, addr + 6, len - 7);
data/milter-greylist-4.6.2/milter-greylist.c:4053:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void)strncpy(abuf, addr + 1, len - 2);
data/milter-greylist-4.6.2/milter-greylist.c:4072:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void)strncpy(addr, abuf, IPADDRSTRLEN);
data/milter-greylist-4.6.2/nsupdate.c:244:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(tse->tse_tsig.name, name, sizeof(tse->tse_tsig.name));
data/milter-greylist-4.6.2/nsupdate.c:248:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(tse->tse_tsig.alg, alg, sizeof(tse->tse_tsig.alg));
data/milter-greylist-4.6.2/nsupdate.c:493: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).
	updrec.r_size = strlen((char *)updrec.r_data);
data/milter-greylist-4.6.2/p0f.c:296:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(p0fsock, &rep, sizeof(rep)) != sizeof(rep)) {
data/milter-greylist-4.6.2/p0f.c:331: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((char *)rep.genre) + strlen((char *)rep.detail) + 2;
data/milter-greylist-4.6.2/p0f.c:331: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).
	len = strlen((char *)rep.genre) + strlen((char *)rep.detail) + 2;
data/milter-greylist-4.6.2/p0f.c:395:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(p0fsock, &rep, sizeof(rep)) != sizeof(rep)) {
data/milter-greylist-4.6.2/p0f.c:424: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((char *)rep.os_name) + strlen((char *)rep.os_flavor) + 2;
data/milter-greylist-4.6.2/p0f.c:424: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).
	len = strlen((char *)rep.os_name) + strlen((char *)rep.os_flavor) + 2;
data/milter-greylist-4.6.2/p0f.c:454:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(conf.c_p0fsock, sock, sizeof(conf.c_p0fsock));
data/milter-greylist-4.6.2/p0f.c:483:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(s_un.sun_path, conf.c_p0fsock, sizeof(s_un.sun_path));
data/milter-greylist-4.6.2/prop.c:518: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(up->up_value);
data/milter-greylist-4.6.2/ratelimit.c:160:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(rc->rc_name, name, sizeof(rc->rc_name));
data/milter-greylist-4.6.2/ratelimit.c:166:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(rc->rc_key, key, sizeof(rc->rc_key));
data/milter-greylist-4.6.2/ratelimit.c:249:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ra->ra_key, key, sizeof(ra->ra_key));
data/milter-greylist-4.6.2/spamd.c:97:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(conf.c_spamdsock, sock, sizeof(conf.c_spamdsock));
data/milter-greylist-4.6.2/spamd.c:98:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(conf.c_spamdsocktype, 
data/milter-greylist-4.6.2/spamd.c:173:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  (unsigned int)(priv->priv_msgcount + strlen(rcvhdr)),
data/milter-greylist-4.6.2/spamd.c:180: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 (spamd_write(sock, buffer, strlen(buffer)) == -1) {
data/milter-greylist-4.6.2/spamd.c:189: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 (spamd_write(sock, rcvhdr, strlen(rcvhdr)) == -1) {
data/milter-greylist-4.6.2/spamd.c:215: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).
	if (strncmp(p, SPAMD_SPAMD_SPAMD, strlen(SPAMD_SPAMD_SPAMD))) {
data/milter-greylist-4.6.2/spamd.c:221: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).
	p += strlen(SPAMD_SPAMD_SPAMD);
data/milter-greylist-4.6.2/spamd.c:222: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).
	if (strncmp(p, SPAMD_SPAMD_VERSION, strlen(SPAMD_SPAMD_VERSION)))
data/milter-greylist-4.6.2/spamd.c:225: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).
	p += strlen(SPAMD_SPAMD_VERSION);
data/milter-greylist-4.6.2/spamd.c:236: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).
	p += strlen(SPAMD_SPAMD_OK);
data/milter-greylist-4.6.2/spamd.c:237:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(p) <= 2) {  /* '\r\n' (2 chars) follow SPAMD_SPAMD_OK */
data/milter-greylist-4.6.2/spamd.c:251: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).
	if (strncmp(p, SPAMD_SPAMD_SPAM, strlen(SPAMD_SPAMD_SPAM))) {
data/milter-greylist-4.6.2/spamd.c:256: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).
	p += strlen(SPAMD_SPAMD_SPAM);
data/milter-greylist-4.6.2/spamd.c:257: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).
	if (!strncmp(p, SPAMD_SPAMD_TRUE, strlen(SPAMD_SPAMD_TRUE))) {
data/milter-greylist-4.6.2/spamd.c:259:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if (!strncmp(p, SPAMD_SPAMD_FALSE, strlen(SPAMD_SPAMD_FALSE))) {
data/milter-greylist-4.6.2/spamd.c:308:46:  [1] (buffer) strlen:
  Does not handle 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(ipstr, priv->priv_hostname + 1, strlen(ipstr))) {
data/milter-greylist-4.6.2/spamd.c:309:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(hostname, priv->priv_hostname, sizeof(hostname) - 2);
data/milter-greylist-4.6.2/spamd.c:310: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).
		hostname[strlen(hostname)] = ' ';
data/milter-greylist-4.6.2/spamd.c:314:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(faddr, priv->priv_from + 1,
data/milter-greylist-4.6.2/spamd.c:315:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		        strlen(priv->priv_from) - 2);
data/milter-greylist-4.6.2/spamd.c:366: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).
	p = s + strlen(s);
data/milter-greylist-4.6.2/spamd.c:383:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((n = read(fd, buf, count)) == -1) {
data/milter-greylist-4.6.2/spamd.c:432:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((host = malloc(strlen(path) + 1)) == NULL) {
data/milter-greylist-4.6.2/spamd.c:458:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(s_un.sun_path, path, sizeof(s_un.sun_path) - 1);
data/milter-greylist-4.6.2/spf.c:251:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(from, fromp, NS_MAXDNAME);
data/milter-greylist-4.6.2/spf.c:253: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(from);
data/milter-greylist-4.6.2/spf.c:405:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(from, fromp, NS_MAXDNAME);
data/milter-greylist-4.6.2/spf.c:407: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(from);
data/milter-greylist-4.6.2/spf.c:629: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(ip, "IPv6:", strlen("IPv6:")) == 0) {
data/milter-greylist-4.6.2/spf.c:631: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 (inet_pton(AF_INET6, ip + strlen("IPv6:"), 
data/milter-greylist-4.6.2/sync.c:337: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).
	if (bw != strlen(line)) {
data/milter-greylist-4.6.2/urlcheck.c:165:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ue->u_name, name, sizeof(ue->u_name));
data/milter-greylist-4.6.2/urlcheck.c:168:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ue->u_url, url, sizeof(ue->u_url));
data/milter-greylist-4.6.2/urlcheck.c:349: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(pd->pd_curptr);
data/milter-greylist-4.6.2/urlcheck.c:383: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(pd->pd_curptr);
data/milter-greylist-4.6.2/urlcheck.c:403:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(buffer, pd->pd_curptr, len);
data/milter-greylist-4.6.2/urlcheck.c:546: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).
	origlen = strlen(str) + 1;
data/milter-greylist-4.6.2/urlcheck.c:704:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size = strlen(url) + 1;
data/milter-greylist-4.6.2/urlcheck.c:725:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(cnx->uc_pipe_rep[0], 
data/milter-greylist-4.6.2/urlcheck.c:731:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(cnx->uc_pipe_rep[0], &size, sizeof(size)) != sizeof(size)) {
data/milter-greylist-4.6.2/urlcheck.c:745:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(cnx->uc_pipe_rep[0], ud->ud_iov.iov_base, size) != size) {
data/milter-greylist-4.6.2/urlcheck.c:814:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(cnx->uc_pipe_req[0], &size, sizeof(size)) != sizeof(size)) {
data/milter-greylist-4.6.2/urlcheck.c:828:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(cnx->uc_pipe_req[0], url, size) != size) {

ANALYSIS SUMMARY:

Hits = 414
Lines analyzed = 22944 in approximately 0.55 seconds (41593 lines/second)
Physical Source Lines of Code (SLOC) = 17027
Hits@level = [0] 154 [1] 131 [2] 254 [3]   1 [4]  25 [5]   3
Hits@level+ = [0+] 568 [1+] 414 [2+] 283 [3+]  29 [4+]  28 [5+]   3
Hits/KSLOC@level+ = [0+] 33.3588 [1+] 24.3143 [2+] 16.6207 [3+] 1.70318 [4+] 1.64445 [5+] 0.176191
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.