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/connman-1.36/gweb/gionotls.c
Examining data/connman-1.36/gweb/gweb.h
Examining data/connman-1.36/gweb/gweb.c
Examining data/connman-1.36/gweb/gresolv.h
Examining data/connman-1.36/gweb/gresolv.c
Examining data/connman-1.36/gweb/giognutls.h
Examining data/connman-1.36/gweb/giognutls.c
Examining data/connman-1.36/gdhcp/ipv4ll.h
Examining data/connman-1.36/gdhcp/gdhcp.h
Examining data/connman-1.36/gdhcp/server.c
Examining data/connman-1.36/gdhcp/common.h
Examining data/connman-1.36/gdhcp/ipv4ll.c
Examining data/connman-1.36/gdhcp/unaligned.h
Examining data/connman-1.36/gdhcp/client.c
Examining data/connman-1.36/gdhcp/common.c
Examining data/connman-1.36/scripts/openconnect-script.c
Examining data/connman-1.36/scripts/libppp-plugin.c
Examining data/connman-1.36/scripts/openvpn-script.c
Examining data/connman-1.36/gsupplicant/dbus.c
Examining data/connman-1.36/gsupplicant/dbus.h
Examining data/connman-1.36/gsupplicant/gsupplicant.h
Examining data/connman-1.36/gsupplicant/supplicant.c
Examining data/connman-1.36/src/wpad.c
Examining data/connman-1.36/src/firewall-nftables.c
Examining data/connman-1.36/src/dbus.c
Examining data/connman-1.36/src/backtrace.c
Examining data/connman-1.36/src/proxy.c
Examining data/connman-1.36/src/ntp.c
Examining data/connman-1.36/src/6to4.c
Examining data/connman-1.36/src/technology.c
Examining data/connman-1.36/src/connection.c
Examining data/connman-1.36/src/config.c
Examining data/connman-1.36/src/bridge.c
Examining data/connman-1.36/src/timezone.c
Examining data/connman-1.36/src/dns-systemd-resolved.c
Examining data/connman-1.36/src/peer_service.c
Examining data/connman-1.36/src/shared/netlink.c
Examining data/connman-1.36/src/shared/util.h
Examining data/connman-1.36/src/shared/netlink.h
Examining data/connman-1.36/src/shared/util.c
Examining data/connman-1.36/src/resolver.c
Examining data/connman-1.36/src/nostats.c
Examining data/connman-1.36/src/dhcpv6.c
Examining data/connman-1.36/src/notifier.c
Examining data/connman-1.36/src/ipaddress.c
Examining data/connman-1.36/src/provider.c
Examining data/connman-1.36/src/agent.c
Examining data/connman-1.36/src/storage.c
Examining data/connman-1.36/src/machine.c
Examining data/connman-1.36/src/clock.c
Examining data/connman-1.36/src/stats.c
Examining data/connman-1.36/src/plugin.c
Examining data/connman-1.36/src/rfkill.c
Examining data/connman-1.36/src/ipconfig.c
Examining data/connman-1.36/src/device.c
Examining data/connman-1.36/src/tethering.c
Examining data/connman-1.36/src/task.c
Examining data/connman-1.36/src/detect.c
Examining data/connman-1.36/src/inet.c
Examining data/connman-1.36/src/utsname.c
Examining data/connman-1.36/src/main.c
Examining data/connman-1.36/src/util.c
Examining data/connman-1.36/src/timeserver.c
Examining data/connman-1.36/src/connmand-wait-online.c
Examining data/connman-1.36/src/service.c
Examining data/connman-1.36/src/inotify.c
Examining data/connman-1.36/src/firewall-iptables.c
Examining data/connman-1.36/src/session.c
Examining data/connman-1.36/src/iptables.c
Examining data/connman-1.36/src/wispr.c
Examining data/connman-1.36/src/counter.c
Examining data/connman-1.36/src/connman.h
Examining data/connman-1.36/src/dhcp.c
Examining data/connman-1.36/src/dnsproxy.c
Examining data/connman-1.36/src/peer.c
Examining data/connman-1.36/src/manager.c
Examining data/connman-1.36/src/agent-connman.c
Examining data/connman-1.36/src/error.c
Examining data/connman-1.36/src/ippool.c
Examining data/connman-1.36/src/log.c
Examining data/connman-1.36/src/network.c
Examining data/connman-1.36/src/nat.c
Examining data/connman-1.36/src/rtnl.c
Examining data/connman-1.36/src/ipv6pd.c
Examining data/connman-1.36/gdbus/polkit.c
Examining data/connman-1.36/gdbus/gdbus.h
Examining data/connman-1.36/gdbus/object.c
Examining data/connman-1.36/gdbus/mainloop.c
Examining data/connman-1.36/gdbus/watch.c
Examining data/connman-1.36/gdbus/client.c
Examining data/connman-1.36/vpn/vpn-agent.h
Examining data/connman-1.36/vpn/vpn-config.c
Examining data/connman-1.36/vpn/vpn-rtnl.h
Examining data/connman-1.36/vpn/vpn-manager.c
Examining data/connman-1.36/vpn/vpn-agent.c
Examining data/connman-1.36/vpn/vpn-provider.c
Examining data/connman-1.36/vpn/vpn-rtnl.c
Examining data/connman-1.36/vpn/vpn-ipconfig.c
Examining data/connman-1.36/vpn/vpn.h
Examining data/connman-1.36/vpn/vpn-provider.h
Examining data/connman-1.36/vpn/main.c
Examining data/connman-1.36/vpn/plugins/pptp.c
Examining data/connman-1.36/vpn/plugins/vpn.h
Examining data/connman-1.36/vpn/plugins/vpn.c
Examining data/connman-1.36/vpn/plugins/l2tp.c
Examining data/connman-1.36/vpn/plugins/openvpn.c
Examining data/connman-1.36/vpn/plugins/vpnc.c
Examining data/connman-1.36/vpn/plugins/openconnect.c
Examining data/connman-1.36/plugins/polkit.c
Examining data/connman-1.36/plugins/bluetooth.c
Examining data/connman-1.36/plugins/gadget.c
Examining data/connman-1.36/plugins/hh2serial-gps.c
Examining data/connman-1.36/plugins/ethernet.c
Examining data/connman-1.36/plugins/mcc.h
Examining data/connman-1.36/plugins/tist.c
Examining data/connman-1.36/plugins/vpn.c
Examining data/connman-1.36/plugins/ofono.c
Examining data/connman-1.36/plugins/neard.c
Examining data/connman-1.36/plugins/iospm.c
Examining data/connman-1.36/plugins/dundee.c
Examining data/connman-1.36/plugins/pacrunner.c
Examining data/connman-1.36/plugins/loopback.c
Examining data/connman-1.36/plugins/nmcompat.c
Examining data/connman-1.36/plugins/session_policy_local.c
Examining data/connman-1.36/plugins/wifi.c
Examining data/connman-1.36/plugins/iwd.c
Examining data/connman-1.36/client/commands.h
Examining data/connman-1.36/client/vpnconnections.c
Examining data/connman-1.36/client/peers.c
Examining data/connman-1.36/client/dbus_helpers.h
Examining data/connman-1.36/client/commands.c
Examining data/connman-1.36/client/agent.c
Examining data/connman-1.36/client/services.h
Examining data/connman-1.36/client/input.c
Examining data/connman-1.36/client/peers.h
Examining data/connman-1.36/client/main.c
Examining data/connman-1.36/client/services.c
Examining data/connman-1.36/client/vpnconnections.h
Examining data/connman-1.36/client/agent.h
Examining data/connman-1.36/client/dbus_helpers.c
Examining data/connman-1.36/client/input.h
Examining data/connman-1.36/tools/iptables-test.c
Examining data/connman-1.36/tools/stats-tool.c
Examining data/connman-1.36/tools/dnsproxy-test.c
Examining data/connman-1.36/tools/dhcp-server-test.c
Examining data/connman-1.36/tools/dhcp-test.c
Examining data/connman-1.36/tools/supplicant-test.c
Examining data/connman-1.36/tools/netlink-test.c
Examining data/connman-1.36/tools/iptables-unit.c
Examining data/connman-1.36/tools/manager-api.c
Examining data/connman-1.36/tools/session-test.h
Examining data/connman-1.36/tools/wpad-test.c
Examining data/connman-1.36/tools/supplicant.c
Examining data/connman-1.36/tools/supplicant-dbus.c
Examining data/connman-1.36/tools/supplicant-dbus.h
Examining data/connman-1.36/tools/resolv-test.c
Examining data/connman-1.36/tools/dbus-test.c
Examining data/connman-1.36/tools/tap-test.c
Examining data/connman-1.36/tools/private-network-test.c
Examining data/connman-1.36/tools/session-utils.c
Examining data/connman-1.36/tools/addr-test.c
Examining data/connman-1.36/tools/wispr.c
Examining data/connman-1.36/tools/session-test.c
Examining data/connman-1.36/tools/supplicant.h
Examining data/connman-1.36/tools/session-api.c
Examining data/connman-1.36/tools/polkit-test.c
Examining data/connman-1.36/tools/web-test.c
Examining data/connman-1.36/include/dbus.h
Examining data/connman-1.36/include/technology.h
Examining data/connman-1.36/include/service.h
Examining data/connman-1.36/include/network.h
Examining data/connman-1.36/include/machine.h
Examining data/connman-1.36/include/rtnl.h
Examining data/connman-1.36/include/log.h
Examining data/connman-1.36/include/option.h
Examining data/connman-1.36/include/plugin.h
Examining data/connman-1.36/include/notifier.h
Examining data/connman-1.36/include/timeserver.h
Examining data/connman-1.36/include/ipaddress.h
Examining data/connman-1.36/include/setting.h
Examining data/connman-1.36/include/utsname.h
Examining data/connman-1.36/include/storage.h
Examining data/connman-1.36/include/vpn-dbus.h
Examining data/connman-1.36/include/peer.h
Examining data/connman-1.36/include/provision.h
Examining data/connman-1.36/include/device.h
Examining data/connman-1.36/include/inet.h
Examining data/connman-1.36/include/proxy.h
Examining data/connman-1.36/include/inotify.h
Examining data/connman-1.36/include/session.h
Examining data/connman-1.36/include/task.h
Examining data/connman-1.36/include/backtrace.h
Examining data/connman-1.36/include/agent.h
Examining data/connman-1.36/include/ipconfig.h
Examining data/connman-1.36/include/provider.h
Examining data/connman-1.36/include/resolver.h
Examining data/connman-1.36/unit/test-ippool.c

