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/openfortivpn-1.15.0/src/config.c
Examining data/openfortivpn-1.15.0/src/config.h
Examining data/openfortivpn-1.15.0/src/hdlc.c
Examining data/openfortivpn-1.15.0/src/hdlc.h
Examining data/openfortivpn-1.15.0/src/http.c
Examining data/openfortivpn-1.15.0/src/http.h
Examining data/openfortivpn-1.15.0/src/io.c
Examining data/openfortivpn-1.15.0/src/io.h
Examining data/openfortivpn-1.15.0/src/ipv4.c
Examining data/openfortivpn-1.15.0/src/ipv4.h
Examining data/openfortivpn-1.15.0/src/log.c
Examining data/openfortivpn-1.15.0/src/log.h
Examining data/openfortivpn-1.15.0/src/main.c
Examining data/openfortivpn-1.15.0/src/openssl_hostname_validation.c
Examining data/openfortivpn-1.15.0/src/openssl_hostname_validation.h
Examining data/openfortivpn-1.15.0/src/ssl.h
Examining data/openfortivpn-1.15.0/src/tunnel.c
Examining data/openfortivpn-1.15.0/src/tunnel.h
Examining data/openfortivpn-1.15.0/src/userinput.c
Examining data/openfortivpn-1.15.0/src/userinput.h
Examining data/openfortivpn-1.15.0/src/xml.c
Examining data/openfortivpn-1.15.0/src/xml.h

FINAL RESULTS:

data/openfortivpn-1.15.0/src/io.c:508:6:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
					strncat(line, tunnel->ipv4.dns_suffix,
data/openfortivpn-1.15.0/src/ipv4.c:1174:3:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
		strncat(dns_suffix, tunnel->ipv4.dns_suffix, MAX_DOMAIN_LENGTH);
data/openfortivpn-1.15.0/src/ipv4.c:1353:3:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
		strncat(dns_suffix, tunnel->ipv4.dns_suffix, MAX_DOMAIN_LENGTH);
data/openfortivpn-1.15.0/src/config.c:499: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(dst->gateway_host, src->gateway_host);
data/openfortivpn-1.15.0/src/config.c:503: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(dst->username, src->username);
data/openfortivpn-1.15.0/src/config.c:507: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(dst->otp, src->otp);
data/openfortivpn-1.15.0/src/config.c:517: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(dst->realm, src->realm);
data/openfortivpn-1.15.0/src/config.c:519: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(dst->iface_name, src->iface_name);
data/openfortivpn-1.15.0/src/http.c:85:11:  [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.
	length = vsnprintf(buffer, HTTP_BUFFER_SIZE, request, args);
data/openfortivpn-1.15.0/src/http.c:87:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(logbuffer, buffer);
data/openfortivpn-1.15.0/src/http.c:363:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(retbuf, val);
data/openfortivpn-1.15.0/src/http.c:399:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(retbuf, val);
data/openfortivpn-1.15.0/src/ipv4.c:216:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(netstat_path, F_OK) != 0) {
data/openfortivpn-1.15.0/src/ipv4.c:223:7:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	fp = popen(NETSTAT_PATH " -f inet -rn", "r");
data/openfortivpn-1.15.0/src/ipv4.c:441:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(tmp_ip_string, strtok_r(tmpstr, "/", &saveptr3));
data/openfortivpn-1.15.0/src/ipv4.c:452:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(tmp_ip_string, tmpstr);
data/openfortivpn-1.15.0/src/ipv4.c:626:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access("/sbin/route", F_OK) != 0) {
data/openfortivpn-1.15.0/src/ipv4.c:653:12:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	int res = system(cmd);
data/openfortivpn-1.15.0/src/ipv4.c:693:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access("/sbin/route", F_OK) != 0) {
data/openfortivpn-1.15.0/src/ipv4.c:720:12:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	int res = system(cmd);
data/openfortivpn-1.15.0/src/ipv4.c:745:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(route_iface(def_rt), "!%s", tunnel->ppp_iface);
data/openfortivpn-1.15.0/src/ipv4.c:763:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(route_iface(gtw_rt), "%s", tunnel->ppp_iface);
data/openfortivpn-1.15.0/src/ipv4.c:772:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(route_iface(gtw_rt), "!%s", tunnel->ppp_iface);
data/openfortivpn-1.15.0/src/ipv4.c:827:3:  [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(*target + l0, l1, fmt, dest, mask, gw);
data/openfortivpn-1.15.0/src/ipv4.c:1089:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    && (access(RESOLVCONF_PATH, F_OK) == 0)) {
data/openfortivpn-1.15.0/src/ipv4.c:1110:10:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		file = popen(resolvconf_call, "w");
data/openfortivpn-1.15.0/src/ipv4.c:1283:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    && (access(RESOLVCONF_PATH, F_OK) == 0)) {
data/openfortivpn-1.15.0/src/ipv4.c:1304:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		ret = system(resolvconf_call);
data/openfortivpn-1.15.0/src/log.c:120:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/openfortivpn-1.15.0/src/log.c:147:8:  [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).
	pos = strcpy(str, prefix);
data/openfortivpn-1.15.0/src/main.c:309: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(VERSION "\n");
data/openfortivpn-1.15.0/src/tunnel.c:173:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(ppp_path, F_OK) != 0) {
data/openfortivpn-1.15.0/src/tunnel.c:327:3:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execv(pppd_args.data[0], (char *const *)pppd_args.data);
data/openfortivpn-1.15.0/src/tunnel.c:645:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(request, "CONNECT %s:%u HTTP/1.1\r\nHost: %s:%u\r\n\r\n",
data/openfortivpn-1.15.0/src/userinput.c:227:3:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execlp(pinentry, pinentry, NULL);
data/openfortivpn-1.15.0/src/main.c:295: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, "hvqc:u:p:o:",
data/openfortivpn-1.15.0/src/tunnel.c:566:14:  [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.
	env_proxy = getenv("https_proxy");
data/openfortivpn-1.15.0/src/tunnel.c:568: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.
		env_proxy = getenv("HTTPS_PROXY");
data/openfortivpn-1.15.0/src/tunnel.c:570: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.
		env_proxy = getenv("all_proxy");
data/openfortivpn-1.15.0/src/tunnel.c:572: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.
		env_proxy = getenv("ALL_PROXY");
data/openfortivpn-1.15.0/src/config.c:185:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen(filename, "r");
data/openfortivpn-1.15.0/src/config.h:57:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[SHA256STRLEN];
data/openfortivpn-1.15.0/src/config.h:80: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		gateway_host[FIELD_SIZE + 1];
data/openfortivpn-1.15.0/src/config.h:83:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		username[FIELD_SIZE + 1];
data/openfortivpn-1.15.0/src/config.h:85:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		otp[FIELD_SIZE + 1];
data/openfortivpn-1.15.0/src/config.h:90: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		iface_name[FIELD_SIZE + 1];
data/openfortivpn-1.15.0/src/config.h:91: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		realm[FIELD_SIZE + 1];
data/openfortivpn-1.15.0/src/http.c:79:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[HTTP_BUFFER_SIZE];
data/openfortivpn-1.15.0/src/http.c:80: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 logbuffer[HTTP_BUFFER_SIZE];
data/openfortivpn-1.15.0/src/http.c:90: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 password[3 * FIELD_SIZE + 1];
data/openfortivpn-1.15.0/src/http.c:187:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			static const char EOH[4] = "\r\n\r\n";
data/openfortivpn-1.15.0/src/http.c:200:21:  [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).
					content_size = atoi(header);
data/openfortivpn-1.15.0/src/http.c:212:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				static const char EOB[7] = "\r\n0\r\n\r\n";
data/openfortivpn-1.15.0/src/http.c:471:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[256];
data/openfortivpn-1.15.0/src/http.c:472: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 path[40];
data/openfortivpn-1.15.0/src/http.c:473: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[40];
data/openfortivpn-1.15.0/src/http.c:474: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 prompt[80];
data/openfortivpn-1.15.0/src/http.c:603:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
				strcat(d, "&realm=");
data/openfortivpn-1.15.0/src/http.c:630:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char username[3 * FIELD_SIZE + 1];
data/openfortivpn-1.15.0/src/http.c:631: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 password[3 * FIELD_SIZE + 1];
data/openfortivpn-1.15.0/src/http.c:632: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 realm[3 * FIELD_SIZE + 1];
data/openfortivpn-1.15.0/src/http.c:633: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 reqid[32] = { '\0' };
data/openfortivpn-1.15.0/src/http.c:634: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 polid[32] = { '\0' };
data/openfortivpn-1.15.0/src/http.c:635: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 group[128] = { '\0' };
data/openfortivpn-1.15.0/src/http.c:636: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 portal[64] = { '\0' };
data/openfortivpn-1.15.0/src/http.c:637: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[32] = {'\0' };
data/openfortivpn-1.15.0/src/http.c:638: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[32]  = { '\0' };
data/openfortivpn-1.15.0/src/http.c:639:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[1152], token[128], tokenresponse[256], tokenparams[320];
data/openfortivpn-1.15.0/src/http.c:640: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 action_url[1024] = { '\0' };
data/openfortivpn-1.15.0/src/http.c:681: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 word[17];
data/openfortivpn-1.15.0/src/http.c:758:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char word[17];
data/openfortivpn-1.15.0/src/http.c:811: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 word[17];
data/openfortivpn-1.15.0/src/http.c:903: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 dest[16], mask[16];
data/openfortivpn-1.15.0/src/http.c:910: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(dest, buffer, c - buffer);
data/openfortivpn-1.15.0/src/http.c:922: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(mask, buffer, c - buffer);
data/openfortivpn-1.15.0/src/io.c:387: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(&tunnel->ipv4.ip_addr.s_addr, &pkt_data(packet)[8],
data/openfortivpn-1.15.0/src/io.c:391: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(&tunnel->ipv4.ns1_addr.s_addr, &pkt_data(packet)[14],
data/openfortivpn-1.15.0/src/io.c:396: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(&tunnel->ipv4.ns2_addr.s_addr, &pkt_data(packet)[20],
data/openfortivpn-1.15.0/src/io.c:409: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(buffer, header, 6 * sizeof(uint8_t));
data/openfortivpn-1.15.0/src/io.c:443:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		static const char http_header[6] = "HTTP/1";
data/openfortivpn-1.15.0/src/io.c:479: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(pkt_header(packet), header, 6);
data/openfortivpn-1.15.0/src/io.c:497:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char line[ARRAY_SIZE("[xxx.xxx.xxx.xxx], ns [xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx], ns_suffix []") + MAX_DOMAIN_LENGTH];
data/openfortivpn-1.15.0/src/io.c:502:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
				strcat(line, "], ns [");
data/openfortivpn-1.15.0/src/io.c:504:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
				strcat(line, ", ");
data/openfortivpn-1.15.0/src/io.c:507:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
					strcat(line, "], ns_suffix [");
data/openfortivpn-1.15.0/src/ipv4.c:40:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char show_route_buffer[SHOW_ROUTE_BUFFER_SIZE];
data/openfortivpn-1.15.0/src/ipv4.c:71: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(show_route_buffer, "to ");
data/openfortivpn-1.15.0/src/ipv4.c:76:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(show_route_buffer, " via ");
data/openfortivpn-1.15.0/src/ipv4.c:80:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(show_route_buffer, " dev ");
data/openfortivpn-1.15.0/src/ipv4.c:169:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/proc/net/route", O_RDONLY);
data/openfortivpn-1.15.0/src/ipv4.c:408: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 tmp_ip_string[16];
data/openfortivpn-1.15.0/src/ipv4.c:464:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
				strcat(tmp_ip_string, ".0");
data/openfortivpn-1.15.0/src/ipv4.c:624:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[SHOW_ROUTE_BUFFER_SIZE];
data/openfortivpn-1.15.0/src/ipv4.c:631: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(cmd, "/sbin/route -n add ");
data/openfortivpn-1.15.0/src/ipv4.c:633:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(cmd, "-host ");
data/openfortivpn-1.15.0/src/ipv4.c:635:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(cmd, "-net ");
data/openfortivpn-1.15.0/src/ipv4.c:639:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(cmd, " -netmask ");
data/openfortivpn-1.15.0/src/ipv4.c:646:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(cmd, " -interface ");
data/openfortivpn-1.15.0/src/ipv4.c:691:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[SHOW_ROUTE_BUFFER_SIZE];
data/openfortivpn-1.15.0/src/ipv4.c:698: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(cmd, "/sbin/route -n delete ");
data/openfortivpn-1.15.0/src/ipv4.c:700:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(cmd, "-host ");
data/openfortivpn-1.15.0/src/ipv4.c:702:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(cmd, "-net ");
data/openfortivpn-1.15.0/src/ipv4.c:706:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(cmd, " -netmask ");
data/openfortivpn-1.15.0/src/ipv4.c:713:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(cmd, " -interface ");
data/openfortivpn-1.15.0/src/ipv4.c:838: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 env_var[24];
data/openfortivpn-1.15.0/src/ipv4.c:856:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(env_var, "VPN_ROUTE_DEST_%d", tunnel->ipv4.split_routes);
data/openfortivpn-1.15.0/src/ipv4.c:858:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(env_var, "VPN_ROUTE_MASK_%d", tunnel->ipv4.split_routes);
data/openfortivpn-1.15.0/src/ipv4.c:861: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(env_var, "VPN_ROUTE_GATEWAY_%d",
data/openfortivpn-1.15.0/src/ipv4.c:1069: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 ns1[NS_SIZE], ns2[NS_SIZE];
data/openfortivpn-1.15.0/src/ipv4.c:1072: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 dns_suffix[DNS_SUFFIX_SIZE];
data/openfortivpn-1.15.0/src/ipv4.c:1122:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file = fopen("/etc/resolv.conf", "r+");
data/openfortivpn-1.15.0/src/ipv4.c:1159:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(ns1, "nameserver ");
data/openfortivpn-1.15.0/src/ipv4.c:1166:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(ns2, "nameserver ");
data/openfortivpn-1.15.0/src/ipv4.c:1173:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(dns_suffix, "search ");
data/openfortivpn-1.15.0/src/ipv4.c:1273: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 ns1[NS_SIZE], ns2[NS_SIZE];
data/openfortivpn-1.15.0/src/ipv4.c:1276: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 dns_suffix[DNS_SUFFIX_SIZE];
data/openfortivpn-1.15.0/src/ipv4.c:1312:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen("/etc/resolv.conf", "r+");
data/openfortivpn-1.15.0/src/ipv4.c:1342:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(ns1, "nameserver ");
data/openfortivpn-1.15.0/src/ipv4.c:1347:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(ns2, "nameserver ");
data/openfortivpn-1.15.0/src/ipv4.c:1352:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(dns_suffix, "search ");
data/openfortivpn-1.15.0/src/log.c:150:10:  [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.
		pos += sprintf(pos, "%02x ", packet[i]);
data/openfortivpn-1.15.0/src/tunnel.c:642: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 request[128];
data/openfortivpn-1.15.0/src/tunnel.c:737: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[SHA256LEN];
data/openfortivpn-1.15.0/src/tunnel.c:740:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char digest_str[SHA256STRLEN], *subject, *issuer;
data/openfortivpn-1.15.0/src/tunnel.c:788: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(&digest_str[2 * i], "%02x", digest[i]);
data/openfortivpn-1.15.0/src/tunnel.h:61: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 cookie[COOKIE_SIZE + 1];
data/openfortivpn-1.15.0/src/tunnel.h:68: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	ppp_iface[ROUTE_IFACE_LEN];
data/openfortivpn-1.15.0/src/userinput.c:58:16:  [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.
			real_len += sprintf(&escaped[real_len], "%%%02X", string[i]);
data/openfortivpn-1.15.0/src/userinput.c:146:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		ret = atoi(&buf[4]);
data/openfortivpn-1.15.0/src/xml.c:72: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 val[MAX_DOMAIN_LENGTH]; // just enough to hold a domain search string
data/openfortivpn-1.15.0/src/config.c:100:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(new->data, digest, SHA256STRLEN - 1);
data/openfortivpn-1.15.0/src/config.c:237: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).
		for (i = strlen(key) - 1; i > 0; i--) {
data/openfortivpn-1.15.0/src/config.c:243: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).
		for (i = strlen(val) - 1; i > 0; i--) {
data/openfortivpn-1.15.0/src/config.c:251:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(cfg->gateway_host, val, FIELD_SIZE);
data/openfortivpn-1.15.0/src/config.c:263:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(cfg->username, val, FIELD_SIZE - 1);
data/openfortivpn-1.15.0/src/config.c:268:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(cfg->otp, val, FIELD_SIZE - 1);
data/openfortivpn-1.15.0/src/config.c:295:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(cfg->realm, val, FIELD_SIZE - 1);
data/openfortivpn-1.15.0/src/config.c:391: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(val) != SHA256STRLEN - 1) {
data/openfortivpn-1.15.0/src/http.c:99: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).
			pwlen = strlen(tunnel->config->password);
data/openfortivpn-1.15.0/src/http.c:134: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 head_len = strlen(header);
data/openfortivpn-1.15.0/src/http.c:291: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).
	                strlen(data), data);
data/openfortivpn-1.15.0/src/http.c:345: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).
	size_t keylen = strlen(key);
data/openfortivpn-1.15.0/src/http.c:360:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(val) > retbuflen - 1) {  // value too long
data/openfortivpn-1.15.0/src/http.c:381: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).
	size_t keylen = strlen(key);
data/openfortivpn-1.15.0/src/http.c:396: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(val) > retbuflen - 1) {  // value too long
data/openfortivpn-1.15.0/src/http.c:440:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(tunnel->cookie, line, COOKIE_SIZE);
data/openfortivpn-1.15.0/src/http.c:442: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(line) > COOKIE_SIZE) {
data/openfortivpn-1.15.0/src/http.c:444:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					          strlen(line), COOKIE_SIZE);
data/openfortivpn-1.15.0/src/http.c:494:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(path, s, e - s);
data/openfortivpn-1.15.0/src/http.c:507:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(prompt, p, e - p);
data/openfortivpn-1.15.0/src/http.c:554:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(tmp, n, e - n);
data/openfortivpn-1.15.0/src/http.c:559: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).
			d += strlen(d);
data/openfortivpn-1.15.0/src/http.c:574:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(tmp, v, e - v);
data/openfortivpn-1.15.0/src/http.c:579: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).
			d += strlen(d);
data/openfortivpn-1.15.0/src/http.c:593: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).
			l = strlen(cfg->otp);
data/openfortivpn-1.15.0/src/http.c:597: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).
			d += strlen(d);
data/openfortivpn-1.15.0/src/http.c:600: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).
				l = strlen(cfg->realm);
