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/courier-authlib-0.69.0/auth.h
Examining data/courier-authlib-0.69.0/authconfigfile.cpp
Examining data/courier-authlib-0.69.0/authconfigfile.h
Examining data/courier-authlib-0.69.0/authcustom.c
Examining data/courier-authlib-0.69.0/authcustom.h
Examining data/courier-authlib-0.69.0/authdaemon.c
Examining data/courier-authlib-0.69.0/authdaemond.c
Examining data/courier-authlib-0.69.0/authdaemondcpp.cpp
Examining data/courier-authlib-0.69.0/authdaemonlib.c
Examining data/courier-authlib-0.69.0/authdaemontest.c
Examining data/courier-authlib-0.69.0/authenumerate.c
Examining data/courier-authlib-0.69.0/authinfo.c
Examining data/courier-authlib-0.69.0/authldap.c
Examining data/courier-authlib-0.69.0/authldap.h
Examining data/courier-authlib-0.69.0/authldapescape.c
Examining data/courier-authlib-0.69.0/authldaplib.cpp
Examining data/courier-authlib-0.69.0/authmksock.c
Examining data/courier-authlib-0.69.0/authmoduser2.c
Examining data/courier-authlib-0.69.0/authmoduser3.c
Examining data/courier-authlib-0.69.0/authmysql.cpp
Examining data/courier-authlib-0.69.0/authmysql.h
Examining data/courier-authlib-0.69.0/authmysqllib.cpp
Examining data/courier-authlib-0.69.0/authoption.c
Examining data/courier-authlib-0.69.0/authpam.c
Examining data/courier-authlib-0.69.0/authpasswd.c
Examining data/courier-authlib-0.69.0/authpgsql.c
Examining data/courier-authlib-0.69.0/authpgsql.h
Examining data/courier-authlib-0.69.0/authpgsqllib.cpp
Examining data/courier-authlib-0.69.0/authpipe.c
Examining data/courier-authlib-0.69.0/authpipelib.c
Examining data/courier-authlib-0.69.0/authpipelib.h
Examining data/courier-authlib-0.69.0/authpwd.c
Examining data/courier-authlib-0.69.0/authpwdenumerate.c
Examining data/courier-authlib-0.69.0/authsasl.c
Examining data/courier-authlib-0.69.0/authsaslclient.c
Examining data/courier-authlib-0.69.0/authsaslclient.h
Examining data/courier-authlib-0.69.0/authsaslclientcram.c
Examining data/courier-authlib-0.69.0/authsaslclientcrammd5.c
Examining data/courier-authlib-0.69.0/authsaslclientcramsha1.c
Examining data/courier-authlib-0.69.0/authsaslclientexternal.c
Examining data/courier-authlib-0.69.0/authsaslclientlogin.c
Examining data/courier-authlib-0.69.0/authsaslclientplain.c
Examining data/courier-authlib-0.69.0/authsaslcram.c
Examining data/courier-authlib-0.69.0/authsaslfrombase64.c
Examining data/courier-authlib-0.69.0/authsasllogin.c
Examining data/courier-authlib-0.69.0/authsaslplain.c
Examining data/courier-authlib-0.69.0/authsasltobase64.c
Examining data/courier-authlib-0.69.0/authshadow.c
Examining data/courier-authlib-0.69.0/authsqlite.cpp
Examining data/courier-authlib-0.69.0/authsqlite.h
Examining data/courier-authlib-0.69.0/authsqlitelib.cpp
Examining data/courier-authlib-0.69.0/authsyschangepwd.c
Examining data/courier-authlib-0.69.0/authsyscommon.c
Examining data/courier-authlib-0.69.0/authtest.c
Examining data/courier-authlib-0.69.0/authuserdb.c
Examining data/courier-authlib-0.69.0/authuserdbpwd.c
Examining data/courier-authlib-0.69.0/authwait.h
Examining data/courier-authlib-0.69.0/checkpassword.c
Examining data/courier-authlib-0.69.0/checkpasswordmd5.c
Examining data/courier-authlib-0.69.0/checkpasswordsha1.c
Examining data/courier-authlib-0.69.0/courier_auth_config.h
Examining data/courier-authlib-0.69.0/courierauth.h
Examining data/courier-authlib-0.69.0/courierauthdebug.h
Examining data/courier-authlib-0.69.0/courierauthsasl.h
Examining data/courier-authlib-0.69.0/courierauthsaslclient.h
Examining data/courier-authlib-0.69.0/courierauthstaticlist.h
Examining data/courier-authlib-0.69.0/cramlib.c
Examining data/courier-authlib-0.69.0/cryptpassword.c
Examining data/courier-authlib-0.69.0/debug.c
Examining data/courier-authlib-0.69.0/liblog/logger.c
Examining data/courier-authlib-0.69.0/libs/bdbobj/bdbobj.c
Examining data/courier-authlib-0.69.0/libs/bdbobj/bdbobj.h
Examining data/courier-authlib-0.69.0/libs/bdbobj/bdbobj2.c
Examining data/courier-authlib-0.69.0/libs/bdbobj/bdbobj3.c
Examining data/courier-authlib-0.69.0/libs/bdbobj/testbdb.C
Examining data/courier-authlib-0.69.0/libs/gdbmobj/gdbmobj.c
Examining data/courier-authlib-0.69.0/libs/gdbmobj/gdbmobj.h
Examining data/courier-authlib-0.69.0/libs/gdbmobj/gdbmobj2.c
Examining data/courier-authlib-0.69.0/libs/gdbmobj/gdbmobj3.c
Examining data/courier-authlib-0.69.0/libs/gdbmobj/testgdbm.C
Examining data/courier-authlib-0.69.0/libs/libhmac/hmac.c
Examining data/courier-authlib-0.69.0/libs/libhmac/hmac.h
Examining data/courier-authlib-0.69.0/libs/libhmac/md5hmactest.c
Examining data/courier-authlib-0.69.0/libs/libhmac/sha1hmactest.c
Examining data/courier-authlib-0.69.0/libs/liblock/liblock.h
Examining data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c
Examining data/courier-authlib-0.69.0/libs/liblock/lockfcntl.c
Examining data/courier-authlib-0.69.0/libs/liblock/lockflock.c
Examining data/courier-authlib-0.69.0/libs/liblock/locklockf.c
Examining data/courier-authlib-0.69.0/libs/liblock/lockmail.c
Examining data/courier-authlib-0.69.0/libs/liblock/locktest.c
Examining data/courier-authlib-0.69.0/libs/liblock/mail.c
Examining data/courier-authlib-0.69.0/libs/liblock/mail.h
Examining data/courier-authlib-0.69.0/libs/makedat/makedatprog.c
Examining data/courier-authlib-0.69.0/libs/md5/hmac.c
Examining data/courier-authlib-0.69.0/libs/md5/md5.c
Examining data/courier-authlib-0.69.0/libs/md5/md5.h
Examining data/courier-authlib-0.69.0/libs/md5/md5_hash.c
Examining data/courier-authlib-0.69.0/libs/md5/md5test.c
Examining data/courier-authlib-0.69.0/libs/md5/redhat-crypt-md5.c
Examining data/courier-authlib-0.69.0/libs/numlib/atotimet.c
Examining data/courier-authlib-0.69.0/libs/numlib/atouidt.c
Examining data/courier-authlib-0.69.0/libs/numlib/changeuidgid.c
Examining data/courier-authlib-0.69.0/libs/numlib/numlib.h
Examining data/courier-authlib-0.69.0/libs/numlib/strdevt.c
Examining data/courier-authlib-0.69.0/libs/numlib/strgidt.c
Examining data/courier-authlib-0.69.0/libs/numlib/strhdevt.c
Examining data/courier-authlib-0.69.0/libs/numlib/strhinot.c
Examining data/courier-authlib-0.69.0/libs/numlib/strhpidt.c
Examining data/courier-authlib-0.69.0/libs/numlib/strhtimet.c
Examining data/courier-authlib-0.69.0/libs/numlib/strinot.c
Examining data/courier-authlib-0.69.0/libs/numlib/strofft.c
Examining data/courier-authlib-0.69.0/libs/numlib/strpidt.c
Examining data/courier-authlib-0.69.0/libs/numlib/strsize.c
Examining data/courier-authlib-0.69.0/libs/numlib/strsizet.c
Examining data/courier-authlib-0.69.0/libs/numlib/strtimet.c
Examining data/courier-authlib-0.69.0/libs/numlib/struidt.c
Examining data/courier-authlib-0.69.0/libs/random128/random128.c
Examining data/courier-authlib-0.69.0/libs/random128/random128.h
Examining data/courier-authlib-0.69.0/libs/random128/random128alpha.c
Examining data/courier-authlib-0.69.0/libs/random128/random128binary.c
Examining data/courier-authlib-0.69.0/libs/rfc822/encode.c
Examining data/courier-authlib-0.69.0/libs/rfc822/encode.h
Examining data/courier-authlib-0.69.0/libs/rfc822/encodeautodetect.c
Examining data/courier-authlib-0.69.0/libs/rfc822/imaprefs.c
Examining data/courier-authlib-0.69.0/libs/rfc822/imaprefs.h
Examining data/courier-authlib-0.69.0/libs/rfc822/imapsubj.c
Examining data/courier-authlib-0.69.0/libs/rfc822/reftest.c
Examining data/courier-authlib-0.69.0/libs/rfc822/rfc2047.h
Examining data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c
Examining data/courier-authlib-0.69.0/libs/rfc822/rfc822.c
Examining data/courier-authlib-0.69.0/libs/rfc822/rfc822.h
Examining data/courier-authlib-0.69.0/libs/rfc822/rfc822_getaddr.c
Examining data/courier-authlib-0.69.0/libs/rfc822/rfc822_getaddrs.c
Examining data/courier-authlib-0.69.0/libs/rfc822/rfc822_mkdate.c
Examining data/courier-authlib-0.69.0/libs/rfc822/rfc822_parsedt.c
Examining data/courier-authlib-0.69.0/libs/rfc822/rfc822hdr.c
Examining data/courier-authlib-0.69.0/libs/rfc822/rfc822hdr.h
Examining data/courier-authlib-0.69.0/libs/rfc822/testsuite.c
Examining data/courier-authlib-0.69.0/libs/rfc822/rfc2047.c
Examining data/courier-authlib-0.69.0/libs/sha1/hmac.c
Examining data/courier-authlib-0.69.0/libs/sha1/sha1.c
Examining data/courier-authlib-0.69.0/libs/sha1/sha1.h
Examining data/courier-authlib-0.69.0/libs/sha1/sha1_hash.c
Examining data/courier-authlib-0.69.0/libs/sha1/sha256.c
Examining data/courier-authlib-0.69.0/libs/sha1/sha256_hash.c
Examining data/courier-authlib-0.69.0/libs/sha1/sha512.c
Examining data/courier-authlib-0.69.0/libs/sha1/sha512_hash.c
Examining data/courier-authlib-0.69.0/libs/sha1/testsuite.c
Examining data/courier-authlib-0.69.0/preauthcustom.c
Examining data/courier-authlib-0.69.0/preauthdaemon.c
Examining data/courier-authlib-0.69.0/preauthldap.c
Examining data/courier-authlib-0.69.0/preauthmysql.cpp
Examining data/courier-authlib-0.69.0/preauthpam.c
Examining data/courier-authlib-0.69.0/preauthpwd.c
Examining data/courier-authlib-0.69.0/preauthshadow.c
Examining data/courier-authlib-0.69.0/preauthuserdb.c
Examining data/courier-authlib-0.69.0/preauthuserdbcommon.c
Examining data/courier-authlib-0.69.0/userdb/userdb.c
Examining data/courier-authlib-0.69.0/userdb/userdb.h
Examining data/courier-authlib-0.69.0/userdb/userdb2.c
Examining data/courier-authlib-0.69.0/userdb/userdbmkpw.c
Examining data/courier-authlib-0.69.0/userdb/userdbpw.c

