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/cntlm-0.92.3/http.h
Examining data/cntlm-0.92.3/pages.c
Examining data/cntlm-0.92.3/http.c
Examining data/cntlm-0.92.3/direct.h
Examining data/cntlm-0.92.3/forward.c
Examining data/cntlm-0.92.3/forward.h
Examining data/cntlm-0.92.3/direct.c
Examining data/cntlm-0.92.3/socket.c
Examining data/cntlm-0.92.3/utils.h
Examining data/cntlm-0.92.3/ntlm.c
Examining data/cntlm-0.92.3/ntlm.h
Examining data/cntlm-0.92.3/main.c
Examining data/cntlm-0.92.3/config/endian.c
Examining data/cntlm-0.92.3/config/socklen_t.c
Examining data/cntlm-0.92.3/config/strdup.c
Examining data/cntlm-0.92.3/config/gethostname.c
Examining data/cntlm-0.92.3/socket.h
Examining data/cntlm-0.92.3/xcrypt.c
Examining data/cntlm-0.92.3/config.c
Examining data/cntlm-0.92.3/utils.c
Examining data/cntlm-0.92.3/acl.h
Examining data/cntlm-0.92.3/pages.h
Examining data/cntlm-0.92.3/globals.h
Examining data/cntlm-0.92.3/auth.c
Examining data/cntlm-0.92.3/config.h
Examining data/cntlm-0.92.3/swap.h
Examining data/cntlm-0.92.3/auth.h
Examining data/cntlm-0.92.3/scanner.c
Examining data/cntlm-0.92.3/xcrypt.h
Examining data/cntlm-0.92.3/acl.c
Examining data/cntlm-0.92.3/scanner.h

FINAL RESULTS:

data/cntlm-0.92.3/http.c:274:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		len = sprintf(buf, "%s %s %s\r\n", data->method, data->url, data->http);
data/cntlm-0.92.3/http.c:276:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		len = sprintf(buf, "%s %03d %s\r\n", data->http, data->code, data->msg);
data/cntlm-0.92.3/http.c:283:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		len += sprintf(buf+len, "%s: %s\r\n", t->key, t->value);
data/cntlm-0.92.3/http.c:554:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				printf(rc ? "Chunked body sent.\n" : "Could not chunk send whole body\n");
data/cntlm-0.92.3/http.c:561:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				printf(rc ? "Body sent.\n" : "Could not send whole body\n");
data/cntlm-0.92.3/main.c:255: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, field[pos+1]);
data/cntlm-0.92.3/main.c:257: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(tmp, field[pos+2]);
data/cntlm-0.92.3/main.c:834:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
					printf("Cntlm debug trace, version " VERSION);