FINAL RESULTS:

data/connman-1.36/client/dbus_helpers.c:120:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stdout, "%"PRIu64, u64);
data/connman-1.36/gdbus/gdbus.h:244:28:  [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.
					__attribute__((format(printf, 4, 5)));
data/connman-1.36/gdbus/gdbus.h:251:28:  [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.
					__attribute__((format(printf, 3, 4)));
data/connman-1.36/gdbus/gdbus.h:264:29:  [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.
					 __attribute__((format(printf, 4, 5)));
data/connman-1.36/gdbus/object.c:1417:3:  [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(str, sizeof(str), format, args);
data/connman-1.36/gdhcp/client.c:171:6:  [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.
	if (vsnprintf(str, sizeof(str), format, ap) > 0)
data/connman-1.36/gdhcp/client.c:1834:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	return sprintf(dest, "%s%u.%u.%u.%u", pre, ip[0], ip[1], ip[2], ip[3]);
data/connman-1.36/gdhcp/server.c:89:6:  [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.
	if (vsnprintf(str, sizeof(str), format, ap) > 0)
data/connman-1.36/gsupplicant/supplicant.c:313:6:  [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.
	if (vsnprintf(str, sizeof(str), format, ap) > 0)
data/connman-1.36/gweb/gresolv.c:136:7:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		if (vsnprintf(str + len, sizeof(str) - len, format, ap) > 0)
data/connman-1.36/gweb/gweb.c:149:7:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		if (vsnprintf(str + len, sizeof(str) - len, format, ap) > 0)
data/connman-1.36/gweb/gweb.h:68:27:  [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.
				__attribute__((format(printf, 2, 3)));
data/connman-1.36/gweb/gweb.h:70:27:  [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.
				__attribute__((format(printf, 2, 3)));
data/connman-1.36/include/log.h:36:27:  [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.
				__attribute__((format(printf, 1, 2)));
data/connman-1.36/include/log.h:38:27:  [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.
				__attribute__((format(printf, 1, 2)));
data/connman-1.36/include/log.h:40:27:  [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.
				__attribute__((format(printf, 1, 2)));
data/connman-1.36/include/log.h:42:27:  [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.
				__attribute__((format(printf, 1, 2)));
data/connman-1.36/plugins/tist.c:133:15:  [4] (buffer) fscanf:
  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.
        err = fscanf(f, "%s", uart_name);
data/connman-1.36/scripts/libppp-plugin.c:132: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(username, user);
data/connman-1.36/scripts/libppp-plugin.c:134: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(password, pass);
data/connman-1.36/scripts/libppp-plugin.c:188:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(dns, buf);
data/connman-1.36/scripts/libppp-plugin.c:199:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(dns, buf);
data/connman-1.36/src/backtrace.c:81: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("addr2line", "-C", "-f", "-e", program_exec, NULL);
data/connman-1.36/src/inet.c:3200:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(ifname, ifa->ifa_name);
data/connman-1.36/src/ipconfig.c:53:28:  [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.
	struct connman_ipaddress *system;
data/connman-1.36/src/ipconfig.c:660:57:  [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.
		connman_ipaddress_copy_address(ipdevice->config_ipv4->system,
data/connman-1.36/src/ipconfig.c:664:57:  [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.
		connman_ipaddress_copy_address(ipdevice->config_ipv6->system,
data/connman-1.36/src/ipconfig.c:785:28:  [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.
				ipdevice->config_ipv6->system) {
data/connman-1.36/src/ipconfig.c:796:28:  [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.
				ipdevice->config_ipv4->system) {
data/connman-1.36/src/ipconfig.c:854:28:  [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.
				ipdevice->config_ipv6->system) {
data/connman-1.36/src/ipconfig.c:864:28:  [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.
				ipdevice->config_ipv4->system) {
data/connman-1.36/src/ipconfig.c:1220:35:  [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.
	connman_ipaddress_free(ipconfig->system);
data/connman-1.36/src/ipconfig.c:1561:50:  [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.
		connman_ipaddress_clear(ipdevice->config_ipv4->system);
data/connman-1.36/src/ipconfig.c:1571:50:  [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.
		connman_ipaddress_clear(ipdevice->config_ipv6->system);
data/connman-1.36/src/ipconfig.c:1633:50:  [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.
		connman_ipaddress_clear(ipdevice->config_ipv4->system);
data/connman-1.36/src/ipconfig.c:1642:50:  [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.
		connman_ipaddress_clear(ipdevice->config_ipv6->system);
data/connman-1.36/src/ipconfig.c:1774:27:  [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.
		append_addr = ipconfig->system;
data/connman-1.36/src/ipconfig.c:1835:27:  [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.
		append_addr = ipconfig->system;
data/connman-1.36/src/shared/util.c:44: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(str, sizeof(str), format, ap);
data/connman-1.36/src/shared/util.h:30:28:  [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.
					__attribute__((format(printf, 3, 4)));
data/connman-1.36/tools/netlink-test.c:84: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(ifname, RTA_DATA(rta));
data/connman-1.36/tools/supplicant-test.c:37:2:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	syslog(LOG_DEBUG, "%s() " fmt, __FUNCTION__ , ## arg); \
data/connman-1.36/tools/supplicant.c:38:2:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	syslog(LOG_DEBUG, "%s() " fmt, __FUNCTION__ , ## arg); \
data/connman-1.36/vpn/plugins/vpn.c:94:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ifr.ifr_name, "%s", data->if_name);
data/connman-1.36/vpn/vpn-ipconfig.c:52:28:  [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.
	struct connman_ipaddress *system;
data/connman-1.36/vpn/vpn-ipconfig.c:258:35:  [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.
	connman_ipaddress_free(ipconfig->system);
data/connman-1.36/gdhcp/common.c:74:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			*val = random();
data/connman-1.36/gdhcp/common.c:82:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		*val = random();
data/connman-1.36/plugins/wifi.c:3178:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CONNMAN_SUPPLICANT_DEBUG"))
data/connman-1.36/scripts/libppp-plugin.c:281:8:  [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.
	bus = getenv("CONNMAN_BUSNAME");
data/connman-1.36/scripts/libppp-plugin.c:282:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	inter = getenv("CONNMAN_INTERFACE");
data/connman-1.36/scripts/libppp-plugin.c:283:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	p = getenv("CONNMAN_PATH");
data/connman-1.36/scripts/openconnect-script.c:86:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	busname = getenv("CONNMAN_BUSNAME");
data/connman-1.36/scripts/openconnect-script.c:87: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.
	interface = getenv("CONNMAN_INTERFACE");
data/connman-1.36/scripts/openconnect-script.c:88:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	path = getenv("CONNMAN_PATH");
data/connman-1.36/scripts/openconnect-script.c:90:11:  [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.
	reason = getenv("reason");
data/connman-1.36/scripts/openvpn-script.c:79:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	busname = getenv("CONNMAN_BUSNAME");
data/connman-1.36/scripts/openvpn-script.c:80: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.
	interface = getenv("CONNMAN_INTERFACE");
data/connman-1.36/scripts/openvpn-script.c:81:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	path = getenv("CONNMAN_PATH");
data/connman-1.36/scripts/openvpn-script.c:83:11:  [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.
	reason = getenv("script_type");
data/connman-1.36/src/6to4.c:317:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if (getenv("CONNMAN_WEB_DEBUG"))
data/connman-1.36/src/dhcp.c:205:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CONNMAN_DHCP_DEBUG")) {
data/connman-1.36/src/dhcp.c:585:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CONNMAN_DHCP_DEBUG")) {
data/connman-1.36/src/dhcpv6.c:395:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CONNMAN_DHCPV6_DEBUG"))
data/connman-1.36/src/dhcpv6.c:1731:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CONNMAN_DHCPV6_DEBUG"))
data/connman-1.36/src/dhcpv6.c:2048:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CONNMAN_DHCPV6_DEBUG"))
data/connman-1.36/src/firewall-nftables.c:1096:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CONNMAN_NFTABLES_DEBUG"))
data/connman-1.36/src/iptables.c:1965:14:  [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.
	while ((c = getopt_long(ctx->argc, ctx->argv,
data/connman-1.36/src/iptables.c:2463:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CONNMAN_IPTABLES_DEBUG"))
data/connman-1.36/src/timeserver.c:446:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CONNMAN_RESOLV_DEBUG"))
data/connman-1.36/src/util.c:52:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		*val = random();
data/connman-1.36/src/util.c:56:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		*val = random();
data/connman-1.36/src/util.c:73:3:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		srandom(time(NULL));
data/connman-1.36/src/util.c:79:4:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			srandom(time(NULL));
data/connman-1.36/src/util.c:81:4:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			srandom(val);
data/connman-1.36/src/wispr.c:882:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CONNMAN_WEB_DEBUG"))
data/connman-1.36/src/wpad.c:164:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CONNMAN_RESOLV_DEBUG"))
data/connman-1.36/tools/dnsproxy-test.c:245:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	return random();
data/connman-1.36/tools/iptables-test.c:51:14:  [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.
	while ((c = getopt_long(argc, argv,
data/connman-1.36/client/commands.c:985:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				int value = atoi(opts[i]);
data/connman-1.36/client/commands.c:2541: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(service->bjr_query, bjr_query, bjr_query_len);
data/connman-1.36/client/commands.c:2545: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(service->bjr_response, bjr_response, bjr_response_len);
data/connman-1.36/client/commands.c:2552: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(service->wfd_ies, wfd_ies, wfd_ies_len);
data/connman-1.36/client/commands.c:2625:29:  [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 int parse_spec_array(char *command, unsigned char spec[1024])
data/connman-1.36/client/commands.c:2625:53:  [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 int parse_spec_array(char *command, unsigned char spec[1024])
data/connman-1.36/client/commands.c:2628: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 b[3] = {};
data/connman-1.36/client/commands.c:2652: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 bjr_query[1024] = {};
data/connman-1.36/client/commands.c:2653: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 bjr_response[1024] = {};
data/connman-1.36/client/commands.c:2654: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 wfd_ies[1024] = {};
data/connman-1.36/gdbus/client.c:677: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 type_as_str[2];
data/connman-1.36/gdbus/client.c:742: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 array_sig[3];
data/connman-1.36/gdbus/client.c:743: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 type_sig[2];
data/connman-1.36/gdbus/object.c:1414: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 str[1024];
data/connman-1.36/gdbus/watch.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 rule[DBUS_MAXIMUM_MATCH_RULE_LENGTH];
data/connman-1.36/gdbus/watch.c:190: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 rule[DBUS_MAXIMUM_MATCH_RULE_LENGTH];
data/connman-1.36/gdhcp/client.c:163: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 str[256];
data/connman-1.36/gdhcp/client.c:186: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(packet->chaddr, dhcp_client->mac_address, 6);
data/connman-1.36/gdhcp/client.c:231: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(*params->ptr_buf, option, len + 2 + 2);
data/connman-1.36/gdhcp/client.c:262:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&buf[4], msg, len);
data/connman-1.36/gdhcp/client.c:634: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(mac_address, ifr.ifr_hwaddr.sa_data, 6);
data/connman-1.36/gdhcp/client.c:750: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(&options[4], &t, 4);
data/connman-1.36/gdhcp/client.c:755: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(&options[8], &t, 4);
data/connman-1.36/gdhcp/client.c:779:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&sub_option[9], &prefix->prefix, 16);
data/connman-1.36/gdhcp/client.c:816: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(iaid, &buf[2], 4);
data/connman-1.36/gdhcp/client.c:854:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&buf[4], &dhcp_client->ia_na, 16);
data/connman-1.36/gdhcp/client.c:872:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&buf[4], &addr, 16);
data/connman-1.36/gdhcp/client.c:928:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&dhcp_client->ia_na, &addr,
data/connman-1.36/gdhcp/client.c:1355: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(dhcp_pkt, &packet.data, bytes - (sizeof(packet.ip) +
data/connman-1.36/gdhcp/client.c:1862:12:  [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.
			dest += sprintf(dest, "%u", val_u16);
data/connman-1.36/gdhcp/client.c:1867:12:  [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.
			dest += sprintf(dest, "%u", val_u32);
data/connman-1.36/gdhcp/client.c:1871:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dest, option, len);
data/connman-1.36/gdhcp/client.c:1935: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 addr_str[INET6_ADDRSTRLEN + 1];
data/connman-1.36/gdhcp/client.c:1941: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(&ia_prefix->prefix, addr, sizeof(struct in6_addr));
data/connman-1.36/gdhcp/client.c:2058: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 addr_str[INET6_ADDRSTRLEN + 1];
data/connman-1.36/gdhcp/client.c:2074:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&dhcp_client->ia_na, &addr,
data/connman-1.36/gdhcp/client.c:2077:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&dhcp_client->ia_ta, &addr,
data/connman-1.36/gdhcp/client.c:2111: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_name[NS_MAXDNAME + 1];
data/connman-1.36/gdhcp/client.c:2271: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 buf[MAX_DHCPV6_PKT_SIZE];
data/connman-1.36/gdhcp/client.c:2464: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(dhcp_client->server_duid, server_id, option_len);
data/connman-1.36/gdhcp/client.c:2518:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dhcp_client->server_duid, server_id, option_len);
data/connman-1.36/gdhcp/client.c:2605:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dhcp_client->server_duid, server_id, option_len);
data/connman-1.36/gdhcp/client.c:3085: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(&storage[OPT_DATA], data, size);
data/connman-1.36/gdhcp/client.c:3111: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(&idbuf[1], dhcp_client->mac_address, maclen);
data/connman-1.36/gdhcp/client.c:3156: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(storage + 2 + 2, option, len);
data/connman-1.36/gdhcp/client.c:3256: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(copy, prefix, sizeof(GDHCPIAPrefix));
data/connman-1.36/gdhcp/common.c:71:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		random_fd = open(URANDOM, O_RDONLY);
data/connman-1.36/gdhcp/common.c:278: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(optionptr + end, addopt, len);
data/connman-1.36/gdhcp/common.c:300: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(optionptr + *pkt_len, addopt, len);
data/connman-1.36/gdhcp/common.c:595: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(dest.sll_addr, dest_arp, 6);
data/connman-1.36/gdhcp/ipv4ll.c:101: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(&p.arp_sha, source_eth, ETH_ALEN);
data/connman-1.36/gdhcp/server.c:81: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 str[256];
data/connman-1.36/gdhcp/server.c:203: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(lease->lease_mac, chaddr, ETH_ALEN);
data/connman-1.36/gdhcp/server.c:448: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(packet->chaddr, client_packet->chaddr,
data/connman-1.36/gsupplicant/gsupplicant.h:163: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 ssid[32];
data/connman-1.36/gsupplicant/supplicant.c:149: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 ssid[32];
data/connman-1.36/gsupplicant/supplicant.c:199: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 bssid[6];
data/connman-1.36/gsupplicant/supplicant.c:200: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 ssid[32];
data/connman-1.36/gsupplicant/supplicant.c:226: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 ssid[32];
data/connman-1.36/gsupplicant/supplicant.c:242: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 device_address[ETH_ALEN];
data/connman-1.36/gsupplicant/supplicant.c:243: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 iface_address[ETH_ALEN];
data/connman-1.36/gsupplicant/supplicant.c:305: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 str[256];
data/connman-1.36/gsupplicant/supplicant.c:439: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(interface->network_info.ssid, ssid->ssid,
data/connman-1.36/gsupplicant/supplicant.c:1613: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(network->ssid, bss->ssid, bss->ssid_len);
data/connman-1.36/gsupplicant/supplicant.c:1793:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(value, ie + len + 4, v_len);
data/connman-1.36/gsupplicant/supplicant.c:1929:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(bss->bssid, addr, addr_len);
data/connman-1.36/gsupplicant/supplicant.c:1939:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(bss->ssid, ssid, ssid_len);
data/connman-1.36/gsupplicant/supplicant.c:2782: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(new_bss, bss, sizeof(struct g_supplicant_bss));
data/connman-1.36/gsupplicant/supplicant.c:2874: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(interface->wps_cred.key, key_val,
data/connman-1.36/gsupplicant/supplicant.c:2887:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(interface->wps_cred.ssid, ssid, ssid_len);
data/connman-1.36/gsupplicant/supplicant.c:2952: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.
	const unsigned char test[ETH_ALEN] = {};
data/connman-1.36/gsupplicant/supplicant.c:3045:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(peer->device_address, dev_addr, len);
data/connman-1.36/gsupplicant/supplicant.c:3092: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(peer->widi_ies, ie, ie_len);
data/connman-1.36/gsupplicant/supplicant.c:3204: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 iface_address[ETH_ALEN];
data/connman-1.36/gsupplicant/supplicant.c:3227:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(data->iface_address, dev_addr, len);
data/connman-1.36/gsupplicant/supplicant.c:3265: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(peer->iface_address, data.iface_address, ETH_ALEN);
data/connman-1.36/gsupplicant/supplicant.c:3691:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static int dev_type_str2bin(const char *type, unsigned char dev_type[8])
data/connman-1.36/gsupplicant/supplicant.c:3691:56:  [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 int dev_type_str2bin(const char *type, unsigned char dev_type[8])
data/connman-1.36/gsupplicant/supplicant.c:3694: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 b[3] = {};
data/connman-1.36/gsupplicant/supplicant.c:3726:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char dev_type[8] = {}, *type;
data/connman-1.36/gsupplicant/supplicant.c:4453:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char tmp[3];
data/connman-1.36/gsupplicant/supplicant.c:4461:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(tmp, ssid->passphrase + (i * 2), 2);
data/connman-1.36/gsupplicant/supplicant.c:4541:13:  [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 data[32];
data/connman-1.36/gsupplicant/supplicant.c:4717: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 *pair_ciphers[4];
data/connman-1.36/gsupplicant/supplicant.c:4718: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_ciphers[5];
data/connman-1.36/gsupplicant/supplicant.c:4776: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 *protos[3];
data/connman-1.36/gweb/gresolv.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 str[256];
data/connman-1.36/gweb/gresolv.c:198: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[NS_IN6ADDRSZ];
data/connman-1.36/gweb/gresolv.c:306: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(v4mapped+12, &sin->sin_addr, NS_INADDRSZ);
data/connman-1.36/gweb/gresolv.c:470: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[INET6_ADDRSTRLEN + 1];
data/connman-1.36/gweb/gresolv.c:645: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(&lookup->results[n].dst.sin.sin_addr,
data/connman-1.36/gweb/gresolv.c:648: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(&lookup->results[n].dst.sin6.sin6_addr,
data/connman-1.36/gweb/gresolv.c:755: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 buf[4096];
data/connman-1.36/gweb/gresolv.c:777: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 portnr[6];
data/connman-1.36/gweb/gresolv.c:785: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(portnr, "%d", nameserver->port);
data/connman-1.36/gweb/gresolv.c:810: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 interface[IF_NAMESIZE];
data/connman-1.36/gweb/gresolv.c:976: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 buf[4096];
data/connman-1.36/gweb/gresolv.c:1027: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 buf[100];
data/connman-1.36/gweb/gweb.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 str[256];
data/connman-1.36/gweb/gweb.c:1021: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 interface[IF_NAMESIZE];
data/connman-1.36/gweb/gweb.c:1390: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(file, O_RDONLY);
data/connman-1.36/plugins/bluetooth.c:361: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 ident[BLUETOOTH_ADDR_LEN * 2 + 1];
data/connman-1.36/plugins/bluetooth.c:755: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 ident[BLUETOOTH_ADDR_LEN * 2 + 1];
data/connman-1.36/plugins/ethernet.c:195: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 group[16] = "cable";
data/connman-1.36/plugins/hh2serial-gps.c:40:13:  [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).
	reg_file = fopen(key, "w");
data/connman-1.36/plugins/iwd.c:532: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 ident[ETH_ALEN * 2 + 1];
data/connman-1.36/plugins/loopback.c:47: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 system_hostname[HOST_NAME_MAX + 1];
data/connman-1.36/plugins/loopback.c: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 name[HOST_NAME_MAX + 1];
data/connman-1.36/plugins/loopback.c:93: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[INET_ADDRSTRLEN];
data/connman-1.36/plugins/loopback.c:142: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(ifr.ifr_name, "lo");
data/connman-1.36/plugins/neard.c:110: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((void *)tlv_msg, (void *)array, length);
data/connman-1.36/plugins/neard.c:295: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((void *)array, (void *)tlv_msg, length*sizeof(uint8_t));
data/connman-1.36/plugins/neard.c:308: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((void *)str, (void *)tlv_msg, length*sizeof(char));
data/connman-1.36/plugins/ofono.c:1718:8:  [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).
	mcc = atoi(mobile_country_code);
data/connman-1.36/plugins/tist.c:54: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 uart_dev_name[32];
data/connman-1.36/plugins/tist.c:108:6:  [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).
	f = fopen(TIST_SYSFS_BAUD, "r");
data/connman-1.36/plugins/tist.c:129:6:  [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).
	f = fopen(TIST_SYSFS_UART, "r");
data/connman-1.36/plugins/tist.c:379:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	uart_fd = open(uart_dev_name, O_RDWR | O_CLOEXEC);
data/connman-1.36/plugins/tist.c:446: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[8];
data/connman-1.36/plugins/tist.c:474:19:  [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).
		install_state = atoi(buf);
data/connman-1.36/plugins/tist.c:498:18:  [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).
	install_state = atoi(buf);
data/connman-1.36/plugins/tist.c:520: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[8];
data/connman-1.36/plugins/tist.c:536: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(TIST_SYSFS_INSTALL, O_RDONLY | O_CLOEXEC);
data/connman-1.36/plugins/tist.c:568:18:  [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).
	install_state = atoi(buf);
data/connman-1.36/plugins/vpn.c:411:16:  [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).
		prefix_len = atoi(netmask);
data/connman-1.36/plugins/vpn.c:1395:30:  [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).
		unsigned char prefix_len = atoi(route->netmask);
data/connman-1.36/plugins/wifi.c:94: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 ssid[32];
data/connman-1.36/plugins/wifi.c:994: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(scan_ssid->ssid, ssid, j);
data/connman-1.36/plugins/wifi.c:1442:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		base = atoi(list_params[1]);
data/connman-1.36/plugins/wifi.c:1443:11:  [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).
		limit = atoi(list_params[2]);
data/connman-1.36/plugins/wifi.c:1446:18:  [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).
		base = limit = atoi(list_params[1]);
data/connman-1.36/plugins/wifi.c:1920: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(scan_ssid->ssid, ssid, ssid_len);
data/connman-1.36/plugins/wifi.c:1937: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(hidden->ssid, ssid, ssid_len);
data/connman-1.36/plugins/wifi.c:2650:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void set_device_type(const char *type, char dev_type[17])
data/connman-1.36/plugins/wifi.c:2650:47:  [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 void set_device_type(const char *type, char dev_type[17])
data/connman-1.36/plugins/wifi.c:2677: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 dev_type[17] = {};
data/connman-1.36/scripts/libppp-plugin.c:143: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[INET_ADDRES_LEN];
data/connman-1.36/scripts/libppp-plugin.c:144:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dns[INET_DNS_LEN];
data/connman-1.36/scripts/libppp-plugin.c:178:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(buf, "255.255.255.255");
data/connman-1.36/src/backtrace.c:93: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 addr[20], buf[PATH_MAX * 2];
data/connman-1.36/src/bridge.c:52:6:  [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).
	f = fopen(forward_delay_path, "r+");
data/connman-1.36/src/config.c:634: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(ssid, service->name, ssid_len);
data/connman-1.36/src/config.c:1572: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 rstr[11];
data/connman-1.36/src/config.c:1660:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(entries[i]->ssid, config->ssid,
data/connman-1.36/src/connman.h:217: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 buf[1024];
data/connman-1.36/src/dhcp.c:343: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).
		mtu = atoi(option->data);
data/connman-1.36/src/dhcpv6.c:767: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 address[INET6_ADDRSTRLEN];
data/connman-1.36/src/dhcpv6.c:829: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 name[IF_NAMESIZE];
data/connman-1.36/src/dhcpv6.c:843:6:  [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).
	f = fopen(path, "r");
data/connman-1.36/src/dhcpv6.c:1876: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 *elem, addr_str[INET6_ADDRSTRLEN];
data/connman-1.36/src/dhcpv6.c:1921:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&prefix->prefix, &addr,
data/connman-1.36/src/dhcpv6.c:1943: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(copy, prefix, sizeof(GDHCPIAPrefix));
data/connman-1.36/src/dns-systemd-resolved.c:87: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 ipv4_bytes[4];
data/connman-1.36/src/dns-systemd-resolved.c:88: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 ipv6_bytes[16];
data/connman-1.36/src/dnsproxy.c:623:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ptr + 1, query, len);
data/connman-1.36/src/dnsproxy.c:629: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(ptr + 1, query, tmp - query);
data/connman-1.36/src/dnsproxy.c:644:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ptr + 1, domain, len);
data/connman-1.36/src/dnsproxy.c:650: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(ptr + 1, domain, tmp - domain);
data/connman-1.36/src/dnsproxy.c:890:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(name + *name_len, p + 1,	label_len + 1);
data/connman-1.36/src/dnsproxy.c:945: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(response + offset, *end, sizeof(struct domain_rr));
data/connman-1.36/src/dnsproxy.c:953: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(response + offset, *end, *rdlen);
data/connman-1.36/src/dnsproxy.c:993: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 name[NS_MAXDNAME + 1];
data/connman-1.36/src/dnsproxy.c:1042:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char rsp[NS_MAXCDNAME];
data/connman-1.36/src/dnsproxy.c:1156:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(response + *response_len, rsp, rsp_len);
data/connman-1.36/src/dnsproxy.c:1328: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 dns_name[NS_MAXDNAME + 1];
data/connman-1.36/src/dnsproxy.c:1393: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 question[NS_MAXDNAME + 1];
data/connman-1.36/src/dnsproxy.c:1394: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 response[NS_MAXDNAME + 1];
data/connman-1.36/src/dnsproxy.c:1463:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ptr, msg, msg_len);
data/connman-1.36/src/dnsproxy.c:1575: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(ptr + 2, msg, offset + 12);
data/connman-1.36/src/dnsproxy.c:1577: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(ptr, msg, offset + 12);
data/connman-1.36/src/dnsproxy.c:1584: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(ptr + offset + 12, question, qlen + 1); /* copy also the \0 */
data/connman-1.36/src/dnsproxy.c:1589: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(ptr + offset + 12 + qlen + 1 + sizeof(struct domain_question),
data/connman-1.36/src/dnsproxy.c:1679:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char alt[1024];
data/connman-1.36/src/dnsproxy.c:1699: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(alt + offset + 2, request + offset + 2, 10);
data/connman-1.36/src/dnsproxy.c:1709: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(alt + offset + altlen,
data/connman-1.36/src/dnsproxy.c:1737: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 name[NS_MAXLABEL];
data/connman-1.36/src/dnsproxy.c:1777: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 name[NS_MAXLABEL]; /* tmp label */
data/connman-1.36/src/dnsproxy.c:1805: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(uptr, ptr, NS_RRFIXEDSZ);
data/connman-1.36/src/dnsproxy.c:1841:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(uptr, ptr, dlen);
data/connman-1.36/src/dnsproxy.c:1875:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(uptr, ptr, 20);
data/connman-1.36/src/dnsproxy.c:1982: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 uncompressed[NS_MAXDNAME], *uptr;
data/connman-1.36/src/dnsproxy.c:2038:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(uptr, ptr, len);
data/connman-1.36/src/dnsproxy.c:2047:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(uptr, ptr, NS_QFIXEDSZ);
data/connman-1.36/src/dnsproxy.c:2115:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(new_reply, reply, header_len);
data/connman-1.36/src/dnsproxy.c:2116:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(new_reply + header_len, uncompressed,
data/connman-1.36/src/dnsproxy.c:2131: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(req->resp, reply, reply_len);
data/connman-1.36/src/dnsproxy.c:2233: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 buf[4096];
data/connman-1.36/src/dnsproxy.c:2389:13:  [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 reply_len_buf[2];
data/connman-1.36/src/dnsproxy.c:2635: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(data->server_addr, rp->ai_addr, rp->ai_addrlen);
data/connman-1.36/src/dnsproxy.c:2924:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char opt_edns0_type[2] = { 0x00, 0x29 };
data/connman-1.36/src/dnsproxy.c:3046: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 query[TCP_MAX_BUF_LEN];
data/connman-1.36/src/dnsproxy.c:3105: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(&req->sa, client_addr, client_addr_len);
data/connman-1.36/src/dnsproxy.c:3186: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(req->request, client->buf, req->request_len);
data/connman-1.36/src/dnsproxy.c:3196: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(req->name, query, sizeof(query));
data/connman-1.36/src/dnsproxy.c:3482: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 buf[768];
data/connman-1.36/src/dnsproxy.c:3483: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 query[512];
data/connman-1.36/src/dnsproxy.c:3527: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(&req->sa, client_addr, *client_addr_len);
data/connman-1.36/src/dnsproxy.c:3553: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(req->request, buf, len);
data/connman-1.36/src/firewall-nftables.c:102: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[4096];
data/connman-1.36/src/firewall-nftables.c:291: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.
                char buf[MNL_SOCKET_BUFFER_SIZE];
data/connman-1.36/src/firewall-nftables.c:399:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[MNL_SOCKET_BUFFER_SIZE];
data/connman-1.36/src/firewall-nftables.c:430:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[MNL_SOCKET_BUFFER_SIZE];
data/connman-1.36/src/firewall-nftables.c:462:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[MNL_SOCKET_BUFFER_SIZE];
data/connman-1.36/src/inet.c:72: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(RTA_DATA(rta), data, data_length);
data/connman-1.36/src/inet.c:309: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(&addr_ifr.ifr_name, &ifr.ifr_name, sizeof(ifr.ifr_name) - 1);
data/connman-1.36/src/inet.c:1167: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("/dev/net/tun", O_RDWR | O_CLOEXEC);
data/connman-1.36/src/inet.c:1179: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(ifr.ifr_name, "tun%d", i);
data/connman-1.36/src/inet.c:1259: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 chdr[CMSG_BUF_LEN];
data/connman-1.36/src/inet.c:1260: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 buf[1540];
data/connman-1.36/src/inet.c:1381: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 cbuf[CMSG_SPACE(sizeof(*pinfo))];
data/connman-1.36/src/inet.c:1401: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(&frame.i.ns.nd_ns_target, buf, sizeof(struct in6_addr));
data/connman-1.36/src/inet.c:1590: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 buf[MSG_SIZE_SEND];
data/connman-1.36/src/inet.c:1591: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 addr_str[INET6_ADDRSTRLEN];
data/connman-1.36/src/inet.c:1640: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(&pinfo->nd_opt_pi_prefix, &prefix->prefix,
data/connman-1.36/src/inet.c:1674: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 chdr[CMSG_BUF_LEN];
data/connman-1.36/src/inet.c:1675: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 buf[1540];
data/connman-1.36/src/inet.c:1738: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 addr_str[INET6_ADDRSTRLEN];
data/connman-1.36/src/inet.c:1806: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 chdr[CMSG_BUF_LEN];
data/connman-1.36/src/inet.c:1807: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 buf[1540];
data/connman-1.36/src/inet.c:1896: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(&data->addr.sin6_addr, addr, sizeof(struct in6_addr));
data/connman-1.36/src/inet.c:1970: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 prefix_str[INET6_ADDRSTRLEN+1], *str;
data/connman-1.36/src/inet.c:2069: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 addr[INET_ADDRSTRLEN];
data/connman-1.36/src/inet.c:2085: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 addr[INET6_ADDRSTRLEN];
data/connman-1.36/src/inet.c:2199: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 buf[4096];
data/connman-1.36/src/inet.c:2367: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(RTA_DATA(rta), &data, 4);
data/connman-1.36/src/inet.c:2399: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 abuf[256];
data/connman-1.36/src/inet.c:2687: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 name[IF_NAMESIZE];
data/connman-1.36/src/inet.c:2711:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(address, &in4->sin_addr,
data/connman-1.36/src/inet.c:2719:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(address, &in6->sin6_addr,
data/connman-1.36/src/inet.c:2802: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 buf[sizeof(struct in6_addr)];
data/connman-1.36/src/inet.c:2910: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 name[IF_NAMESIZE];
data/connman-1.36/src/inet.c:2937:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(address, &in4->sin_addr,
data/connman-1.36/src/inet.c:2948:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(address, &in6->sin6_addr,
data/connman-1.36/src/inet.c:2987: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(netmask, (struct sockaddr_in *)&ifr.ifr_netmask,
data/connman-1.36/src/inet.c:2993: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(address, (struct sockaddr_in *)&ifr.ifr_addr,
data/connman-1.36/src/inet.c:3007: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 addrstr[INET_ADDRSTRLEN];
data/connman-1.36/src/inet.c:3112: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(addrstr, s, len);
data/connman-1.36/src/inet.c:3214: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 ifname[IFNAMSIZ];
data/connman-1.36/src/inotify.c:70: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[sizeof(struct inotify_event) + NAME_MAX + 1];
data/connman-1.36/src/ipaddress.c: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 buf[sizeof(struct in6_addr)];
data/connman-1.36/src/ipconfig.c:192:6:  [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).
	f = fopen(path, "r");
data/connman-1.36/src/ipconfig.c:219:6:  [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).
	f = fopen(path, "r+");
data/connman-1.36/src/ipconfig.c:249:6:  [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).
	f = fopen(path, "r");
data/connman-1.36/src/ipconfig.c:284:6:  [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).
	f = fopen(path, "r+");
data/connman-1.36/src/ipconfig.c:300:6:  [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).
	f = fopen("/proc/sys/net/ipv4/conf/all/rp_filter", "r");
data/connman-1.36/src/ipconfig.c:315:6:  [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).
	f = fopen("/proc/sys/net/ipv4/conf/all/rp_filter", "r+");
data/connman-1.36/src/iptables.c:152: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 error[IPT_TABLE_MAXNAMELEN];
data/connman-1.36/src/iptables.c:720: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(&new_entry->ip, ip, sizeof(struct ipt_ip));
data/connman-1.36/src/iptables.c:730: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(new_entry->elems + match_size, tmp_xt_rm->match->m,
data/connman-1.36/src/iptables.c:739: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(entry_target, xt_t->t, target_size);
data/connman-1.36/src/iptables.c:1173: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(r->hook_entry, table->hook_entry, sizeof(table->hook_entry));
data/connman-1.36/src/iptables.c:1174: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(r->underflow, table->underflow, sizeof(table->underflow));
data/connman-1.36/src/iptables.c:1180: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(entry_index, e->entry, e->entry->next_offset);
data/connman-1.36/src/iptables.c:1190: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 ip_string[INET6_ADDRSTRLEN];
data/connman-1.36/src/iptables.c:1191: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 ip_mask[INET6_ADDRSTRLEN];
data/connman-1.36/src/iptables.c:1441: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(new_entry, entry, entry->next_offset);
data/connman-1.36/src/iptables.c:1528: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(table->underflow, table->info->underflow,
data/connman-1.36/src/iptables.c:1530: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(table->hook_entry, table->info->hook_entry,
data/connman-1.36/src/ipv6pd.c:54:6:  [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).
	f = fopen("/proc/sys/net/ipv6/ip_forward", "r+");
data/connman-1.36/src/log.c:195: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 path[PATH_MAX];
data/connman-1.36/src/nat.c:51:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((f = open("/proc/sys/net/ipv4/ip_forward", O_CLOEXEC | O_RDWR)) < 0)
data/connman-1.36/src/network.c:1977:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(network->wifi.ssid, data, size);
data/connman-1.36/src/ntp.c:176: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 ipaddrstring[INET6_ADDRSTRLEN + 1];
data/connman-1.36/src/ntp.c:410: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 buf[128];
data/connman-1.36/src/ntp.c:417: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 aux[128];
data/connman-1.36/src/ntp.c:508: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(&ntp_data->timeserver_addr, info->ai_addr, info->ai_addrlen);
data/connman-1.36/src/peer.c:58: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 *iface_address[ETH_ALEN];
data/connman-1.36/src/peer.c:285: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 trans[INET_ADDRSTRLEN+1] = {};
data/connman-1.36/src/peer.c:765: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(peer->iface_address, iface_address, ETH_ALEN);
data/connman-1.36/src/resolver.c:136: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(RESOLV_CONF_STATEDIR, O_RDWR | O_CREAT | O_CLOEXEC,
data/connman-1.36/src/resolver.c:142:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(RESOLV_CONF_ETC, O_RDWR | O_CREAT | O_CLOEXEC,
data/connman-1.36/src/rfkill.c:101: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 buf[32];
data/connman-1.36/src/rfkill.c:171: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("/dev/rfkill", O_RDWR | O_CLOEXEC);
data/connman-1.36/src/rfkill.c:199: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("/dev/rfkill", O_RDONLY | O_CLOEXEC);
data/connman-1.36/src/rtnl.c:121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *filename, *name, line[128];
data/connman-1.36/src/rtnl.c:137:6:  [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).
	f = fopen(filename, "re");
data/connman-1.36/src/rtnl.c:377:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(address, RTA_DATA(attr), ETH_ALEN);
data/connman-1.36/src/rtnl.c:389:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(stats, RTA_DATA(attr),
data/connman-1.36/src/rtnl.c:415: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 ident[13], str[18];
data/connman-1.36/src/rtnl.c:603: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 ip_string[INET6_ADDRSTRLEN];
data/connman-1.36/src/rtnl.c:644: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 ip_string[INET6_ADDRSTRLEN];
data/connman-1.36/src/rtnl.c:721: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 dststr[INET6_ADDRSTRLEN], gatewaystr[INET6_ADDRSTRLEN];
data/connman-1.36/src/rtnl.c:778: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 dststr[INET6_ADDRSTRLEN], gatewaystr[INET6_ADDRSTRLEN];
data/connman-1.36/src/rtnl.c:837: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(&eth, RTA_DATA(attr), ETH_ALEN);
data/connman-1.36/src/rtnl.c:1241: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 buf[40];
data/connman-1.36/src/rtnl.c:1434: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 buf[4096];
data/connman-1.36/src/shared/netlink.c:250: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 buffer[4096];
data/connman-1.36/src/shared/netlink.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 control[32];
data/connman-1.36/src/shared/netlink.c:494: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(((void *) nlmsg) + NLMSG_HDRLEN, data, len);
data/connman-1.36/src/shared/util.c:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[78];
data/connman-1.36/src/shared/util.c:54: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 str[68];
data/connman-1.36/src/stats.c:334:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file->fd = TFR(open(file->name, O_RDWR | O_CREAT | O_CLOEXEC, 0644));
data/connman-1.36/src/stats.c:454:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(next, rec, sizeof(struct stats_record));
data/connman-1.36/src/stats.c:775: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(&next->data, data, sizeof(struct connman_stats_data));
data/connman-1.36/src/stats.c:804: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(data, &rec->data,
data/connman-1.36/src/timezone.c:53: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(pathname, O_RDONLY | O_CLOEXEC);
data/connman-1.36/src/timezone.c:125: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(pathname, O_RDONLY | O_CLOEXEC);
data/connman-1.36/src/timezone.c:159: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 *str, pathname[PATH_MAX];
data/connman-1.36/src/timezone.c:240: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(ETC_LOCALTIME, O_RDONLY | O_CLOEXEC);
data/connman-1.36/src/timezone.c:259: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 pathname[PATH_MAX];
data/connman-1.36/src/timezone.c:300: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(pathname, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, 0644);
data/connman-1.36/src/timezone.c:317: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 *map, pathname[PATH_MAX];
data/connman-1.36/src/timezone.c:324: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(pathname, O_RDONLY | O_CLOEXEC);
data/connman-1.36/src/timezone.c:353: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[256];
data/connman-1.36/src/util.c:69:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = open(URANDOM, O_RDONLY);
data/connman-1.36/src/wispr.c:361:24:  [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).
			msg->message_type = atoi(text);
data/connman-1.36/src/wispr.c:364:25:  [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).
			msg->response_code = atoi(text);
data/connman-1.36/tools/dhcp-server-test.c:87:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	index = atoi(argv[1]);
data/connman-1.36/tools/dhcp-test.c:141:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	index = atoi(argv[1]);
data/connman-1.36/tools/dnsproxy-test.c:216: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(sa, rp->ai_addr, *sa_len);
data/connman-1.36/tools/dnsproxy-test.c:267: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 buf[512];
data/connman-1.36/tools/dnsproxy-test.c:297: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 buf[512];
data/connman-1.36/tools/netlink-test.c:67: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 ifname[IF_NAMESIZE];
data/connman-1.36/tools/private-network-test.c:245: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 buf[1500];
data/connman-1.36/tools/stats-tool.c:220:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[30];
data/connman-1.36/tools/stats-tool.c:474:18:  [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).
		file->fd = TFR(open(file->name,
data/connman-1.36/tools/stats-tool.c:562: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(rec, start, sizeof(struct stats_record));
data/connman-1.36/tools/stats-tool.c:647: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(next, rec, sizeof(struct stats_record));
data/connman-1.36/tools/supplicant.c:173: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 bssid[6];
data/connman-1.36/tools/supplicant.c:174: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 ssid[32];
data/connman-1.36/tools/supplicant.c:831:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char wifi_oui[3]      = { 0x00, 0x50, 0xf2 };
data/connman-1.36/tools/supplicant.c:832:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char ieee80211_oui[3] = { 0x00, 0x0f, 0xac };
data/connman-1.36/tools/supplicant.c:943:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(bss->bssid, addr, addr_len);
data/connman-1.36/tools/supplicant.c:953:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(bss->ssid, ssid, ssid_len);
data/connman-1.36/tools/tap-test.c:84: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("/dev/net/tun", O_RDWR | O_CLOEXEC);
data/connman-1.36/tools/tap-test.c:134: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 src[18], dst[18];
data/connman-1.36/tools/tap-test.c:181:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char buf[2048];
data/connman-1.36/tools/wispr.c:245:24:  [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).
			msg->message_type = atoi(text);
data/connman-1.36/tools/wispr.c:248:25:  [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).
			msg->response_code = atoi(text);
data/connman-1.36/tools/wispr.c:338: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[1];
data/connman-1.36/tools/wispr.c:377:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	data->fd = open("/dev/tty", O_RDWR | O_NOCTTY | O_CLOEXEC);
data/connman-1.36/tools/wpad-test.c:101: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 domainname[256];
data/connman-1.36/vpn/plugins/l2tp.c:646:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	l2tp_fd = open(l2tp_name, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR);
data/connman-1.36/vpn/plugins/l2tp.c:656:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	pppd_fd = open(pppd_name, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR);
data/connman-1.36/vpn/plugins/openvpn.c:105:15:  [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).
		entry->id = atoi(key + 15); /* foreign_option_XXX */
data/connman-1.36/vpn/plugins/vpn.c:96: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("/dev/net/tun", O_RDWR | O_CLOEXEC);
data/connman-1.36/vpn/plugins/vpn.c:354: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("/dev/net/tun", O_RDWR | O_CLOEXEC);
data/connman-1.36/vpn/plugins/vpn.c:367: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(ifr.ifr_name, "vpn%d", i);
data/connman-1.36/vpn/vpn-provider.c:336:30:  [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).
			unsigned char prefixlen = atoi(route->netmask);
data/connman-1.36/vpn/vpn-provider.c:674:31:  [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 (family_str[0] == '\0' || atoi(family_str) == 0) {
data/connman-1.36/vpn/vpn-provider.c:1502:30:  [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).
		unsigned char prefix_len = atoi(route->netmask);
data/connman-1.36/vpn/vpn-rtnl.c:239:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(address, RTA_DATA(attr), ETH_ALEN);
data/connman-1.36/vpn/vpn-rtnl.c:251:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(stats, RTA_DATA(attr),
data/connman-1.36/vpn/vpn-rtnl.c:274: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 ident[13], str[18];
data/connman-1.36/vpn/vpn-rtnl.c:432: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 dststr[INET6_ADDRSTRLEN], gatewaystr[INET6_ADDRSTRLEN];
data/connman-1.36/vpn/vpn-rtnl.c:483: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 dststr[INET6_ADDRSTRLEN], gatewaystr[INET6_ADDRSTRLEN];
data/connman-1.36/vpn/vpn-rtnl.c:536: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(&eth, RTA_DATA(attr), ETH_ALEN);
data/connman-1.36/vpn/vpn-rtnl.c:925: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 buf[4096];
data/connman-1.36/client/agent.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).
		len = strlen(input);
data/connman-1.36/client/agent.c:461: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(input);
data/connman-1.36/client/commands.c:2184: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(text);
data/connman-1.36/client/commands.c:2212: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(text);
data/connman-1.36/client/commands.c:2242: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(text);
data/connman-1.36/client/commands.c:2276: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(text);
data/connman-1.36/client/commands.c:2305: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(text);
data/connman-1.36/client/commands.c:2404: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(text);
data/connman-1.36/client/commands.c:2631: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).
	end = strlen(command);
data/connman-1.36/client/commands.c:2828: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).
	textlen = strlen(text);
data/connman-1.36/client/commands.c:2831: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).
		cmdlen = strlen(cmd_table[i].cmd);
data/connman-1.36/client/commands.c:2872: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(text);
data/connman-1.36/gdbus/object.c:704:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!strlen(parent_path))
data/connman-1.36/gdhcp/client.c:1324:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bytes = read(fd, &packet, sizeof(packet));
data/connman-1.36/gdhcp/client.c:1418:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bytes = read(dhcp_client->listener_sockfd, &arp, sizeof(arp));
data/connman-1.36/gdhcp/client.c:2117:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(dns_name, (char *)&value[pos], NS_MAXDNAME);
data/connman-1.36/gdhcp/client.c:3098:60:  [1] (buffer) strlen:
  Does not handle 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 alloc_dhcp_data_option(code, (const uint8_t *)str, strlen(str));
data/connman-1.36/gdhcp/common.c:80:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(random_fd, val, sizeof(uint64_t)) < 0) {
data/connman-1.36/gdhcp/common.c:417:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, packet, sizeof(*packet));
data/connman-1.36/gdhcp/common.c:432:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, buf, buf_len);
data/connman-1.36/gdhcp/common.c:709: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).
				interface, strlen(interface) + 1) < 0) {
data/connman-1.36/gsupplicant/supplicant.c:1402: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).
		ssid_len = strlen(ssid);
data/connman-1.36/gsupplicant/supplicant.c:2231:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (str && strlen(str) > 0) {
data/connman-1.36/gsupplicant/supplicant.c:2356:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (str && strlen(str) > 0 && interface->ifname) {
data/connman-1.36/gsupplicant/supplicant.c:2589: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(old) > 0 && strlen(new) == 0) {
data/connman-1.36/gsupplicant/supplicant.c:2589:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(old) > 0 && strlen(new) == 0) {
data/connman-1.36/gsupplicant/supplicant.c:2599: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(new) > 0 && strlen(old) == 0) {
data/connman-1.36/gsupplicant/supplicant.c:2599:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(new) > 0 && strlen(old) == 0) {
data/connman-1.36/gsupplicant/supplicant.c:3697: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).
	end = strlen(type);
data/connman-1.36/gsupplicant/supplicant.c:4450: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).
		int size = strlen(ssid->passphrase);
data/connman-1.36/gsupplicant/supplicant.c:4501: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(psk) != 64)
data/connman-1.36/gsupplicant/supplicant.c:4537:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (ssid->passphrase && strlen(ssid->passphrase) > 0) {
data/connman-1.36/gsupplicant/supplicant.c:4640:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					ssid->phase2_auth + strlen("EAP-"));
data/connman-1.36/gweb/giognutls.c:399:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	result = read(gnutls_channel->fd, buf, count);
data/connman-1.36/gweb/gweb.c:921:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		count = strlen((char *) ptr);
data/connman-1.36/gweb/gweb.c:1485: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).
	parser->token_len = strlen(parser->token_str);
data/connman-1.36/gweb/gweb.c:1575: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).
				parser->token_len = strlen(parser->end_token);
data/connman-1.36/gweb/gweb.c:1587: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).
				parser->token_len = strlen(parser->begin_token);
data/connman-1.36/plugins/ethernet.c:75:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(vifr.device1, ifname, sizeof(vifr.device1));
data/connman-1.36/plugins/ethernet.c:101:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
data/connman-1.36/plugins/ethernet.c:105:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(vifr.device1, ifname, sizeof(vifr.device1));
data/connman-1.36/plugins/ethernet.c:108:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ifr.ifr_name, vifr.u.device2, sizeof(ifr.ifr_name));
data/connman-1.36/plugins/iwd.c:499:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strlen(iwdn->name));
data/connman-1.36/plugins/loopback.c:53: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 (sethostname(name, strlen(name)) < 0)
data/connman-1.36/plugins/loopback.c:56:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(system_hostname, name, HOST_NAME_MAX);
data/connman-1.36/plugins/loopback.c:70: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(system_hostname) > 0 &&
data/connman-1.36/plugins/loopback.c:83: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(name) > 0 && strcmp(name, "(none)") != 0)
data/connman-1.36/plugins/loopback.c:216:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(hostname);
data/connman-1.36/plugins/loopback.c:239:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(domainname);
data/connman-1.36/plugins/neard.c:123:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ssid_len = strlen(ssid);
data/connman-1.36/plugins/neard.c:127:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		psk_len = strlen(psk);
data/connman-1.36/plugins/ofono.c:1240:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (apn && strlen(apn) > 0)
data/connman-1.36/plugins/ofono.c:1387:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (apn && strlen(apn) > 0) {
data/connman-1.36/plugins/tist.c:149:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	prefix_len = read(fd, buf, 3);
data/connman-1.36/plugins/tist.c:167:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(fd, buf + 3, param_len);
data/connman-1.36/plugins/vpn.c:1052: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).
	int i, len = strlen(ident);
data/connman-1.36/plugins/wifi.c:960:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t hex_ssid_len = strlen(hex_ssid);
data/connman-1.36/plugins/wifi.c:1108: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).
			len = strlen(ssid);
data/connman-1.36/plugins/wifi.c:2155:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!ssid->identity || strlen(ssid->identity) == 0)
data/connman-1.36/plugins/wifi.c:3247: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).
	ap->ssid_len = strlen(ssid);
data/connman-1.36/plugins/wifi.c:3251: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 (!passphrase || strlen(passphrase) == 0) {
data/connman-1.36/scripts/libppp-plugin.c:197: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(dns, " ");
data/connman-1.36/src/6to4.c:80:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(p.name, "tun6to4", sizeof(p.name) - 1);
data/connman-1.36/src/6to4.c:82:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(ifr.ifr_name, "sit0", sizeof(ifr.ifr_name) - 1);
data/connman-1.36/src/6to4.c:114:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(p.name, "tun6to4", sizeof(p.name) - 1);
data/connman-1.36/src/6to4.c:116:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(ifr.ifr_name, "tun6to4", sizeof(ifr.ifr_name) - 1);
data/connman-1.36/src/agent-connman.c:175: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).
			name_len = strlen(name);
data/connman-1.36/src/backtrace.c:50: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).
	pathlen = strlen(program_path);
data/connman-1.36/src/backtrace.c:107:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(infd[0], buf, sizeof(buf) - 1);
data/connman-1.36/src/config.c:551: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(ident) < 1)
data/connman-1.36/src/config.c:602: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).
		size_t hex_ssid_len = strlen(hex_ssid);
data/connman-1.36/src/config.c:629: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).
		ssid_len = strlen(service->name);
data/connman-1.36/src/config.c:895: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(ident); i++)
data/connman-1.36/src/connection.c:348: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).
	if (!gateway || strlen(gateway) == 0)
data/connman-1.36/src/dbus.c:39: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(ident); i++) {
data/connman-1.36/src/dbus.c:60: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).
	size = strlen(value);
data/connman-1.36/src/device.c:1184: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).
	len = prefix ? strlen(prefix) + 18 : 18;
data/connman-1.36/src/dhcpv6.c:209: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).
		size_t hex_duid_len = strlen(hex_duid);
data/connman-1.36/src/dnsproxy.c:365: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((char *)buf) + 1;
data/connman-1.36/src/dnsproxy.c:619: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).
			len = strlen(query);
data/connman-1.36/src/dnsproxy.c:640: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).
			len = strlen(domain);
data/connman-1.36/src/dnsproxy.c:816:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	offset = strlen(question) + 1;
data/connman-1.36/src/dnsproxy.c:968: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).
			int len = strlen((char *)list->data);
data/connman-1.36/src/dnsproxy.c:1006:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(question, (char *) ptr, qlen);
data/connman-1.36/src/dnsproxy.c:1007: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).
	qlen = strlen(question);
data/connman-1.36/src/dnsproxy.c:1332:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(dns_name, entry->key, NS_MAXDNAME);
data/connman-1.36/src/dnsproxy.c:1479: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).
	qlen = strlen(question);
data/connman-1.36/src/dnsproxy.c:1671:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (dot && dot != lookup + strlen(lookup) - 1)
data/connman-1.36/src/dnsproxy.c:1692: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).
		domlen = strlen(domain) + 1;
data/connman-1.36/src/dnsproxy.c:1790:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ulen = strlen(name);
data/connman-1.36/src/dnsproxy.c:1791:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(uptr, name, uncomp_len - (uptr - uncompressed));
data/connman-1.36/src/dnsproxy.c:1899: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).
	int name_len = strlen(name);
data/connman-1.36/src/dnsproxy.c:1908: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).
				int domain_len = strlen(domain);
data/connman-1.36/src/dnsproxy.c:1919: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).
		answers += strlen(answers) + 1;
data/connman-1.36/src/dnsproxy.c:2490:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strlen(interface) + 1) < 0) {
data/connman-1.36/src/dnsproxy.c:2985: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(name, (char *) (ptr + 1), label_len);
data/connman-1.36/src/dnsproxy.c:2986: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(name, ".");
data/connman-1.36/src/dnsproxy.c:3622:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strlen(interface) + 1) < 0) {
data/connman-1.36/src/firewall-iptables.c:84:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return chain_to_index(chain_name + strlen(CHAIN_PREFIX));
data/connman-1.36/src/firewall-nftables.c:579:4:  [1] (buffer) strlen:
  Does not handle 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(interface) + 1);
data/connman-1.36/src/inet.c:206:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifr.ifr_name, name, sizeof(ifr.ifr_name) - 1);
data/connman-1.36/src/inet.c:1050:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifr.ifr_name, bridge, sizeof(ifr.ifr_name) - 1);
data/connman-1.36/src/inet.c:1081:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifr.ifr_name, bridge, sizeof(ifr.ifr_name) - 1);
data/connman-1.36/src/inet.c:1140:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifr.ifr_name, tunnel, sizeof(ifr.ifr_name) - 1);
data/connman-1.36/src/inet.c:3040:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(cmdline);
data/connman-1.36/src/inet.c:3076: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 (!strncmp(*pp, "nfsroot=", strlen("nfsroot=")))
data/connman-1.36/src/inet.c:3097:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (!strncmp(*pp, "bootserver ", strlen("bootserver ")))
data/connman-1.36/src/inet.c:3103:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		s = *pp + strlen("bootserver ");
data/connman-1.36/src/inet.c:3104: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(s);
data/connman-1.36/src/inet.c:3266: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).
			if (strncmp(*pp, "nameserver ", strlen("nameserver ")))
data/connman-1.36/src/inet.c:3270: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).
			s = *pp + strlen("nameserver ");
data/connman-1.36/src/ipconfig.c:2280:5:  [1] (buffer) strlen:
  Does not handle 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(ipconfig->last_dhcp_address) > 0)
data/connman-1.36/src/ipconfig.c:2308:5:  [1] (buffer) strlen:
  Does not handle 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(ipconfig->last_dhcp_address) > 0)
data/connman-1.36/src/iptables.c:1193: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(ip->iniface))
data/connman-1.36/src/iptables.c:1196: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(ip->outiface))
data/connman-1.36/src/iptables.c:1281:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!strlen(match->u.user.name))
data/connman-1.36/src/iptables.c:1992: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).
			len = strlen(optarg);
data/connman-1.36/src/iptables.c:2006: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).
			len = strlen(optarg);
data/connman-1.36/src/main.c:465:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	result = read(fd, &si, sizeof(si));
data/connman-1.36/src/main.c:731:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(0077);
data/connman-1.36/src/manager.c:413: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).
			*spec_len = strlen((const char *)*spec)+1;
data/connman-1.36/src/nat.c:55:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(f, &value, sizeof(value)) < 0)
data/connman-1.36/src/peer.c:556:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(wpspin);
data/connman-1.36/src/resolver.c:134:14:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	old_umask = umask(022);
data/connman-1.36/src/resolver.c:166:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(old_umask);
data/connman-1.36/src/rtnl.c:107:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(wrq.ifr_name, ifname, sizeof(wrq.ifr_name) - 1);
data/connman-1.36/src/rtnl.c:1201:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		optc += strlen((char *)optc) + 1;
data/connman-1.36/src/service.c:489: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).
				size_t hex_ssid_len = strlen(hex_ssid);
data/connman-1.36/src/service.c:707:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (service->passphrase && strlen(service->passphrase) > 0)
data/connman-1.36/src/service.c:777:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (service->pac && strlen(service->pac) > 0)
data/connman-1.36/src/service.c:795: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 (service->config_file && strlen(service->config_file) > 0)
data/connman-1.36/src/service.c:800:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strlen(service->config_entry) > 0)
data/connman-1.36/src/service.c:3049:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(passphrase);
data/connman-1.36/src/service.c:3308:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (url && strlen(url) > 0)
data/connman-1.36/src/service.c:3500:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (gw && strlen(gw))
data/connman-1.36/src/service.c:3540:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (gw && strlen(gw))
data/connman-1.36/src/service.c:5423:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(wpspin);
data/connman-1.36/src/storage.c:235: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).
		str[strlen(str) - 1] = '\0';
data/connman-1.36/src/technology.c:924:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(str) < 1 || strlen(str) > 32)
data/connman-1.36/src/technology.c:924:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(str) < 1 || strlen(str) > 32)
data/connman-1.36/src/timezone.c:70:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	keylen = strlen(key);
data/connman-1.36/src/timezone.c:164:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(pathname, basepath, sizeof(pathname) - 1);
data/connman-1.36/src/timezone.c:210:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(pathname, d->d_name, sizeof(pathname));
data/connman-1.36/src/util.c:48:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = read(f, val, sizeof(uint64_t));
data/connman-1.36/src/wispr.c:408:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					str, strlen(str), NULL);
data/connman-1.36/src/wpad.c:98: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(hostname) < 6)
data/connman-1.36/src/wpad.c:102:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!ptr || strlen(ptr) < 2)
data/connman-1.36/tools/dnsproxy-test.c:184:4:  [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(1000);
data/connman-1.36/tools/dnsproxy-test.c:270:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(sk, buf, sizeof(buf));
data/connman-1.36/tools/private-network-test.c:219:2:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	getchar();
data/connman-1.36/tools/private-network-test.c:234:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		getchar();
data/connman-1.36/tools/private-network-test.c:259:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			len = read(fd, buf, sizeof(buf));
data/connman-1.36/tools/supplicant.c:620: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).
		ssid_len = strlen(ssid);
data/connman-1.36/tools/supplicant.c:1335: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(old) > 0 && strlen(new) == 0) {
data/connman-1.36/tools/supplicant.c:1335:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(old) > 0 && strlen(new) == 0) {
data/connman-1.36/tools/supplicant.c:1342: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(new) > 0 && strlen(old) == 0) {
data/connman-1.36/tools/supplicant.c:1342:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(new) > 0 && strlen(old) == 0) {
data/connman-1.36/tools/tap-test.c:52:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name) - 1);
data/connman-1.36/tools/tap-test.c:92:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name) - 1);
data/connman-1.36/tools/tap-test.c:190:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(fd, buf, sizeof(buf));
data/connman-1.36/tools/wispr.c:290:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	result = g_markup_parse_context_parse(context, str, strlen(str), NULL);
data/connman-1.36/tools/wispr.c:341:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(data->fd, buf, 1);
data/connman-1.36/tools/wispr.c:405: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).
	len = write(data->fd, label, strlen(label));
data/connman-1.36/tools/wpad-test.c:66:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!ptr || strlen(ptr) < 2) {
data/connman-1.36/tools/wpad-test.c:112: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(domainname) == 0) {
data/connman-1.36/vpn/main.c:124:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	result = read(fd, &si, sizeof(si));
data/connman-1.36/vpn/main.c:292:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(0077);
data/connman-1.36/vpn/plugins/l2tp.c:141:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!user || strlen(user) == 0 ||
data/connman-1.36/vpn/plugins/l2tp.c:142: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).
				!passwd || strlen(passwd) == 0)
