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/proxytunnel-1.10.20200907/base64.c
Examining data/proxytunnel-1.10.20200907/base64.h
Examining data/proxytunnel-1.10.20200907/basicauth.c
Examining data/proxytunnel-1.10.20200907/basicauth.h
Examining data/proxytunnel-1.10.20200907/cmdline.c
Examining data/proxytunnel-1.10.20200907/cmdline.h
Examining data/proxytunnel-1.10.20200907/config.h
Examining data/proxytunnel-1.10.20200907/global.h
Examining data/proxytunnel-1.10.20200907/globals.c
Examining data/proxytunnel-1.10.20200907/http.c
Examining data/proxytunnel-1.10.20200907/io.c
Examining data/proxytunnel-1.10.20200907/io.h
Examining data/proxytunnel-1.10.20200907/messages.c
Examining data/proxytunnel-1.10.20200907/ntlm.c
Examining data/proxytunnel-1.10.20200907/ntlm.h
Examining data/proxytunnel-1.10.20200907/proxytunnel.c
Examining data/proxytunnel-1.10.20200907/proxytunnel.h
Examining data/proxytunnel-1.10.20200907/ptstream.c
Examining data/proxytunnel-1.10.20200907/ptstream.h
Examining data/proxytunnel-1.10.20200907/readpassphrase.c
Examining data/proxytunnel-1.10.20200907/setproctitle.c
Examining data/proxytunnel-1.10.20200907/strlcat.c
Examining data/proxytunnel-1.10.20200907/strlcpy.c
Examining data/proxytunnel-1.10.20200907/strzcat.c

FINAL RESULTS:

data/proxytunnel-1.10.20200907/basicauth.c:41:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( p, "%s:%s", user, pass );
data/proxytunnel-1.10.20200907/cmdline.c:572:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
		r = sscanf( args_info->proxy_arg, proxy_arg_fmt, phost, &pport );