data/cntlm-0.92.3/ntlm.c:196:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(buf, username);
data/cntlm-0.92.3/ntlm.c:197:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(buf, domain);
data/cntlm-0.92.3/scanner.c:119: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(buf, line);
data/cntlm-0.92.3/main.c:714: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 ((i = getopt(argc, argv, ":-:a:c:d:fghIl:p:r:su:vw:A:BD:F:G:HL:M:N:O:P:R:S:T:U:")) != -1) {
data/cntlm-0.92.3/main.c:952: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.
		tmp = getenv("PROGRAMFILES(X86)");
data/cntlm-0.92.3/main.c:954:10:  [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 = getenv("PROGRAMFILES");
data/cntlm-0.92.3/main.c:1430:2:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srandom(time(NULL));
data/cntlm-0.92.3/ntlm.c:74:39:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	VAL(nonce, uint64_t, 0) = ((uint64_t)random() << 32) | random();
data/cntlm-0.92.3/ntlm.c:74:57:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	VAL(nonce, uint64_t, 0) = ((uint64_t)random() << 32) | random();
data/cntlm-0.92.3/ntlm.c:130:39:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	VAL(nonce, uint64_t, 0) = ((uint64_t)random() << 32) | random();
data/cntlm-0.92.3/ntlm.c:130:57:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	VAL(nonce, uint64_t, 0) = ((uint64_t)random() << 32) | random();
data/cntlm-0.92.3/utils.h:157:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
extern long int random(void);
data/cntlm-0.92.3/auth.c:62:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dst->passntlm2, src->passntlm2, MINIBUF_SIZE);
data/cntlm-0.92.3/auth.c:64:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dst->passnt, src->passnt, MINIBUF_SIZE);
data/cntlm-0.92.3/auth.c:66: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(dst->passlm, src->passlm, MINIBUF_SIZE);
data/cntlm-0.92.3/auth.h:35: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 user[MINIBUF_SIZE];
data/cntlm-0.92.3/auth.h:36:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char domain[MINIBUF_SIZE];
data/cntlm-0.92.3/auth.h:37: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 workstation[MINIBUF_SIZE];
data/cntlm-0.92.3/auth.h:38: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 passlm[MINIBUF_SIZE];
data/cntlm-0.92.3/auth.h: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 passnt[MINIBUF_SIZE];
data/cntlm-0.92.3/auth.h: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 passntlm2[MINIBUF_SIZE];
data/cntlm-0.92.3/auth.h:54:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(((creds)->var), (value), MIN(len, MINIBUF_SIZE)); \
data/cntlm-0.92.3/config.c:47:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char section[MINIBUF_SIZE] = "global";
data/cntlm-0.92.3/config.c:52: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(fname, "r");
data/cntlm-0.92.3/config/gethostname.c:4: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[300];
data/cntlm-0.92.3/direct.c:68: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, "NTLM ");
data/cntlm-0.92.3/direct.c:123:6:  [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, "NTLM ");
data/cntlm-0.92.3/direct.c:434:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		port = atoi(++pos);
data/cntlm-0.92.3/forward.c:145: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, "NTLM ");
data/cntlm-0.92.3/forward.c:235:6:  [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, "NTLM ");
data/cntlm-0.92.3/forward.c:833: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 *authstr[5] = { "NTLMv2", "NTLM2SR", "NT", "NTLM", "LM" };
data/cntlm-0.92.3/globals.h:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostname[64];
data/cntlm-0.92.3/http.c:131:53:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (!ccode || strlen(ccode) != 3 || (data->code = atoi(ccode)) == 0) {
data/cntlm-0.92.3/http.c:212:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			data->port = atoi(tok+1);
data/cntlm-0.92.3/http.c:290: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/cntlm-0.92.3/main.c:145:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		port = atoi(proxy+i);
data/cntlm-0.92.3/main.c:196:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		port = atoi(tmp = spec+p+1);
data/cntlm-0.92.3/main.c:199:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		port = atoi(tmp = spec);
data/cntlm-0.92.3/main.c:220: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 *field[4];
data/cntlm-0.92.3/main.c:243:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		port = atoi(field[pos]);
data/cntlm-0.92.3/main.c:446: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) {
data/cntlm-0.92.3/main.c:584:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(thost, "%d.%d.%d.%d", addr[0], addr[1], addr[2], addr[3]);	/* It's in network byte order */
data/cntlm-0.92.3/main.c:601:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(tport, "%d", ntohs(port));
data/cntlm-0.92.3/main.c:817:30:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				scanner_plugin_maxsize = atol(optarg);
data/cntlm-0.92.3/main.c:826:17:  [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).
				tracefile = open(optarg, O_CREAT | O_TRUNC | O_WRONLY, 0600);
data/cntlm-0.92.3/main.c:942:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		parent_add(argv[i], !tmp && i+1 < argc ? atoi(argv[i+1]) : 0);
data/cntlm-0.92.3/main.c:1085:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			scanner_plugin_maxsize = atoi(tmp);
data/cntlm-0.92.3/main.c:1343: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).
		i = open("/dev/null", O_RDWR);
