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/mcrypt-2.6.8/src/rfc2440.c
Examining data/mcrypt-2.6.8/src/rfc2440.h
Examining data/mcrypt-2.6.8/src/gaa.h
Examining data/mcrypt-2.6.8/src/rndwin32.c
Examining data/mcrypt-2.6.8/src/errors.h
Examining data/mcrypt-2.6.8/src/xmalloc.c
Examining data/mcrypt-2.6.8/src/xmalloc.h
Examining data/mcrypt-2.6.8/src/functions.c
Examining data/mcrypt-2.6.8/src/functions.h
Examining data/mcrypt-2.6.8/src/ufc_crypt.c
Examining data/mcrypt-2.6.8/src/ufc_crypt.h
Examining data/mcrypt-2.6.8/src/bits.c
Examining data/mcrypt-2.6.8/src/bits.h
Examining data/mcrypt-2.6.8/src/mcrypt_int.h
Examining data/mcrypt-2.6.8/src/extra.h
Examining data/mcrypt-2.6.8/src/random.c
Examining data/mcrypt-2.6.8/src/random.h
Examining data/mcrypt-2.6.8/src/getpass.c
Examining data/mcrypt-2.6.8/src/getpass.h
Examining data/mcrypt-2.6.8/src/openpgp.c
Examining data/mcrypt-2.6.8/src/openpgp.h
Examining data/mcrypt-2.6.8/src/keys.c
Examining data/mcrypt-2.6.8/src/keys.h
Examining data/mcrypt-2.6.8/src/gettext.h
Examining data/mcrypt-2.6.8/src/defines.h
Examining data/mcrypt-2.6.8/src/popen.c
Examining data/mcrypt-2.6.8/src/popen.h
Examining data/mcrypt-2.6.8/src/environ.c
Examining data/mcrypt-2.6.8/src/environ.h
Examining data/mcrypt-2.6.8/src/rndunix.c
Examining data/mcrypt-2.6.8/src/classic.c
Examining data/mcrypt-2.6.8/src/errors.c
Examining data/mcrypt-2.6.8/src/extra.c
Examining data/mcrypt-2.6.8/src/gaaout.c
Examining data/mcrypt-2.6.8/src/mcrypt.c

FINAL RESULTS:

data/mcrypt-2.6.8/src/classic.c:192: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(command, GZIP);
data/mcrypt-2.6.8/src/classic.c:197: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(command, BZIP2);
data/mcrypt-2.6.8/src/classic.c:201:6:  [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(command, fromfile);
data/mcrypt-2.6.8/src/classic.c:204:14:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	    FROMF = popen(command, "r");
data/mcrypt-2.6.8/src/classic.c:474: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(command, GZIP);
data/mcrypt-2.6.8/src/classic.c:479: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(command, BZIP2);
data/mcrypt-2.6.8/src/classic.c:483:6:  [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(command, fromfile);
data/mcrypt-2.6.8/src/classic.c:519:7:  [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(algorithm, local_algorithm);
data/mcrypt-2.6.8/src/classic.c:521:7:  [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(mode, local_mode);
data/mcrypt-2.6.8/src/classic.c:523:7:  [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(keymode, local_keymode);
data/mcrypt-2.6.8/src/classic.c:910:9:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		  i = execlp(GZIP, GZIP, "-d", tofile, NULL);
data/mcrypt-2.6.8/src/classic.c:919:9:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		  i = execlp(BZIP2, BZIP2, "-d", tofile, NULL);
data/mcrypt-2.6.8/src/classic.c:1058: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, tmpc);
data/mcrypt-2.6.8/src/defines.h:167: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(); /* libufc */
data/mcrypt-2.6.8/src/extra.c:33:26:  [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.
# define _mcrypt_getpass getpass
data/mcrypt-2.6.8/src/extra.c:89: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(string_tmp, prt);
data/mcrypt-2.6.8/src/extra.c:372: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, buf);
data/mcrypt-2.6.8/src/extra.c:506: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(keys[x - 1], keyword);
data/mcrypt-2.6.8/src/extra.c:527: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(home, pwd->pw_dir);
data/mcrypt-2.6.8/src/extra.c:532: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(home, cfile);
data/mcrypt-2.6.8/src/extra.c:669:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tmperr, _("Input File: %s\n"), infile);
data/mcrypt-2.6.8/src/extra.c:672:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tmperr, _("Output File: %s\n"), outfile);
data/mcrypt-2.6.8/src/mcrypt.c:115: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, y);
data/mcrypt-2.6.8/src/mcrypt.c:360: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(keyfile[i], info.keys[i]);
data/mcrypt-2.6.8/src/mcrypt.c:546: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(outfile, einfile);
data/mcrypt-2.6.8/src/popen.c:117:5:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			 execvp (argv[0], argv) ;
data/mcrypt-2.6.8/src/rndunix.c:408:2:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execl(entry->path, entry->path, entry->arg, NULL);
data/mcrypt-2.6.8/src/rndunix.c:498:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(dataSources[i].path, X_OK)) {
data/mcrypt-2.6.8/src/environ.c:33:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv(MCRYPT_KEY) != NULL
data/mcrypt-2.6.8/src/environ.c:34:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    || getenv(MCRYPT_ALGO) != NULL
data/mcrypt-2.6.8/src/environ.c:35:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    || getenv(MCRYPT_MODE) != NULL)
data/mcrypt-2.6.8/src/environ.c:46:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv(MCRYPT_KEY) != NULL) {
data/mcrypt-2.6.8/src/environ.c:48:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		tmp[0] = getenv(MCRYPT_KEY);
data/mcrypt-2.6.8/src/environ.c:60:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	return getenv(MCRYPT_ALGO);
data/mcrypt-2.6.8/src/environ.c:68:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	return getenv(MCRYPT_MODE);
data/mcrypt-2.6.8/src/environ.c:75:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	return getenv(MCRYPT_KEY_MODE);
data/mcrypt-2.6.8/src/classic.c:152:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      fprintf(stderr, "%.2x.", ((unsigned char *) IV)[i]);
data/mcrypt-2.6.8/src/classic.c:169:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	 FROMF = fopen(fromfile, "rb");
data/mcrypt-2.6.8/src/classic.c:175:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	 TOF = fopen(tofile, "wb");
data/mcrypt-2.6.8/src/classic.c:199:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	 strcat(command, " -c ");
data/mcrypt-2.6.8/src/classic.c:205:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    TOF = fopen(tofile, "wb");
data/mcrypt-2.6.8/src/classic.c:437:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char tmp_buf[BUFFER_SIZE];
data/mcrypt-2.6.8/src/classic.c:448:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char local_algorithm[50], *command=NULL;
data/mcrypt-2.6.8/src/classic.c:449:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char local_mode[50];
data/mcrypt-2.6.8/src/classic.c:450:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char local_keymode[50];
data/mcrypt-2.6.8/src/classic.c:451:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char local_salt[100];
data/mcrypt-2.6.8/src/classic.c:481:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	 strcat(command, " -c -d ");
data/mcrypt-2.6.8/src/classic.c:494:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FROMF = fopen(fromfile, "rb");
data/mcrypt-2.6.8/src/classic.c:500:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      RTOF = fopen(tofile, "wb");
data/mcrypt-2.6.8/src/classic.c:573:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      fprintf(stderr, "%.2x.", ((unsigned char *) IV)[i]);
data/mcrypt-2.6.8/src/classic.c:1052:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char tmp[255];
data/mcrypt-2.6.8/src/defines.h:160:28:  [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/mcrypt-2.6.8/src/extra.c:74: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 ztmp[MAX_KEY_LEN];
data/mcrypt-2.6.8/src/extra.c:76:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char string_tmp[200];
data/mcrypt-2.6.8/src/extra.c:112:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[200];
data/mcrypt-2.6.8/src/extra.c:114:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(msg, _("Enter passphrase: "));
data/mcrypt-2.6.8/src/extra.c:147:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen( filename, "r");
data/mcrypt-2.6.8/src/extra.c:172:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[3];
data/mcrypt-2.6.8/src/extra.c:173: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_buf[101];
data/mcrypt-2.6.8/src/extra.c:315: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[255];
data/mcrypt-2.6.8/src/extra.c:489: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 keyword[MAX_KEY_LEN], **keys = NULL;
data/mcrypt-2.6.8/src/extra.c:492:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FROMF = fopen(file, "r");
data/mcrypt-2.6.8/src/extra.c:542: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 x[2];
data/mcrypt-2.6.8/src/extra.c:561:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen("/dev/tty", "r")) == 0) {
data/mcrypt-2.6.8/src/extra.c:625:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = fopen( file, "rb");
data/mcrypt-2.6.8/src/extra.c:650: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 tmperr[256];
data/mcrypt-2.6.8/src/gaaout.c:1243:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if((file = fopen(name, "r")) == NULL)
data/mcrypt-2.6.8/src/getpass.c:53:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char pass[512];
data/mcrypt-2.6.8/src/getpass.c:94: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 asterix[MAXLEN + 1];
data/mcrypt-2.6.8/src/getpass.c:95:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 input[MAXLEN + 1];
data/mcrypt-2.6.8/src/getpass.c:162: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 nostring[1] = "";
data/mcrypt-2.6.8/src/getpass.c:188:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen("/dev/tty", "r")) == 0) {
data/mcrypt-2.6.8/src/mcrypt.c:49: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 tmperr[128];
data/mcrypt-2.6.8/src/mcrypt.c:110:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char tmp[255];
data/mcrypt-2.6.8/src/mcrypt.c:273:7:  [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(program_name, "mdecrypt");
data/mcrypt-2.6.8/src/mcrypt.c:279:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	 strcpy(program_name, "mcrypt");
data/mcrypt-2.6.8/src/mcrypt.c:559:5:  [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(outfile, ".gz");
data/mcrypt-2.6.8/src/mcrypt.c:561:5:  [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(outfile, ".bz2");
data/mcrypt-2.6.8/src/mcrypt.c:564:6:  [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(outfile, ".nc");
data/mcrypt-2.6.8/src/mcrypt.c:739:8:  [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(outfile, ".dc");
data/mcrypt-2.6.8/src/popen.c:43:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *argv[CHILD_ARGCMAX + 1] ;
data/mcrypt-2.6.8/src/random.c:40: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).
	fd0 = open(NAME_OF_DEV_URANDOM, O_RDONLY);
data/mcrypt-2.6.8/src/random.c:46: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).
	fd1 = open(NAME_OF_DEV_RANDOM, O_RDONLY);
data/mcrypt-2.6.8/src/rfc2440.c:80: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.
        memcpy(a->d, buffer, length);
data/mcrypt-2.6.8/src/rfc2440.c:98:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(a->d, src->d, src->len);
data/mcrypt-2.6.8/src/rfc2440.c:118:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(file, "rb");
data/mcrypt-2.6.8/src/rfc2440.c:137: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(sync + 1, rndpref + 2, blocklen);
data/mcrypt-2.6.8/src/rfc2440.c:150: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(out, in, inlen);
data/mcrypt-2.6.8/src/rfc2440.c:163: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(out, in, inlen);
data/mcrypt-2.6.8/src/rfc2440.c:172:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ret[512];
data/mcrypt-2.6.8/src/rfc2440.c:176:9:  [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(ret, "s2k-simple-");
data/mcrypt-2.6.8/src/rfc2440.c:178:9:  [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(ret, "s2k-salted-");
data/mcrypt-2.6.8/src/rfc2440.c:180:9:  [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(ret, "s2k-isalted-");
data/mcrypt-2.6.8/src/rfc2440.c:183:9:  [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(ret, "sha1");
data/mcrypt-2.6.8/src/rfc2440.c:185:9:  [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(ret, "md5");
data/mcrypt-2.6.8/src/rfc2440.c:187:9:  [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(ret, "ripemd");
data/mcrypt-2.6.8/src/rfc2440.c:189: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(ret, "sha256");                
data/mcrypt-2.6.8/src/rfc2440.c:506: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(result->d + pos, lenbuf, lensize);
data/mcrypt-2.6.8/src/rfc2440.c:517: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(result->d + pos, newdat->d, newdat->len);
data/mcrypt-2.6.8/src/rfc2440.c:599:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tmp[255];
data/mcrypt-2.6.8/src/rfc2440.c:648: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.
        memcpy(d->s2k.salt, dat->d + offset, 8);
data/mcrypt-2.6.8/src/rfc2440.c:680: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.
        memcpy(buf+pos, dek->s2k.salt, 8);
data/mcrypt-2.6.8/src/rfc2440.c:709:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(data, buf, 2048);
data/mcrypt-2.6.8/src/rfc2440.c:710:13:  [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(dat->d + pos, data, 2048);
data/mcrypt-2.6.8/src/rfc2440.c:715:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(data, buf, pktlen);
data/mcrypt-2.6.8/src/rfc2440.c:716:13:  [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(dat->d + pos, data, pktlen);
data/mcrypt-2.6.8/src/rfc2440.c:759: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(encprefix, dat->d + offset, nprefix + 2);
data/mcrypt-2.6.8/src/rfc2440.c:823: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(result->d + pos, lenbuf, lensize);
data/mcrypt-2.6.8/src/rfc2440.c:826: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(result->d + pos, ct->d, ct->len);
data/mcrypt-2.6.8/src/rfc2440.c:864:17:  [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( out->d + pos, buf, len );
data/mcrypt-2.6.8/src/rfc2440.c:872:13:  [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( out->d + pos, buf, len );
data/mcrypt-2.6.8/src/rfc2440.c:913: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( result->d + 3, z->d, z->len );
data/mcrypt-2.6.8/src/rfc2440.c:951:17:  [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( out->d + pos, buf, len );
data/mcrypt-2.6.8/src/rfc2440.c:960:13:  [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( out->d + pos, buf, len );
data/mcrypt-2.6.8/src/rfc2440.c:1026:17:  [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 (t->d + len, tmp, nread);
data/mcrypt-2.6.8/src/rfc2440.c:1033:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(outfile, "wb");
data/mcrypt-2.6.8/src/rfc2440.c:1099:17:  [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 + flen, tmp, nread);
data/mcrypt-2.6.8/src/rfc2440.c:1177:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(outfile, "wb");
data/mcrypt-2.6.8/src/rfc2440.h:74:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char salt[8];
data/mcrypt-2.6.8/src/rfc2440.h:78: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.
    unsigned char key[32];
data/mcrypt-2.6.8/src/rndunix.c:320: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 data[500];	/* gathered data */
data/mcrypt-2.6.8/src/rndunix.c:376:18:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
    entry->pid = vfork();
data/mcrypt-2.6.8/src/rndunix.c:698: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( msg.data, p, msg.ndata );
data/mcrypt-2.6.8/src/rndwin32.c:54: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[RND_DATA];
data/mcrypt-2.6.8/src/ufc_crypt.c:269:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char bytemask[8] = {
data/mcrypt-2.6.8/src/ufc_crypt.c:483:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char current_salt[3] = "&&";	/* invalid value */
data/mcrypt-2.6.8/src/ufc_crypt.c:681: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 ktab[9];
data/mcrypt-2.6.8/src/ufc_crypt.c:726: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 key[9], csalt[3], *enciph;
data/mcrypt-2.6.8/src/classic.c:187: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).
	    clen += strlen(fromfile);
data/mcrypt-2.6.8/src/classic.c:190: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).
	    clen += strlen(GZIP);
data/mcrypt-2.6.8/src/classic.c:195: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).
	    clen += strlen(BZIP2);
data/mcrypt-2.6.8/src/classic.c:263: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).
      len = strlen(key);
data/mcrypt-2.6.8/src/classic.c:469: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).
	    clen += strlen(fromfile);
data/mcrypt-2.6.8/src/classic.c:472: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).
	    clen += strlen(GZIP);
data/mcrypt-2.6.8/src/classic.c:477: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).
	    clen += strlen(BZIP2);
data/mcrypt-2.6.8/src/classic.c:518: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).
      algorithm = _mcrypt_malloc(strlen(local_algorithm) + 1);
data/mcrypt-2.6.8/src/classic.c:520: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).
      mode = _mcrypt_malloc(strlen(local_mode) + 1);
data/mcrypt-2.6.8/src/classic.c:522:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      keymode = _mcrypt_malloc(strlen(local_keymode) + 1);
data/mcrypt-2.6.8/src/classic.c:554:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(key);
data/mcrypt-2.6.8/src/classic.c:931: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).
	       tofile[strlen(tofile) - strlen(".bz2")] = '\0';
data/mcrypt-2.6.8/src/classic.c:931: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).
	       tofile[strlen(tofile) - strlen(".bz2")] = '\0';
data/mcrypt-2.6.8/src/classic.c:933: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).
	       tofile[strlen(tofile) - strlen(".gz")] = '\0';
data/mcrypt-2.6.8/src/classic.c:933: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).
	       tofile[strlen(tofile) - strlen(".gz")] = '\0';
data/mcrypt-2.6.8/src/classic.c:1059: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).
	 mcrypt_tolow(tmp, strlen(tmp));
data/mcrypt-2.6.8/src/defines.h:155:27:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
# define strlcpy(x, y, s) strncpy(x, y, s); x[s-1]='\0'
data/mcrypt-2.6.8/src/extra.c:50: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).
		_secure_mcrypt_free(x, strlen(x))
data/mcrypt-2.6.8/src/extra.c:53: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).
		Bzero(x, strlen(x))
data/mcrypt-2.6.8/src/extra.c:137:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	*len = strlen(tmp);
data/mcrypt-2.6.8/src/extra.c:226:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(algorithm, tmp_buf, 50);
data/mcrypt-2.6.8/src/extra.c:237:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(mode, tmp_buf, 50);
data/mcrypt-2.6.8/src/extra.c:241:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(keymode, tmp_buf, 50);
data/mcrypt-2.6.8/src/extra.c:334: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 (fwrite(algorithm, 1, strlen(algorithm), filedes) !=
data/mcrypt-2.6.8/src/extra.c:335:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(algorithm)) {
data/mcrypt-2.6.8/src/extra.c:348:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (fwrite(mode, 1, strlen(mode), filedes) != strlen(mode)) {
data/mcrypt-2.6.8/src/extra.c:348: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).
	if (fwrite(mode, 1, strlen(mode), filedes) != strlen(mode)) {
data/mcrypt-2.6.8/src/extra.c:353: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 (fwrite(keymode, 1, strlen(keymode), filedes) !=
data/mcrypt-2.6.8/src/extra.c:354:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(keymode)) {
data/mcrypt-2.6.8/src/extra.c:373: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).
		mcrypt_tolow(tmp, strlen(tmp));
data/mcrypt-2.6.8/src/extra.c:377: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 (fwrite(tmp, 1, strlen(tmp), filedes) != strlen(tmp)) {
data/mcrypt-2.6.8/src/extra.c:377:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (fwrite(tmp, 1, strlen(tmp), filedes) != strlen(tmp)) {
data/mcrypt-2.6.8/src/extra.c:502:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		keys[x - 1] = _mcrypt_malloc(strlen(keyword) + 1);
data/mcrypt-2.6.8/src/extra.c:504:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (keyword[strlen(keyword) - 1] == '\n')
data/mcrypt-2.6.8/src/extra.c:505: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).
			keyword[strlen(keyword) - 1] = '\0';
data/mcrypt-2.6.8/src/extra.c:526: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).
		home = _mcrypt_malloc(strlen(pwd->pw_dir) + strlen(cfile) + 2);
data/mcrypt-2.6.8/src/extra.c:526:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		home = _mcrypt_malloc(strlen(pwd->pw_dir) + strlen(cfile) + 2);
data/mcrypt-2.6.8/src/extra.c:528: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(home, "/");
data/mcrypt-2.6.8/src/extra.c:530: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).
		home = _mcrypt_calloc(1, strlen(cfile) + 2);
data/mcrypt-2.6.8/src/extra.c:568:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	x[0] = fgetc(fp);
data/mcrypt-2.6.8/src/extra.c:618:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		x = getc( stdin);
data/mcrypt-2.6.8/src/extra.c:630:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		x = getc( fd);
data/mcrypt-2.6.8/src/gaaout.c:61: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).
          curr += 3 + strlen(name);
data/mcrypt-2.6.8/src/gaaout.c:66: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).
          curr += 1 + strlen(arg_desc);
data/mcrypt-2.6.8/src/gaaout.c:427: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).
for(i = 0; i < strlen(str); i++)                                    \
data/mcrypt-2.6.8/src/gaaout.c:440: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(str) == 1)                                                \
data/mcrypt-2.6.8/src/gaaout.c:449: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).
for(i = 0; i < strlen(str); i++)                                    \
data/mcrypt-2.6.8/src/gaaout.c:487: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(arg) != 1)
data/mcrypt-2.6.8/src/gaaout.c:1086:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                for(j = 1; j < strlen(argv[i]); j++)
data/mcrypt-2.6.8/src/gaaout.c:1173:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    a = fgetc( file);
data/mcrypt-2.6.8/src/gaaout.c:1183:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        a = fgetc( file);
data/mcrypt-2.6.8/src/gaaout.c:1193:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        a = fgetc( file);
data/mcrypt-2.6.8/src/gaaout.c:1214:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        a = fgetc( file);
data/mcrypt-2.6.8/src/getpass.c:108:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (read(fileno(fp), &c, 1)) {
data/mcrypt-2.6.8/src/keys.c:120: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).
		Bzero(tmp, strlen(tmp));
