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/solid-pop3d-0.15/acconfig.h
Examining data/solid-pop3d-0.15/src/apop.h
Examining data/solid-pop3d-0.15/src/authenticate.h
Examining data/solid-pop3d-0.15/src/cmds.h
Examining data/solid-pop3d-0.15/src/fdfgets.h
Examining data/solid-pop3d-0.15/src/log.h
Examining data/solid-pop3d-0.15/src/mailbox.h
Examining data/solid-pop3d-0.15/src/maildir.h
Examining data/solid-pop3d-0.15/src/maildrop.h
Examining data/solid-pop3d-0.15/src/md5.h
Examining data/solid-pop3d-0.15/src/includes.h
Examining data/solid-pop3d-0.15/src/options.h
Examining data/solid-pop3d-0.15/src/response.h
Examining data/solid-pop3d-0.15/src/userconfig.h
Examining data/solid-pop3d-0.15/src/mapping.h
Examining data/solid-pop3d-0.15/src/spipv6.h
Examining data/solid-pop3d-0.15/src/configfile.h
Examining data/solid-pop3d-0.15/src/const.h
Examining data/solid-pop3d-0.15/src/md5.c
Examining data/solid-pop3d-0.15/src/apop.c
Examining data/solid-pop3d-0.15/src/authenticate.c
Examining data/solid-pop3d-0.15/src/cmds.c
Examining data/solid-pop3d-0.15/src/configfile.c
Examining data/solid-pop3d-0.15/src/fdfgets.c
Examining data/solid-pop3d-0.15/src/log.c
Examining data/solid-pop3d-0.15/src/mailbox.c
Examining data/solid-pop3d-0.15/src/maildir.c
Examining data/solid-pop3d-0.15/src/mapping.c
Examining data/solid-pop3d-0.15/src/memops.c
Examining data/solid-pop3d-0.15/src/options.c
Examining data/solid-pop3d-0.15/src/response.c
Examining data/solid-pop3d-0.15/src/standalone.c
Examining data/solid-pop3d-0.15/src/userconfig.c
Examining data/solid-pop3d-0.15/src/vsnprintf.c
Examining data/solid-pop3d-0.15/src/maildrop.c
Examining data/solid-pop3d-0.15/src/main.c
Examining data/solid-pop3d-0.15/src/pop_auth.c

FINAL RESULTS:

data/solid-pop3d-0.15/src/authenticate.c:180:3:  [5] (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. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
		strncat(correct_passwd, pwentry->pw_passwd, sizeof(correct_passwd) - 1);
data/solid-pop3d-0.15/src/authenticate.c:189:3:  [5] (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. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
		strncat(correct_passwd, sp->sp_pwdp, sizeof(correct_passwd) - 1);
data/solid-pop3d-0.15/src/authenticate.c:199:3:  [5] (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. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
		strncat(correct_passwd, pr->ufld.fd_encrypt, sizeof(correct_passwd) - 1);
data/solid-pop3d-0.15/src/authenticate.c:209:3:  [5] (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. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
		strncat(correct_passwd, sp->pwa_passwd, sizeof(correct_passwd) - 1);
data/solid-pop3d-0.15/src/pop_auth.c:178:2:  [5] (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. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
	strncat(passcopy, pass, sizeof(passcopy) - 1);
data/solid-pop3d-0.15/src/authenticate.c:30: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 *key, const char *salt);
data/solid-pop3d-0.15/src/authenticate.c:45: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 *key, const char *salt);
data/solid-pop3d-0.15/src/authenticate.c:51: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 *key, const char *salt);
data/solid-pop3d-0.15/src/authenticate.c:242:22:  [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.
		encrypted_passwd = crypt(apassword, correct_passwd);
data/solid-pop3d-0.15/src/authenticate.c:244:22:  [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.
		encrypted_passwd = crypt(apassword, "xx");
data/solid-pop3d-0.15/src/configfile.c:252:6:  [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((char *)options_set[opind].value, linebuf);
data/solid-pop3d-0.15/src/log.c:79: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(tmp, sizeof(tmp), format, lst);
data/solid-pop3d-0.15/src/log.c:91: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(tmp, sizeof(tmp), format, lst);
data/solid-pop3d-0.15/src/mailbox.c:161:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(lockfilename, "%s" LOCK_SUFFIX, maildrop_name);
data/solid-pop3d-0.15/src/maildir.c:144: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(filename, maildrop_name);
data/solid-pop3d-0.15/src/maildir.c:146: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(filename, msgname);
data/solid-pop3d-0.15/src/maildir.c:268: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(nfilename, maildrop_name);
data/solid-pop3d-0.15/src/maildir.c:270: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(nfilename, msgname);
data/solid-pop3d-0.15/src/maildir.c:303: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(((struct mdir_message *) (messages[msgnr - 1].md_specific))->filename, msgname);
data/solid-pop3d-0.15/src/maildir.c:317: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(filename, maildrop_name);
data/solid-pop3d-0.15/src/maildir.c:329: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(tmp, d_entry->d_name);
data/solid-pop3d-0.15/src/maildir.c:357: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(filename, maildrop_name);
data/solid-pop3d-0.15/src/maildir.c:360: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(filename, directory);	
data/solid-pop3d-0.15/src/maildir.c:388: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(tmp, direntry->d_name);
data/solid-pop3d-0.15/src/maildir.c:403: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(((struct mdir_message *) (messages[msgnr].md_specific))->filename, fname);
data/solid-pop3d-0.15/src/maildir.c:484: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(mdrop, maildrop_name);
data/solid-pop3d-0.15/src/maildir.c:558: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(msgfile, maildrop_name);
data/solid-pop3d-0.15/src/maildir.c:560: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(msgfile, ((struct mdir_message *)(messages[nr].md_specific))->filename);
data/solid-pop3d-0.15/src/maildir.c:585: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(filename, maildrop_name);
data/solid-pop3d-0.15/src/maildir.c:600: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(tmp2, ((struct mdir_message *) (messages[tmp].md_specific))->filename);
data/solid-pop3d-0.15/src/maildir.c:608: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(newfilename, maildrop_name);
data/solid-pop3d-0.15/src/maildir.c:610: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(newfilename,((char *) (((struct mdir_message *) (messages[tmp].md_specific))->filename)) + 4);
data/solid-pop3d-0.15/src/maildir.c:637: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(msgfile, maildrop_name);
data/solid-pop3d-0.15/src/maildir.c:639: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(msgfile, ((struct mdir_message *)(messages[nr].md_specific))->filename);
data/solid-pop3d-0.15/src/main.c:286: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(filename, tmp);
data/solid-pop3d-0.15/src/main.c:296: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(filename, tmp);
data/solid-pop3d-0.15/src/main.c:306: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(filename, tmp);
data/solid-pop3d-0.15/src/main.c:307: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(filename, username);
data/solid-pop3d-0.15/src/main.c:317: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(filename, tmp);
data/solid-pop3d-0.15/src/main.c:318: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(filename, mapusername);
data/solid-pop3d-0.15/src/main.c:327: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(filename, tmp);
data/solid-pop3d-0.15/src/main.c:328: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(filename, origusername);
data/solid-pop3d-0.15/src/main.c:342: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(filename, tmp);
data/solid-pop3d-0.15/src/main.c:362: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(dir, homedir);
data/solid-pop3d-0.15/src/main.c:367: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(dir, filename);
data/solid-pop3d-0.15/src/main.c:395: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(bullmsg, bulldir);
data/solid-pop3d-0.15/src/main.c:454: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(tmp, dentry->d_name);
data/solid-pop3d-0.15/src/main.c:773: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(cmd, buf); /* strlen(buf) < sizeof(cmd)
data/solid-pop3d-0.15/src/main.c:1190: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(maildrop_name, DEFMAILDROPNAME);
data/solid-pop3d-0.15/src/main.c:1191: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(maildrop_type, DEFMAILDROPTYPE);
data/solid-pop3d-0.15/src/main.c:1193: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(userbullfile, USERBULL);
data/solid-pop3d-0.15/src/main.c:1194: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(bulldir, BULLDIR);
data/solid-pop3d-0.15/src/main.c:1256:6:  [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(username,usernamebuf);
data/solid-pop3d-0.15/src/main.c:1401:5:  [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(origusername,username);
data/solid-pop3d-0.15/src/main.c:1405:6:  [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(username,usernamebuf);
data/solid-pop3d-0.15/src/mapping.c:75: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(result, tmp);
data/solid-pop3d-0.15/src/options.c:80:5:  [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(tmpmaildrop_name, optarg);
data/solid-pop3d-0.15/src/options.c:91:5:  [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(tmpmaildrop_type, optarg);
data/solid-pop3d-0.15/src/options.c:142:5:  [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(configfile, optarg);
data/solid-pop3d-0.15/src/options.c:165: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(maildrop_name, tmpmaildrop_name);
data/solid-pop3d-0.15/src/options.c:167: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(maildrop_type, tmpmaildrop_type);
data/solid-pop3d-0.15/src/pop_auth.c:176:9:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
	pass = getpass(txtbuff);
data/solid-pop3d-0.15/src/pop_auth.c:181:9:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
	pass = getpass(txtbuff);
data/solid-pop3d-0.15/src/pop_auth.c:215: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(cfgfile, pwentry->pw_dir);
data/solid-pop3d-0.15/src/pop_auth.c:217: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(cfgfile, USERCFG);
data/solid-pop3d-0.15/src/pop_auth.c:286: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(tmpmaildrop_name, tmp2);
data/solid-pop3d-0.15/src/pop_auth.c:312: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(tmpmaildrop_type, tmp2);
data/solid-pop3d-0.15/src/pop_auth.c:321:5:  [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(tmpapop_sec, tmp2);
data/solid-pop3d-0.15/src/response.c:35: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 + 5, (sizeof(buf) - 5), fmt, args);
data/solid-pop3d-0.15/src/response.c:52: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 + 4, (sizeof(buf) - 4), fmt, args);
data/solid-pop3d-0.15/src/userconfig.c:70: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(cfgfile, homedir);
data/solid-pop3d-0.15/src/userconfig.c:72: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(cfgfile, USERCFG);
data/solid-pop3d-0.15/src/userconfig.c:136: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(tmpmaildrop_name, tmp2);
data/solid-pop3d-0.15/src/userconfig.c:161: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(tmpmaildrop_type, tmp2);
data/solid-pop3d-0.15/src/userconfig.c:172:5:  [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(maildrop_name, tmpmaildrop_name);
data/solid-pop3d-0.15/src/userconfig.c:173:5:  [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(maildrop_type, tmpmaildrop_type);
data/solid-pop3d-0.15/src/userconfig.c:228:5:  [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(apop_secret, tmpapop_secret);
data/solid-pop3d-0.15/src/vsnprintf.c:141:5:  [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.
int vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
data/solid-pop3d-0.15/src/vsnprintf.c:310:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int snprintf(char *buf, size_t size, const char *fmt, ...)
data/solid-pop3d-0.15/src/vsnprintf.c:316:7:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  i = vsnprintf(buf,size,fmt,args);
data/solid-pop3d-0.15/src/options.c:70:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "n:t:a:r:f:d")) != EOF) {
data/solid-pop3d-0.15/src/options.c:72:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "n:t:a:r:d")) != EOF) {
data/solid-pop3d-0.15/src/apop.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 adigest[16], digest[16];
data/solid-pop3d-0.15/src/authenticate.c:86:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				resp[acount].resp = strdup(((char **)appdata_ptr)[1]);
data/solid-pop3d-0.15/src/authenticate.c:94:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				resp[acount].resp = strdup(((char **)appdata_ptr)[0]);
data/solid-pop3d-0.15/src/authenticate.c:116:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *app_data[2];
data/solid-pop3d-0.15/src/authenticate.c:166: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 correct_passwd[128];
data/solid-pop3d-0.15/src/configfile.c:46: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 tbuf[1024];
data/solid-pop3d-0.15/src/configfile.c:196:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char linebuf[PATH_MAX + 1];
data/solid-pop3d-0.15/src/configfile.c:252: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.
					strcpy((char *)options_set[opind].value, linebuf);
data/solid-pop3d-0.15/src/configfile.c:359: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(&buf->s6_addr[12], &tmp, sizeof(tmp));
data/solid-pop3d-0.15/src/configfile.c:369: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[PATH_MAX];
data/solid-pop3d-0.15/src/configfile.c:528: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(&skaddress.saddr_in6.sin6_addr.s6_addr[12], &tmpaddr, sizeof(tmpaddr));
data/solid-pop3d-0.15/src/configfile.c:533: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 ((cf_fd = open(name, O_RDONLY)) < 0) {
data/solid-pop3d-0.15/src/configfile.h:85: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.
extern char usermd_delim[2];
data/solid-pop3d-0.15/src/fdfgets.c:24: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 fgets_buf[10240], *fgets_where;
data/solid-pop3d-0.15/src/fdfgets.c:47: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(s, fgets_where, tmp);
data/solid-pop3d-0.15/src/fdfgets.c:73: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 + tmp, fgets_where, size);
data/solid-pop3d-0.15/src/includes.h:59: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.
#define memcpy(d, s, n) bcopy((s), (d), (n))
data/solid-pop3d-0.15/src/includes.h:59:25:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define memcpy(d, s, n) bcopy((s), (d), (n))
data/solid-pop3d-0.15/src/includes.h:60:26:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define memmove(d, s, n) bcopy((s), (d), (n))
data/solid-pop3d-0.15/src/log.c:64: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 logpriority[64];
data/solid-pop3d-0.15/src/log.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 tmp[1536];
data/solid-pop3d-0.15/src/log.c:85:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[1536];
data/solid-pop3d-0.15/src/mailbox.c:252: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[128];
data/solid-pop3d-0.15/src/mailbox.c:253: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 msgdate[21];
data/solid-pop3d-0.15/src/mailbox.c:308: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(msgdate + (sizeof(msgdate) - mcount), linebuf, mcount);
data/solid-pop3d-0.15/src/mailbox.c:384: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 mbuf[128];
data/solid-pop3d-0.15/src/mailbox.c:387: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 msgdate[21];
data/solid-pop3d-0.15/src/mailbox.c:394: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 tmpdigest[16];
data/solid-pop3d-0.15/src/mailbox.c:472: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(tmp->digest, tmpdigest, 16);
data/solid-pop3d-0.15/src/mailbox.c:503: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(msgdate + (sizeof(msgdate) - mcount), mbuf, mcount);
data/solid-pop3d-0.15/src/mailbox.c:512: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(msgdate + (sizeof(msgdate) - mcount), mbuf, mcount);
data/solid-pop3d-0.15/src/mailbox.c:591: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(tmp->digest, tmpdigest, 16);
data/solid-pop3d-0.15/src/mailbox.c:611:19:  [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 ((mailboxfd = open(maildrop_name, O_RDWR)) < 0) {
data/solid-pop3d-0.15/src/mailbox.c:614:16:  [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).
			mailboxfd = open(maildrop_name, O_RDWR | O_CREAT | O_EXCL, 0600);
data/solid-pop3d-0.15/src/mailbox.c:748: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 mb_buf[10240];
data/solid-pop3d-0.15/src/mailbox.c:909: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(result, ((struct mb_message *)(messages[number].md_specific))->digest, 16);
data/solid-pop3d-0.15/src/mailbox.h:42:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char digest[16];
data/solid-pop3d-0.15/src/maildir.c:113:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[PATH_MAX];
data/solid-pop3d-0.15/src/maildir.c:114:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nfilename[PATH_MAX];
data/solid-pop3d-0.15/src/maildir.c:115: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 msgname[100 + 256];
data/solid-pop3d-0.15/src/maildir.c:116:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hstname[256];
data/solid-pop3d-0.15/src/maildir.c:122: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[128];
data/solid-pop3d-0.15/src/maildir.c:147:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		nmsgfd = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0600);
data/solid-pop3d-0.15/src/maildir.c:312: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 filename[PATH_MAX], *tmp;
data/solid-pop3d-0.15/src/maildir.c:318: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(filename, "/tmp/");
data/solid-pop3d-0.15/src/maildir.c:343: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 filename[PATH_MAX];
data/solid-pop3d-0.15/src/maildir.c:344: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 mbuf[128];
data/solid-pop3d-0.15/src/maildir.c:406: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 ((messagefd = open(filename, O_RDONLY)) < 0) {
data/solid-pop3d-0.15/src/maildir.c:475: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 mdrop[PATH_MAX], *tmp;
data/solid-pop3d-0.15/src/maildir.c:489: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(tmp, "/new");
data/solid-pop3d-0.15/src/maildir.c:491: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(tmp, "/cur");
data/solid-pop3d-0.15/src/maildir.c:493: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(tmp, "/tmp");
data/solid-pop3d-0.15/src/maildir.c:540: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 msgfile[PATH_MAX];
data/solid-pop3d-0.15/src/maildir.c:561: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 ((msgfd = open(msgfile, O_RDONLY)) < 0) {
data/solid-pop3d-0.15/src/maildir.c:573: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 filename[PATH_MAX], newfilename[PATH_MAX], *tmp2;
data/solid-pop3d-0.15/src/maildir.c:609: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(newfilename, "/cur/");
data/solid-pop3d-0.15/src/maildir.c:610:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			strcat(newfilename,((char *) (((struct mdir_message *) (messages[tmp].md_specific))->filename)) + 4);
data/solid-pop3d-0.15/src/maildir.c:611: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(newfilename, ":2,"); /* no overflow, already checked few lines above */
data/solid-pop3d-0.15/src/maildir.c:619: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 msgfile[PATH_MAX];
data/solid-pop3d-0.15/src/maildir.c:640: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 ((msgfd = open(msgfile, O_RDONLY)) < 0) {
data/solid-pop3d-0.15/src/maildrop.c:152: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 digits[16]="0123456789abcdef";
data/solid-pop3d-0.15/src/maildrop.c:153: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 digest[16];
data/solid-pop3d-0.15/src/maildrop.c:167: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 result[33];
data/solid-pop3d-0.15/src/maildrop.c:168:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mbuf[128];
data/solid-pop3d-0.15/src/maildrop.c:204: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 mbuf[128];
data/solid-pop3d-0.15/src/maildrop.c:241:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mbuf[128];
data/solid-pop3d-0.15/src/maildrop.c:352: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 mbuf[128];
data/solid-pop3d-0.15/src/main.c:198: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 username[MAXARGLN + 1];
data/solid-pop3d-0.15/src/main.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 password[MAXARGLN + 1];
data/solid-pop3d-0.15/src/main.c:200: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 usersuffix[MAXARGLN + 1];
data/solid-pop3d-0.15/src/main.c:201: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 usermd_delim[2] = "";
data/solid-pop3d-0.15/src/main.c:202: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[MAXCMDLN + 1];
data/solid-pop3d-0.15/src/main.c:206: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 userbullfile[PATH_MAX];
data/solid-pop3d-0.15/src/main.c:207: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 bulldir[PATH_MAX];
data/solid-pop3d-0.15/src/main.c:213: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 maildrop_name[PATH_MAX];
data/solid-pop3d-0.15/src/main.c:214: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 maildrop_type[MAXMDTYPENAMELENGTH];
data/solid-pop3d-0.15/src/main.c:216: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 sp_mapfile[PATH_MAX];
data/solid-pop3d-0.15/src/main.c:218: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 mapusername[MAXARGLN + 1];
data/solid-pop3d-0.15/src/main.c:219: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 origusername[MAXARGLN + 1];
data/solid-pop3d-0.15/src/main.c:220: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 usernamebuf[MAXARGLN + 1];
data/solid-pop3d-0.15/src/main.c:221: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 sp_usermapprefix[MAXPREFIX];
data/solid-pop3d-0.15/src/main.c:224: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 apop_secret[MAXARGLN + 1];
data/solid-pop3d-0.15/src/main.c:225: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 apoptimestamp[MAXRESPLN];
data/solid-pop3d-0.15/src/main.c:229: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 apopservername[256] = {0, };
data/solid-pop3d-0.15/src/main.c:253: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 ahname[384];
data/solid-pop3d-0.15/src/main.c:275: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 filename[PATH_MAX], *tmp, *tmp2;
data/solid-pop3d-0.15/src/main.c:373: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 bullmsg[PATH_MAX];
data/solid-pop3d-0.15/src/main.c:404: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).
	fd = open(userbullfile, O_RDONLY);
data/solid-pop3d-0.15/src/main.c:406:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(userbullfile, O_RDONLY | O_CREAT | O_EXCL, 0600);
data/solid-pop3d-0.15/src/main.c:464:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open(bullmsg, O_RDONLY)) < 0) {
data/solid-pop3d-0.15/src/main.c:1029: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 cmd[MAXCMDLN];
data/solid-pop3d-0.15/src/main.c:1050: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 ntopbuff[100];
data/solid-pop3d-0.15/src/main.c:1290:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
						if (write_string(tunnel[1], (char *)options_set[tmp].value) < 0) {
data/solid-pop3d-0.15/src/main.c:1363:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
						if (read_string(tunnel[0], (char *)options_set[tmp].value, options_set[tmp].valuesize) < 0)
data/solid-pop3d-0.15/src/mapping.c:34: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[MAXARGLN + 1 + MAXARGLN + 1];
data/solid-pop3d-0.15/src/mapping.c:38:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(mapfile, O_RDONLY)) < 0) {
data/solid-pop3d-0.15/src/md5.c:35: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.
#define memcpy(d, s, n) bcopy ((s), (d), (n))
data/solid-pop3d-0.15/src/md5.c:35:25:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define memcpy(d, s, n) bcopy ((s), (d), (n))
data/solid-pop3d-0.15/src/md5.c:59:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 fillbuf[64] =
data/solid-pop3d-0.15/src/md5.c:116: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 (&ctx->buffer[bytes], fillbuf, pad);
data/solid-pop3d-0.15/src/md5.c:140:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BLOCKSIZE + 72];
data/solid-pop3d-0.15/src/md5.c:221:7:  [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 (&ctx->buffer[left_over], buffer, add);
data/solid-pop3d-0.15/src/md5.c:228: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 (ctx->buffer, &ctx->buffer[(left_over + add) & ~63],
data/solid-pop3d-0.15/src/md5.c:248:7:  [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 (ctx->buffer, buffer, len);
data/solid-pop3d-0.15/src/md5.h:90:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[128];
data/solid-pop3d-0.15/src/options.c:58: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 configfile[PATH_MAX] = DEFCONFIGFILENAME;
data/solid-pop3d-0.15/src/options.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 tmpmaildrop_name[PATH_MAX], tmpmaildrop_type[MAXMDTYPENAMELENGTH];
data/solid-pop3d-0.15/src/pop_auth.c:144: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 username[9];
data/solid-pop3d-0.15/src/pop_auth.c:146:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char passcopy[MAXARGLN + 1];
data/solid-pop3d-0.15/src/pop_auth.c:147:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char txtbuff[320], buf[128];
data/solid-pop3d-0.15/src/pop_auth.c:148: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 apop_sec[128];;
data/solid-pop3d-0.15/src/pop_auth.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 cfgfile[PATH_MAX];
data/solid-pop3d-0.15/src/pop_auth.c:153: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 tmpmaildrop_type[MAXMDTYPENAMELENGTH], tmpmaildrop_name[PATH_MAX], tmpapop_sec[256];
data/solid-pop3d-0.15/src/pop_auth.c:218:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(cfgfile, O_RDWR | O_CREAT, 0600)) < 0) {
data/solid-pop3d-0.15/src/response.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 buf[MAXRESPLN];
data/solid-pop3d-0.15/src/response.c:34: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(buf, "-ERR ");
data/solid-pop3d-0.15/src/response.c:37: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(buf, "\r\n");
data/solid-pop3d-0.15/src/response.c:48: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[MAXRESPLN];
data/solid-pop3d-0.15/src/response.c:51: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(buf, "+OK ");
data/solid-pop3d-0.15/src/response.c:54: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(buf, "\r\n");
data/solid-pop3d-0.15/src/standalone.c:92:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ntopbuff[24];
data/solid-pop3d-0.15/src/standalone.c:130: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) == STDIN_FILENO) {
data/solid-pop3d-0.15/src/standalone.c:246: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(&address.saddr_in6.sin6_addr.s6_addr[12], &tmpaddr, sizeof(tmpaddr));
data/solid-pop3d-0.15/src/userconfig.c:39: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 tmpmaildrop_name[PATH_MAX];
data/solid-pop3d-0.15/src/userconfig.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 tmpmaildrop_type[MAXMDTYPENAMELENGTH];
data/solid-pop3d-0.15/src/userconfig.c:42:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmpapop_secret[MAXARGLN + 1];
data/solid-pop3d-0.15/src/userconfig.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 cfgfile[PATH_MAX];
data/solid-pop3d-0.15/src/userconfig.c:45:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128];
data/solid-pop3d-0.15/src/userconfig.c:73:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(cfgfile, O_RDONLY)) < 0) {
data/solid-pop3d-0.15/src/vsnprintf.c:56: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 c,sign,tmp[66];
data/solid-pop3d-0.15/src/apop.c:46: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).
	md5_process_bytes(apoptimestamp, strlen(apoptimestamp), &context);
data/solid-pop3d-0.15/src/apop.c:47: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).
	md5_process_bytes(apop_secret, strlen(apop_secret), &context);