data/openfortivpn-1.15.0/src/http.c:604: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).
				d += strlen(d);
data/openfortivpn-1.15.0/src/http.c:606: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).
				d += strlen(d);
data/openfortivpn-1.15.0/src/http.c:683: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.
		if (sscanf(res, "%16s %d", word, &ret) < 2)
data/openfortivpn-1.15.0/src/http.c:760:8:  [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.
			if (sscanf(res, "%16s %d", word, &ret) < 2)
data/openfortivpn-1.15.0/src/http.c:772: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(action_url) != 0) {
data/openfortivpn-1.15.0/src/http.c:813: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.
		if (sscanf(buffer, "%16s %d", word, &ret) < 2)
data/openfortivpn-1.15.0/src/io.c:209:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read(tunnel->pppd_pty, &buf[off_w], PKT_BUF_SZ - off_w);
data/openfortivpn-1.15.0/src/io.c:500:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
				strcpy(line, "[");
data/openfortivpn-1.15.0/src/io.c:501:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
				strncat(line, inet_ntoa(tunnel->ipv4.ip_addr), 15);
data/openfortivpn-1.15.0/src/io.c:503:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
				strncat(line, inet_ntoa(tunnel->ipv4.ns1_addr), 15);
data/openfortivpn-1.15.0/src/io.c:505:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
				strncat(line, inet_ntoa(tunnel->ipv4.ns2_addr), 15);
data/openfortivpn-1.15.0/src/io.c:511:5:  [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(line, "]");
data/openfortivpn-1.15.0/src/io.c:595:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(200000);
data/openfortivpn-1.15.0/src/ipv4.c:72:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(show_route_buffer, inet_ntoa(route_dest(route)), 15);
data/openfortivpn-1.15.0/src/ipv4.c:73:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(show_route_buffer, "/");
data/openfortivpn-1.15.0/src/ipv4.c:74:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(show_route_buffer, inet_ntoa(route_mask(route)), 15);
data/openfortivpn-1.15.0/src/ipv4.c:77:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(show_route_buffer, inet_ntoa(route_gtw(route)), 15);
data/openfortivpn-1.15.0/src/ipv4.c:81:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(show_route_buffer, route_iface(route),
data/openfortivpn-1.15.0/src/ipv4.c:82: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).
		        SHOW_ROUTE_BUFFER_SIZE - strlen(show_route_buffer) - 1);
data/openfortivpn-1.15.0/src/ipv4.c:177:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((bytes_read = read(fd, buffer + total_bytes_read,
data/openfortivpn-1.15.0/src/ipv4.c:232: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).
		uint32_t bytes_read = strlen(line);
data/openfortivpn-1.15.0/src/ipv4.c:491: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).
		for (pos = 0; pos < strlen(tmpstr); pos++)
data/openfortivpn-1.15.0/src/ipv4.c:545: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).
		        || (strlen(route_iface(route)) > 0
data/openfortivpn-1.15.0/src/ipv4.c:637:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(cmd, inet_ntoa(route_dest(route)), 15);
data/openfortivpn-1.15.0/src/ipv4.c:640:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(cmd, inet_ntoa(route_mask(route)), 15);
data/openfortivpn-1.15.0/src/ipv4.c:643: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(cmd, " ");
data/openfortivpn-1.15.0/src/ipv4.c:644:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(cmd, inet_ntoa(route_gtw(route)), 15);
data/openfortivpn-1.15.0/src/ipv4.c:647:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(cmd, route_iface(route),
data/openfortivpn-1.15.0/src/ipv4.c:648: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).
		        SHOW_ROUTE_BUFFER_SIZE - strlen(cmd) - 1);
data/openfortivpn-1.15.0/src/ipv4.c:704:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(cmd, inet_ntoa(route_dest(route)), 15);
data/openfortivpn-1.15.0/src/ipv4.c:707:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(cmd, inet_ntoa(route_mask(route)), 15);
data/openfortivpn-1.15.0/src/ipv4.c:710: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(cmd, " ");
data/openfortivpn-1.15.0/src/ipv4.c:711:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(cmd, inet_ntoa(route_gtw(route)), 15);
data/openfortivpn-1.15.0/src/ipv4.c:714:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(cmd, route_iface(route),
data/openfortivpn-1.15.0/src/ipv4.c:715: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).
		        SHOW_ROUTE_BUFFER_SIZE - strlen(cmd) - 1);