data/connman-1.36/vpn/plugins/l2tp.c:335: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).
			ret = full_write(fd, buf, strlen(buf));
data/connman-1.36/vpn/plugins/l2tp.c:355: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).
		ret = full_write(fd, buf, strlen(buf));
data/connman-1.36/vpn/plugins/l2tp.c:370: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).
		ret = full_write(fd, buf, strlen(buf));
data/connman-1.36/vpn/plugins/openconnect.c:266:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(vpncookie);
data/connman-1.36/vpn/plugins/openconnect.c:572: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).
		start = key + strlen("CISCO_SPLIT_INC_");
data/connman-1.36/vpn/plugins/openconnect.c:575: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).
		start = key + strlen("CISCO_IPV6_SPLIT_INC_");
data/connman-1.36/vpn/plugins/openvpn.c:480: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).
		start = key + strlen("route_network_");
data/connman-1.36/vpn/plugins/openvpn.c:483: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).
		start = key + strlen("route_netmask_");
data/connman-1.36/vpn/plugins/openvpn.c:486: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).
		start = key + strlen("route_gateway_");
data/connman-1.36/vpn/plugins/pptp.c:104:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!user || strlen(user) == 0 ||
data/connman-1.36/vpn/plugins/pptp.c:105: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).
				!passwd || strlen(passwd) == 0)