data/solid-pop3d-0.15/src/authenticate.c:179: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(pwentry->pw_passwd) != 1)
data/solid-pop3d-0.15/src/authenticate.c:258: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).
	memset(apassword, 0, strlen(apassword));
data/solid-pop3d-0.15/src/authenticate.c:275: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).
			memset(apassword, 0, strlen(apassword));
data/solid-pop3d-0.15/src/authenticate.c:285: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).
	memset(apassword, 0, strlen(apassword));
data/solid-pop3d-0.15/src/cmds.c:42: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).
		length = strlen(cmdtbl[actual].name);
data/solid-pop3d-0.15/src/cmds.c:43:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(cmd) < length) {
data/solid-pop3d-0.15/src/configfile.c:58:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((mcount = read(cf_fd, tbuf, sizeof(tbuf))) < 0) {
data/solid-pop3d-0.15/src/configfile.c:242:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(linebuf) >= options_set[opind].valuesize) {
data/solid-pop3d-0.15/src/configfile.c:299: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).
						if (strlen(linebuf) != 1) {
data/solid-pop3d-0.15/src/fdfgets.c:61:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((cread = read(fd, fgets_buf, sizeof(fgets_buf))) < 0)
data/solid-pop3d-0.15/src/mailbox.c:156: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).
	lockfilename = (char *) malloc( strlen(maildrop_name) + sizeof(LOCK_SUFFIX) );
data/solid-pop3d-0.15/src/mailbox.c:213: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 (alength < strlen(b))
data/solid-pop3d-0.15/src/mailbox.c:215: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).
	return (strncmp(a, b, strlen(b)) == 0) ? 1 : 0;