data/openfortivpn-1.15.0/src/ipv4.c:740: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).
	route_iface(def_rt) = malloc(strlen(tunnel->ppp_iface) + 2);
data/openfortivpn-1.15.0/src/ipv4.c:758: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).
	route_iface(gtw_rt) = malloc(strlen(tunnel->ppp_iface) + 2);
data/openfortivpn-1.15.0/src/ipv4.c:817:51:  [1] (buffer) strlen:
  Does not handle 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 (*target == NULL || strncmp(*target, trigger, strlen(trigger)))
data/openfortivpn-1.15.0/src/ipv4.c:822: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).
	l0 = strlen(*target);
data/openfortivpn-1.15.0/src/ipv4.c:823: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).
	l1 = strlen(fmt) + strlen(dest) + strlen(mask) + strlen(gw) + 1;
data/openfortivpn-1.15.0/src/ipv4.c:823: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).
	l1 = strlen(fmt) + strlen(dest) + strlen(mask) + strlen(gw) + 1;
data/openfortivpn-1.15.0/src/ipv4.c:823: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).
	l1 = strlen(fmt) + strlen(dest) + strlen(mask) + strlen(gw) + 1;
data/openfortivpn-1.15.0/src/ipv4.c:823:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l1 = strlen(fmt) + strlen(dest) + strlen(mask) + strlen(gw) + 1;
data/openfortivpn-1.15.0/src/ipv4.c:1057: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/openfortivpn-1.15.0/src/ipv4.c:1094: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).
		resolvconf_call_len = strlen(RESOLVCONF_PATH) + 20