data/proxytunnel-1.10.20200907/cmdline.c:576:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			r = sscanf( args_info->proxy_arg, proxy_arg_fmt, phost, &pport );
data/proxytunnel-1.10.20200907/cmdline.c:662:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			if ( sscanf( line, "proxy_user = %s", buf ) == 1 ) {
data/proxytunnel-1.10.20200907/cmdline.c:664:16:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			} else if ( sscanf( line, "proxy_passwd = %s", buf ) == 1 ) {
data/proxytunnel-1.10.20200907/cmdline.c:666:16:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			} else if ( sscanf( line, "remproxy_user = %s", buf ) == 1 ) {
data/proxytunnel-1.10.20200907/cmdline.c:668:16:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			} else if ( sscanf( line, "remproxy_passwd = %s", buf ) == 1 ) {
data/proxytunnel-1.10.20200907/http.c:108:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( buf, "CONNECT %s HTTP/1.1\r\nHost: %s\r\n", args_info.remproxy_arg, args_info.host_arg ? args_info.host_arg : args_info.remproxy_arg );
data/proxytunnel-1.10.20200907/http.c:112:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( buf, "CONNECT %s HTTP/1.1\r\nHost: %s\r\n", args_info.dest_arg, args_info.host_arg ? args_info.host_arg : args_info.proxyhost_arg );
data/proxytunnel-1.10.20200907/http.c:171:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( buf, "CONNECT %s HTTP/1.1\r\nHost: %s\r\n", args_info.dest_arg, args_info.host_arg ? args_info.host_arg : args_info.dest_arg);
data/proxytunnel-1.10.20200907/messages.c:35:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf( (char *)buf, sizeof( buf ), s, ap );
data/proxytunnel-1.10.20200907/ptstream.c:322:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf( proxy_arg_fmt, sizeof(proxy_arg_fmt), proxy_arg[0] == '[' ? "[%%%zu[^]]]" : "%%%zu[^:]", proxy_arg_len - 1 );
data/proxytunnel-1.10.20200907/ptstream.c:323:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	if ( sscanf( proxy_arg, proxy_arg_fmt, peer_host ) != 1 ) {
data/proxytunnel-1.10.20200907/readpassphrase.c:209:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(prompt, SIZE, format, ap);
data/proxytunnel-1.10.20200907/setproctitle.c:148:4:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			vsnprintf(buf + len, sizeof(buf) - len , fmt, ap);
data/proxytunnel-1.10.20200907/strzcat.c:40:19:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    size_t dlen = vsnprintf(&dst[offset], STRZCAT_SIZE-offset, format, ap);
data/proxytunnel-1.10.20200907/cmdline.c:233:7:  [3] (buffer) getopt_long:
  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.
		c = getopt_long (argc, argv, "hVia:u:s:t:F:p:P:r:R:d:H:x:nvNeEXWBqLo:TzC:", long_options, &option_index);
data/proxytunnel-1.10.20200907/cmdline.c:235:7:  [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.
		c = getopt( argc, argv, "hVia:u:s:t:F:p:P:r:R:d:H:x:nvNeEXWBqLo:TzC:" );
data/proxytunnel-1.10.20200907/cmdline.c:505:15:  [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 ( (tmp = getenv("PROXYUSER")) != NULL) {
data/proxytunnel-1.10.20200907/cmdline.c:513:15:  [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 ( (tmp = getenv("PROXYPASS")) != NULL ) {
data/proxytunnel-1.10.20200907/cmdline.c:521:15:  [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 ( (tmp = getenv("REMPROXYUSER")) != NULL ) {
data/proxytunnel-1.10.20200907/cmdline.c:529:15:  [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 ( (tmp = getenv("REMPROXYPASS")) != NULL ) {
data/proxytunnel-1.10.20200907/cmdline.c:538:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ( ((tmp = getenv("http_proxy")) != NULL) || ((tmp = getenv("HTTP_PROXY")) != NULL) ) {
data/proxytunnel-1.10.20200907/cmdline.c:538:58:  [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 ( ((tmp = getenv("http_proxy")) != NULL) || ((tmp = getenv("HTTP_PROXY")) != NULL) ) {
data/proxytunnel-1.10.20200907/cmdline.c:289:40:  [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 ( ( args_info->standalone_arg = atoi( optarg ) ) < 1 ) {
data/proxytunnel-1.10.20200907/cmdline.c:561: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 proxy_arg_fmt[32];
data/proxytunnel-1.10.20200907/cmdline.c:651:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* pwfile = fopen( filename, "r" );
data/proxytunnel-1.10.20200907/cmdline.c:652:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[80], buf[80];
data/proxytunnel-1.10.20200907/cmdline.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 header_arg[MAX_HEADER_SIZE];	/* Extra headers to send to proxy */
data/proxytunnel-1.10.20200907/globals.c:36: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[SIZE];         /* Data transfer buffer */
data/proxytunnel-1.10.20200907/globals.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 ntlm_type1_buf[160];
data/proxytunnel-1.10.20200907/globals.c:39: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 ntlm_type3_buf[4096];
data/proxytunnel-1.10.20200907/messages.c:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/proxytunnel-1.10.20200907/ntlm.c:43:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char challenge[8];
data/proxytunnel-1.10.20200907/ntlm.c:44: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 domain[DOMAIN_BUFLEN];
data/proxytunnel-1.10.20200907/ntlm.c:47:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char unipasswd[DOMAIN_BUFLEN * 2];
data/proxytunnel-1.10.20200907/ntlm.c:49:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char t2_buf[TYPE2_BUF_SIZE];
data/proxytunnel-1.10.20200907/ntlm.c:59:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char lm2digest[LM2_DIGEST_LEN];
data/proxytunnel-1.10.20200907/ntlm.c:207: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(&t3[type3->LM_response.offset], lm2digest, LM2_DIGEST_LEN);
data/proxytunnel-1.10.20200907/ntlm.c:212:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&t3[type3->NTLM_response.offset], pblob, bloblen);
data/proxytunnel-1.10.20200907/ntlm.c:248:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char digest[16]; /* caller digest to be filled in */
data/proxytunnel-1.10.20200907/ntlm.c:251:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char k_ipad[65];    /* inner padding - key XORd with ipad */
data/proxytunnel-1.10.20200907/ntlm.c:252:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char k_opad[65];    /* outer padding - key XORd with opad */
data/proxytunnel-1.10.20200907/ntlm.c:253:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char tk[16];
data/proxytunnel-1.10.20200907/ntlm.c:280:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy( key, k_ipad, key_len);
data/proxytunnel-1.10.20200907/ntlm.c:281:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy( key, k_opad, key_len);
data/proxytunnel-1.10.20200907/ntlm.c:306:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char passdigest[16];
data/proxytunnel-1.10.20200907/ntlm.c:309:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char userdomdigest[16];
data/proxytunnel-1.10.20200907/ntlm.c:312:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char responsedigest[16];
data/proxytunnel-1.10.20200907/ntlm.c:313:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char lm2data[16];
data/proxytunnel-1.10.20200907/ntlm.c:435: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(&b->data_start, t_info, t_info_len);
data/proxytunnel-1.10.20200907/ntlm.h:29:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char ntlm_type1_buf[160];
data/proxytunnel-1.10.20200907/ntlm.h:30:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char ntlm_type3_buf[4096];
data/proxytunnel-1.10.20200907/ntlm.h:64:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	signature[8];
data/proxytunnel-1.10.20200907/ntlm.h:72:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	signature[8];
data/proxytunnel-1.10.20200907/ntlm.h:76:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	challenge[8];
data/proxytunnel-1.10.20200907/ntlm.h:84:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	signature[8];
data/proxytunnel-1.10.20200907/ntlm.h:91:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	session[8];
data/proxytunnel-1.10.20200907/ntlm.h:93:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	pad[8];
data/proxytunnel-1.10.20200907/ntlm.h:98:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	digest[16];
data/proxytunnel-1.10.20200907/ntlm.h:102:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	client_challenge[8];
data/proxytunnel-1.10.20200907/proxytunnel.c:77:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char service[6];
data/proxytunnel-1.10.20200907/proxytunnel.c:168:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[80];
data/proxytunnel-1.10.20200907/proxytunnel.c:169:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char addr[4];
data/proxytunnel-1.10.20200907/proxytunnel.c:295: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( &addr, &sa_cli.sin_addr.s_addr, 4 );
data/proxytunnel-1.10.20200907/proxytunnel.h:63:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char buf[SIZE];         /* Data transfer buffer */
data/proxytunnel-1.10.20200907/ptstream.c:138: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[SIZE];
data/proxytunnel-1.10.20200907/ptstream.c:209: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 peer_cn[256];
data/proxytunnel-1.10.20200907/ptstream.c:270:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char proxy_arg_fmt[32];
data/proxytunnel-1.10.20200907/readpassphrase.c:94:21:  [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).
		(input = output = open(_PATH_TTY, O_RDWR)) == -1) {
data/proxytunnel-1.10.20200907/readpassphrase.c:204: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 buf[_PASSWORD_LEN + 1];
data/proxytunnel-1.10.20200907/setproctitle.c:125:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/proxytunnel-1.10.20200907/basicauth.c:37:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen( user ) + strlen( pass ) + 2;
data/proxytunnel-1.10.20200907/basicauth.c:37: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).
	int len = strlen( user ) + strlen( pass ) + 2;
data/proxytunnel-1.10.20200907/basicauth.c:47:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	base64( (unsigned char *)b64str, (unsigned char *)p, strlen(p) );
data/proxytunnel-1.10.20200907/cmdline.c:566:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		proxy_arg_len = strlen( args_info->proxy_arg );
data/proxytunnel-1.10.20200907/cmdline.c:597:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		r = sscanf( args_info->proxyauth_arg, "%24[^:]:%24s", puser, ppass );
data/proxytunnel-1.10.20200907/cmdline.c:620:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		r = sscanf( args_info->remproxyauth_arg, "%24[^:]:%24s", ruser, rpass );
data/proxytunnel-1.10.20200907/http.c:63: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).
		p += strlen( p ) + 1;
data/proxytunnel-1.10.20200907/http.c:144:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if( stream_write( pts, buf, strlen( buf )) < 0 ) {
data/proxytunnel-1.10.20200907/http.c:191:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if( stream_write( pts, buf, strlen( buf )) < 0 ) {
data/proxytunnel-1.10.20200907/io.c:60: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).
		char *dstr = malloc(strlen(buf) + 1);
data/proxytunnel-1.10.20200907/io.c:61:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy( dstr, buf, strlen(buf));
data/proxytunnel-1.10.20200907/io.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).
		strncpy( dstr, buf, strlen(buf));
data/proxytunnel-1.10.20200907/io.c:65: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).
	return strlen( buf );
data/proxytunnel-1.10.20200907/ntlm.c:134:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		for( i = 0; i < strlen(args_info.domain_arg); i++ ) {
data/proxytunnel-1.10.20200907/ntlm.c:182:82:  [1] (buffer) strlen:
  Does not handle 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 = sizeof(ntlm_type3) + sizeof(unsigned char) * (LM2_DIGEST_LEN + bloblen + (strlen(domain) + strlen(args_info.user_arg) + strlen(workstation)) * sp);
data/proxytunnel-1.10.20200907/ntlm.c:182: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).
	len = sizeof(ntlm_type3) + sizeof(unsigned char) * (LM2_DIGEST_LEN + bloblen + (strlen(domain) + strlen(args_info.user_arg) + strlen(workstation)) * sp);
data/proxytunnel-1.10.20200907/ntlm.c:182:128:  [1] (buffer) strlen:
  Does not handle 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 = sizeof(ntlm_type3) + sizeof(unsigned char) * (LM2_DIGEST_LEN + bloblen + (strlen(domain) + strlen(args_info.user_arg) + strlen(workstation)) * sp);
data/proxytunnel-1.10.20200907/ntlm.c:214: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).
	type3->domain.length = strlen(domain) * sp;
data/proxytunnel-1.10.20200907/ntlm.c:215:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	type3->domain.space = strlen(domain) * sp;
data/proxytunnel-1.10.20200907/ntlm.c:217: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(domain); i++)
data/proxytunnel-1.10.20200907/ntlm.c:220: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).
	type3->user.length = strlen(args_info.user_arg) * sp;
data/proxytunnel-1.10.20200907/ntlm.c:221: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).
	type3->user.space = strlen(args_info.user_arg) * sp;
data/proxytunnel-1.10.20200907/ntlm.c:223: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(args_info.user_arg); i++)
data/proxytunnel-1.10.20200907/ntlm.c:226: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).
	type3->workstation.length = strlen(workstation) * sp;
data/proxytunnel-1.10.20200907/ntlm.c:227: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).
	type3->workstation.space = strlen(workstation) * sp;
data/proxytunnel-1.10.20200907/ntlm.c:229: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(workstation); i++)
data/proxytunnel-1.10.20200907/ntlm.c:319: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(args_info.pass_arg); i++) {
data/proxytunnel-1.10.20200907/ntlm.c:341:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	userdomlen = sizeof(unsigned char) * (strlen(args_info.user_arg) + strlen(domain)) * 2;
data/proxytunnel-1.10.20200907/ntlm.c:341:69:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	userdomlen = sizeof(unsigned char) * (strlen(args_info.user_arg) + strlen(domain)) * 2;
data/proxytunnel-1.10.20200907/ntlm.c:350: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(args_info.user_arg); i++) {
data/proxytunnel-1.10.20200907/ntlm.c:361: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 (j = 0; j < strlen(domain); j++) {
data/proxytunnel-1.10.20200907/proxytunnel.c:336: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 (cp != NULL && strlen (cp) > 0) {
data/proxytunnel-1.10.20200907/proxytunnel.c:339:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memset (cp, 0, strlen(cp));
data/proxytunnel-1.10.20200907/proxytunnel.c:346: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 (cp != NULL && strlen (cp) > 0) {
data/proxytunnel-1.10.20200907/proxytunnel.c:349:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memset (cp, 0, strlen(cp));
data/proxytunnel-1.10.20200907/ptstream.c:82:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bytes_read = read(pts->incoming_fd, buf, len);
data/proxytunnel-1.10.20200907/ptstream.c:89:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bytes_read = read(pts->incoming_fd, buf, len);
data/proxytunnel-1.10.20200907/ptstream.c:179:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(cert_host) == 0 || strlen(peer_host) == 0) {
data/proxytunnel-1.10.20200907/ptstream.c:179:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(cert_host) == 0 || strlen(peer_host) == 0) {
data/proxytunnel-1.10.20200907/ptstream.c:317: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).
	proxy_arg_len = strlen(proxy_arg);
data/proxytunnel-1.10.20200907/readpassphrase.c:139:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ssize_t bytes_written = write(output, prompt, strlen(prompt));
data/proxytunnel-1.10.20200907/readpassphrase.c:140: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 (bytes_written != strlen(prompt)) {
data/proxytunnel-1.10.20200907/readpassphrase.c:146:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	for (p = buf; (nr = read(input, &ch, 1)) == 1 && ch != '\n' && ch != '\r';) {
data/proxytunnel-1.10.20200907/setproctitle.c:100: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).
			lastargv = argv[i] + strlen(argv[i]);
data/proxytunnel-1.10.20200907/setproctitle.c:104: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).
			lastargv = envp[i] + strlen(envp[i]);
data/proxytunnel-1.10.20200907/setproctitle.c:146: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(buf);
data/proxytunnel-1.10.20200907/setproctitle.c:154: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).
	pstat(PSTAT_SETCMD, pst, strlen(buf), 0, 0);
data/proxytunnel-1.10.20200907/strlcat.c:58: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).
		return(dlen + strlen(s));
data/proxytunnel-1.10.20200907/strzcat.c:37: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).
    int offset = strlen(dst);

ANALYSIS SUMMARY:

Hits = 121
Lines analyzed = 3662 in approximately 0.13 seconds (28940 lines/second)
Physical Source Lines of Code (SLOC) = 2348
Hits@level = [0]  26 [1]  49 [2]  48 [3]   8 [4]  16 [5]   0
Hits@level+ = [0+] 147 [1+] 121 [2+]  72 [3+]  24 [4+]  16 [5+]   0
Hits/KSLOC@level+ = [0+] 62.6065 [1+] 51.5332 [2+] 30.6644 [3+] 10.2215 [4+] 6.81431 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.