data/solid-pop3d-0.15/src/mailbox.c:781:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(mailboxfd, mb_buf, tmp) != tmp) {
data/solid-pop3d-0.15/src/maildir.c:36: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).
#define NAMLEN(dirent) (strlen((dirent)->d_name))
data/solid-pop3d-0.15/src/maildir.c:138:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((strlen(msgname) + strlen(maildrop_name) + 2) > sizeof(filename)) {
data/solid-pop3d-0.15/src/maildir.c:138: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 ((strlen(msgname) + strlen(maildrop_name) + 2) > sizeof(filename)) {
data/solid-pop3d-0.15/src/maildir.c:145:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(filename, "/");
data/solid-pop3d-0.15/src/maildir.c:261:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((strlen(msgname) + strlen(maildrop_name) + 2) > sizeof(nfilename)) {
data/solid-pop3d-0.15/src/maildir.c:261: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 ((strlen(msgname) + strlen(maildrop_name) + 2) > sizeof(nfilename)) {
data/solid-pop3d-0.15/src/maildir.c:269:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(nfilename, "/");
data/solid-pop3d-0.15/src/maildir.c:295:95:  [1] (buffer) strlen:
  Does not handle 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 ((((struct mdir_message *) (messages[msgnr - 1].md_specific))->filename = (char *) malloc(strlen(msgname) + 1)) == NULL) {
data/solid-pop3d-0.15/src/maildir.c:315:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(maildrop_name) + 7) > sizeof(filename))
data/solid-pop3d-0.15/src/maildir.c:319: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).
	tmp = filename + strlen(filename);
data/solid-pop3d-0.15/src/maildir.c:327:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((strlen(filename) + NAMLEN(d_entry) + 1) > sizeof(filename))
data/solid-pop3d-0.15/src/maildir.c:351:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(directory) + strlen(maildrop_name) + 4) > sizeof(filename)) {
data/solid-pop3d-0.15/src/maildir.c:351: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 ((strlen(directory) + strlen(maildrop_name) + 4) > sizeof(filename)) {
data/solid-pop3d-0.15/src/maildir.c:358: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(filename, "/");
data/solid-pop3d-0.15/src/maildir.c:359: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).
	fname = filename + strlen(filename);
data/solid-pop3d-0.15/src/maildir.c:376: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(filename, "/");
data/solid-pop3d-0.15/src/maildir.c:377: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).
	tmp = filename + strlen(filename);