data/connman-1.36/vpn/plugins/vpnc.c:186: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).
		ret = full_write(fd, buf, strlen(buf));
data/connman-1.36/vpn/plugins/vpnc.c:204: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).
			ret = full_write(fd, buf, strlen(buf));
data/connman-1.36/vpn/vpn-config.c:212: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(ident) < 1)
data/connman-1.36/vpn/vpn-config.c:402: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(ident); i++)
data/connman-1.36/vpn/vpn-provider.c:901: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 (provider->config_file && strlen(provider->config_file) > 0)
data/connman-1.36/vpn/vpn-provider.c:906:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strlen(provider->config_entry) > 0)
data/connman-1.36/vpn/vpn-provider.c:1719: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).
	int i, len = strlen(ident);

ANALYSIS SUMMARY:

Hits = 614
Lines analyzed = 122139 in approximately 2.24 seconds (54627 lines/second)
Physical Source Lines of Code (SLOC) = 88467
Hits@level = [0] 392 [1] 187 [2] 348 [3]  33 [4]  46 [5]   0
Hits@level+ = [0+] 1006 [1+] 614 [2+] 427 [3+]  79 [4+]  46 [5+]   0
Hits/KSLOC@level+ = [0+] 11.3715 [1+] 6.94044 [2+] 4.82666 [3+] 0.892988 [4+] 0.519968 [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.