FINAL RESULTS:

data/courier-authlib-0.69.0/authdaemon.c:148:6:  [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(to, stat_buf->st_mode & ~S_IFMT) ||
data/courier-authlib-0.69.0/authdaemon.c:149:6:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	    chown(to, uid, gid) < 0)
data/courier-authlib-0.69.0/authdaemon.c:161:12:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	ssize_t l=readlink(from, buf, sizeof(buf)-1);
data/courier-authlib-0.69.0/authdaemon.c:189:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	    chmod(homedir, stat_buf.st_mode & ~S_IFMT) ||
data/courier-authlib-0.69.0/authdaemon.c:190:6:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	    chown(homedir, uid, gid) < 0)
data/courier-authlib-0.69.0/authdaemond.c:60:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	    chmod(skun.sun_path, 0777) ||
data/courier-authlib-0.69.0/authdaemon.c:55: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).
	strcat(strcat(strcpy(buf, "AUTH "), n), "\n");
data/courier-authlib-0.69.0/authdaemon.c:56: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).
	strcat(strcat(buf, service), "\n");
data/courier-authlib-0.69.0/authdaemon.c:57: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).
	strcat(strcat(buf, authtype), "\n");
data/courier-authlib-0.69.0/authdaemon.c:58: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(buf, authdata);
data/courier-authlib-0.69.0/authdaemon.c:212:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(strcat(strcpy(fskeldir, skeldir), "/"),
data/courier-authlib-0.69.0/authdaemon.c:212:19:  [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).
				strcat(strcat(strcpy(fskeldir, skeldir), "/"),
data/courier-authlib-0.69.0/authdaemon.c:214:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(strcat(strcpy(fhomedir, homedir), "/"),
data/courier-authlib-0.69.0/authdaemon.c:214:19:  [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).
				strcat(strcat(strcpy(fhomedir, homedir), "/"),
data/courier-authlib-0.69.0/authdaemond.c:55: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(skun.sun_path, AUTHDAEMONSOCK);
data/courier-authlib-0.69.0/authdaemond.c:126:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf2, "courier_%s_init", buf+3);
data/courier-authlib-0.69.0/authdaemond.c:380:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(result, options);
data/courier-authlib-0.69.0/authdaemond.c:397:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(result, p);
data/courier-authlib-0.69.0/authdaemond.c:755:11:  [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(pp, p),
data/courier-authlib-0.69.0/authdaemonlib.c:123: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(skun.sun_path, AUTHDAEMONSOCK);
data/courier-authlib-0.69.0/authdaemontest.c:39:4:  [4] (shell) execv:
  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.
			execv(argv[0], argv);
data/courier-authlib-0.69.0/authmksock.c:31: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(skun.sun_path, argv[1]);
data/courier-authlib-0.69.0/authmoduser2.c:56:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "PASSWD %s\t%s\t%s\t%s\n",
data/courier-authlib-0.69.0/authmoduser3.c:56:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(strcat(strcat(strcat(strcpy(p, userid), q), s1), s2), s3);
data/courier-authlib-0.69.0/authmoduser3.c:56: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).
		strcat(strcat(strcat(strcat(strcpy(p, userid), q), s1), s2), s3);
data/courier-authlib-0.69.0/authmoduser3.c:56:17:  [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(strcat(strcat(strcat(strcpy(p, userid), q), s1), s2), s3);
data/courier-authlib-0.69.0/authmoduser3.c:56:24:  [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(strcat(strcat(strcat(strcpy(p, userid), q), s1), s2), s3);
data/courier-authlib-0.69.0/authmoduser3.c:56:31:  [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).
		strcat(strcat(strcat(strcat(strcpy(p, userid), q), s1), s2), s3);
data/courier-authlib-0.69.0/authpipe.c:59: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).
	strcat(strcat(strcpy(buf, "AUTH "), n), "\n");
data/courier-authlib-0.69.0/authpipe.c:60: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).
	strcat(strcat(buf, service), "\n");
data/courier-authlib-0.69.0/authpipe.c:61: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).
	strcat(strcat(buf, authtype), "\n");
data/courier-authlib-0.69.0/authpipe.c:62: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(buf, authdata);
data/courier-authlib-0.69.0/authpipe.c:92: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).
	strcat(strcat(strcat(strcat(strcpy(buf, "PRE . "), service), " "),
data/courier-authlib-0.69.0/authpipe.c:92:23:  [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(strcat(strcat(strcat(strcpy(buf, "PRE . "), service), " "),
data/courier-authlib-0.69.0/authpipe.c:124:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "PASSWD %s\t%s\t%s\t%s\n",
data/courier-authlib-0.69.0/authpipe.c:181:16:  [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.
	disabled_flag=access(PIPE_PROGRAM, X_OK);
data/courier-authlib-0.69.0/authpipelib.c:45:2:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execl(PIPE_PROGRAM, PIPE_PROGRAM, NULL);
data/courier-authlib-0.69.0/authsasl.c:57: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(p, method);
data/courier-authlib-0.69.0/authsaslclient.c:46:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(methodbuf, info->sasl_funcs);
data/courier-authlib-0.69.0/authsaslclientcram.c:33: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(base64buf, challenge);
data/courier-authlib-0.69.0/authsaslclientcram.c:58:9:  [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).
	strcat(strcpy(base64buf, userid), " ");
data/courier-authlib-0.69.0/authsaslclientplain.c:37: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(q+1, userid);
data/courier-authlib-0.69.0/authsaslcram.c:56: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).
	strcat(strcat(strcat(strcat(strcpy(challenge, "<"),
data/courier-authlib-0.69.0/authsaslcram.c:56:23:  [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(strcat(strcat(strcat(strcpy(challenge, "<"),
data/courier-authlib-0.69.0/authsaslcram.c:111: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).
	strcat(strcat(strcat(strcpy(chrsp, challenge_base64), "\n"),
data/courier-authlib-0.69.0/authsaslcram.c:111:23:  [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).
	strcat(strcat(strcat(strcpy(chrsp, challenge_base64), "\n"),
data/courier-authlib-0.69.0/authsaslcram.c:122: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( *authtype, method );
data/courier-authlib-0.69.0/authsasllogin.c:42:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(uid, initresponse);
data/courier-authlib-0.69.0/authsasllogin.c:108: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( *authtype, AUTHTYPE_LOGIN);
data/courier-authlib-0.69.0/authsaslplain.c:43:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(p, initresponse);
data/courier-authlib-0.69.0/authsaslplain.c:105: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( *authtype, AUTHTYPE_LOGIN);
data/courier-authlib-0.69.0/authsyschangepwd.c:131:3:  [4] (shell) execv:
  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.
		execv(argv[0], argv);
data/courier-authlib-0.69.0/authuserdb.c:108: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).
	strcat(strcat(strcat(strcpy(services, service), "-hmac-"),
data/courier-authlib-0.69.0/authuserdb.c:108:23:  [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).
	strcat(strcat(strcat(strcpy(services, service), "-hmac-"),
data/courier-authlib-0.69.0/authuserdb.c:114: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).
		strcat(strcat(strcpy(services, "hmac-"),
data/courier-authlib-0.69.0/authuserdbpwd.c:124:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(strcat(strcpy(hmacservice, service),
data/courier-authlib-0.69.0/authuserdbpwd.c:124:18:  [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).
			strcat(strcat(strcpy(hmacservice, service),
data/courier-authlib-0.69.0/authuserdbpwd.c:139:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(strcpy(hmacservice, "hmac-"), n);
data/courier-authlib-0.69.0/authuserdbpwd.c:261:9:  [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).
	strcat(strcpy(services, service), "pw");
data/courier-authlib-0.69.0/authuserdbpwd.c:330: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(argv[1],udb->udb_source ? udb->udb_source:"");
data/courier-authlib-0.69.0/authuserdbpwd.c:331: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(argv[1],uid);
data/courier-authlib-0.69.0/authuserdbpwd.c:342:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(argv[3], "%spw=%s", services, npwd);
data/courier-authlib-0.69.0/authuserdbpwd.c:365:3:  [4] (shell) execv:
  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.
		execv(argv[0], argv);
data/courier-authlib-0.69.0/authuserdbpwd.c:415:3:  [4] (shell) execv:
  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.
		execv(argv[0], argv);
data/courier-authlib-0.69.0/checkpassword.c:22:14:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
extern char *crypt(const char *, const char *);
data/courier-authlib-0.69.0/checkpassword.c:59:10:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
	cpass = crypt(password, encrypted_password);
data/courier-authlib-0.69.0/cryptpassword.c:28:14:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
extern char *crypt(const char *, const char *);
data/courier-authlib-0.69.0/cryptpassword.c:129: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).
	return (strcat(strcpy(pp, pfix), p));
data/courier-authlib-0.69.0/cryptpassword.c:129:17:  [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).
	return (strcat(strcpy(pp, pfix), p));
data/courier-authlib-0.69.0/debug.c:136: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( buf, DEBUG_MESSAGE_SIZE, fmt, ap );
data/courier-authlib-0.69.0/debug.c:146:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	return fprintf( stderr, ofmt , buf );
data/courier-authlib-0.69.0/liblog/logger.c:323:3:  [4] (shell) execvp:
  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.
		execvp(argv[0], argv);
data/courier-authlib-0.69.0/liblog/logger.c:400:11:  [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).
			strcat(strcpy(lockfilename, pidarg), ".lock");
data/courier-authlib-0.69.0/libs/liblock/lockmail.c:170:4:  [4] (shell) execvp:
  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.
			execvp(argvec[0], argvec);
data/courier-authlib-0.69.0/libs/liblock/locktest.c:40:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void)sprintf(name, "%s/%s", tmpdir, FILENAME);
data/courier-authlib-0.69.0/libs/liblock/mail.c:252: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(tmpname, dotlock);
data/courier-authlib-0.69.0/libs/liblock/mail.c:254: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(tmpname, timebuf);
data/courier-authlib-0.69.0/libs/liblock/mail.c:256: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(tmpname, pidbuf);
data/courier-authlib-0.69.0/libs/liblock/mail.c:258: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(tmpname, strchr(idbuf, ':')+1);
data/courier-authlib-0.69.0/libs/liblock/mail.c:373:9:  [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).
	strcat(strcpy(dotlock, p->file), ".lock");
data/courier-authlib-0.69.0/libs/numlib/changeuidgid.c:66: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(p, uname);
data/courier-authlib-0.69.0/libs/numlib/strdevt.c:24:10:  [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).
	return (strcpy(arg, p));
data/courier-authlib-0.69.0/libs/numlib/strgidt.c:24:10:  [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).
	return (strcpy(arg, p));
data/courier-authlib-0.69.0/libs/numlib/strhdevt.c:27:10:  [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).
	return (strcpy(arg, p));
data/courier-authlib-0.69.0/libs/numlib/strhinot.c:27:10:  [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).
	return (strcpy(arg, p));
data/courier-authlib-0.69.0/libs/numlib/strhpidt.c:27:10:  [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).
	return (strcpy(arg, p));
data/courier-authlib-0.69.0/libs/numlib/strhtimet.c:27:10:  [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).
	return (strcpy(arg, p));
data/courier-authlib-0.69.0/libs/numlib/strinot.c:24:10:  [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).
	return (strcpy(arg, p));
data/courier-authlib-0.69.0/libs/numlib/strofft.c:35:10:  [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).
	return (strcpy(arg, p));
data/courier-authlib-0.69.0/libs/numlib/strofft.c:60:10:  [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).
	return (strcpy(arg, p));
data/courier-authlib-0.69.0/libs/numlib/strpidt.c:24:10:  [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).
	return (strcpy(arg, p));
data/courier-authlib-0.69.0/libs/numlib/strsize.c:24: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).
        strcat(buf, p);
data/courier-authlib-0.69.0/libs/numlib/strsizet.c:24:10:  [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).
	return (strcpy(arg, p));
data/courier-authlib-0.69.0/libs/numlib/strtimet.c:24:10:  [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).
	return (strcpy(arg, p));
data/courier-authlib-0.69.0/libs/numlib/struidt.c:24:10:  [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).
	return (strcpy(arg, p));
data/courier-authlib-0.69.0/libs/random128/random128.c:90:5:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
				execl(W, W, (char *)0);
data/courier-authlib-0.69.0/libs/random128/random128.c:98:4:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			execl(PS, PS, PS_OPTIONS, (char *)0);
data/courier-authlib-0.69.0/libs/random128/random128alpha.c:23: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(randombuf, random128());
data/courier-authlib-0.69.0/libs/random128/random128binary.c:34: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(randombuf, random128());
data/courier-authlib-0.69.0/libs/rfc822/imaprefs.c:110: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 ((msgp->msgid=(char *)(msgp+1)), msgid);
data/courier-authlib-0.69.0/libs/rfc822/imapsubj.c:302: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(r, q);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047.c:63: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(cpy, domain);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047.c:93: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(q + pfix_len, p);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:343:4:  [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(cpy, p);
data/courier-authlib-0.69.0/libs/rfc822/rfc822_mkdate.c:95:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s, %02d %s %04d %02d:%02d:%02d %+05d",
data/courier-authlib-0.69.0/libs/rfc822/rfc822_parsedt.c:249:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "%s, %02d %s %04d %02d:%02d:%02d GMT",
data/courier-authlib-0.69.0/libs/sha1/testsuite.c:27:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf( (i < 200 ? "SHA1(%s)=":
data/courier-authlib-0.69.0/libs/sha1/testsuite.c:52:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf( (i < 200 ? "SHA256(%s)=":
data/courier-authlib-0.69.0/libs/sha1/testsuite.c:77:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf( (i < 200 ? "SHA512(%s)=":
data/courier-authlib-0.69.0/preauthdaemon.c:29: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).
	strcat(strcat(strcat(strcat(strcpy(buf, "PRE . "), service), " "),
data/courier-authlib-0.69.0/preauthdaemon.c:29:23:  [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(strcat(strcat(strcat(strcpy(buf, "PRE . "), service), " "),
data/courier-authlib-0.69.0/preauthuserdbcommon.c:77:11:  [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).
			strcat(strcpy(services, service), "pw");
data/courier-authlib-0.69.0/userdb/userdbmkpw.c:46:14:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
extern char *crypt(const char *, const char *);
data/courier-authlib-0.69.0/userdb/userdbpw.c:52:14:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
extern char *crypt(const char *, const char *);
data/courier-authlib-0.69.0/userdb/userdbpw.c:254:17:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
	printf("%s\n", crypt(buf, cryptsalt));
data/courier-authlib-0.69.0/userdb/userdbpw.c:257:17:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
	printf("%s\n", crypt(buf, salt));
data/courier-authlib-0.69.0/authdaemon.c:267:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *p=getenv("AUTH_MKHOMEDIR_SKEL");
data/courier-authlib-0.69.0/authdaemond.c:368:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char	*defoptions = getenv("DEFAULTOPTIONS");
data/courier-authlib-0.69.0/authdaemonlib.c:132:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char *p=getenv("TIMEOUT_SOCK");
data/courier-authlib-0.69.0/authdaemonlib.c:140:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char *p=getenv("TIMEOUT_READ");
data/courier-authlib-0.69.0/authdaemonlib.c:148:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char *p=getenv("TIMEOUT_WRITE");
data/courier-authlib-0.69.0/authldaplib.cpp:151:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *p=getenv("LDAP_MEMORY_LEAK");
data/courier-authlib-0.69.0/authmoduser3.c:45:4:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	q=getenv("DEFDOMAIN");
data/courier-authlib-0.69.0/authmoduser3.c:48:5:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		r=getenv("DOMAINSEP");
data/courier-authlib-0.69.0/authoption.c:39:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	return auth_getoption(getenv("OPTIONS"), keyword);
data/courier-authlib-0.69.0/authsaslcram.c:83:4:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	q=getenv("DEFDOMAIN");
data/courier-authlib-0.69.0/debug.c:36:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *p=getenv(DEBUG_LOGIN_ENV);
data/courier-authlib-0.69.0/debug.c:112:63:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	snprintf( ofmt, sizeof ofmt, "DEBUG: LOGIN: ip=[%s], %%s\n", getenv("TCPREMOTEIP") );
data/courier-authlib-0.69.0/libs/liblock/lockmail.c:73:18:  [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 ((optchar=getopt(argc, argv, "+rt:")) != -1)
data/courier-authlib-0.69.0/libs/liblock/locktest.c:31:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((tmpdir = (char *)getenv("TMPDIR")) == NULL || !*tmpdir)
data/courier-authlib-0.69.0/authdaemon.c:44:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	tbuf[NUMBUFSIZE];
data/courier-authlib-0.69.0/authdaemon.c:55:16:  [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.
	strcat(strcat(strcpy(buf, "AUTH "), n), "\n");
data/courier-authlib-0.69.0/authdaemon.c:124: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).
	FILE *fp=fopen(from, "r");
data/courier-authlib-0.69.0/authdaemon.c:134:6:  [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).
	fp2=fopen(to, "w");
data/courier-authlib-0.69.0/authdaemon.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 buf[1024];
data/courier-authlib-0.69.0/authdaemond.c:56:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(skun.sun_path, ".tmp");
data/courier-authlib-0.69.0/authdaemond.c:75: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[100];
data/courier-authlib-0.69.0/authdaemond.c:76: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 buf2[100];
data/courier-authlib-0.69.0/authdaemond.c:113: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(buf, "lib");
data/courier-authlib-0.69.0/authdaemond.c:159: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[BUFSIZ];
data/courier-authlib-0.69.0/authdaemond.c:164:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp=fopen(AUTHDAEMONRC, "r")) == NULL)
data/courier-authlib-0.69.0/authdaemond.c:222:12:  [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).
			daemons=atoi(p);
data/courier-authlib-0.69.0/authdaemond.c:235: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 buf[BUFSIZ];
data/courier-authlib-0.69.0/authdaemond.c:312: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(writeptr, p, pl);
data/courier-authlib-0.69.0/authdaemond.c:322: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(writeptr, p, n);
data/courier-authlib-0.69.0/authdaemond.c:417: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	buf2[NUMBUFSIZE];
data/courier-authlib-0.69.0/authdaemond.c:544: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[BUFSIZ];
data/courier-authlib-0.69.0/authdaemond.c:568: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(ei->buf_ptr, s, l);
data/courier-authlib-0.69.0/authdaemond.c:584: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[NUMBUFSIZE];
data/courier-authlib-0.69.0/authdaemond.c:792: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	buf[BUFSIZ];
data/courier-authlib-0.69.0/authdaemond.c:831:5:  [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).
		i=atoi(p);
data/courier-authlib-0.69.0/authdaemond.c:973:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (open("/dev/null", O_RDWR) != 0)
data/courier-authlib-0.69.0/authdaemonlib.c:133: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).
		int n=atoi(p ? p:"0");
data/courier-authlib-0.69.0/authdaemonlib.c:141: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).
		int n=atoi(p ? p:"0");
data/courier-authlib-0.69.0/authdaemonlib.c:149: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).
		int n=atoi(p ? p:"0");
data/courier-authlib-0.69.0/authdaemonlib.c:262: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	buf[BUFSIZ];
data/courier-authlib-0.69.0/authdaemonlib.c:305:6:  [2] (integer) atol:
  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).
			u=atol(r);
data/courier-authlib-0.69.0/authdaemonlib.c:310:17:  [2] (integer) atol:
  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).
			a.sysgroupid=atol(r);
data/courier-authlib-0.69.0/authdaemonlib.c:370: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[BUFSIZ];
data/courier-authlib-0.69.0/authdaemonlib.c:450: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 linebuf[BUFSIZ];
data/courier-authlib-0.69.0/authdaemontest.c:92:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if (open("/dev/null", O_WRONLY) != 1)
data/courier-authlib-0.69.0/authdaemontest.c:108:16:  [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).
	int nchildren=atoi(argv[1]);
data/courier-authlib-0.69.0/authdaemontest.c:109:12:  [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).
	int count=atoi(argv[2]);
data/courier-authlib-0.69.0/authenumerate.c:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf1[NUMBUFSIZE];
data/courier-authlib-0.69.0/authenumerate.c:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf2[NUMBUFSIZE];
data/courier-authlib-0.69.0/authenumerate.c:45:18:  [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).
			int disable = atoi(opt);
data/courier-authlib-0.69.0/authldapescape.c:28: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[10];
data/courier-authlib-0.69.0/authldapescape.c:33: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, "\\%02x", (int)(unsigned char)*str);
data/courier-authlib-0.69.0/authldaplib.cpp:175:6:  [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).
	if (atoi(p) && !ldapfailflag)
data/courier-authlib-0.69.0/authldaplib.cpp:1275: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 *mod_clear_vals[2], *mod_crypt_vals[2];
data/courier-authlib-0.69.0/authoption.c:29:6:  [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).
	i = atoi(p);
data/courier-authlib-0.69.0/authoption.c:68: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(p, options, keyword_l);
data/courier-authlib-0.69.0/authpam.c:174: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	buf[1];
data/courier-authlib-0.69.0/authpasswd.c:54: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[BUFSIZ];
data/courier-authlib-0.69.0/authpasswd.c:56: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 hint[100];
data/courier-authlib-0.69.0/authpasswd.c:59:2:  [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(hint, "$1$");
data/courier-authlib-0.69.0/authpasswd.c:63: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(hint, "{%1.15s}", argv[1]);
data/courier-authlib-0.69.0/authpasswd.c:73: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	buf2[BUFSIZ];
data/courier-authlib-0.69.0/authpipe.c:44:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	tbuf[NUMBUFSIZE];
data/courier-authlib-0.69.0/authpipe.c:59:16:  [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.
	strcat(strcat(strcpy(buf, "AUTH "), n), "\n");
data/courier-authlib-0.69.0/authpipe.c:92:30:  [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.
	strcat(strcat(strcat(strcat(strcpy(buf, "PRE . "), service), " "),
data/courier-authlib-0.69.0/authsaslclientplain.c:38: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(q+2+userid_l, password, password_l);
data/courier-authlib-0.69.0/authsaslcram.c:29: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	hostnamebuf[256];
data/courier-authlib-0.69.0/authsaslcram.c:47: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(hostnamebuf, "cram");
data/courier-authlib-0.69.0/authsaslfrombase64.c:8:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char decode64tab[256]= {
data/courier-authlib-0.69.0/authsqlitelib.cpp:508:6:  [2] (integer) atol:
  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).
	uid=atol(GET(1)); /* FIXME use strtol to validate */
data/courier-authlib-0.69.0/authsqlitelib.cpp:509:6:  [2] (integer) atol:
  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).
	gid=atol(GET(2));
data/courier-authlib-0.69.0/authsyschangepwd.c:102: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 *argv[2];
data/courier-authlib-0.69.0/authsyschangepwd.c:109:3:  [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).
		open("/dev/null", O_WRONLY);
data/courier-authlib-0.69.0/authuserdb.c:108:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(strcat(strcat(strcpy(services, service), "-hmac-"),
data/courier-authlib-0.69.0/authuserdb.c:108:16:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(strcat(strcat(strcpy(services, service), "-hmac-"),
data/courier-authlib-0.69.0/authuserdb.c:114:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(strcat(strcpy(services, "hmac-"),
data/courier-authlib-0.69.0/authuserdb.c:114:17:  [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.
		strcat(strcat(strcpy(services, "hmac-"),
data/courier-authlib-0.69.0/authuserdbpwd.c:62:25:  [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(q+i*2, "%02x", (int)p[i]);
data/courier-authlib-0.69.0/authuserdbpwd.c:124:11:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(strcat(strcpy(hmacservice, service),
data/courier-authlib-0.69.0/authuserdbpwd.c:139:11:  [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.
			strcat(strcpy(hmacservice, "hmac-"), n);
data/courier-authlib-0.69.0/authuserdbpwd.c:261:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(strcpy(services, service), "pw");
data/courier-authlib-0.69.0/authuserdbpwd.c:317: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 *argv[10];
data/courier-authlib-0.69.0/authuserdbpwd.c:397: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 *argv[2];
data/courier-authlib-0.69.0/checkpasswordsha1.c:54: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((char *)rand, code+i-sizeof(SSHA_RAND),
data/courier-authlib-0.69.0/cryptpassword.c:32:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char crypt_salt[65]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789./";
data/courier-authlib-0.69.0/cryptpassword.c: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 salt[10];
data/courier-authlib-0.69.0/cryptpassword.c:54:2:  [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(salt, "$1$");
data/courier-authlib-0.69.0/debug.c:38:34:  [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).
	courier_authdebug_login_level = atoi( p ? p:"0" );
data/courier-authlib-0.69.0/debug.c: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 ofmt[128];
data/courier-authlib-0.69.0/debug.c:131: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[DEBUG_MESSAGE_SIZE];
data/courier-authlib-0.69.0/debug.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 uidstr[32] = "<null>";
data/courier-authlib-0.69.0/liblog/logger.c:35: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	buf[512];
data/courier-authlib-0.69.0/liblog/logger.c:256:8:  [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).
			gid=atoi(grouparg);
data/courier-authlib-0.69.0/liblog/logger.c:273:8:  [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).
			uid=atoi(userarg);
data/courier-authlib-0.69.0/liblog/logger.c:299:10:  [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).
	checkfd(open("/dev/null", O_RDWR), 0);
data/courier-authlib-0.69.0/liblog/logger.c:372:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		checkfd(open("/dev/null", O_WRONLY), 1);
data/courier-authlib-0.69.0/liblog/logger.c:373:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		checkfd(open("/dev/null", O_WRONLY), 2);
data/courier-authlib-0.69.0/liblog/logger.c:400:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(strcpy(lockfilename, pidarg), ".lock");
data/courier-authlib-0.69.0/libs/bdbobj/bdbobj.c:133:20:  [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 ( (*obj->dbf->open)(obj->dbf,
data/courier-authlib-0.69.0/libs/bdbobj/bdbobj.c:212: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(q, p, *datalen);
data/courier-authlib-0.69.0/libs/bdbobj/bdbobj2.c:47: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(*val, value.data, *vallen);
data/courier-authlib-0.69.0/libs/bdbobj/bdbobj2.c:77: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(*val, value.data, *vallen);
data/courier-authlib-0.69.0/libs/bdbobj/testbdb.C:62: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(k->key, key, keylen);
data/courier-authlib-0.69.0/libs/bdbobj/testbdb.C:64: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(k->data, data, datalen);
data/courier-authlib-0.69.0/libs/gdbmobj/testgdbm.C:63: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(k->key, key, keylen);
data/courier-authlib-0.69.0/libs/gdbmobj/testgdbm.C:65: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(k->data, data, datalen);
data/courier-authlib-0.69.0/libs/libhmac/hmac.c:71: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	buf[64];	/* Random guess :-) */
data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c:125: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).
	int fd=open("/dev/tty", O_RDWR);
data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c:138: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).
	lockfd=open(lockfile, O_RDWR|O_CREAT, 0600);
data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c:145:10:  [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).
		lockfd=open(lockfile, O_RDWR|O_CREAT, 0600);
data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c:200:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (open("/dev/null", O_RDONLY) != 0)
data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c:204:4:  [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).
	i=open(CONSOLE, O_WRONLY);
data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c:205:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (i < 0)	i=open("/dev/null", O_WRONLY);
data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c:209:4:  [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).
	i=open(CONSOLE, O_WRONLY);
data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c:210:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (i < 0)	i=open("/dev/null", O_WRONLY);
data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c:217: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	buf[NUMBUFSIZE+1];
data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c:222:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp=fopen(pidfile, "w")) == NULL ||
data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c:284:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((lockfd=open(lockfile, O_RDWR|O_CREAT, 0600)) < 0)
data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c:314:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((fp=fopen(pidfile, "r")) == NULL)
data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c:345:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((lockfd=open(lockfile, O_RDWR|O_CREAT, 0600)) < 0)
data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c:358:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp=fopen(pidfile, "r")) == NULL)
data/courier-authlib-0.69.0/libs/liblock/lockmail.c:79: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).
			ntries=atoi(optarg);
data/courier-authlib-0.69.0/libs/liblock/lockmail.c:112: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).
	if ((n=open(argv[optind], O_RDWR|O_CREAT, 0600)) >= 0)
data/courier-authlib-0.69.0/libs/liblock/locktest.c:49:9:  [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 ((f=mkstemp(name)) < 0)
data/courier-authlib-0.69.0/libs/liblock/locktest.c:69:10:  [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 ((f=open(name, O_RDWR)) < 0)
data/courier-authlib-0.69.0/libs/liblock/mail.c:62: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(idbuf, "localhost");
data/courier-authlib-0.69.0/libs/liblock/mail.c:105:10:  [2] (integer) atol:
  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).
	pid_t p=atol(idbuf);
data/courier-authlib-0.69.0/libs/liblock/mail.c:118: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 idbuf[IDBUFSIZE];
data/courier-authlib-0.69.0/libs/liblock/mail.c:119: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 idbuf2[IDBUFSIZE];
data/courier-authlib-0.69.0/libs/liblock/mail.c: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 fn[NUMBUFSIZE*2 + 20];
data/courier-authlib-0.69.0/libs/liblock/mail.c:146:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd=open(f, O_RDWR|O_CREAT|O_EXCL, 0644)) >= 0)
data/courier-authlib-0.69.0/libs/liblock/mail.c:184:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd=open(f, O_RDONLY)) >= 0)
data/courier-authlib-0.69.0/libs/liblock/mail.c:232:36:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
static int try_dotlock(const char *tmpfile,
data/courier-authlib-0.69.0/libs/liblock/mail.c:238: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 timebuf[NUMBUFSIZE];
data/courier-authlib-0.69.0/libs/liblock/mail.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 pidbuf[NUMBUFSIZE];
data/courier-authlib-0.69.0/libs/liblock/mail.c:273:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd=open(tmpname, O_RDWR | O_CREAT, 0644);
data/courier-authlib-0.69.0/libs/liblock/mail.c:302: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 idbuf[IDBUFSIZE];
data/courier-authlib-0.69.0/libs/liblock/mail.c:306:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd=open(dotlock, O_RDONLY)) >= 0)
data/courier-authlib-0.69.0/libs/liblock/mail.c:350:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char myidbuf[IDBUFSIZE];
data/courier-authlib-0.69.0/libs/liblock/mail.c:358:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd=open(p->file, ro ? O_RDONLY:O_RDWR);
data/courier-authlib-0.69.0/libs/liblock/mail.c:373:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(strcpy(dotlock, p->file), ".lock");
data/courier-authlib-0.69.0/libs/liblock/mail.c:377:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd=open(p->file, ro ? O_RDONLY:O_RDWR);
data/courier-authlib-0.69.0/libs/liblock/mail.c:401:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd=open(p->file, ro ? O_RDONLY:O_RDWR);
data/courier-authlib-0.69.0/libs/liblock/mail.c:444: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 myid[IDBUFSIZE];
data/courier-authlib-0.69.0/libs/liblock/mail.c:445: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 idbuf[IDBUFSIZE];
data/courier-authlib-0.69.0/libs/liblock/mail.c:464:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		int fd=open(p->dotlock, O_RDONLY);
data/courier-authlib-0.69.0/libs/liblock/mail.c:487:49:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
int ll_dotlock(const char *dotlock, const char *tmpfile,
data/courier-authlib-0.69.0/libs/liblock/mail.c:490: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 myidbuf[IDBUFSIZE];
data/courier-authlib-0.69.0/libs/liblock/mail.c:494:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	if (try_dotlock(tmpfile, dotlock, myidbuf))
data/courier-authlib-0.69.0/libs/liblock/mail.h:101:49:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
int ll_dotlock(const char *dotlock, const char *tmpfile,
data/courier-authlib-0.69.0/libs/makedat/makedatprog.c:94:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((i=fopen(argv[1], "r")) == 0)
data/courier-authlib-0.69.0/libs/md5/hmac.c:19:10:  [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 c[MD5_DIGEST_SIZE];
data/courier-authlib-0.69.0/libs/md5/md5.c:48:17:  [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.
	const unsigned char blk[MD5_BLOCK_SIZE])
data/courier-authlib-0.69.0/libs/md5/md5.c:179: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(c->blk + c->blk_ptr, cp, ll);
data/courier-authlib-0.69.0/libs/md5/md5.c:193:10:  [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 buf[8];
data/courier-authlib-0.69.0/libs/md5/md5.c:195:17:  [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 unsigned char zero[MD5_BLOCK_SIZE-8];
data/courier-authlib-0.69.0/libs/md5/md5.h:30:18:  [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.
typedef unsigned char MD5_DIGEST[MD5_DIGEST_SIZE];
data/courier-authlib-0.69.0/libs/md5/md5.h:38: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 blk[MD5_BLOCK_SIZE];
data/courier-authlib-0.69.0/libs/md5/md5_hash.c:17: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 hash_buffer[1+(sizeof(md5buf)+2)/3*4];
data/courier-authlib-0.69.0/libs/md5/md5_hash.c:51:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char hash_buffer[sizeof(digest)*2+1];
data/courier-authlib-0.69.0/libs/md5/md5_hash.c:54: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
data/courier-authlib-0.69.0/libs/md5/md5_hash.c:60: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(tmp_buf,"%02x",digest[j]);
data/courier-authlib-0.69.0/libs/md5/md5test.c:21: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	*salts[4]={"abcdef","01234567","76543210","QWERTY"};
data/courier-authlib-0.69.0/libs/md5/md5test.c:22: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	*passwds[4]={	"rosebud",
data/courier-authlib-0.69.0/libs/md5/redhat-crypt-md5.c:22: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 buffer[100];
data/courier-authlib-0.69.0/libs/md5/redhat-crypt-md5.c:105:2:  [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(buffer, "$1$");
data/courier-authlib-0.69.0/libs/numlib/strdevt.c:15: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[NUMBUFSIZE];
data/courier-authlib-0.69.0/libs/numlib/strgidt.c:15: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	buf[NUMBUFSIZE];
data/courier-authlib-0.69.0/libs/numlib/strhdevt.c:17: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	buf[sizeof(t)*2+1];
data/courier-authlib-0.69.0/libs/numlib/strhinot.c:17: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	buf[sizeof(t)*2+1];
data/courier-authlib-0.69.0/libs/numlib/strhpidt.c:17: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	buf[sizeof(t)*2+1];
data/courier-authlib-0.69.0/libs/numlib/strhtimet.c:17: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	buf[sizeof(t)*2+1];
data/courier-authlib-0.69.0/libs/numlib/strinot.c:15: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	buf[NUMBUFSIZE];
data/courier-authlib-0.69.0/libs/numlib/strofft.c:15: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[NUMBUFSIZE];
data/courier-authlib-0.69.0/libs/numlib/strofft.c:40:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	buf[NUMBUFSIZE];
data/courier-authlib-0.69.0/libs/numlib/strpidt.c:15: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	buf[NUMBUFSIZE];
data/courier-authlib-0.69.0/libs/numlib/strsize.c:15: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    bb[NUMBUFSIZE+1];
data/courier-authlib-0.69.0/libs/numlib/strsize.c:33:17:  [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(sizebuf, "0.");
data/courier-authlib-0.69.0/libs/numlib/strsizet.c:15: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	buf[NUMBUFSIZE];
data/courier-authlib-0.69.0/libs/numlib/strtimet.c:15: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	buf[NUMBUFSIZE];
data/courier-authlib-0.69.0/libs/numlib/struidt.c:15: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	buf[NUMBUFSIZE];
data/courier-authlib-0.69.0/libs/random128/random128.c:31: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 randombuf[sizeof(MD5_DIGEST)*2+1];
data/courier-authlib-0.69.0/libs/random128/random128.c:35: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).
	int	fd=open(RANDOM, O_RDONLY);
data/courier-authlib-0.69.0/libs/random128/random128.c:36: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	buf2[sizeof(MD5_DIGEST)];
data/courier-authlib-0.69.0/libs/random128/random128.c:44:6:  [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(randombuf+i*2,
data/courier-authlib-0.69.0/libs/random128/random128.c:60: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[512];
data/courier-authlib-0.69.0/libs/random128/random128.c:120: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(randombuf+n*2,
data/courier-authlib-0.69.0/libs/random128/random128.h:33:18:  [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.
typedef unsigned char random128binbuf[16];
data/courier-authlib-0.69.0/libs/random128/random128alpha.c:20: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 randombuf[ 128 / 8 * 2 + 1];
data/courier-authlib-0.69.0/libs/random128/random128binary.c:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char randombuf[ 128 / 8 * 2 + 1];
data/courier-authlib-0.69.0/libs/rfc822/encode.c:89: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(info->output_buffer + info->output_buf_cnt, ptr, i);
data/courier-authlib-0.69.0/libs/rfc822/encode.c:128: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(info->input_buffer + info->input_buf_cnt,
data/courier-authlib-0.69.0/libs/rfc822/encode.c:145: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	output_buf[ sizeof(info->input_buffer) / 3 * 4+1];
data/courier-authlib-0.69.0/libs/rfc822/encode.c:178: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 local_buf[256];
data/courier-authlib-0.69.0/libs/rfc822/encode.h:24: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 output_buffer[BUFSIZ];
data/courier-authlib-0.69.0/libs/rfc822/encode.h:27: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 input_buffer[57]; /* For base64 */
data/courier-authlib-0.69.0/libs/rfc822/reftest.c:31: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	buf[20];
data/courier-authlib-0.69.0/libs/rfc822/reftest.c:33:9:  [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(buf, "a@b");
data/courier-authlib-0.69.0/libs/rfc822/reftest.c:35:9:  [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(buf, "c@d");
data/courier-authlib-0.69.0/libs/rfc822/rfc2047.c:91: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(q, pfix, pfix_len);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047.c:269: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 ibuf[3];
data/courier-authlib-0.69.0/libs/rfc822/rfc2047.c:270: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 obuf[4];
data/courier-authlib-0.69.0/libs/rfc822/rfc2047.c:327: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[3];
data/courier-authlib-0.69.0/libs/rfc822/rfc2047.c:663: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(*s, c, l);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:52: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(s->bufptr+s->bufsize, p, l);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:93: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(buf, content, cnt);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:172: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(p, i->ptr+1, l);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:176: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(p, i->ptr, l);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:651: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(((struct rfc822_display_hdrvalue_tobuf_s *)s)->buf,
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:910: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(chset, chset_str, j);
data/courier-authlib-0.69.0/libs/rfc822/rfc822_mkdate.c:108: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 buf[50];
data/courier-authlib-0.69.0/libs/rfc822/rfc822_parsedt.c:42:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const weekdays[7]={
data/courier-authlib-0.69.0/libs/rfc822/rfc822_parsedt.c:46:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const mnames[13]={
data/courier-authlib-0.69.0/libs/rfc822/rfc822_parsedt.c:243: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 buf[80];
data/courier-authlib-0.69.0/libs/rfc822/testsuite.c:28: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	buf[2];
data/courier-authlib-0.69.0/libs/sha1/hmac.c:19:10:  [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 c[SHA1_DIGEST_SIZE];
data/courier-authlib-0.69.0/libs/sha1/hmac.c:46:10:  [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 c[SHA256_DIGEST_SIZE];
data/courier-authlib-0.69.0/libs/sha1/sha1.c:36:18:  [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.
		const unsigned char blk[SHA1_BLOCK_SIZE])
data/courier-authlib-0.69.0/libs/sha1/sha1.c:110: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(c->blk + c->blk_ptr, cp, ll);
data/courier-authlib-0.69.0/libs/sha1/sha1.c:124: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 buf[8];
data/courier-authlib-0.69.0/libs/sha1/sha1.c:125:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const unsigned char zero[SHA1_BLOCK_SIZE-8];
data/courier-authlib-0.69.0/libs/sha1/sha1.h:33:18:  [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.
typedef	unsigned char SHA1_DIGEST[20];
data/courier-authlib-0.69.0/libs/sha1/sha1.h:34:18:  [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.
typedef unsigned char SHA256_DIGEST[32];
data/courier-authlib-0.69.0/libs/sha1/sha1.h:35:18:  [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.
typedef unsigned char SHA512_DIGEST[64];
data/courier-authlib-0.69.0/libs/sha1/sha1.h:43: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 blk[SHA1_BLOCK_SIZE];
data/courier-authlib-0.69.0/libs/sha1/sha1.h:51: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 blk[SHA256_BLOCK_SIZE];
data/courier-authlib-0.69.0/libs/sha1/sha1.h:59: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 blk[SHA512_BLOCK_SIZE];
data/courier-authlib-0.69.0/libs/sha1/sha1.h:94:18:  [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.
typedef unsigned char SSHA_RAND[4];
data/courier-authlib-0.69.0/libs/sha1/sha1_hash.c:16: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 hash_buffer[1+(sizeof(sha1buf)+2)/3*4];
data/courier-authlib-0.69.0/libs/sha1/sha1_hash.c:49: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 sha1buf[sizeof(SHA1_DIGEST)+sizeof(SSHA_RAND)];
data/courier-authlib-0.69.0/libs/sha1/sha1_hash.c:51:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char hash_buffer[1+(sizeof(sha1buf)+2)/3*4];
data/courier-authlib-0.69.0/libs/sha1/sha256.c:54:20:  [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.
			 const unsigned char blk[SHA256_BLOCK_SIZE])
data/courier-authlib-0.69.0/libs/sha1/sha256.c:123: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(c->blk + c->blk_ptr, cp, ll);
data/courier-authlib-0.69.0/libs/sha1/sha256.c:137: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 buf[8];
data/courier-authlib-0.69.0/libs/sha1/sha256.c:138:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const unsigned char zero[SHA256_BLOCK_SIZE-8];
data/courier-authlib-0.69.0/libs/sha1/sha256_hash.c:16: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 hash_buffer[1+(sizeof(sha256buf)+2)/3*4];
data/courier-authlib-0.69.0/libs/sha1/sha512.c:67:20:  [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.
			 const unsigned char blk[SHA512_BLOCK_SIZE])
data/courier-authlib-0.69.0/libs/sha1/sha512.c:140: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(c->blk + c->blk_ptr, cp, ll);
data/courier-authlib-0.69.0/libs/sha1/sha512.c:154: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 buf[16];
data/courier-authlib-0.69.0/libs/sha1/sha512.c:156:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const unsigned char zero[SHA512_BLOCK_SIZE-8];
data/courier-authlib-0.69.0/libs/sha1/sha512_hash.c:16: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 hash_buffer[1+(sizeof(sha512buf)+2)/3*4];
data/courier-authlib-0.69.0/libs/sha1/testsuite.c:13: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 foo[1000001];
data/courier-authlib-0.69.0/preauthdaemon.c:29:30:  [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.
	strcat(strcat(strcat(strcat(strcpy(buf, "PRE . "), service), " "),
data/courier-authlib-0.69.0/preauthuserdbcommon.c:77:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(strcpy(services, service), "pw");
data/courier-authlib-0.69.0/userdb/userdb.c:121: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.
	if (l)	memcpy(p, q, l);
data/courier-authlib-0.69.0/userdb/userdb.c:187:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		if (l)	memcpy(q, p, l);
data/courier-authlib-0.69.0/userdb/userdb.c:199: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	buf[80];
data/courier-authlib-0.69.0/userdb/userdb.c:243: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(valz, val, vallen);
data/courier-authlib-0.69.0/userdb/userdb.c:252: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(udbs->udb_name, key, keylen);
data/courier-authlib-0.69.0/userdb/userdb.c:329:17:  [2] (integer) atol:
  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).
		udbs->udb_uid=atol(s);
data/courier-authlib-0.69.0/userdb/userdb.c:333:18:  [2] (integer) atol:
  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).
			udbs->udb_gid=atol(s);
data/courier-authlib-0.69.0/userdb/userdb2.c:53: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.
	if (l)	memcpy(p, q, l);
data/courier-authlib-0.69.0/userdb/userdbmkpw.c:55:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
int	f=open(RANDOM, O_RDONLY);
data/courier-authlib-0.69.0/userdb/userdbmkpw.c:82: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 salt[9];
data/courier-authlib-0.69.0/userdb/userdbmkpw.c:114:37:  [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.
			salt[i]=userdb_hex64[ ((unsigned char *)d)[i] ];
data/courier-authlib-0.69.0/userdb/userdbpw.c:106: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	buf[BUFSIZ];
data/courier-authlib-0.69.0/userdb/userdbpw.c:107: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	salt[9];
data/courier-authlib-0.69.0/userdb/userdbpw.c:150: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	buf2[BUFSIZ];
data/courier-authlib-0.69.0/authdaemon.c:45:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t	l=strlen(service)+strlen(authtype)+strlen(authdata)+2;
data/courier-authlib-0.69.0/authdaemon.c:45: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).
	size_t	l=strlen(service)+strlen(authtype)+strlen(authdata)+2;
data/courier-authlib-0.69.0/authdaemon.c:45: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).
	size_t	l=strlen(service)+strlen(authtype)+strlen(authdata)+2;
data/courier-authlib-0.69.0/authdaemon.c:47:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char	*buf=malloc(strlen(n)+l+20);
data/courier-authlib-0.69.0/authdaemon.c:55:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(strcat(strcpy(buf, "AUTH "), n), "\n");
data/courier-authlib-0.69.0/authdaemon.c:56:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(strcat(buf, service), "\n");
data/courier-authlib-0.69.0/authdaemon.c:57:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(strcat(buf, authtype), "\n");
data/courier-authlib-0.69.0/authdaemon.c:143:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c=getc(fp)) != EOF)
data/courier-authlib-0.69.0/authdaemon.c:207: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).
			fskeldir=malloc(strlen(skeldir)+2+strlen(de->d_name));
data/courier-authlib-0.69.0/authdaemon.c:207: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).
			fskeldir=malloc(strlen(skeldir)+2+strlen(de->d_name));
data/courier-authlib-0.69.0/authdaemon.c:208: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).
			fhomedir=malloc(strlen(homedir)+2+strlen(de->d_name));
data/courier-authlib-0.69.0/authdaemon.c:208: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).
			fhomedir=malloc(strlen(homedir)+2+strlen(de->d_name));
data/courier-authlib-0.69.0/authdaemon.c:212:12:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat(strcat(strcpy(fskeldir, skeldir), "/"),
data/courier-authlib-0.69.0/authdaemon.c:214:12:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat(strcat(strcpy(fhomedir, homedir), "/"),
data/courier-authlib-0.69.0/authdaemon.c:275:20:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		mode_t old_umask=umask(0777);
data/courier-authlib-0.69.0/authdaemon.c:279:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(old_umask);
data/courier-authlib-0.69.0/authdaemond.c:114:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(buf, p, i>40 ? 40:i);
data/courier-authlib-0.69.0/authdaemond.c:178:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while ((c=getc(fp)) >= 0 && c != '\n')
data/courier-authlib-0.69.0/authdaemond.c:257:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	readleft=read(fd, buf, sizeof(buf));
data/courier-authlib-0.69.0/authdaemond.c:333: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 (writeauthbuf(fd, env, strlen(env)) ||
data/courier-authlib-0.69.0/authdaemond.c:335:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		writeauthbuf(fd, val, strlen(val)) ||
data/courier-authlib-0.69.0/authdaemond.c:343:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t keyword_l=strlen(keyword);
data/courier-authlib-0.69.0/authdaemond.c:373:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char *result = malloc(strlen(options) +
data/courier-authlib-0.69.0/authdaemond.c:374: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(defoptions) + 2);
data/courier-authlib-0.69.0/authdaemond.c:396:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(result, ",");
data/courier-authlib-0.69.0/authdaemond.c:565:5:  [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=strlen(s);
data/courier-authlib-0.69.0/authdaemond.c:738: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).
	pp=malloc(strlen(p)+1);
data/courier-authlib-0.69.0/authdaemonlib.c:193: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).
unsigned len = 0, tlen = strlen(term);
data/courier-authlib-0.69.0/authdaemonlib.c:217:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n=read(fd, p, pl);
data/courier-authlib-0.69.0/authdaemonlib.c:234:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (writeauth(wrfd, buffer, strlen(buffer)))
data/courier-authlib-0.69.0/authdaemonlib.c:267:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (writeauth(wrfd, authreq, strlen(authreq)))
data/courier-authlib-0.69.0/authdaemonlib.c:403:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n=read(fd, eg->buffer, sizeof(eg->buffer));
data/courier-authlib-0.69.0/authmoduser2.c:50: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).
	buf=malloc(strlen(service)+strlen(uid)+strlen(opwd)+
data/courier-authlib-0.69.0/authmoduser2.c:50:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf=malloc(strlen(service)+strlen(uid)+strlen(opwd)+
data/courier-authlib-0.69.0/authmoduser2.c:50: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).
	buf=malloc(strlen(service)+strlen(uid)+strlen(opwd)+
data/courier-authlib-0.69.0/authmoduser2.c:51:5:  [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(npwd)+20);
data/courier-authlib-0.69.0/authmoduser2.c:59:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (authdaemondopasswd(buf, strlen(buf)))
data/courier-authlib-0.69.0/authmoduser3.c:54: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).
	p=malloc(strlen(userid)+strlen(q)+strlen(s1)+strlen(s2)+strlen(s3)+1);
data/courier-authlib-0.69.0/authmoduser3.c:54: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).
	p=malloc(strlen(userid)+strlen(q)+strlen(s1)+strlen(s2)+strlen(s3)+1);
data/courier-authlib-0.69.0/authmoduser3.c:54: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).
	p=malloc(strlen(userid)+strlen(q)+strlen(s1)+strlen(s2)+strlen(s3)+1);
data/courier-authlib-0.69.0/authmoduser3.c:54:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	p=malloc(strlen(userid)+strlen(q)+strlen(s1)+strlen(s2)+strlen(s3)+1);
data/courier-authlib-0.69.0/authmoduser3.c:54:58:  [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=malloc(strlen(userid)+strlen(q)+strlen(s1)+strlen(s2)+strlen(s3)+1);
data/courier-authlib-0.69.0/authmysqllib.cpp:326:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		buffer.resize(strlen(&buffer[0]));
data/courier-authlib-0.69.0/authoption.c:44:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t keyword_l=strlen(keyword);
data/courier-authlib-0.69.0/authpam.c:73:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (write(2, msg[i]->msg, strlen(msg[i]->msg)) < 0 ||
data/courier-authlib-0.69.0/authpam.c:243:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(pipefd[0], buf, 1) > 0)
data/courier-authlib-0.69.0/authpasswd.c:45:12:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c=getchar()) != EOF && c != '\n')
data/courier-authlib-0.69.0/authpipe.c:45:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t	l=strlen(service)+strlen(authtype)+strlen(authdata)+2;
data/courier-authlib-0.69.0/authpipe.c:45: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).
	size_t	l=strlen(service)+strlen(authtype)+strlen(authdata)+2;
data/courier-authlib-0.69.0/authpipe.c:45: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).
	size_t	l=strlen(service)+strlen(authtype)+strlen(authdata)+2;
data/courier-authlib-0.69.0/authpipe.c:47:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char	*buf=malloc(strlen(n)+l+20);
data/courier-authlib-0.69.0/authpipe.c:59:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(strcat(strcpy(buf, "AUTH "), n), "\n");
data/courier-authlib-0.69.0/authpipe.c:60:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(strcat(buf, service), "\n");
data/courier-authlib-0.69.0/authpipe.c:61:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(strcat(buf, authtype), "\n");
data/courier-authlib-0.69.0/authpipe.c:88: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).
	buf=malloc(strlen(service)+strlen(uid)+20);
data/courier-authlib-0.69.0/authpipe.c:88:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf=malloc(strlen(service)+strlen(uid)+20);
data/courier-authlib-0.69.0/authpipe.c:92:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(strcat(strcat(strcat(strcpy(buf, "PRE . "), service), " "),
data/courier-authlib-0.69.0/authpipe.c:92:16:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(strcat(strcat(strcat(strcpy(buf, "PRE . "), service), " "),
data/courier-authlib-0.69.0/authpipe.c:119: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).
	buf=malloc(strlen(service)+strlen(uid)+strlen(opwd)+
data/courier-authlib-0.69.0/authpipe.c:119:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf=malloc(strlen(service)+strlen(uid)+strlen(opwd)+
data/courier-authlib-0.69.0/authpipe.c:119: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).
	buf=malloc(strlen(service)+strlen(uid)+strlen(opwd)+
data/courier-authlib-0.69.0/authpipe.c:120:4:  [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(npwd)+20);
data/courier-authlib-0.69.0/authpipe.c:132: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).
	rc = _authdaemondopasswd(wrfd, rdfd, buf, strlen(buf));
data/courier-authlib-0.69.0/authsasl.c:55: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).
	if ((p=malloc(strlen(method)+1)) == 0)
data/courier-authlib-0.69.0/authsaslclient.c:36: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 ((methodbuf=malloc(strlen(info->sasl_funcs)+1)) == 0)
data/courier-authlib-0.69.0/authsaslclientcram.c:21: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).
char	*base64buf=malloc(strlen(challenge)+1);
data/courier-authlib-0.69.0/authsaslclientcram.c:43: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).
	hmac_hashkey( hashinfo, password, strlen(password),
data/courier-authlib-0.69.0/authsaslclientcram.c:51:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	base64buf=malloc(strlen(userid)+2+hashinfo->hh_L*2);
data/courier-authlib-0.69.0/authsaslclientcram.c:58:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(strcpy(base64buf, userid), " ");
data/courier-authlib-0.69.0/authsaslclientcram.c:59: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).
	p=base64buf+strlen(base64buf);
data/courier-authlib-0.69.0/authsaslclientplain.c:26: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).
	userid_l=strlen(userid);
data/courier-authlib-0.69.0/authsaslclientplain.c:27: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).
	password_l=strlen(password);
data/courier-authlib-0.69.0/authsaslcram.c:49:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	challenge=malloc(strlen(randtoken)+strlen(hostnamebuf)
data/courier-authlib-0.69.0/authsaslcram.c:49: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).
	challenge=malloc(strlen(randtoken)+strlen(hostnamebuf)
data/courier-authlib-0.69.0/authsaslcram.c:56:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(strcat(strcat(strcat(strcpy(challenge, "<"),
data/courier-authlib-0.69.0/authsaslcram.c:56:16:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(strcat(strcat(strcat(strcpy(challenge, "<"),
data/courier-authlib-0.69.0/authsaslcram.c:56:30:  [1] (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 character.
	strcat(strcat(strcat(strcat(strcpy(challenge, "<"),
data/courier-authlib-0.69.0/authsaslcram.c:102:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	chrsp=malloc(strlen(challenge_base64)+strlen(response)+3);
data/courier-authlib-0.69.0/authsaslcram.c:102: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).
	chrsp=malloc(strlen(challenge_base64)+strlen(response)+3);
data/courier-authlib-0.69.0/authsaslcram.c:111:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(strcat(strcat(strcpy(chrsp, challenge_base64), "\n"),
data/courier-authlib-0.69.0/authsaslcram.c:111:16:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(strcat(strcat(strcpy(chrsp, challenge_base64), "\n"),
data/courier-authlib-0.69.0/authsaslcram.c:116:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ( (*authtype=malloc(strlen(method)+1)) == 0)
data/courier-authlib-0.69.0/authsasllogin.c:36: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).
		uid=malloc(strlen(initresponse)+1);
data/courier-authlib-0.69.0/authsaslplain.c:37: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).
		p=malloc(strlen(initresponse)+1);
data/courier-authlib-0.69.0/authsasltobase64.c:33:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (l < 0)	l=strlen(p);
data/courier-authlib-0.69.0/authuserdb.c:98: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).
	if ((services=malloc(strlen(service)+strlen(cci.h->hh_name)
data/courier-authlib-0.69.0/authuserdb.c:98:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((services=malloc(strlen(service)+strlen(cci.h->hh_name)
data/courier-authlib-0.69.0/authuserdbpwd.c:60: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).
                hmac_hashkey(hmac, pw, strlen(pw), p, p+hmac->hh_L);
data/courier-authlib-0.69.0/authuserdbpwd.c:118:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			char *hmacservice=malloc(strlen(service)+strlen(n)
data/courier-authlib-0.69.0/authuserdbpwd.c:118:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			char *hmacservice=malloc(strlen(service)+strlen(n)
data/courier-authlib-0.69.0/authuserdbpwd.c:253: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).
	if ((services=malloc(strlen(service)+sizeof("pw"))) == 0)
data/courier-authlib-0.69.0/authuserdbpwd.c:322:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	argv[1]=malloc(strlen(udb->udb_source ? udb->udb_source:"")
data/courier-authlib-0.69.0/authuserdbpwd.c:323: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(uid)+1);
data/courier-authlib-0.69.0/authuserdbpwd.c:334:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	argv[3]=malloc(strlen(services)+strlen(npwd)+10);
data/courier-authlib-0.69.0/authuserdbpwd.c:334:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	argv[3]=malloc(strlen(services)+strlen(npwd)+10);
data/courier-authlib-0.69.0/cramlib.c:33: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(hashsecret) != hash->hh_L*4 ||
data/courier-authlib-0.69.0/cramlib.c:34:3:  [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(response) != hash->hh_L*2)
data/courier-authlib-0.69.0/cramlib.c:51: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).
	hmac_hashtext(hash, challenge, strlen(challenge),
data/courier-authlib-0.69.0/cramlib.c:182:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	hmac_hashkey(cci->h, a->clearpasswd, strlen(a->clearpasswd),
data/courier-authlib-0.69.0/cryptpassword.c:62:2:  [1] (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 character.
	strcpy(salt+i, "$");
data/courier-authlib-0.69.0/cryptpassword.c:126: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).
	if (!p || (pp=malloc(strlen(pfix)+strlen(p)+1)) == 0)
data/courier-authlib-0.69.0/cryptpassword.c:126: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 (!p || (pp=malloc(strlen(pfix)+strlen(p)+1)) == 0)
data/courier-authlib-0.69.0/debug.c:137: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( buf );
data/courier-authlib-0.69.0/liblog/logger.c:62:14:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while ((c=getchar()) != EOF && c != '\n')
data/courier-authlib-0.69.0/liblog/logger.c:394: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).
			lockfilename=malloc(strlen(pidarg)+sizeof(".lock"));
data/courier-authlib-0.69.0/libs/bdbobj/testbdb.C:91: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).
			fw(kdarray[kdcnt]->key, strlen(kdarray[kdcnt]->key),
data/courier-authlib-0.69.0/libs/bdbobj/testbdb.C:94:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			fw(kdarray[kdcnt]->data, strlen(kdarray[kdcnt]->data),
data/courier-authlib-0.69.0/libs/bdbobj/testbdb.C:115:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (dbw.Delete(argv[2]+1, strlen(argv[2]+1)))
data/courier-authlib-0.69.0/libs/bdbobj/testbdb.C:130:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *val=dbw.Fetch(argv[2], strlen(argv[2]), len, 0);
data/courier-authlib-0.69.0/libs/bdbobj/testbdb.C:154:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (dbw.Store(argv[2], strlen(argv[2]),
data/courier-authlib-0.69.0/libs/bdbobj/testbdb.C:155: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).
			argv[3], strlen(argv[3]), "R"))
data/courier-authlib-0.69.0/libs/gdbmobj/testgdbm.C:92: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).
			fw(kdarray[kdcnt]->key, strlen(kdarray[kdcnt]->key),
data/courier-authlib-0.69.0/libs/gdbmobj/testgdbm.C:95:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			fw(kdarray[kdcnt]->data, strlen(kdarray[kdcnt]->data),
data/courier-authlib-0.69.0/libs/gdbmobj/testgdbm.C:115:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (dbw.Delete(argv[2]+1, strlen(argv[2]+1)))
data/courier-authlib-0.69.0/libs/gdbmobj/testgdbm.C:130:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *val=dbw.Fetch(argv[2], strlen(argv[2]), len, 0);
data/courier-authlib-0.69.0/libs/gdbmobj/testgdbm.C:154:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (dbw.Store(argv[2], strlen(argv[2]),
data/courier-authlib-0.69.0/libs/gdbmobj/testgdbm.C:155: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).
			argv[3], strlen(argv[3]), "R"))
data/courier-authlib-0.69.0/libs/libhmac/md5hmactest.c:49:4:  [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(testcases[i].key), ok, ik);
data/courier-authlib-0.69.0/libs/libhmac/md5hmactest.c:52:4:  [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(testcases[i].data), ok, ik, hash);
data/courier-authlib-0.69.0/libs/libhmac/sha1hmactest.c:49:4:  [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(testcases[i].key), ok, ik);
data/courier-authlib-0.69.0/libs/libhmac/sha1hmactest.c:52:4:  [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(testcases[i].data), ok, ik, hash);
data/courier-authlib-0.69.0/libs/libhmac/sha1hmactest.c:65:4:  [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(testcases[i].key), ok, ik);
data/courier-authlib-0.69.0/libs/libhmac/sha1hmactest.c:68:4:  [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(testcases[i].data), ok, ik, hash);
data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c:102:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(pipefd[0], &c, 1) <= 0)
data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c:218:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
char	*p=strcat(libmail_str_pid_t(getpid(), buf), "\n");
data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c:319:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while ((c=getc(fp)) != EOF && c != '\n')
data/courier-authlib-0.69.0/libs/liblock/lockdaemon.c:363:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c=getc(fp)) != EOF && c != '\n')
data/courier-authlib-0.69.0/libs/liblock/locktest.c:34:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((name=malloc(strlen(tmpdir)+sizeof(FILENAME)+1)) == NULL)
data/courier-authlib-0.69.0/libs/liblock/locktest.c:66:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read(fd[0], &c, 1);
data/courier-authlib-0.69.0/libs/liblock/mail.c:67: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).
	int l=strlen(idbuf);
data/courier-authlib-0.69.0/libs/liblock/mail.c:88:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int n=read(fd, p, l);
data/courier-authlib-0.69.0/libs/liblock/mail.c:246:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tmpname=malloc(strlen(dotlock) + strlen(timebuf) + strlen(pidbuf) +
data/courier-authlib-0.69.0/libs/liblock/mail.c:246: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).
	tmpname=malloc(strlen(dotlock) + strlen(timebuf) + strlen(pidbuf) +
data/courier-authlib-0.69.0/libs/liblock/mail.c:246: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).
	tmpname=malloc(strlen(dotlock) + strlen(timebuf) + strlen(pidbuf) +
data/courier-authlib-0.69.0/libs/liblock/mail.c:247: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).
		       strlen(idbuf) + 10);
data/courier-authlib-0.69.0/libs/liblock/mail.c:253:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(tmpname, ".");
data/courier-authlib-0.69.0/libs/liblock/mail.c:255:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(tmpname, ".");
data/courier-authlib-0.69.0/libs/liblock/mail.c:257:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(tmpname, ".");
data/courier-authlib-0.69.0/libs/liblock/mail.c:370: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).
	if ((dotlock=malloc(strlen(p->file)+sizeof(".lock"))) == NULL)
data/courier-authlib-0.69.0/libs/makedat/makedatprog.c:32:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (dbobj_store(o, key, strlen(key), val, strlen(val), "I"))
data/courier-authlib-0.69.0/libs/makedat/makedatprog.c:32:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (dbobj_store(o, key, strlen(key), val, strlen(val), "I"))
data/courier-authlib-0.69.0/libs/makedat/makedatprog.c:67:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c=getc(i);
data/courier-authlib-0.69.0/libs/md5/md5_hash.c:22: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).
	md5_digest(passw, strlen(passw), md5buf);
data/courier-authlib-0.69.0/libs/md5/md5_hash.c:57: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).
	md5_digest(passw, strlen(passw), digest);
data/courier-authlib-0.69.0/libs/md5/md5test.c:34: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).
		md5_digest(teststr[i], strlen(teststr[i]), digest);
data/courier-authlib-0.69.0/libs/md5/redhat-crypt-md5.c:18: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).
unsigned pwl=strlen(pw);
data/courier-authlib-0.69.0/libs/md5/redhat-crypt-md5.c:106:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(buffer, salt, l);
data/courier-authlib-0.69.0/libs/md5/redhat-crypt-md5.c:107:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(buffer, "$");
data/courier-authlib-0.69.0/libs/md5/redhat-crypt-md5.c:109: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).
	p=buffer+strlen(buffer);
data/courier-authlib-0.69.0/libs/numlib/changeuidgid.c:59: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).
char	*p=malloc(strlen(uname)+1);
data/courier-authlib-0.69.0/libs/numlib/strsize.c:35:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(sizebuf, "K");
data/courier-authlib-0.69.0/libs/numlib/strsize.c:43:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(sizebuf, "K");
data/courier-authlib-0.69.0/libs/numlib/strsize.c:54:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(sizebuf, ".");
data/courier-authlib-0.69.0/libs/numlib/strsize.c:56:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(sizebuf, "M");
data/courier-authlib-0.69.0/libs/random128/random128.c:41:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read(fd, buf2, sizeof(buf2)) == sizeof(buf2))
data/courier-authlib-0.69.0/libs/random128/random128.c:108:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((n=read(pipefd[0], buf, sizeof(buf))) > 0)
data/courier-authlib-0.69.0/libs/rfc822/encodeautodetect.c:82:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(fi->fp);
data/courier-authlib-0.69.0/libs/rfc822/imaprefs.c:105: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).
	malloc(sizeof(struct imap_refmsg)+1+strlen(msgid));
data/courier-authlib-0.69.0/libs/rfc822/imaprefs.c:455:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tArray[i].len=strlen(msgidList[i]);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047.c:51:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t s=strlen(domain)+16;
data/courier-authlib-0.69.0/libs/rfc822/rfc2047.c:82: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).
	q=malloc(strlen(p)+pfix_len+1);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047.c:274: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).
	    (rc=(*func)(charset, strlen(charset), arg))||
data/courier-authlib-0.69.0/libs/rfc822/rfc2047.c:330: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).
	    (rc=(*func)(charset, strlen(charset), arg))||
data/courier-authlib-0.69.0/libs/rfc822/rfc2047.c:679:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (unicode_convert_tou_tobuf(str, strlen(str), charset,
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:71: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).
	(*print_func)(chset, strlen(chset), ptr);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:73:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(*print_func)(tochset, strlen(tochset), ptr);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:101:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		(*s->print_func)(ptr, strlen(ptr), s->ptr);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:191: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).
				(*print_func)(p, strlen(p), ptr);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:337: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).
			size_t s=strlen(p)+16;
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:356: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).
			(*print_func)(p, strlen(p), ptr);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:364: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).
				(*print_func)(q, strlen(q), ptr);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:369: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).
				(*print_func)(p, strlen(p), ptr);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:376: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).
		(*print_func)(tok, strlen(tok), ptr);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:603:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(*s->display_func)(cp, strlen(cp), s->ptr);
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:1001:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		rc=rfc822_decode_rfc2047_atom(text, strlen(text),
data/courier-authlib-0.69.0/libs/rfc822/rfc2047u.c:1025: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).
		rc=rfc822_decode_rfc2047_atom(text+i, strlen(text+i), NULL,
data/courier-authlib-0.69.0/libs/rfc822/rfc822hdr.c:44:5:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c=getc(f);
data/courier-authlib-0.69.0/libs/rfc822/rfc822hdr.c:66:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c=getc(f);
data/courier-authlib-0.69.0/libs/sha1/sha1_hash.c:21: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).
	sha1_digest(passw, strlen(passw), sha1buf);
data/courier-authlib-0.69.0/libs/sha1/sha1_hash.c:58:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sha1_context_hashstream(&ctx, passw, strlen(passw));
data/courier-authlib-0.69.0/libs/sha1/sha1_hash.c:60:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sha1_context_endstream(&ctx, strlen(passw)+sizeof(SSHA_RAND));
data/courier-authlib-0.69.0/libs/sha1/sha256_hash.c:21: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).
	sha256_digest(passw, strlen(passw), sha256buf);
data/courier-authlib-0.69.0/libs/sha1/sha512_hash.c:21: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).
	sha512_digest(passw, strlen(passw), sha512buf);
data/courier-authlib-0.69.0/libs/sha1/testsuite.c:25:5:  [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(testcases[n]);
data/courier-authlib-0.69.0/libs/sha1/testsuite.c:50:5:  [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(testcases[n]);
data/courier-authlib-0.69.0/libs/sha1/testsuite.c:75:5:  [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(testcases[n]);
data/courier-authlib-0.69.0/preauthdaemon.c:21: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).
char    *buf=malloc(strlen(service)+strlen(uid)+20);
data/courier-authlib-0.69.0/preauthdaemon.c:21: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).
char    *buf=malloc(strlen(service)+strlen(uid)+20);
data/courier-authlib-0.69.0/preauthdaemon.c:29:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(strcat(strcat(strcat(strcpy(buf, "PRE . "), service), " "),
data/courier-authlib-0.69.0/preauthdaemon.c:29:16:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(strcat(strcat(strcat(strcpy(buf, "PRE . "), service), " "),
data/courier-authlib-0.69.0/preauthuserdbcommon.c:69:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ((services=malloc(strlen(service)+sizeof("pw"))) == 0)
data/courier-authlib-0.69.0/userdb/userdb.c:105: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).
	q=dbobj_fetch(&d, u, strlen(u), &l, "");
data/courier-authlib-0.69.0/userdb/userdb.c:131: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).
int	nl=strlen(n);
data/courier-authlib-0.69.0/userdb/userdb2.c:35: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).
	q=dbobj_fetch(&d, u, strlen(u), &l, "");
data/courier-authlib-0.69.0/userdb/userdbmkpw.c:65:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		l=read(f, buf, n);
data/courier-authlib-0.69.0/userdb/userdbpw.c:95:12:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c=getchar()) != EOF && c != '\n')
data/courier-authlib-0.69.0/userdb/userdbpw.c:203: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).
		hmac_hashkey(hmac, buf, strlen(buf), p, p+hmac->hh_L);

ANALYSIS SUMMARY:

Hits = 571
Lines analyzed = 26614 in approximately 0.78 seconds (34213 lines/second)
Physical Source Lines of Code (SLOC) = 19784
Hits@level = [0] 150 [1] 197 [2] 244 [3]  14 [4] 110 [5]   6
Hits@level+ = [0+] 721 [1+] 571 [2+] 374 [3+] 130 [4+] 116 [5+]   6
Hits/KSLOC@level+ = [0+] 36.4436 [1+] 28.8617 [2+] 18.9042 [3+] 6.57097 [4+] 5.86332 [5+] 0.303275
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.