data/cntlm-0.92.3/main.c:1373:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				nuid = atoi(cuid);
data/cntlm-0.92.3/main.c:1404: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).
		cd = open(cpidfile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/cntlm-0.92.3/ntlm.c:36:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key[8];
data/cntlm-0.92.3/ntlm.c:93:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(blob+28, MEM(challenge, char, tbofs), tblen);
data/cntlm-0.92.3/ntlm.c:106:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, MEM(challenge, char, 24), 8);
data/cntlm-0.92.3/ntlm.c:107:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf+8, blob, blen);
data/cntlm-0.92.3/ntlm.c:109: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(*nthash+16, blob, blen);
data/cntlm-0.92.3/ntlm.c:115:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, MEM(challenge, char, 24), 8);
data/cntlm-0.92.3/ntlm.c:116:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf+8, nonce, 8);
data/cntlm-0.92.3/ntlm.c:118: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(*lmhash+16, nonce, 8);
data/cntlm-0.92.3/ntlm.c:134: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(*lmhash, nonce, 8);
data/cntlm-0.92.3/ntlm.c:139:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, MEM(challenge, char, 24), 8);
data/cntlm-0.92.3/ntlm.c:140:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf+8, nonce, 8);
data/cntlm-0.92.3/ntlm.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 magic[8] = {0x4B, 0x47, 0x53, 0x21, 0x40, 0x23, 0x24, 0x25};
data/cntlm-0.92.3/ntlm.c:249:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, "NTLMSSP\0", 8);
data/cntlm-0.92.3/ntlm.c:260:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf+32, tmp, hlen);
data/cntlm-0.92.3/ntlm.c:264:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf+32+hlen, tmp, dlen);
data/cntlm-0.92.3/ntlm.c:414:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, "NTLMSSP\0", 8);
data/cntlm-0.92.3/ntlm.c:450: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(MEM(buf, char, 64), udomain, dlen);
data/cntlm-0.92.3/ntlm.c:451: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(MEM(buf, char, 64+dlen), uuser, ulen);
data/cntlm-0.92.3/ntlm.c:452: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(MEM(buf, char, 64+dlen+ulen), uhost, hlen);
data/cntlm-0.92.3/ntlm.c:453: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(MEM(buf, char, 64+dlen+ulen+hlen), lmhash, lmlen);
data/cntlm-0.92.3/ntlm.c:454: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(MEM(buf, char, 64+dlen+ulen+hlen+24), nthash, ntlen);
data/cntlm-0.92.3/scanner.c:133:18:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
						filesize = atol(pos+16);
data/cntlm-0.92.3/scanner.c:170:18:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
						progress = atol(line+12);
data/cntlm-0.92.3/socket.c:76: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(host, &ad->sin_addr, sizeof(ad->sin_addr));
data/cntlm-0.92.3/utils.c:38: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 hextab[17] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 0};
data/cntlm-0.92.3/utils.c:555: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(dst->body, src->body, src->body_len);
data/cntlm-0.92.3/utils.c:654: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(tmp, src, len-1);
data/cntlm-0.92.3/utils.c:782:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tmp+pos, "%%%X", (unsigned char)str[i]);
data/cntlm-0.92.3/utils.c:844: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 base64[64] = {
data/cntlm-0.92.3/xcrypt.c:85: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] = { 0x80, 0 /* , 0, 0, ...  */  };
data/cntlm-0.92.3/xcrypt.c:227: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 encrypt_rotate_tab[16] = {
data/cntlm-0.92.3/xcrypt.c:238: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 weak_keys[64][8] = {
data/cntlm-0.92.3/xcrypt.c:307: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 work[8];
data/cntlm-0.92.3/xcrypt.c:676:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (&((char*)ctx->buffer)[bytes], fillbuf, pad);
data/cntlm-0.92.3/xcrypt.c:697: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 (&((char*)ctx->buffer)[left_over], buffer, add);
data/cntlm-0.92.3/xcrypt.c:706: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, &((char*)ctx->buffer)[(left_over + add) & ~63],
data/cntlm-0.92.3/xcrypt.c:721:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    md4_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx);
data/cntlm-0.92.3/xcrypt.c:739: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 (&((char*)ctx->buffer)[left_over], buffer, len);
data/cntlm-0.92.3/xcrypt.c:745: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[16], left_over);
data/cntlm-0.92.3/xcrypt.c:756: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/cntlm-0.92.3/xcrypt.c:846: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 optkeybuf[16];
data/cntlm-0.92.3/xcrypt.c:847: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 block[64];
data/cntlm-0.92.3/xcrypt.c:848: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 innerhash[16];
data/cntlm-0.92.3/xcrypt.c:944:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (&((char *) ctx->buffer)[bytes], fillbuf, (size - 2) * 4 - bytes);
data/cntlm-0.92.3/xcrypt.c:959: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/cntlm-0.92.3/xcrypt.c:1048: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 (&((char *) ctx->buffer)[left_over], buffer, add);
data/cntlm-0.92.3/xcrypt.c:1057:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (ctx->buffer,
data/cntlm-0.92.3/xcrypt.c:1073:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    md5_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx);
data/cntlm-0.92.3/xcrypt.c:1091: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 (&((char *) ctx->buffer)[left_over], buffer, len);
data/cntlm-0.92.3/xcrypt.c:1097: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[16], left_over);
data/cntlm-0.92.3/acl.c:53: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 (i < strlen(spec)) {
data/cntlm-0.92.3/config.c:66: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).
		len = MIN(BUFSIZE, strlen(buf));