data/solid-pop3d-0.15/src/maildir.c:381: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 ((NAMLEN(direntry) + strlen(filename) + 1) > sizeof(filename)) {
data/solid-pop3d-0.15/src/maildir.c:396:92:  [1] (buffer) strlen:
  Does not handle 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 ((((struct mdir_message *) (messages[msgnr].md_specific))->filename = (char *) malloc(strlen(fname) + 1)) == NULL) {
data/solid-pop3d-0.15/src/maildir.c:478:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(maildrop_name) + 5) > sizeof(mdrop)) {
data/solid-pop3d-0.15/src/maildir.c:485: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).
	tmp = mdrop + strlen(mdrop);
data/solid-pop3d-0.15/src/maildir.c:552:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(maildrop_name) + strlen(((struct mdir_message *)(messages[nr].md_specific))->filename)
data/solid-pop3d-0.15/src/maildir.c:552: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 ((strlen(maildrop_name) + strlen(((struct mdir_message *)(messages[nr].md_specific))->filename)
data/solid-pop3d-0.15/src/maildir.c:559: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(msgfile, "/");
data/solid-pop3d-0.15/src/maildir.c:577:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(maildrop_name) + 3) > sizeof(filename)) {
data/solid-pop3d-0.15/src/maildir.c:586: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(filename, "/");
data/solid-pop3d-0.15/src/maildir.c:587: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).
	tmp2 = filename + strlen(filename);