data/openfortivpn-1.15.0/src/ipv4.c:1095: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).
		                      + strlen(tunnel->ppp_iface);
data/openfortivpn-1.15.0/src/ipv4.c:1160:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(ns1, inet_ntoa(tunnel->ipv4.ns1_addr), 15);
data/openfortivpn-1.15.0/src/ipv4.c:1167:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(ns2, inet_ntoa(tunnel->ipv4.ns2_addr), 15);
data/openfortivpn-1.15.0/src/ipv4.c:1235: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(ns1, "\n");
data/openfortivpn-1.15.0/src/ipv4.c:1239: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(ns2, "\n");
data/openfortivpn-1.15.0/src/ipv4.c:1243: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(dns_suffix, "\n");
data/openfortivpn-1.15.0/src/ipv4.c:1287: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).
		resolvconf_call_len = strlen(RESOLVCONF_PATH) + 20
data/openfortivpn-1.15.0/src/ipv4.c:1288: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).
		                      + strlen(tunnel->ppp_iface);
data/openfortivpn-1.15.0/src/ipv4.c:1343:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(ns1, inet_ntoa(tunnel->ipv4.ns1_addr), 15);
data/openfortivpn-1.15.0/src/ipv4.c:1348:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(ns2, inet_ntoa(tunnel->ipv4.ns2_addr), 15);
data/openfortivpn-1.15.0/src/log.c:141: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).
	str = malloc(strlen(prefix) + 3 * len + 1 + 1);