data/cntlm-0.92.3/config.c:133:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (i != strlen(value))
data/cntlm-0.92.3/config.h:30:99:  [1] (buffer) strlen:
  Does not handle 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 CFG_DEFAULT(cf, opt, var, size) { char *__tmp = NULL; if ((__tmp=config_pop(cf, opt)) && !strlen(var)) { strlcpy(var, __tmp, size); } if (__tmp) free(__tmp); }
data/cntlm-0.92.3/config/gethostname.c:8: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))
data/cntlm-0.92.3/config/gethostname.c:11: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).
	return !(!strlen(tmp));
data/cntlm-0.92.3/direct.c:117: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 (tmp && strlen(tmp) > 6 + 8) {
data/cntlm-0.92.3/direct.c:118: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).
			challenge = new(strlen(tmp) + 5 + 1);
data/cntlm-0.92.3/direct.c:200: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).
		w = write(cd, tmp, strlen(tmp));
data/cntlm-0.92.3/direct.c:218: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).
		w = write(cd, tmp, strlen(tmp));
data/cntlm-0.92.3/direct.c:329: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).
						w = write(cd, tmp, strlen(tmp));
data/cntlm-0.92.3/direct.c:341: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).
					w = write(cd, tmp, strlen(tmp));
data/cntlm-0.92.3/direct.c:355: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).
					w = write(cd, tmp, strlen(tmp));
data/cntlm-0.92.3/forward.c:230: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).
			challenge = new(strlen(tmp) + 5 + 1);
data/cntlm-0.92.3/forward.c:371: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).
			w = write(cd, tmp, strlen(tmp));
data/cntlm-0.92.3/forward.c:483: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).
					w = write(cd, tmp, strlen(tmp));
data/cntlm-0.92.3/forward.c:727: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 (!sd || !thost || !strlen(thost))
data/cntlm-0.92.3/http.c:48:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return strcspn(src, ":") != strlen(src);
data/cntlm-0.92.3/http.c:58: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 (i != strlen(src))
data/cntlm-0.92.3/http.c:109:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(buf);
data/cntlm-0.92.3/http.c:121: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).
			tok += strlen(ccode);
data/cntlm-0.92.3/http.c:124: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(tok))
data/cntlm-0.92.3/http.c:131: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).
		if (!ccode || strlen(ccode) != 3 || (data->code = atoi(ccode)) == 0) {
data/cntlm-0.92.3/http.c:170: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).
			host = substr(tok, 0, strlen(tok));
data/cntlm-0.92.3/http.c:190: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).
	} while (strlen(buf) != 0 && i > 0);
data/cntlm-0.92.3/http.c:196: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 (host && strlen(host)) {
data/cntlm-0.92.3/http.c:220: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(data->hostname) || !data->port) {
data/cntlm-0.92.3/http.c:254: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).
		len = 20 + strlen(data->method) + strlen(data->url) + strlen(data->http);
data/cntlm-0.92.3/http.c:254:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = 20 + strlen(data->method) + strlen(data->url) + strlen(data->http);
data/cntlm-0.92.3/http.c:254:57:  [1] (buffer) strlen:
  Does not handle 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 = 20 + strlen(data->method) + strlen(data->url) + strlen(data->http);
data/cntlm-0.92.3/http.c:256: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).
		len = 20 + strlen(data->http) + strlen(data->msg);
data/cntlm-0.92.3/http.c:256: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).
		len = 20 + strlen(data->http) + strlen(data->msg);
data/cntlm-0.92.3/http.c:260: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).
		len += 20 + strlen(t->key) + strlen(t->value);