data/solid-pop3d-0.15/src/maildir.c:590:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((strlen(filename) + 
data/solid-pop3d-0.15/src/maildir.c:591:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		     strlen(((struct mdir_message *) (messages[tmp].md_specific))->filename) +
data/solid-pop3d-0.15/src/maildir.c:606:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ((strlen(filename) + 4) > sizeof(newfilename))
data/solid-pop3d-0.15/src/maildir.c:631:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(maildrop_name) + strlen(((struct mdir_message *)(messages[nr].md_specific))->filename)
data/solid-pop3d-0.15/src/maildir.c:631: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 ((strlen(maildrop_name) + strlen(((struct mdir_message *)(messages[nr].md_specific))->filename)
data/solid-pop3d-0.15/src/maildir.c:638: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(msgfile, "/");
data/solid-pop3d-0.15/src/maildir.c:661: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).
	length = strlen(tmp3);
data/solid-pop3d-0.15/src/maildir.c:663: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).
		length -= strlen(tmp2);
data/solid-pop3d-0.15/src/maildrop.c:181: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 (write(1, mbuf, strlen(mbuf)) != strlen(mbuf)) {
data/solid-pop3d-0.15/src/maildrop.c:181: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).
			if (write(1, mbuf, strlen(mbuf)) != strlen(mbuf)) {
data/solid-pop3d-0.15/src/maildrop.c:217: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 (write(1, mbuf, strlen(mbuf)) != strlen(mbuf)) {
data/solid-pop3d-0.15/src/maildrop.c:217: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).
			if (write(1, mbuf, strlen(mbuf)) != strlen(mbuf)) {
data/solid-pop3d-0.15/src/main.c:45: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).
#define NAMLEN(dirent) (strlen((dirent)->d_name))
data/solid-pop3d-0.15/src/main.c:282:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ((strlen(filename) + strlen(tmp) + 1) > sizeof(filename)) {
data/solid-pop3d-0.15/src/main.c:282: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 ((strlen(filename) + strlen(tmp) + 1) > sizeof(filename)) {
data/solid-pop3d-0.15/src/main.c:292: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).
				if ((strlen(filename) + strlen(tmp) + 1) > sizeof(filename)) {
data/solid-pop3d-0.15/src/main.c:292: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 ((strlen(filename) + strlen(tmp) + 1) > sizeof(filename)) {
data/solid-pop3d-0.15/src/main.c:302: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).
				if ((strlen(filename) + strlen(tmp) + strlen(username) + 1) > sizeof(filename)) {
data/solid-pop3d-0.15/src/main.c:302: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 ((strlen(filename) + strlen(tmp) + strlen(username) + 1) > sizeof(filename)) {
data/solid-pop3d-0.15/src/main.c:302:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if ((strlen(filename) + strlen(tmp) + strlen(username) + 1) > sizeof(filename)) {
data/solid-pop3d-0.15/src/main.c:313: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).
				if ((strlen(filename) + strlen(tmp) + strlen(mapusername) + 1) > sizeof(filename)) {
data/solid-pop3d-0.15/src/main.c:313: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 ((strlen(filename) + strlen(tmp) + strlen(mapusername) + 1) > sizeof(filename)) {
data/solid-pop3d-0.15/src/main.c:313:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if ((strlen(filename) + strlen(tmp) + strlen(mapusername) + 1) > sizeof(filename)) {
data/solid-pop3d-0.15/src/main.c:323: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).
				if ((strlen(filename) + strlen(tmp) + strlen(origusername) + 1) > sizeof(filename)) {
data/solid-pop3d-0.15/src/main.c:323: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 ((strlen(filename) + strlen(tmp) + strlen(origusername) + 1) > sizeof(filename)) {
data/solid-pop3d-0.15/src/main.c:323:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if ((strlen(filename) + strlen(tmp) + strlen(origusername) + 1) > sizeof(filename)) {
data/solid-pop3d-0.15/src/main.c:338: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).
				if ((strlen(filename) + strlen(tmp) + 2) > sizeof(filename)) {
data/solid-pop3d-0.15/src/main.c:338: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 ((strlen(filename) + strlen(tmp) + 2) > sizeof(filename)) {
data/solid-pop3d-0.15/src/main.c:343: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).
				filename[(breakwhile = strlen(filename))] = username[tmp2[2] - '1'];
data/solid-pop3d-0.15/src/main.c:360:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((strlen(homedir) + 2) > PATH_MAX)
data/solid-pop3d-0.15/src/main.c:363:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(dir, "/");
data/solid-pop3d-0.15/src/main.c:365:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(dir) + strlen(filename) + 1) > PATH_MAX)
data/solid-pop3d-0.15/src/main.c:365:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(dir) + strlen(filename) + 1) > PATH_MAX)
data/solid-pop3d-0.15/src/main.c:390:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(bulldir) + 1) >= sizeof(bullmsg)) {
data/solid-pop3d-0.15/src/main.c:396: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(bullmsg, "/");
data/solid-pop3d-0.15/src/main.c:397:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tmp = bullmsg + strlen(bullmsg);
data/solid-pop3d-0.15/src/main.c:448: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 ((NAMLEN(dentry) + strlen(bullmsg) + 1) > sizeof(bullmsg)) {
data/solid-pop3d-0.15/src/main.c:591: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(arg) >= sizeof(username)) {
data/solid-pop3d-0.15/src/main.c:600:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(username, arg, sizeof(username));
data/solid-pop3d-0.15/src/main.c:737:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if ((cread = read(0, buf + count, sizeof(buf) - count - 1)) <= 0) {
data/solid-pop3d-0.15/src/main.c:749:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if ((cread = read(0, buf + 1, sizeof(buf) - 2)) <= 0) {
data/solid-pop3d-0.15/src/main.c:764:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((buf + strlen(buf)) != tmp) {
data/solid-pop3d-0.15/src/main.c:812: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).
	size_t tmp = strlen(abuf);
data/solid-pop3d-0.15/src/main.c:827: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).
		memset(pass, 0, strlen(pass));
data/solid-pop3d-0.15/src/main.c:834: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).
		memset(pass, 0, strlen(pass));
data/solid-pop3d-0.15/src/main.c:850: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).
		memset(pass, 0, strlen(pass));
data/solid-pop3d-0.15/src/main.c:858: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).
		memset(pass, 0, strlen(pass));
data/solid-pop3d-0.15/src/main.c:865:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memset(pass, 0, strlen(pass));
data/solid-pop3d-0.15/src/main.c:876:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memset(arg, 0, strlen(arg));
data/solid-pop3d-0.15/src/main.c:882:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memset(arg, 0, strlen(arg));
data/solid-pop3d-0.15/src/main.c:889:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(arg) + 1) > sizeof(username)) {
data/solid-pop3d-0.15/src/main.c:890:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memset(tmp, 0, strlen(tmp));
data/solid-pop3d-0.15/src/main.c:895:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(username, arg, sizeof(username)); /* Pad with NULs */
data/solid-pop3d-0.15/src/main.c:897: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(tmp) != 32) {
data/solid-pop3d-0.15/src/main.c:898:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memset(tmp, 0, strlen(tmp));
data/solid-pop3d-0.15/src/main.c:906: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).
		    	memset(tmp, 0, strlen(tmp));
data/solid-pop3d-0.15/src/main.c:915:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memset(tmp, 0, strlen(tmp));
data/solid-pop3d-0.15/src/main.c:923:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memset(tmp, 0, strlen(tmp));
data/solid-pop3d-0.15/src/main.c:938:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memset(tmp, 0, strlen(tmp));
data/solid-pop3d-0.15/src/main.c:946:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memset(tmp, 0, strlen(tmp));
data/solid-pop3d-0.15/src/main.c:952: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).
	memset(tmp, 0, strlen(tmp));
data/solid-pop3d-0.15/src/main.c:965:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((tmp = read(fd, tmpbuf + cread, acount - cread)) > 0) {
data/solid-pop3d-0.15/src/main.c:996: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(abuf) != tmp2)
data/solid-pop3d-0.15/src/main.c:1076:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(0077);
data/solid-pop3d-0.15/src/main.c:1224:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(cmd) == strlen(act_cmd->name))
data/solid-pop3d-0.15/src/main.c:1224: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 (strlen(cmd) == strlen(act_cmd->name))
data/solid-pop3d-0.15/src/main.c:1225: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).
					act_cmd->handler(cmd + strlen(act_cmd->name));
data/solid-pop3d-0.15/src/main.c:1227: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).
					act_cmd->handler(cmd + strlen(act_cmd->name) + 1);