data/openfortivpn-1.15.0/src/log.c:148: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).
	pos += strlen(str);
data/openfortivpn-1.15.0/src/log.c:151:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(pos - 1, "\n");
data/openfortivpn-1.15.0/src/main.c:404:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(cli_cfg.realm, optarg, FIELD_SIZE);
data/openfortivpn-1.15.0/src/main.c:438:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(cli_cfg.iface_name, optarg, FIELD_SIZE);
data/openfortivpn-1.15.0/src/main.c:518:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(cli_cfg.username, optarg, FIELD_SIZE);
data/openfortivpn-1.15.0/src/main.c:527:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(cli_cfg.otp, optarg, FIELD_SIZE);
data/openfortivpn-1.15.0/src/main.c:581:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(cfg.gateway_host, host, FIELD_SIZE);
data/openfortivpn-1.15.0/src/openssl_hostname_validation.c:76:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (ASN1_STRING_length(common_name_asn1) != strlen(common_name_str)) {
data/openfortivpn-1.15.0/src/openssl_hostname_validation.c:120: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).
			if (ASN1_STRING_length(current_name->d.dNSName) != strlen(dns_name)) {
data/openfortivpn-1.15.0/src/tunnel.c:481:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(tunnel->ppp_iface, ifa->ifa_name,
data/openfortivpn-1.15.0/src/tunnel.c:582: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 (*env_proxy && env_proxy[strlen(env_proxy) - 1] == '/')
data/openfortivpn-1.15.0/src/tunnel.c:583: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).
			env_proxy[strlen(env_proxy) - 1] = '\0';
data/openfortivpn-1.15.0/src/tunnel.c:600: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 (*proxy_host && proxy_host[strlen(proxy_host) - 1] == '/')
data/openfortivpn-1.15.0/src/tunnel.c:601: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).
			proxy_host[strlen(proxy_host) - 1] = '\0';