data/cntlm-0.92.3/http.c:260: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).
		len += 20 + strlen(t->key) + strlen(t->value);
data/cntlm-0.92.3/http.c:329:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(src, buf, block);
data/cntlm-0.92.3/http.c:398: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).
			i = write(dst, buf, strlen(buf));
data/cntlm-0.92.3/http.c:414: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).
			w = write(dst, buf, strlen(buf));
data/cntlm-0.92.3/http.c:450:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret = read(from, buf, BUFSIZE);
data/cntlm-0.92.3/http.c:606: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).
	buf = new(strlen(tmp) + 1);
data/cntlm-0.92.3/http.c:608: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).
	while (i < strlen(tmp) && tmp[++i] == ' ');
data/cntlm-0.92.3/http.c:613: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(buf, 0, strlen(buf));		/* clean password memory */
data/cntlm-0.92.3/http.c:645: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(buf, 0, strlen(buf));
data/cntlm-0.92.3/main.c:133:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(proxy);
data/cntlm-0.92.3/main.c:187:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(spec);
data/cntlm-0.92.3/main.c:224:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(spec);
data/cntlm-0.92.3/main.c:249: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(field[pos+1]) || !strlen(field[pos+2])) {
data/cntlm-0.92.3/main.c:249: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(field[pos+1]) || !strlen(field[pos+2])) {
data/cntlm-0.92.3/main.c:254: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).
		tmp = new(strlen(field[pos+1]) + strlen(field[pos+2]) + 2 + 1);
data/cntlm-0.92.3/main.c:254:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tmp = new(strlen(field[pos+1]) + strlen(field[pos+2]) + 2 + 1);
data/cntlm-0.92.3/main.c:256: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(tmp, ":");
data/cntlm-0.92.3/main.c:295: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 (list->aux && strlen(list->aux)
data/cntlm-0.92.3/main.c:430:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = read(cd, bs, 2);
data/cntlm-0.92.3/main.c:439:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = read(cd, auths, c);
data/cntlm-0.92.3/main.c:479:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(cd, bs, 2);
data/cntlm-0.92.3/main.c:492:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(cd, uname, c+1);
data/cntlm-0.92.3/main.c:505:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(cd, upass, c);
data/cntlm-0.92.3/main.c:542:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = read(cd, bs, 4);
data/cntlm-0.92.3/main.c:568:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(cd, &c, 1);
data/cntlm-0.92.3/main.c:575:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = read(cd, addr, c);
data/cntlm-0.92.3/main.c:592:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = read(cd, &port, 2);
data/cntlm-0.92.3/main.c:743: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)) {
data/cntlm-0.92.3/main.c:747: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).
					i = strlen(optarg) + 3;
data/cntlm-0.92.3/main.c:794: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).
				for (i = strlen(optarg)-1; i >= 0; --i)
data/cntlm-0.92.3/main.c:849: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 (i != strlen(optarg)) {
data/cntlm-0.92.3/main.c:953: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 (tmp == NULL || strlen(tmp) == 0)
data/cntlm-0.92.3/main.c:1083: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).
		if (!scanner_plugin_maxsize && strlen(tmp)) {
data/cntlm-0.92.3/main.c:1090: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)) {
data/cntlm-0.92.3/main.c:1115:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ((i = strlen(tmp))) {
data/cntlm-0.92.3/main.c:1144: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(cworkstation)) {
data/cntlm-0.92.3/main.c:1148: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(cworkstation))
data/cntlm-0.92.3/main.c:1157: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(cauth)) {
data/cntlm-0.92.3/main.c:1207: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).
		i = strlen(cpassword) - 1;
data/cntlm-0.92.3/main.c:1223: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(cpassword)) {
data/cntlm-0.92.3/main.c:1224: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(cpassntlm2)) {
data/cntlm-0.92.3/main.c:1233: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(cpassnt)) {
data/cntlm-0.92.3/main.c:1242: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(cpasslm)) {
data/cntlm-0.92.3/main.c:1265: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(cpassword, 0, strlen(cpassword));
data/cntlm-0.92.3/main.c:1341:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(0);
data/cntlm-0.92.3/main.c:1368: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(cuid)) {
data/cntlm-0.92.3/main.c:1402: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(cpidfile)) {
data/cntlm-0.92.3/main.c:1403:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(0);
data/cntlm-0.92.3/main.c:1412: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).
		w = write(cd, tmp, strlen(tmp));