data/mcrypt-2.6.8/src/mcrypt.c:116: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).
	 mcrypt_tolow(tmp, strlen(tmp));
data/mcrypt-2.6.8/src/mcrypt.c:272: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).
      Bzero(program_name, strlen(program_name));
data/mcrypt-2.6.8/src/mcrypt.c:277: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(program_name) > 6) {
data/mcrypt-2.6.8/src/mcrypt.c:278: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).
	 Bzero(program_name, strlen(program_name));
data/mcrypt-2.6.8/src/mcrypt.c:359:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    keyfile[i] = _secure_mcrypt_malloc(strlen(info.keys[i]) + 10);
data/mcrypt-2.6.8/src/mcrypt.c:367: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).
      mcrypt_tolow( mode, strlen(mode));
data/mcrypt-2.6.8/src/mcrypt.c:388:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      mcrypt_tolow( algorithm, strlen(algorithm));
data/mcrypt-2.6.8/src/mcrypt.c:432:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
   umask(066);
data/mcrypt-2.6.8/src/mcrypt.c:481:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    _secure_mcrypt_free(keyfile[i - 1], strlen(keyfile[i - 1]));	/* Free previous keyword */
data/mcrypt-2.6.8/src/mcrypt.c:545: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).
	    outfile = _mcrypt_calloc(strlen(einfile) + 5 + 4, 1);