data/solid-pop3d-0.15/src/main.c:1245:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy (usersuffix, suffix + 1, sizeof(usersuffix));
data/solid-pop3d-0.15/src/main.c:1254:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(usernamebuf, sp_usermapprefix, MAXARGLN);
data/solid-pop3d-0.15/src/main.c:1255:6:  [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(usernamebuf, username, MAXARGLN - strlen(usernamebuf));
data/solid-pop3d-0.15/src/main.c:1255:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strncat(usernamebuf, username, MAXARGLN - strlen(usernamebuf));
data/solid-pop3d-0.15/src/main.c:1273: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).
					if ((strlen(mapusername) + 1) > sizeof(mapusername)) {
data/solid-pop3d-0.15/src/main.c:1394:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy (usersuffix, suffix + 1, sizeof(usersuffix));
data/solid-pop3d-0.15/src/main.c:1403:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(usernamebuf, sp_usermapprefix, MAXARGLN);
data/solid-pop3d-0.15/src/main.c:1404:6:  [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(usernamebuf, username, MAXARGLN - strlen(usernamebuf));
data/solid-pop3d-0.15/src/main.c:1404:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strncat(usernamebuf, username, MAXARGLN - strlen(usernamebuf));
data/solid-pop3d-0.15/src/main.c:1415: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).
				memset(password, 0, strlen(password));
data/solid-pop3d-0.15/src/main.c:1506: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).
				memset(password, 0, strlen(password));
data/solid-pop3d-0.15/src/main.c:1521: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).
				memset(password, 0, strlen(password));