data/openfortivpn-1.15.0/src/tunnel.c:651:50:  [1] (buffer) strlen:
  Does not handle 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(handle, request, strlen(request));
data/openfortivpn-1.15.0/src/tunnel.c:653: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(request)) {
data/openfortivpn-1.15.0/src/tunnel.c:671:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ssize_t bytes_read = read(handle, &(request[j]), 1);
data/openfortivpn-1.15.0/src/userinput.c:68: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).
	int escaped_len = strlen(string) + 1;
data/openfortivpn-1.15.0/src/userinput.c:116:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(from, &buf[len], bufsiz - len);
data/openfortivpn-1.15.0/src/userinput.c:286:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(pass, retstr, len);
data/openfortivpn-1.15.0/src/userinput.c:324:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int c = getchar();
data/openfortivpn-1.15.0/src/xml.c:54:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			return &buf[i + 1 + strlen(needle)];

ANALYSIS SUMMARY:

Hits = 235
Lines analyzed = 7494 in approximately 0.22 seconds (34712 lines/second)
Physical Source Lines of Code (SLOC) = 5465
Hits@level = [0]  28 [1] 105 [2]  90 [3]   5 [4]  32 [5]   3
Hits@level+ = [0+] 263 [1+] 235 [2+] 130 [3+]  40 [4+]  35 [5+]   3
Hits/KSLOC@level+ = [0+] 48.1244 [1+] 43.0009 [2+] 23.7877 [3+] 7.3193 [4+] 6.40439 [5+] 0.548948
Dot directories skipped = 2 (--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.