data/mcrypt-2.6.8/src/mcrypt.c:684: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).
      Bzero(keyword, strlen(keyword));
data/mcrypt-2.6.8/src/mcrypt.c:690: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).
      Bzero(argv[i], strlen(argv[i]));
data/mcrypt-2.6.8/src/mcrypt.c:718: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).
    y = strlen(filename);
data/mcrypt-2.6.8/src/mcrypt.c:725:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
       strncpy(outfile, filename, y - 3);
data/mcrypt-2.6.8/src/mcrypt.c:732:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(outfile, filename, y - 4);
data/mcrypt-2.6.8/src/mcrypt.c:738:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
       strncpy(outfile, filename, y);
data/mcrypt-2.6.8/src/random.c:123:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read( _fd, buf, buf_size)==-1) {
data/mcrypt-2.6.8/src/rfc2440.c:566: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).
			   DIM (d->key), pass, strlen(pass));
data/mcrypt-2.6.8/src/rfc2440.c:617: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).
			   DIM (d->key), pass, strlen(pass));
data/mcrypt-2.6.8/src/rndunix.c:738:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    n = read(fd, buffer, length );
data/mcrypt-2.6.8/src/ufc_crypt.c:692:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(ktab, key, 8);
data/mcrypt-2.6.8/src/ufc_crypt.c:747: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(enciph)!=13) return -2;

ANALYSIS SUMMARY:

Hits = 205
Lines analyzed = 8554 in approximately 0.27 seconds (32219 lines/second)
Physical Source Lines of Code (SLOC) = 6271
Hits@level = [0] 178 [1]  77 [2]  92 [3]   8 [4]  28 [5]   0
Hits@level+ = [0+] 383 [1+] 205 [2+] 128 [3+]  36 [4+]  28 [5+]   0
Hits/KSLOC@level+ = [0+] 61.0748 [1+] 32.6902 [2+] 20.4114 [3+] 5.74071 [4+] 4.465 [5+]   0
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.