data/solid-pop3d-0.15/src/main.c:1533: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).
					memset(password, 0, strlen(password));
data/solid-pop3d-0.15/src/main.c:1544: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).
					memset(password, 0, strlen(password));
data/solid-pop3d-0.15/src/main.c:1545: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).
					memset(apop_secret, 0, strlen(apop_secret));
data/solid-pop3d-0.15/src/main.c:1563: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).
			memset(password, 0, strlen(password));
data/solid-pop3d-0.15/src/main.c:1589:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(cmd) == strlen(act_cmd->name))
data/solid-pop3d-0.15/src/main.c:1589: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 (strlen(cmd) == strlen(act_cmd->name))
data/solid-pop3d-0.15/src/main.c:1590: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).
					act_cmd->handler(cmd + strlen(act_cmd->name));
data/solid-pop3d-0.15/src/main.c:1592: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).
					act_cmd->handler(cmd + strlen(act_cmd->name) + 1);
data/solid-pop3d-0.15/src/mapping.c:64:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(linebuf) > MAXARGLN) {
data/solid-pop3d-0.15/src/mapping.c:70:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(++tmp) > MAXARGLN) {
data/solid-pop3d-0.15/src/options.c:76:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(optarg) >= PATH_MAX) {
data/solid-pop3d-0.15/src/options.c:83:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(optarg) >= MAXMDTYPENAMELENGTH) {
data/solid-pop3d-0.15/src/options.c:138: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).
				if ((strlen(optarg) + 1) >= sizeof(configfile)) {
data/solid-pop3d-0.15/src/pop_auth.c:171: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(username, pwentry->pw_name, 8);
data/solid-pop3d-0.15/src/pop_auth.c:172: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(pwentry->pw_name) > 8)
data/solid-pop3d-0.15/src/pop_auth.c:179:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memset(pass, 0, strlen(pass));
data/solid-pop3d-0.15/src/pop_auth.c:183:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memset(pass, 0, strlen(pass));
data/solid-pop3d-0.15/src/pop_auth.c:185: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).
		memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:192: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).
	for (tmp = 0; tmp < strlen(passcopy); tmp++) {
data/solid-pop3d-0.15/src/pop_auth.c:197: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).
	memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:200: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).
		memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:206: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).
		memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:210:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(pwentry->pw_dir) + strlen(USERCFG) + 2) > sizeof(cfgfile)) {
data/solid-pop3d-0.15/src/pop_auth.c:210:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(pwentry->pw_dir) + strlen(USERCFG) + 2) > sizeof(cfgfile)) {
data/solid-pop3d-0.15/src/pop_auth.c:211: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).
		memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:216: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(cfgfile, "/");
data/solid-pop3d-0.15/src/pop_auth.c:219: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).
		memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:225: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).
		memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:232: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).
		memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:238: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).
		memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:248: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).
			memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:257: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).
			memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:269: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).
				memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:275: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).
				memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:280:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(tmp2) >= sizeof(tmpmaildrop_name)) {
data/solid-pop3d-0.15/src/pop_auth.c:281: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).
				memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:288: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).
				memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:293:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(tmp2) >= sizeof(tmpmaildrop_type)) {
data/solid-pop3d-0.15/src/pop_auth.c:294: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).
				memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:306: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).
				memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:328: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).
		memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:335: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).
		memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:348: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 (write(fd, txtbuff, strlen(txtbuff)) < 0) {
data/solid-pop3d-0.15/src/pop_auth.c:349: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).
				memset(passcopy, 0, strlen(passcopy));
data/solid-pop3d-0.15/src/pop_auth.c:368: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 (write(fd, txtbuff, strlen(txtbuff)) < 0) {
data/solid-pop3d-0.15/src/pop_auth.c:369: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).
				memset(txtbuff, 0, strlen(txtbuff));
data/solid-pop3d-0.15/src/pop_auth.c:378: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).
	memset(txtbuff, 0, strlen(txtbuff));
data/solid-pop3d-0.15/src/response.c:38: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).
	if (write(1, buf, strlen(buf)) <= 0) {
data/solid-pop3d-0.15/src/response.c:55: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).
	if (write(1, buf, strlen(buf)) <= 0) {
data/solid-pop3d-0.15/src/userconfig.c:66:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(homedir) + strlen(USERCFG) + 2) > sizeof(cfgfile)) {
data/solid-pop3d-0.15/src/userconfig.c:66: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 ((strlen(homedir) + strlen(USERCFG) + 2) > sizeof(cfgfile)) {
data/solid-pop3d-0.15/src/userconfig.c:71: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(cfgfile, "/");
data/solid-pop3d-0.15/src/userconfig.c:130:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(tmp2) >= sizeof(tmpmaildrop_name)) {
data/solid-pop3d-0.15/src/userconfig.c:143:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(tmp2) >= sizeof(tmpmaildrop_type)) {
data/solid-pop3d-0.15/src/userconfig.c:186: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).
			tmp3 = strlen(tmp2);
data/solid-pop3d-0.15/src/userconfig.c:199: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).
			for (tmp3 = 0; tmp3 < strlen(tmp2); tmp3++)
data/solid-pop3d-0.15/src/userconfig.c:208: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).
			for (tmp3 = 0; tmp3 < (strlen(tmp2) / 2); tmp3++) {

ANALYSIS SUMMARY:

Hits = 392
Lines analyzed = 7821 in approximately 0.30 seconds (26384 lines/second)
Physical Source Lines of Code (SLOC) = 6347
Hits@level = [0]  49 [1] 180 [2] 130 [3]   2 [4]  75 [5]   5
Hits@level+ = [0+] 441 [1+] 392 [2+] 212 [3+]  82 [4+]  80 [5+]   5
Hits/KSLOC@level+ = [0+] 69.4816 [1+] 61.7615 [2+] 33.4016 [3+] 12.9195 [4+] 12.6044 [5+] 0.787774
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.