data/cntlm-0.92.3/main.c:1519: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).
					w = write(cd, tmp, strlen(tmp));
data/cntlm-0.92.3/main.c:1593: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(cpidfile))
data/cntlm-0.92.3/ntlm.c:159:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	uppercase(strncpy(pass, password, MIN(14, strlen(password))));
data/cntlm-0.92.3/ntlm.c:159:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	uppercase(strncpy(pass, password, MIN(14, strlen(password))));
data/cntlm-0.92.3/ntlm.c:195: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).
	buf = new(strlen(username)+strlen(domain) + 1);
data/cntlm-0.92.3/ntlm.c:195:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf = new(strlen(username)+strlen(domain) + 1);
data/cntlm-0.92.3/ntlm.c:217: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).
	dlen = strlen(creds->domain);
data/cntlm-0.92.3/ntlm.c:218: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).
	hlen = strlen(creds->workstation);
data/cntlm-0.92.3/ntlm.c:391: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).
		dlen = strlen(creds->domain);
data/cntlm-0.92.3/ntlm.c:392: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).
		ulen = strlen(creds->user);
data/cntlm-0.92.3/ntlm.c:393: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).
		hlen = strlen(creds->workstation);
data/cntlm-0.92.3/scanner.c:87:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		size = read(*sd, buf + len, SAMPLE - len - 1);
data/cntlm-0.92.3/scanner.c:96: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).
		c = strlen(pos);
data/cntlm-0.92.3/scanner.c:109: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).
				c = strlen(line);
data/cntlm-0.92.3/scanner.c:155: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).
						w = write(cd, tmp, strlen(tmp));
data/cntlm-0.92.3/scanner.c:172: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).
						w = write(cd, tmp, strlen(tmp));
data/cntlm-0.92.3/scanner.c:198:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				snprintf(tmp, MINIBUF_SIZE, "%d", (int)strlen(post));
data/cntlm-0.92.3/scanner.c:226:59:  [1] (buffer) strlen:
  Does not handle 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 (nc && headers_send(nc, newreq) && write(nc, post, strlen(post)) && headers_recv(nc, newres)) {
data/cntlm-0.92.3/socket.c:259:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(fd, &c, 1);
data/cntlm-0.92.3/utils.c:486: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(src);
data/cntlm-0.92.3/utils.c:488: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).
	l = MIN(len, strlen(src)-pos);
data/cntlm-0.92.3/utils.c:635: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).
	for (i = strlen(buf)-1; i >= 0 && isspace(buf[i]); --i);
data/cntlm-0.92.3/utils.c:652:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(src)+1;
data/cntlm-0.92.3/utils.c:705: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).
                return(dlen + strlen(s));
data/cntlm-0.92.3/utils.c:737: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).
	for (i = 0; i < strlen(str); ++i)
data/cntlm-0.92.3/utils.c:749: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).
	for (i = 0; i < strlen(str); ++i)
data/cntlm-0.92.3/utils.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).
	l = MIN(64, strlen(src));
data/cntlm-0.92.3/utils.c:777: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).
	tmp = new(strlen(str)*3 + 1);
data/cntlm-0.92.3/utils.c:778: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 (pos = 0, i = 0; i < strlen(str); ++i) {
data/cntlm-0.92.3/utils.c:807: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(src) % 2)
data/cntlm-0.92.3/utils.c:810: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).
	bytes = strlen(src)/2;

ANALYSIS SUMMARY:

Hits = 221
Lines analyzed = 8285 in approximately 0.28 seconds (29724 lines/second)
Physical Source Lines of Code (SLOC) = 5303
Hits@level = [0] 281 [1] 113 [2]  88 [3]   9 [4]  11 [5]   0
Hits@level+ = [0+] 502 [1+] 221 [2+] 108 [3+]  20 [4+]  11 [5+]   0
Hits/KSLOC@level+ = [0+] 94.6634 [1+] 41.6745 [2+] 20.3658 [3+] 3.77145 [4+] 2.0743 [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.