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/keepalived-2.1.5/genhash/http.c
Examining data/keepalived-2.1.5/genhash/include/hash.h
Examining data/keepalived-2.1.5/genhash/include/http.h
Examining data/keepalived-2.1.5/genhash/include/layer4.h
Examining data/keepalived-2.1.5/genhash/include/main.h
Examining data/keepalived-2.1.5/genhash/include/sock.h
Examining data/keepalived-2.1.5/genhash/include/ssl.h
Examining data/keepalived-2.1.5/genhash/layer4.c
Examining data/keepalived-2.1.5/genhash/main.c
Examining data/keepalived-2.1.5/genhash/sock.c
Examining data/keepalived-2.1.5/genhash/ssl.c
Examining data/keepalived-2.1.5/keepalived/bfd/bfd.c
Examining data/keepalived-2.1.5/keepalived/bfd/bfd_daemon.c
Examining data/keepalived-2.1.5/keepalived/bfd/bfd_data.c
Examining data/keepalived-2.1.5/keepalived/bfd/bfd_event.c
Examining data/keepalived-2.1.5/keepalived/bfd/bfd_parser.c
Examining data/keepalived-2.1.5/keepalived/bfd/bfd_scheduler.c
Examining data/keepalived-2.1.5/keepalived/check/check_api.c
Examining data/keepalived-2.1.5/keepalived/check/check_bfd.c
Examining data/keepalived-2.1.5/keepalived/check/check_daemon.c
Examining data/keepalived-2.1.5/keepalived/check/check_data.c
Examining data/keepalived-2.1.5/keepalived/check/check_dns.c
Examining data/keepalived-2.1.5/keepalived/check/check_file.c
Examining data/keepalived-2.1.5/keepalived/check/check_http.c
Examining data/keepalived-2.1.5/keepalived/check/check_misc.c
Examining data/keepalived-2.1.5/keepalived/check/check_parser.c
Examining data/keepalived-2.1.5/keepalived/check/check_ping.c
Examining data/keepalived-2.1.5/keepalived/check/check_print.c
Examining data/keepalived-2.1.5/keepalived/check/check_smtp.c
Examining data/keepalived-2.1.5/keepalived/check/check_snmp.c
Examining data/keepalived-2.1.5/keepalived/check/check_ssl.c
Examining data/keepalived-2.1.5/keepalived/check/check_tcp.c
Examining data/keepalived-2.1.5/keepalived/check/check_udp.c
Examining data/keepalived-2.1.5/keepalived/check/ipvswrapper.c
Examining data/keepalived-2.1.5/keepalived/check/ipwrapper.c
Examining data/keepalived-2.1.5/keepalived/check/libipvs.c
Examining data/keepalived-2.1.5/keepalived/core/daemon.c
Examining data/keepalived-2.1.5/keepalived/core/global_data.c
Examining data/keepalived-2.1.5/keepalived/core/global_parser.c
Examining data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c
Examining data/keepalived-2.1.5/keepalived/core/layer4.c
Examining data/keepalived-2.1.5/keepalived/core/libnl_link.c
Examining data/keepalived-2.1.5/keepalived/core/main.c
Examining data/keepalived-2.1.5/keepalived/core/namespaces.c
Examining data/keepalived-2.1.5/keepalived/core/pidfile.c
Examining data/keepalived-2.1.5/keepalived/core/reload_monitor.c
Examining data/keepalived-2.1.5/keepalived/core/smtp.c
Examining data/keepalived-2.1.5/keepalived/core/snmp.c
Examining data/keepalived-2.1.5/keepalived/core/track_process.c
Examining data/keepalived-2.1.5/keepalived/include/bfd.h
Examining data/keepalived-2.1.5/keepalived/include/bfd_daemon.h
Examining data/keepalived-2.1.5/keepalived/include/bfd_data.h
Examining data/keepalived-2.1.5/keepalived/include/bfd_event.h
Examining data/keepalived-2.1.5/keepalived/include/bfd_parser.h
Examining data/keepalived-2.1.5/keepalived/include/bfd_scheduler.h
Examining data/keepalived-2.1.5/keepalived/include/check_api.h
Examining data/keepalived-2.1.5/keepalived/include/check_bfd.h
Examining data/keepalived-2.1.5/keepalived/include/check_daemon.h
Examining data/keepalived-2.1.5/keepalived/include/check_data.h
Examining data/keepalived-2.1.5/keepalived/include/check_dns.h
Examining data/keepalived-2.1.5/keepalived/include/check_file.h
Examining data/keepalived-2.1.5/keepalived/include/check_http.h
Examining data/keepalived-2.1.5/keepalived/include/check_misc.h
Examining data/keepalived-2.1.5/keepalived/include/check_parser.h
Examining data/keepalived-2.1.5/keepalived/include/check_ping.h
Examining data/keepalived-2.1.5/keepalived/include/check_print.h
Examining data/keepalived-2.1.5/keepalived/include/check_smtp.h
Examining data/keepalived-2.1.5/keepalived/include/check_snmp.h
Examining data/keepalived-2.1.5/keepalived/include/check_ssl.h
Examining data/keepalived-2.1.5/keepalived/include/check_tcp.h
Examining data/keepalived-2.1.5/keepalived/include/check_udp.h
Examining data/keepalived-2.1.5/keepalived/include/daemon.h
Examining data/keepalived-2.1.5/keepalived/include/global_data.h
Examining data/keepalived-2.1.5/keepalived/include/global_parser.h
Examining data/keepalived-2.1.5/keepalived/include/ip_vs.h
Examining data/keepalived-2.1.5/keepalived/include/ipvswrapper.h
Examining data/keepalived-2.1.5/keepalived/include/ipwrapper.h
Examining data/keepalived-2.1.5/keepalived/include/keepalived_netlink.h
Examining data/keepalived-2.1.5/keepalived/include/layer4.h
Examining data/keepalived-2.1.5/keepalived/include/libipvs.h
Examining data/keepalived-2.1.5/keepalived/include/libnl_link.h
Examining data/keepalived-2.1.5/keepalived/include/main.h
Examining data/keepalived-2.1.5/keepalived/include/namespaces.h
Examining data/keepalived-2.1.5/keepalived/include/pidfile.h
Examining data/keepalived-2.1.5/keepalived/include/reload_monitor.h
Examining data/keepalived-2.1.5/keepalived/include/smtp.h
Examining data/keepalived-2.1.5/keepalived/include/snmp.h
Examining data/keepalived-2.1.5/keepalived/include/track_file.h
Examining data/keepalived-2.1.5/keepalived/include/track_process.h
Examining data/keepalived-2.1.5/keepalived/include/tracker.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_arp.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_daemon.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_data.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_dbus.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_firewall.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_if.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_if_config.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_ip_rule_route_parser.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_ipaddress.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_iproute.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_iprule.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_ipsecah.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_ipset.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_iptables.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_iptables_calls.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_json.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_ndisc.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_nftables.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_notify.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_parser.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_print.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_scheduler.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_snmp.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_sock.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_static_track.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_sync.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_track.h
Examining data/keepalived-2.1.5/keepalived/include/vrrp_vmac.h
Examining data/keepalived-2.1.5/keepalived/main.c
Examining data/keepalived-2.1.5/keepalived/trackers/track_file.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_arp.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_daemon.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_data.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_dbus.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_firewall.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_if.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_if_config.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_ip_rule_route_parser.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipaddress.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_iproute.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_iprule.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipsecah.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipset.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_iptables.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_iptables_calls.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_json.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_ndisc.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_nftables.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_notify.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_parser.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_print.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_scheduler.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_static_track.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_sync.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_track.c
Examining data/keepalived-2.1.5/keepalived/vrrp/vrrp_vmac.c
Examining data/keepalived-2.1.5/lib/assert.c
Examining data/keepalived-2.1.5/lib/assert_debug.h
Examining data/keepalived-2.1.5/lib/bitops.h
Examining data/keepalived-2.1.5/lib/container.h
Examining data/keepalived-2.1.5/lib/git-commit.h
Examining data/keepalived-2.1.5/lib/html.c
Examining data/keepalived-2.1.5/lib/html.h
Examining data/keepalived-2.1.5/lib/json_writer.c
Examining data/keepalived-2.1.5/lib/json_writer.h
Examining data/keepalived-2.1.5/lib/keepalived_magic.h
Examining data/keepalived-2.1.5/lib/list_head.c
Examining data/keepalived-2.1.5/lib/list_head.h
Examining data/keepalived-2.1.5/lib/logger.c
Examining data/keepalived-2.1.5/lib/logger.h
Examining data/keepalived-2.1.5/lib/memory.c
Examining data/keepalived-2.1.5/lib/memory.h
Examining data/keepalived-2.1.5/lib/notify.c
Examining data/keepalived-2.1.5/lib/notify.h
Examining data/keepalived-2.1.5/lib/old_socket.c
Examining data/keepalived-2.1.5/lib/old_socket.h
Examining data/keepalived-2.1.5/lib/parser.c
Examining data/keepalived-2.1.5/lib/parser.h
Examining data/keepalived-2.1.5/lib/process.c
Examining data/keepalived-2.1.5/lib/process.h
Examining data/keepalived-2.1.5/lib/rbtree.c
Examining data/keepalived-2.1.5/lib/rbtree.h
Examining data/keepalived-2.1.5/lib/rbtree_augmented.h
Examining data/keepalived-2.1.5/lib/rttables.c
Examining data/keepalived-2.1.5/lib/rttables.h
Examining data/keepalived-2.1.5/lib/scheduler.c
Examining data/keepalived-2.1.5/lib/scheduler.h
Examining data/keepalived-2.1.5/lib/signals.c
Examining data/keepalived-2.1.5/lib/signals.h
Examining data/keepalived-2.1.5/lib/timer.c
Examining data/keepalived-2.1.5/lib/timer.h
Examining data/keepalived-2.1.5/lib/utils.c
Examining data/keepalived-2.1.5/lib/utils.h
Examining data/keepalived-2.1.5/lib/vector.c
Examining data/keepalived-2.1.5/lib/vector.h
Examining data/keepalived-2.1.5/lib/warnings.h
Examining data/keepalived-2.1.5/debian/include/linux/linux/ip_vs.h

FINAL RESULTS:

data/keepalived-2.1.5/lib/notify.c:238:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
			if (chown(fifo->name, fifo->uid, fifo->gid))
data/keepalived-2.1.5/genhash/http.c:155:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(HTML_HASH);
data/keepalived-2.1.5/genhash/http.c:158:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(HTML_HASH_FINAL);
data/keepalived-2.1.5/genhash/http.c:180:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(HTTP_HEADER_ASCII);
data/keepalived-2.1.5/genhash/http.c:222:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(HTTP_HEADER_HEXA);
data/keepalived-2.1.5/genhash/http.c:233:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
					printf(HTML_HEADER_HEXA);
data/keepalived-2.1.5/genhash/http.c:355:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(str_request, GET_BUFFER_LENGTH,
data/keepalived-2.1.5/keepalived/bfd/bfd_data.c:71: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(bfd->iname, name);
data/keepalived-2.1.5/keepalived/bfd/bfd_event.c:64: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(evt.iname, bfd->iname);
data/keepalived-2.1.5/keepalived/bfd/bfd_parser.c:333: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(src_addr, inet_sockaddrtos(&bfd->src_addr));
data/keepalived-2.1.5/keepalived/check/check_api.c:336: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(co->bind_if, strvec_slot(strvec, 1));
data/keepalived-2.1.5/keepalived/check/check_data.c:883:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(ret, sizeof(ret),
data/keepalived-2.1.5/keepalived/check/check_data.c:1023: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(vs->sched, IPVS_DEF_SCHED);
data/keepalived-2.1.5/keepalived/check/check_dns.c:88:37:  [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.
static void __attribute__ ((format (printf, 3, 4)))
data/keepalived-2.1.5/keepalived/check/check_dns.c:97: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(buf, sizeof (buf), fmt, args);
data/keepalived-2.1.5/keepalived/check/check_dns.c:103:36:  [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.
static int __attribute__ ((format (printf, 3, 4)))
data/keepalived-2.1.5/keepalived/check/check_dns.c:130:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
				len = vsnprintf(buf, sizeof (buf), fmt, args);
data/keepalived-2.1.5/keepalived/check/check_http.c:271:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy(op, regex_options[i].option);
data/keepalived-2.1.5/keepalived/check/check_http.c:1556:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(str_request, GET_BUFFER_LENGTH, (addr->ss_family == AF_INET6 && !vhost) ? request_template_ipv6 : request_template,
data/keepalived-2.1.5/keepalived/check/check_parser.c:334: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(vs->sched, str);
data/keepalived-2.1.5/keepalived/check/check_smtp.c:324:36:  [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.
static int __attribute__ ((format (printf, 2, 3)))
data/keepalived-2.1.5/keepalived/check/check_smtp.c:379: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.
					vsnprintf(smtp_buff, sizeof(smtp_buff), error_buff, varg_list);
data/keepalived-2.1.5/keepalived/check/check_ssl.c:60: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(buf, ssl->password);
data/keepalived-2.1.5/keepalived/check/ipvswrapper.c:444: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(srule->pe_name, vs->pe_name);
data/keepalived-2.1.5/keepalived/check/libipvs.c:882: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(dmk.mcast_ifn, dm->mcast_ifn);
data/keepalived-2.1.5/keepalived/core/global_parser.c:1202: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(id_str, type);
data/keepalived-2.1.5/keepalived/core/global_parser.c:1940: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(str, strvec_slot(strvec, 1));
data/keepalived-2.1.5/keepalived/core/main.c:358: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(ident, name);
data/keepalived-2.1.5/keepalived/core/main.c:362:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(ident, global_data->network_namespace);
data/keepalived-2.1.5/keepalived/core/main.c:367:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(ident, global_data->instance_name);
data/keepalived-2.1.5/keepalived/core/main.c:391: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(name, start);
data/keepalived-2.1.5/keepalived/core/main.c:394:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(name, instance);
data/keepalived-2.1.5/keepalived/core/main.c:397:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(name, extn);
data/keepalived-2.1.5/keepalived/core/namespaces.c:232: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(mount_dirname, KEEPALIVED_PID_DIR);
data/keepalived-2.1.5/keepalived/core/namespaces.c:233:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(mount_dirname, net_namespace);
data/keepalived-2.1.5/keepalived/core/namespaces.c:280: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(netns_path, netns_dir);
data/keepalived-2.1.5/keepalived/core/namespaces.c:281:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(netns_path, net_namespace);
data/keepalived-2.1.5/keepalived/core/smtp.c:326:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(buffer, SMTP_BUFFER_MAX, SMTP_HELO_CMD, (global_data->smtp_helo_name) ? global_data->smtp_helo_name : "localhost");
data/keepalived-2.1.5/keepalived/core/smtp.c:357:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(buffer, SMTP_BUFFER_MAX, SMTP_MAIL_CMD, global_data->email_from);
data/keepalived-2.1.5/keepalived/core/smtp.c:397:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(buffer, SMTP_BUFFER_MAX, SMTP_RCPT_CMD, email->addr);
data/keepalived-2.1.5/keepalived/core/smtp.c:467:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(buffer, SMTP_BUFFER_MAX, SMTP_HEADERS_CMD,
data/keepalived-2.1.5/keepalived/core/smtp.c:475:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(buffer, SMTP_BUFFER_MAX, SMTP_BODY_CMD, smtp->body);
data/keepalived-2.1.5/keepalived/core/smtp.c:626: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(email_to_addrs, email->addr);
data/keepalived-2.1.5/keepalived/trackers/track_file.c:829: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(new_path, resolved_path);
data/keepalived-2.1.5/keepalived/trackers/track_file.c:831:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(new_path, dir_end ? dir_end + 1 : tfile->file_path);
data/keepalived-2.1.5/keepalived/vrrp/vrrp.c:3092: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(vrrp->vmac_ifname, ifp->ifname);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_dbus.c:319: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(interface, dirs[path_length-3]);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_firewall.c:63:7:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	fp = popen("iptables -V", "r");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_firewall.c:89:8:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		fp = popen("iptables-legacy -V", "r");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_if.c:356: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(ifr.ifr_name, ifp->ifname);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_if_config.c:92:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(dest, prefix);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_if_config.c:94:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(dest, iface);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_if_config.c:96:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(dest, parameter);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipaddress.c:299:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			buf_p += snprintf(buf_p, buf_end - buf_p, " preferred_lft %" PRIu32, ip_addr->preferred_lft);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iproute.c:608:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		op += snprintf(op, (size_t)(buf_end - op), " id %" PRIu64, encap->ip.id);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iproute.c:627:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	return (size_t)snprintf(op, len, " encap ila %" PRIu64, encap->ila.locator);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iproute.c:640:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		op += snprintf(op, (size_t)(buf_end - op), " id %" PRIu64, encap->ip6.id);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iproute.c:864:18:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			op += (size_t)snprintf(op, (size_t)(buf_end - op), "%" PRIu32, nh->realms & 0xFFFF);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iprule.c:388:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		op += snprintf(op, (size_t)(buf_end - op), " suppress_prefixlen %" PRIi32, rule->suppress_prefix_len);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iprule.c:393:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		op += snprintf(op, (size_t)(buf_end - op), " suppress_ifgroup %" PRIu32, rule->suppress_group);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iprule.c:398:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		op += snprintf(op, (size_t)(buf_end - op), " tunnel-id %" PRIu64, rule->tunnel_id);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iprule.c:403:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		op += snprintf(op, (size_t)(buf_end - op), " uidrange %" PRIu32 "-%" PRIu32, rule->uid_range.start, rule->uid_range.end);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iprule.c:695:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			if (sscanf(strvec_slot(strvec, ++i), "%" PRIu32 "-%" PRIu32, &range_start, &range_end) != 2) {
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipset.c:105:24:  [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/keepalived-2.1.5/keepalived/vrrp/vrrp_ipset.c:108:24:  [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/keepalived-2.1.5/keepalived/vrrp/vrrp_iptables_calls.c:128: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(vianame, iface);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_nftables.c:2033:7:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	fp = popen("nft -v 2>/dev/null", "r");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_parser.c:471: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(vrrp->vmac_ifname, name);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_parser.c:590: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(vrrp->vmac_ifname, strvec_slot(strvec, i));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_parser.c:1412: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(p, strvec_slot(strvec, i));
data/keepalived-2.1.5/lib/json_writer.c:164:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(self->out, fmt, ap);
data/keepalived-2.1.5/lib/json_writer.c:174:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(self->out, fmt, ap);
data/keepalived-2.1.5/lib/json_writer.h:39:26:  [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, 0)));
data/keepalived-2.1.5/lib/json_writer.h:41:26:  [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/keepalived-2.1.5/lib/logger.c:151: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(buf, sizeof(buf), format, args);
data/keepalived-2.1.5/lib/logger.c:164: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(buf, sizeof(buf), format, args1);
data/keepalived-2.1.5/lib/logger.c:249:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(fp, format, args);
data/keepalived-2.1.5/lib/logger.h:48:26:  [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, 0)));
data/keepalived-2.1.5/lib/logger.h:50:26:  [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/keepalived-2.1.5/lib/logger.h:52:26:  [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/keepalived-2.1.5/lib/memory.c:298:9:  [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).
	return strcpy(str_p, str);
data/keepalived-2.1.5/lib/memory.c:730:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(log_op, format, args);
data/keepalived-2.1.5/lib/memory.h:81:33:  [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/keepalived-2.1.5/lib/notify.c:140: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(str_p, script->args[i]);
data/keepalived-2.1.5/lib/notify.c:210:12:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		retval = system(scr = cmd_str(script));
data/keepalived-2.1.5/lib/notify.c:328:12:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		retval = system(str = cmd_str(script));
data/keepalived-2.1.5/lib/notify.c:523: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(words, new_path);
data/keepalived-2.1.5/lib/notify.c:529: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(words, *wp);
data/keepalived-2.1.5/lib/notify.c:892: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(new_path + (new_file_part + 1 - real_file_path), orig_file_part + 1);
data/keepalived-2.1.5/lib/notify.c:1128: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(words, strvec_slot(strvec_qe, i));
data/keepalived-2.1.5/lib/parser.c:187:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(format_buf, "(%s: Line %zu) %s", file->current_file_name, file->current_line_no, format);
data/keepalived-2.1.5/lib/parser.c:191:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(format_buf, "(%s %zu) %s", "Line", file->current_line_no, format);
data/keepalived-2.1.5/lib/parser.c:198:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(stderr, format_buf ? format_buf : format, args);
data/keepalived-2.1.5/lib/parser.c:677: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(ofs_op, ofs);
data/keepalived-2.1.5/lib/parser.c:1251:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(globbuf.gl_pathv[i], R_OK)) {
data/keepalived-2.1.5/lib/parser.c:1992: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(buf, line_residue);
data/keepalived-2.1.5/lib/parser.c:2009: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(buf, seq->text);
data/keepalived-2.1.5/lib/parser.c:2028:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy(buf, seq->text);
data/keepalived-2.1.5/lib/parser.c:2044: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(buf, next_ptr);
data/keepalived-2.1.5/lib/parser.c:2245: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(line_residue, p + skip);
data/keepalived-2.1.5/lib/parser.h:114:25:  [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/keepalived-2.1.5/lib/scheduler.c:430:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		p += sprintf(p, "%s'%s'", i ? " " : "", sav_argv[i]);
data/keepalived-2.1.5/lib/utils.c:206:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(file_name, prog);
data/keepalived-2.1.5/lib/utils.c:210:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(file_name, namespace);
data/keepalived-2.1.5/lib/utils.c:214:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(file_name, instance);
data/keepalived-2.1.5/lib/utils.c:217:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(file_name, extn_start);
data/keepalived-2.1.5/lib/utils.c:281:4:  [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("perf", "perf", "record", "-p", buf, "-q", "-g", "--call-graph", "fp", NULL);
data/keepalived-2.1.5/lib/utils.c:339: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(orig_name, perf_name);
data/keepalived-2.1.5/lib/utils.c:1177:3:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execv(argv[0], args.execve_args);
data/keepalived-2.1.5/genhash/main.c:144: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, "rhvSs:H:V:p:u:m:P:t:"
data/keepalived-2.1.5/keepalived/bfd/bfd_daemon.c:143:2:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srandom(time(NULL));
data/keepalived-2.1.5/keepalived/bfd/bfd_data.c:411:50:  [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 (uint32_t)((((CALC_TYPE)max - min + 1) * random()) / (RAND_MAX + 1U)) + min;
data/keepalived-2.1.5/keepalived/check/check_api.c:553:33:  [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.
				warmup = warmup * (unsigned)random() / RAND_MAX;
data/keepalived-2.1.5/keepalived/check/check_dns.c:265:15:  [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.
	header->id = random();
data/keepalived-2.1.5/keepalived/core/main.c:1717:30:  [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 (longindex = -1, (c = getopt_long(argc, argv, ":vhlndu:DRS:f:p:i:mM::g::Gt::"
data/keepalived-2.1.5/keepalived/trackers/track_file.c:792:19:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		resolved_path = realpath(tfile->file_path, NULL);
data/keepalived-2.1.5/keepalived/trackers/track_file.c:805:21:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
				resolved_path = realpath(".", NULL);
data/keepalived-2.1.5/keepalived/trackers/track_file.c:808:21:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
				resolved_path = realpath(tfile->file_path, NULL);
data/keepalived-2.1.5/lib/notify.c:577: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.
		path = getenv ("PATH");
data/keepalived-2.1.5/lib/notify.c:858:13:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	new_path = realpath(script->args[0], NULL);
data/keepalived-2.1.5/lib/parser.c:633:8:  [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() % (max - min + 1) + min;
data/keepalived-2.1.5/lib/parser.c:1652: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(random_seed);
data/keepalived-2.1.5/lib/parser.c:1655: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((unsigned int)tim);
data/keepalived-2.1.5/debian/include/linux/linux/ip_vs.h: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			sched_name[IP_VS_SCHEDNAME_MAXLEN];
data/keepalived-2.1.5/debian/include/linux/linux/ip_vs.h:214: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			sched_name[IP_VS_SCHEDNAME_MAXLEN];
data/keepalived-2.1.5/debian/include/linux/linux/ip_vs.h: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			mcast_ifn[IP_VS_IFNAME_MAXLEN];
data/keepalived-2.1.5/genhash/include/main.h:51: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		ipaddress[INET6_ADDRSTRLEN];
data/keepalived-2.1.5/keepalived/bfd/bfd_data.c:115: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 time_str[26];
data/keepalived-2.1.5/keepalived/bfd/bfd_data.c:125:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(time_str, "invalid time ");
data/keepalived-2.1.5/keepalived/bfd/bfd_data.c:133: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 time_str[26];
data/keepalived-2.1.5/keepalived/bfd/bfd_parser.c:332: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 src_addr[INET6_ADDRSTRLEN];
data/keepalived-2.1.5/keepalived/bfd/bfd_scheduler.c:813: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 (struct in6_pktinfo)) + CMSG_SPACE(sizeof(ttl))];
data/keepalived-2.1.5/keepalived/bfd/bfd_scheduler.c:858: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(&((struct sockaddr_in6 *)&pkt->dst_addr)->sin6_addr, &pktinfo->ipi6_addr, sizeof(pktinfo->ipi6_addr));
data/keepalived-2.1.5/keepalived/bfd/bfd_scheduler.c:962: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[5 + 1 + 5 + 1 + 1];	/* 32768<TAB>60999<NL> */
data/keepalived-2.1.5/keepalived/bfd/bfd_scheduler.c:972:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/proc/sys/net/ipv4/ip_local_port_range", O_RDONLY);
data/keepalived-2.1.5/keepalived/check/check_api.c:652:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr_str[INET6_ADDRSTRLEN];
data/keepalived-2.1.5/keepalived/check/check_bfd.c:281: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 message[80];
data/keepalived-2.1.5/keepalived/check/check_data.c:855: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 ret[512];
data/keepalived-2.1.5/keepalived/check/check_data.c:874: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 ret[INET6_ADDRSTRLEN + 1 + 4 + 1 + 5]; /* IPv6 addr + -abcd:ppppp */
data/keepalived-2.1.5/keepalived/check/check_data.c:898:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[SOCKADDRTRIO_STR_LEN];
data/keepalived-2.1.5/keepalived/check/check_dns.c:91:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[MAX_LOG_MSG];
data/keepalived-2.1.5/keepalived/check/check_dns.c:106: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[MAX_LOG_MSG];
data/keepalived-2.1.5/keepalived/check/check_dns.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 rbuf[DNS_BUFFER_SIZE];
data/keepalived-2.1.5/keepalived/check/check_dns.c:281: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(p, s, n);
data/keepalived-2.1.5/keepalived/check/check_http.c:221:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char digest_buf[2 * MD5_DIGEST_LENGTH + 1];
data/keepalived-2.1.5/keepalived/check/check_http.c:254: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 options_buf[512];
data/keepalived-2.1.5/keepalived/check/check_http.c:1282:52:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
http_handle_response(thread_ref_t thread, unsigned char digest[MD5_DIGEST_LENGTH]
data/keepalived-2.1.5/keepalived/check/check_http.c:1414:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char digest[MD5_DIGEST_LENGTH];
data/keepalived-2.1.5/keepalived/check/check_http.c:1517: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 request_host_port[7];	/* ":" [0-9][0-9][0-9][0-9][0-9] "\0" */
data/keepalived-2.1.5/keepalived/check/check_misc.c:436: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 message[40];
data/keepalived-2.1.5/keepalived/check/check_ping.c:56: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[10 + 1 + 10 + 1 + 1];	/* 2000000000<TAB>4294967295<NL> */
data/keepalived-2.1.5/keepalived/check/check_ping.c:65: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(ping_group_range, O_RDWR);
data/keepalived-2.1.5/keepalived/check/check_ping.c:105:8:  [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.
	len = sprintf(buf, "%u\t%lu\t\n", set ? 0 : save_gid_min, val[1]);
data/keepalived-2.1.5/keepalived/check/check_ping.c:178: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 send_buf[sizeof(*icmp_hdr) + ICMP_BUFSIZE];
data/keepalived-2.1.5/keepalived/check/check_ping.c:200: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 recv_buf[sizeof(*icmp_hdr) + ICMP_BUFSIZE];
data/keepalived-2.1.5/keepalived/check/check_ping.c:227: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 send_buf[sizeof(*icmp6_hdr) + ICMP_BUFSIZE];
data/keepalived-2.1.5/keepalived/check/check_ping.c:250: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 recv_buf[sizeof (*icmp6_hdr) + ICMP_BUFSIZE];
data/keepalived-2.1.5/keepalived/check/check_smtp.c:328: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_buff[512];
data/keepalived-2.1.5/keepalived/check/check_smtp.c:329: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 smtp_buff[542];
data/keepalived-2.1.5/keepalived/check/check_snmp.c:238: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 buf[MAXBUF];
data/keepalived-2.1.5/keepalived/check/check_snmp.c:281: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(name, vp->name, sizeof(oid) * vp->namelen);
data/keepalived-2.1.5/keepalived/check/check_snmp.c:334:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(best, current, sizeof(oid) * 2);
data/keepalived-2.1.5/keepalived/check/check_snmp.c:347: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(target, best, sizeof(oid) * 2);
data/keepalived-2.1.5/keepalived/check/check_snmp.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(name, vp->name, sizeof(oid) * vp->namelen);
data/keepalived-2.1.5/keepalived/check/check_snmp.c:906: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(target, current, sizeof(oid) * 2);
data/keepalived-2.1.5/keepalived/check/check_ssl.c:289:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char digest[MD5_DIGEST_LENGTH];
data/keepalived-2.1.5/keepalived/check/ipwrapper.c:161: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 message[80];
data/keepalived-2.1.5/keepalived/check/libipvs.c:253:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen("/tmp/nlmsg.dmp", "a");
data/keepalived-2.1.5/keepalived/check/libipvs.c:1031: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(&(get->user.entrytable[i].nf_addr), nla_data(svc_attrs[IPVS_SVC_ATTR_ADDR]),
data/keepalived-2.1.5/keepalived/check/libipvs.c:1109: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(&(d->user.entrytable[i].nf_addr),
data/keepalived-2.1.5/keepalived/check/libipvs.c:1233: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(d, dk, sizeof(struct ip_vs_get_dests));
data/keepalived-2.1.5/keepalived/check/libipvs.c:1237: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(&d->user.entrytable[i], &dk->entrytable[i],
data/keepalived-2.1.5/keepalived/check/libipvs.c:1286: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(svc, &(get->entrytable[0]), sizeof(*svc));
data/keepalived-2.1.5/keepalived/core/global_data.c:408: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 cpu_str[64];
data/keepalived-2.1.5/keepalived/core/global_data.c:410: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[64];
data/keepalived-2.1.5/keepalived/core/global_data.c:413: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 date_time_str[20];
data/keepalived-2.1.5/keepalived/core/global_data.c:711:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(buf, " rx_bufs_policy = MTU");
data/keepalived-2.1.5/keepalived/core/global_data.c:713:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(buf, " rx_bufs_policy = ADVERT");
data/keepalived-2.1.5/keepalived/core/global_data.c:715: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(buf, " rx_bufs_size = %zu", global_data->vrrp_rx_bufs_size);
data/keepalived-2.1.5/keepalived/core/global_parser.c:962: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 set_name[IPSET_MAXNAMELEN];
data/keepalived-2.1.5/keepalived/core/global_parser.c:1011:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(set_name, "_if6");
data/keepalived-2.1.5/keepalived/core/global_parser.c:1027:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(set_name, "_igmp");
data/keepalived-2.1.5/keepalived/core/global_parser.c:1041:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(set_name, "_mld");
data/keepalived-2.1.5/keepalived/core/global_parser.c:1203:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(id_str, "notify_fifo");
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:701: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, alen);
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:721: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, alen);
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:722: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((char *)RTA_DATA(rta) + alen, data2, alen2);
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:736: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(NLMSG_TAIL(n), data, len);
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:756: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(subrta), data, alen);
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:776: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(subrta), data, alen);
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:777: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((char *)RTA_DATA(subrta) + alen, data2, alen2);
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:888: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/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:1487: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[64];
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:1618: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(ifp->hw_addr, RTA_DATA(tb[type]), hw_addr_len);
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:1633: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(ifp->hw_addr_bcast, RTA_DATA(tb[type]),
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:1699:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	name = (char *)RTA_DATA(tb[IFLA_IFNAME]);
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:1716: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.
			if (!strcmp((char *)RTA_DATA(linkinfo[IFLA_INFO_KIND]), "macvlan") ||
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:1717: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.
			    !strcmp((char *)RTA_DATA(linkinfo[IFLA_INFO_KIND]), "macvtap")) {
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:1722:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			else if (!strcmp((char *)RTA_DATA(linkinfo[IFLA_INFO_KIND]), "ipvlan") ||
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:1723:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				 !strcmp((char *)RTA_DATA(linkinfo[IFLA_INFO_KIND]), "ipvtap")) {
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:1729:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			else if (!strcmp((char *)RTA_DATA(linkinfo[IFLA_INFO_KIND]), "vrf") ) {
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:1811:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			if (strcmp(_FIXED_IF_TYPE_, (char *)RTA_DATA(linkinfo[IFLA_INFO_KIND])))
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:1878:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	name = (char *) RTA_DATA(tb[IFLA_IFNAME]);
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:1948: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 mac_buf[3 * sizeof(ifp->hw_addr)];
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:1949: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 old_mac_buf[3 * sizeof(ifp->hw_addr)];
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:1966:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	name = (char *)RTA_DATA(tb[IFLA_IFNAME]);
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:2014:9:  [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(old_mac_buf, "none");
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:2019:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
						memcpy(ifp->hw_addr, RTA_DATA(tb[IFLA_ADDRESS]), hw_addr_len);
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:2042:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
						memcpy(ifp->hw_addr_bcast, RTA_DATA(tb[IFLA_BROADCAST]), hw_addr_len);
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:2166:60:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				log_message(LOG_INFO, "Unknown interface %s deleted", (char *)tb[IFLA_IFNAME]);
data/keepalived-2.1.5/keepalived/core/layer4.c:65: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(p, str, str_len);
data/keepalived-2.1.5/keepalived/core/layer4.c:71: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(p, str, buf_len);
data/keepalived-2.1.5/keepalived/core/layer4.c:241: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[UDP_BUFSIZE];
data/keepalived-2.1.5/keepalived/core/layer4.c:313: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_buf[128];
data/keepalived-2.1.5/keepalived/core/layer4.c:315:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char control[2560];
data/keepalived-2.1.5/keepalived/core/layer4.c:423: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 recv_buf[UDP_BUFSIZE];
data/keepalived-2.1.5/keepalived/core/main.c:1094:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open ("/proc/sys/kernel/core_pattern", O_RDWR);
data/keepalived-2.1.5/keepalived/core/main.c:1842:14:  [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).
				int fd = open(optarg, O_WRONLY | O_APPEND | O_CREAT | O_NOFOLLOW, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
data/keepalived-2.1.5/keepalived/core/namespaces.c:283: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(netns_path, O_RDONLY);
data/keepalived-2.1.5/keepalived/core/namespaces.c:324:9:  [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).
	return open("/proc/self/ns/net", O_RDONLY | O_CLOEXEC);
data/keepalived-2.1.5/keepalived/core/namespaces.c:330: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 netns_path[PATH_MAX];
data/keepalived-2.1.5/keepalived/core/namespaces.c:340:9:  [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).
	return open(path, O_RDONLY | O_CLOEXEC);
data/keepalived-2.1.5/keepalived/core/pidfile.c:63:14:  [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).
	int pidfd = open(pid_file, O_NOFOLLOW | O_CREAT | O_WRONLY | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
data/keepalived-2.1.5/keepalived/core/pidfile.c:93:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *pidfile = fopen(pid_file, "r");
data/keepalived-2.1.5/keepalived/core/reload_monitor.c:117: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 time_str[20];
data/keepalived-2.1.5/keepalived/core/reload_monitor.c:135: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[128];
data/keepalived-2.1.5/keepalived/core/reload_monitor.c:219: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).
	FILE *fp = fopen(global_data->reload_time_file, "r");
data/keepalived-2.1.5/keepalived/core/reload_monitor.c:222: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	time_buf[21];
data/keepalived-2.1.5/keepalived/core/reload_monitor.c:223: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	old_time_buf[20];
data/keepalived-2.1.5/keepalived/core/reload_monitor.c:308: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[256];
data/keepalived-2.1.5/keepalived/core/reload_monitor.c:410: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 time_buf[20];
data/keepalived-2.1.5/keepalived/core/smtp.c:457: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 rfc822[80];
data/keepalived-2.1.5/keepalived/core/smtp.c:569: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 time_buf[25];
data/keepalived-2.1.5/keepalived/core/snmp.c:122: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(name, vp->name, sizeof(oid) * vp->namelen);
data/keepalived-2.1.5/keepalived/core/snmp.c:171: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(target, current, sizeof(oid) * 2);
data/keepalived-2.1.5/keepalived/core/snmp.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 name_buf[80];
data/keepalived-2.1.5/keepalived/core/track_process.c:256: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 cmdline[1 + 4 + 1 + PID_MAX_DIGITS + 1 + 7 + 1];	/* "/proc/xxxxxxx/cmdline" */
data/keepalived-2.1.5/keepalived/core/track_process.c:260: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 stat_buf[128];
data/keepalived-2.1.5/keepalived/core/track_process.c:284:14:  [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 ((fd = open(cmdline, O_RDONLY)) == -1)
data/keepalived-2.1.5/keepalived/core/track_process.c:298:14:  [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 ((fd = open(cmdline, O_RDONLY)) == -1)
data/keepalived-2.1.5/keepalived/core/track_process.c:343: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).
				add_process(atoi(ent->d_name), tpr, NULL);
data/keepalived-2.1.5/keepalived/core/track_process.c:392: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 cmdline[1 + 4 + 1 + PID_MAX_DIGITS + 1 + 7 + 1];	/* "/proc/xxxxxxx/{cmdline,comm}" */
data/keepalived-2.1.5/keepalived/core/track_process.c:396: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 comm_buf[17];
data/keepalived-2.1.5/keepalived/core/track_process.c:421:14:  [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 ((fd = open(cmdline, O_RDONLY)) == -1) {
data/keepalived-2.1.5/keepalived/core/track_process.c:450:14:  [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 ((fd = open(cmdline, O_RDONLY)) == -1) {
data/keepalived-2.1.5/keepalived/core/track_process.c:924: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 __attribute__ ((aligned(NLMSG_ALIGNTO)))buf[4096];
data/keepalived-2.1.5/keepalived/include/bfd.h:79:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			iname[BFD_INAME_MAX];	/* Instance name */
data/keepalived-2.1.5/keepalived/include/bfd_event.h:29: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		iname[BFD_INAME_MAX];
data/keepalived-2.1.5/keepalived/include/check_data.h:165: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				sched[IP_VS_SCHEDNAME_MAXLEN];
data/keepalived-2.1.5/keepalived/include/check_data.h:169: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				pe_name[IP_VS_PENAME_MAXLEN + 1];
data/keepalived-2.1.5/keepalived/include/check_http.h:147:57:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern void http_handle_response(thread_ref_t, unsigned char digest[16], bool);
data/keepalived-2.1.5/keepalived/include/check_smtp.h:53: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				buff[SMTP_BUFF_MAX];
data/keepalived-2.1.5/keepalived/include/ip_vs.h:52: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			pe_name[IP_VS_PENAME_MAXLEN + 1];
data/keepalived-2.1.5/keepalived/include/ip_vs.h:76:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			pe_name[IP_VS_PENAME_MAXLEN + 1];
data/keepalived-2.1.5/keepalived/include/ip_vs.h:130: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			mcast_ifn[IP_VS_IFNAME_MAXLEN];
data/keepalived-2.1.5/keepalived/include/ip_vs.h:141: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			mcast_ifn[IP_VS_IFNAME_MAXLEN];
data/keepalived-2.1.5/keepalived/include/layer4.h:48: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				bind_if[IFNAMSIZ];
data/keepalived-2.1.5/keepalived/include/vrrp.h:225: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			vmac_ifname[IFNAMSIZ];	/* Name of VRRP VMAC interface */
data/keepalived-2.1.5/keepalived/include/vrrp_arp.h:43: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     __ar_sha[INFINIBAND_ALEN];
data/keepalived-2.1.5/keepalived/include/vrrp_arp.h:44: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     __ar_sip[4];
data/keepalived-2.1.5/keepalived/include/vrrp_arp.h:45: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     __ar_tha[INFINIBAND_ALEN];
data/keepalived-2.1.5/keepalived/include/vrrp_arp.h:46: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     __ar_tip[4];
data/keepalived-2.1.5/keepalived/include/vrrp_if.h:127: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];	/* Interface name */
data/keepalived-2.1.5/keepalived/include/vrrp_ipsecah.h:45: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			auth_data[HMAC_MD5_TRUNC];
data/keepalived-2.1.5/keepalived/include/vrrp_track.h:158: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			bname[BFD_INAME_MAX];	/* bfd name */
data/keepalived-2.1.5/keepalived/trackers/track_file.c:656: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[128];
data/keepalived-2.1.5/keepalived/trackers/track_file.c:660: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).
	if ((fd = open(tfile->file_path, O_RDONLY | O_NONBLOCK)) != -1) {
data/keepalived-2.1.5/keepalived/trackers/track_file.c:690: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[sizeof(struct inotify_event) + NAME_MAX + 1];
data/keepalived-2.1.5/keepalived/vrrp/vrrp.c:463: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 digest[MD5_DIGEST_LENGTH];
data/keepalived-2.1.5/keepalived/vrrp/vrrp.c:507: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(ah->auth_data, digest, HMAC_MD5_TRUNC);
data/keepalived-2.1.5/keepalived/vrrp/vrrp.c:548:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char digest[MD5_DIGEST_LENGTH];
data/keepalived-2.1.5/keepalived/vrrp/vrrp.c:549: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 tmp_buf[(15 << 2) + sizeof(ipsec_ah_t)]; /* Allow for max ip header size */
data/keepalived-2.1.5/keepalived/vrrp/vrrp.c:562:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp_buf, ip, hdr_len);
data/keepalived-2.1.5/keepalived/vrrp/vrrp.c:746: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 old_addr[INET_ADDRSTRLEN];
data/keepalived-2.1.5/keepalived/vrrp/vrrp.c:799: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/keepalived-2.1.5/keepalived/vrrp/vrrp.c:1225:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char digest[MD5_DIGEST_LENGTH];
data/keepalived-2.1.5/keepalived/vrrp/vrrp.c:1258: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(ah->auth_data, digest, HMAC_MD5_TRUNC);
data/keepalived-2.1.5/keepalived/vrrp/vrrp.c:1296: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(pw, vrrp->auth_data, sizeof (vrrp->auth_data));
data/keepalived-2.1.5/keepalived/vrrp/vrrp.c:1458: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[256];
data/keepalived-2.1.5/keepalived/vrrp/vrrp.c:1557: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/keepalived-2.1.5/keepalived/vrrp/vrrp.c:2125: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/keepalived-2.1.5/keepalived/vrrp/vrrp.c:2618: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/keepalived-2.1.5/keepalived/vrrp/vrrp.c:4286: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(vrrp->stats, old_vrrp->stats, sizeof(vrrp_stats));
data/keepalived-2.1.5/keepalived/vrrp/vrrp.c:4290: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(&vrrp->ipsecah_counter, &old_vrrp->ipsecah_counter, sizeof(seq_counter_t));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_arp.c:68: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	sll_addr[INFINIBAND_ALEN];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_arp.c:91: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(((struct sockaddr_large_ll *)&sll)->sll_addr,
data/keepalived-2.1.5/keepalived/vrrp/vrrp_arp.c:126: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(garp_buffer, ifp->hw_addr_bcast, ifp->hw_addr_len);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_arp.c:136: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->ether_dhost, ifp->hw_addr_bcast, ETH_ALEN < ifp->hw_addr_len ? ETH_ALEN : ifp->hw_addr_len);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_arp.c:137: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->ether_shost, hwaddr, ETH_ALEN < ifp->hw_addr_len ? ETH_ALEN : ifp->hw_addr_len);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_arp.c:149: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(arp_ptr, hwaddr, ifp->hw_addr_len);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_arp.c:151: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(arp_ptr, &ipaddress->u.sin.sin_addr.s_addr,
data/keepalived-2.1.5/keepalived/vrrp/vrrp_arp.c:154: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(arp_ptr, ifp->hw_addr_bcast, ifp->hw_addr_len);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_arp.c:156: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(arp_ptr, &ipaddress->u.sin.sin_addr.s_addr,
data/keepalived-2.1.5/keepalived/vrrp/vrrp_data.c:356: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(params, vprocess->process_params, vprocess->process_params_len);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_data.c:583: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 auth_data[sizeof(vrrp->auth_data) + 1];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_data.c:585: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 time_str[26];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_data.c:617:4:  [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(time_str, "invalid time ");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_data.c:703: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(auth_data, vrrp->auth_data, sizeof(vrrp->auth_data));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_dbus.c:242: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 standardized_name[sizeof ((vrrp_t*)NULL)->ifp->ifname];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_dbus.c:341: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_str[sizeof ((vrrp_t*)NULL)->ifp->ifname];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_dbus.c:393: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_str[sizeof ((vrrp_t*)NULL)->ifp->ifname];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_dbus.c:617: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(filepath, "r");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_firewall.c:50: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[40];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_if.c:383: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 time_str[26];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_if.c:391:4:  [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(time_str, "invalid time ");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_if.c:398:4:  [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(time_str, "invalid time ");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_if.c:480: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/keepalived-2.1.5/keepalived/vrrp/vrrp_if.c:481: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 mac_buf[3 * sizeof ifp->hw_addr];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_if.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 time_str[26];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_if_config.c:91: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(dest, "/proc/sys/");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_if_config.c:104: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/keepalived-2.1.5/keepalived/vrrp/vrrp_if_config.c:112: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(filename, O_WRONLY);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_if_config.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 buf[1];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_if_config.c:142: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(filename, O_RDONLY);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_if_config.c:185: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[64];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipaddress.c:52: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 addr_str[IPADDRESSTOS_BUF_LEN];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipaddress.c:80: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[256];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipaddress.c:248:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char peer[INET6_ADDRSTRLEN + 4];	/* allow for subnet */
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipaddress.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 buf[256];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipaddress.c:669: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/keepalived-2.1.5/keepalived/vrrp/vrrp_ipaddress.c:787: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[256];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iproute.c:273: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[ENCAP_RTA_SIZE];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iproute.c:301: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[RTM_SIZE];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iproute.c:303: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[RTA_SIZE];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iproute.c:378: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 encap_buf[ENCAP_RTA_SIZE];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iproute.c:485: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 lbuf[3072];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iproute.c:1889: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[256];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iprule.c:157: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/keepalived-2.1.5/keepalived/vrrp/vrrp_iprule.c:286: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[256];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iprule.c:908: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 from_addr[IPADDRESSTOS_BUF_LEN];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iprule.c:909: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 to_addr[IPADDRESSTOS_BUF_LEN];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipsecah.c:40:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char k_ipad[BLOCK_SIZE+1];	/* inner padding - key XORd with ipad */
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipsecah.c:41:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char k_opad[BLOCK_SIZE+1];	/* outer padding - key XORd with opad */
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipsecah.c:42:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char tk[MD5_DIGEST_LENGTH];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipsecah.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(k_ipad, key, key_len);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipsecah.c:73: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(k_opad, key, key_len);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipset.c:261: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[XT_FUNCTION_MAXNAMELEN+1];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipset.c:265:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen( "/proc/net/ip_tables_matches", "r");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iptables_calls.c:205: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(&fw->ip.src, &src_ip_address->u.sin.sin_addr, sizeof ( src_ip_address->u.sin.sin_addr ) );
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iptables_calls.c:211: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(&fw->ip.dst, &dst_ip_address->u.sin.sin_addr, sizeof ( dst_ip_address->u.sin.sin_addr ) );
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iptables_calls.c:233:4:  [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 ( match->u.user.name, "icmp" ) ;
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iptables_calls.c:345: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(&fw->ipv6.src, &src_ip_address->u.sin6_addr, sizeof ( src_ip_address->u.sin6_addr ) );
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iptables_calls.c:350: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(&fw->ipv6.dst, &dst_ip_address->u.sin6_addr, sizeof ( dst_ip_address->u.sin6_addr ) );
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iptables_calls.c:372:4:  [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 ( match->u.user.name, "icmp6" ) ;
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iptables_calls.c:421: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[IPSET_MAXNAMELEN];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iptables_calls.c:630: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(match->u.user.name, "set");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iptables_calls.c:662:4:  [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(match->u.user.name, "icmp");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iptables_calls.c:771: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(match->u.user.name, "set");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iptables_calls.c:803:4:  [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(match->u.user.name, "icmp6");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_json.c:64: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[256];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_json.c:76:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_json.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 buf[256];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_json.c:135: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[256];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_json.c:140:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, vrrp->auth_data, sizeof(vrrp->auth_data));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ndisc.c:60: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/keepalived-2.1.5/keepalived/vrrp/vrrp_ndisc.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(sll.sll_addr, IF_HWADDR(ifp), ifp->hw_addr_len);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ndisc.c:115:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&phu.ph.ph_src, &ip6->saddr, sizeof(struct in6_addr));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ndisc.c:116:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&phu.ph.ph_dst, &ip6->daddr, sizeof(struct in6_addr));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ndisc.c:165: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(eth->ether_shost, lladdr, ETH_ALEN);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ndisc.c:173: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(&ip6h->saddr, &ipaddress->u.sin6_addr, sizeof(struct in6_addr));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ndisc.c:198: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(nd_opt_lladdr, lladdr, ETH_ALEN);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_nftables.c:209: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).
	FILE *fp = fopen("/tmp/nftrace", "a");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_nftables.c:252: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[256];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_nftables.c:255: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).
	FILE *fp = fopen("/tmp/nftrace", "a");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_nftables.c:1168: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[64];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_nftables.c:1629: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_buf[4], addr->ifp->ifname, strlen(addr->ifp->ifname));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_nftables.c:2028: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 nft_ver_buf[64];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_notify.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 prio_buf[4];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_parser.c:1193: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(vrrp->auth_data, str, str_len);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_scheduler.c:823: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 control_buf[128];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_scheduler.c:825: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 control_buf[64];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_scheduler.c:959:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char time_buf[9];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_scheduler.c:1338: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 time_buf[26];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:508: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 buf[MAXBUF];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:540:11:  [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.
		offs += sprintf(str + offs, ".%lu", oid[i]);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:714: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(buf, proc->process_params, len);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:776: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(name, vp->name, sizeof(oid) * vp->namelen);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:858: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(target, current, sizeof(oid) * 2);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:887: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(name, vp->name, sizeof(oid) * vp->namelen);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:939: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(target, curinstance, sizeof(oid) * 3);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:1357: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 labels[11*MAX_MPLS_LABELS];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:3246: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(name, vp->name, sizeof(oid) * vp->namelen);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:3333: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(target, best, sizeof(best));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:3381: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(name, vp->name, sizeof(oid) * vp->namelen);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:3424: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(target, best, sizeof(best));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:3523: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(name, vp->name, sizeof(oid) * vp->namelen);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:3874: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(name, vp->name, sizeof(oid) * vp->namelen);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:3994: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(target, best, sizeof(best));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:4028: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(name, vp->name, sizeof(oid) * vp->namelen);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:4074: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(target, best, sizeof(best));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:4174: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(name, vp->name, sizeof(oid) * vp->namelen);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_vmac.c:200: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[256];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_vmac.c:450: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[256];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_vmac.c:456:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[3 * req->n.nlmsg_len + 3];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_vmac.c:477: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[256];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_vmac.c:604: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[256];
data/keepalived-2.1.5/keepalived/vrrp/vrrp_vmac.c:661: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[256];
data/keepalived-2.1.5/lib/logger.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[MAX_LOG_MSG+1];
data/keepalived-2.1.5/lib/logger.c:161: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[2 * MAX_LOG_MSG + 1];
data/keepalived-2.1.5/lib/logger.c:180: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 timestamp[64];
data/keepalived-2.1.5/lib/memory.c:197: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 time_buf[TIME_STR_LEN+1];
data/keepalived-2.1.5/lib/memory.c:248: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((unsigned char *)buf + size, (unsigned char *)&check_val, sizeof(check_val));
data/keepalived-2.1.5/lib/memory.c:499: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((unsigned char *)buffer + size, (unsigned char *)&check_val, sizeof(check_val));
data/keepalived-2.1.5/lib/notify.c:70: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 cmd_str_buf[MAXBUF];
data/keepalived-2.1.5/lib/notify.c:253:20:  [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 ((fifo->fd = open(fifo->name, O_RDWR | O_CLOEXEC | O_NONBLOCK | O_NOFOLLOW)) == -1) {
data/keepalived-2.1.5/lib/notify.c:651: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 (pend + (p < subp), file, file_len + 1);
data/keepalived-2.1.5/lib/parser.c:552: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 file_name[1 + 3 + 1 + 8 + 1 + PID_MAX_DIGITS + 1];
data/keepalived-2.1.5/lib/parser.c:955: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 seq_buf[3 * 20 + 3 + 1]; /* 3 longs, each with , or ) after plus terminating nul */
data/keepalived-2.1.5/lib/parser.c:1807:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		stream = fopen(file->globbuf.gl_pathv[i], "r");
data/keepalived-2.1.5/lib/parser.c:1836:22:  [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->curdir_fd = open(".", O_RDONLY | O_DIRECTORY
data/keepalived-2.1.5/lib/parser.c:1999:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char val[21];
data/keepalived-2.1.5/lib/process.c:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char stack[stack_reserve];
data/keepalived-2.1.5/lib/rttables.c:127: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 ret_buf[11];	/* uint32_t in decimal */
data/keepalived-2.1.5/lib/rttables.c:183: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[MAX_RT_BUF];
data/keepalived-2.1.5/lib/rttables.c:188:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(file_name, "r");
data/keepalived-2.1.5/lib/scheduler.c:155: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 address[19];
data/keepalived-2.1.5/lib/scheduler.c:472:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pid_buf[4 + PID_MAX_DIGITS + 1];	/* "pid 4194303" + '\0' */
data/keepalived-2.1.5/lib/scheduler.c:761: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 str[43];
data/keepalived-2.1.5/lib/utils.c:119: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 op_buf[60];	// Probably 56 really
data/keepalived-2.1.5/lib/utils.c:154: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(file_name, O_WRONLY | O_APPEND | O_CREAT | O_NOFOLLOW, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
data/keepalived-2.1.5/lib/utils.c:278: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[PID_MAX_DIGITS + 1];
data/keepalived-2.1.5/lib/utils.c:286: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[sizeof(struct inotify_event) + NAME_MAX + 1];
data/keepalived-2.1.5/lib/utils.c:404:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[16];
data/keepalived-2.1.5/lib/utils.c:408: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(buf, "%d.%d.%d.%d", bytep[0], bytep[1], bytep[2], bytep[3]);
data/keepalived-2.1.5/lib/utils.c:423: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(buf, "%d.%d.%d.%d", bytep[0], bytep[1], bytep[2], bytep[3]);
data/keepalived-2.1.5/lib/utils.c:644: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 addr_str[INET6_ADDRSTRLEN];
data/keepalived-2.1.5/lib/utils.c:678: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/keepalived-2.1.5/lib/utils.c:679: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 ret[sizeof(addr_str) + 8];	/* '[' + addr_str + ']' + ':' + 'nnnnn' */
data/keepalived-2.1.5/lib/utils.c:691:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr_str[INET6_ADDRSTRLEN];
data/keepalived-2.1.5/lib/utils.c:707: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 ret[SOCKADDRTRIO_STR_LEN];
data/keepalived-2.1.5/lib/utils.c:822: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(dst, tmp, INADDRSZ);
data/keepalived-2.1.5/lib/utils.c:931: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 file_tmp_name[PATH_MAX];
data/keepalived-2.1.5/lib/utils.c:934:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		return fopen(path, mode);
data/keepalived-2.1.5/lib/utils.c:958:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(file_tmp_name, "XXXXXX");
data/keepalived-2.1.5/lib/utils.c:960:4:  [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(file_tmp_name + sizeof(file_tmp_name) - 6 - 1, "XXXXXX");
data/keepalived-2.1.5/lib/utils.c:979: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(path, flags, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
data/keepalived-2.1.5/lib/utils.c:1039: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("/dev/null", O_RDWR);
data/keepalived-2.1.5/lib/utils.c:1120: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).
	procfile = open("/proc/sys/kernel/modprobe", O_RDONLY | O_CLOEXEC);
data/keepalived-2.1.5/lib/vector.c:116:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new->slot, v->slot, size);
data/keepalived-2.1.5/genhash/http.c:198:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		p += strlen(content_len_str);
data/keepalived-2.1.5/genhash/http.c:287:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = read(thread->u.f.fd, sock_obj->buffer + sock_obj->size, (size_t)r);
data/keepalived-2.1.5/genhash/http.c:370:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ret = ssl_send_request(sock_obj->ssl, str_request, (int)strlen(str_request));
data/keepalived-2.1.5/genhash/http.c:372:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ret = (send(sock_obj->fd, str_request, strlen(str_request), 0) != -1) ? 1 : 0;
data/keepalived-2.1.5/keepalived/bfd/bfd_data.c:54: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) >= sizeof(bfd->iname)) {
data/keepalived-2.1.5/keepalived/bfd/bfd_scheduler.c:975:8:  [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/keepalived-2.1.5/keepalived/check/check_api.c:332: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(strvec_slot(strvec, 1)) > sizeof(co->bind_if) - 1) {
data/keepalived-2.1.5/keepalived/check/check_bfd.c:175: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).
	else if (strlen(name) >= BFD_INAME_MAX)
data/keepalived-2.1.5/keepalived/check/check_bfd.c:335:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (read(thread->u.f.fd, &evt, sizeof(bfd_event_t)) != -1)
data/keepalived-2.1.5/keepalived/check/check_dns.c:277: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).
			e = s + strlen(s);
data/keepalived-2.1.5/keepalived/check/check_http.c:272: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).
					op += strlen(op);
data/keepalived-2.1.5/keepalived/check/check_http.c:527: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(digest) != 2 * MD5_DIGEST_LENGTH) {
data/keepalived-2.1.5/keepalived/check/check_http.c:528:137:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		report_config_error(CONFIG_GENERAL_ERROR, "digest '%s' character length should be %d rather than %zu", digest, 2 * MD5_DIGEST_LENGTH, strlen(digest));
data/keepalived-2.1.5/keepalived/check/check_http.c:1424:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = read(thread->u.f.fd, req->buffer + req->len,
data/keepalived-2.1.5/keepalived/check/check_http.c:1569: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).
		ret = ssl_send_request(req->ssl, str_request, (int)strlen(str_request));
data/keepalived-2.1.5/keepalived/check/check_http.c:1571:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ret = (send(thread->u.f.fd, str_request, strlen(str_request), 0) != -1);
data/keepalived-2.1.5/keepalived/check/check_parser.c:329:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!lvs_schedulers[i] || strlen(str) >= sizeof(vs->sched)) {
data/keepalived-2.1.5/keepalived/check/check_parser.c:523: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(str) > size - 1)
data/keepalived-2.1.5/keepalived/check/check_parser.c:525:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(vs->pe_name, str, size - 1);
data/keepalived-2.1.5/keepalived/check/check_ping.c:68:8:  [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/keepalived-2.1.5/keepalived/check/check_smtp.c:346:4:  [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(error_buff, format, sizeof(error_buff) - 11 - 1);
data/keepalived-2.1.5/keepalived/check/check_smtp.c:382:6:  [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(smtp_buff, "=> CHECK failed on service <=", sizeof(smtp_buff));
data/keepalived-2.1.5/keepalived/check/check_smtp.c:461:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = read(thread->u.f.fd, smtp_checker->buff + smtp_checker->buff_ctr,
data/keepalived-2.1.5/keepalived/check/check_smtp.c:590: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).
	smtp_checker->buff_ctr = strlen(smtp_checker->buff);
data/keepalived-2.1.5/keepalived/check/check_snmp.c:256:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		*var_len = strlen(g->gname);
data/keepalived-2.1.5/keepalived/check/check_snmp.c:435: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).
		*var_len = strlen(ret.cp);
data/keepalived-2.1.5/keepalived/check/check_snmp.c:508: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).
		*var_len = strlen(v->virtualhost);
data/keepalived-2.1.5/keepalived/check/check_snmp.c:552: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).
		*var_len = strlen(buf);
data/keepalived-2.1.5/keepalived/check/check_snmp.c:557: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).
		*var_len = strlen(buf);
data/keepalived-2.1.5/keepalived/check/check_snmp.c:979: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).
		*var_len = strlen(buf);
data/keepalived-2.1.5/keepalived/check/check_snmp.c:985: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).
		*var_len = strlen(buf);
data/keepalived-2.1.5/keepalived/check/check_snmp.c:989: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).
		*var_len = strlen(be->virtualhost);
data/keepalived-2.1.5/keepalived/check/check_snmp.c:1203: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).
		*var_len = strlen(global_data->lvs_syncd.ifname);
data/keepalived-2.1.5/keepalived/check/check_snmp.c:1210: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).
		*var_len = strlen(global_data->lvs_syncd.vrrp_name);
data/keepalived-2.1.5/keepalived/check/check_snmp.c:1748: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).
					  strlen(vs->vsgname));
data/keepalived-2.1.5/keepalived/check/check_snmp.c:1814: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).
				  strlen(global_data->router_id));
data/keepalived-2.1.5/keepalived/check/check_ssl.c:55: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).
	size_t plen = strlen(ssl->password);
data/keepalived-2.1.5/keepalived/check/ipwrapper.c:110: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(vs_str) + strlen(state) + 5;
data/keepalived-2.1.5/keepalived/check/ipwrapper.c:110: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 = strlen(vs_str) + strlen(state) + 5;
data/keepalived-2.1.5/keepalived/check/ipwrapper.c:141: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(rs_str) + strlen(vs_str) + strlen(state) + 6;
data/keepalived-2.1.5/keepalived/check/ipwrapper.c:141: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 = strlen(rs_str) + strlen(vs_str) + strlen(state) + 6;
data/keepalived-2.1.5/keepalived/check/ipwrapper.c:141:43:  [1] (buffer) strlen:
  Does not handle 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(rs_str) + strlen(vs_str) + strlen(state) + 6;
data/keepalived-2.1.5/keepalived/core/global_data.c:72: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) + strlen(pwd->pw_name) + 2;
data/keepalived-2.1.5/keepalived/core/global_data.c:72: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).
	len = strlen(hostname) + strlen(pwd->pw_name) + 2;
data/keepalived-2.1.5/keepalived/core/global_parser.c:90: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 ((len = strlen(src)) >= TASK_COMM_LEN) {
data/keepalived-2.1.5/keepalived/core/global_parser.c:501: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(strvec_slot(strvec, 1)) >= IP_VS_IFNAME_MAXLEN) {
data/keepalived-2.1.5/keepalived/core/global_parser.c:701: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).
	keyword_len = strlen(strvec_slot(strvec, 0));
data/keepalived-2.1.5/keepalived/core/global_parser.c:940: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(strvec_slot(strvec,1)) >= XT_EXTENSION_MAXNAMELEN - 1) {
data/keepalived-2.1.5/keepalived/core/global_parser.c:946:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(strvec_slot(strvec,2)) >= XT_EXTENSION_MAXNAMELEN - 1) {
data/keepalived-2.1.5/keepalived/core/global_parser.c:977: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(strvec_slot(strvec,1)) >= IPSET_MAXNAMELEN - 1) {
data/keepalived-2.1.5/keepalived/core/global_parser.c:984: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(strvec_slot(strvec,2)) >= IPSET_MAXNAMELEN - 1) {
data/keepalived-2.1.5/keepalived/core/global_parser.c:994: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(set_name, "6");
data/keepalived-2.1.5/keepalived/core/global_parser.c:998: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(strvec_slot(strvec,3)) >= IPSET_MAXNAMELEN - 1) {
data/keepalived-2.1.5/keepalived/core/global_parser.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).
		len = strlen(set_name);
data/keepalived-2.1.5/keepalived/core/global_parser.c:1017: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(strvec_slot(strvec,4)) >= IPSET_MAXNAMELEN - 1) {
data/keepalived-2.1.5/keepalived/core/global_parser.c:1031: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(strvec_slot(strvec,5)) >= IPSET_MAXNAMELEN - 1) {
data/keepalived-2.1.5/keepalived/core/global_parser.c:1060: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(strvec_slot(strvec, 1)) >= NFT_TABLE_MAXNAMELEN) {
data/keepalived-2.1.5/keepalived/core/global_parser.c:1201: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).
	id_str = MALLOC(strlen(type) + strlen("notify_fifo") + 1);
data/keepalived-2.1.5/keepalived/core/global_parser.c:1201: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).
	id_str = MALLOC(strlen(type) + strlen("notify_fifo") + 1);
data/keepalived-2.1.5/keepalived/core/global_parser.c:1339: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(strvec_slot(strvec,1)) > PATH_MAX - 1) {
data/keepalived-2.1.5/keepalived/core/global_parser.c:1884:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(umask_bits);
data/keepalived-2.1.5/keepalived/core/global_parser.c:1939:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	global_data->reload_time_file = str = MALLOC(strlen(strvec_slot(strvec, 1)) + 1);
data/keepalived-2.1.5/keepalived/core/keepalived_netlink.c:1498: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).
		addattr_l(&req.nlh, sizeof req, IFLA_IFNAME, name, strlen(name) + 1);
data/keepalived-2.1.5/keepalived/core/layer4.c:58:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t str_len = strlen(str);
data/keepalived-2.1.5/keepalived/core/layer4.c:113:74:  [1] (buffer) strlen:
  Does not handle 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 (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, co->bind_if, (unsigned)strlen(co->bind_if) + 1) < 0) {
data/keepalived-2.1.5/keepalived/core/main.c:337: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).
	size_t ident_len = strlen(name) + 1;
data/keepalived-2.1.5/keepalived/core/main.c:342: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).
		ident_len += strlen(global_data->network_namespace) + 1;
data/keepalived-2.1.5/keepalived/core/main.c:345: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).
		ident_len += strlen(global_data->instance_name) + 1;
data/keepalived-2.1.5/keepalived/core/main.c:361: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(ident, "_");
data/keepalived-2.1.5/keepalived/core/main.c:366: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(ident, "_");
data/keepalived-2.1.5/keepalived/core/main.c:379: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(start) + 1;
data/keepalived-2.1.5/keepalived/core/main.c:381: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(instance) + 1;
data/keepalived-2.1.5/keepalived/core/main.c:383: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(extn);
data/keepalived-2.1.5/keepalived/core/main.c:393: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/keepalived-2.1.5/keepalived/core/main.c:935:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(signal_fd, &siginfo, sizeof(siginfo)) != sizeof(siginfo)) {
data/keepalived-2.1.5/keepalived/core/main.c:1097:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    (initialising && read(fd, orig_core_dump_pattern, CORENAME_MAX_SIZE - 1) == -1) ||
data/keepalived-2.1.5/keepalived/core/main.c:1098: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).
	    write(fd, pattern_str, strlen(pattern_str)) == -1) {
data/keepalived-2.1.5/keepalived/core/main.c:1155:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(umask_bits);
data/keepalived-2.1.5/keepalived/core/main.c:2087:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(umask_val);
data/keepalived-2.1.5/keepalived/core/namespaces.c:226: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).
	mount_dirname = MALLOC(strlen(KEEPALIVED_PID_DIR) + 1 + strlen(net_namespace));
data/keepalived-2.1.5/keepalived/core/namespaces.c:226:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mount_dirname = MALLOC(strlen(KEEPALIVED_PID_DIR) + 1 + strlen(net_namespace));
data/keepalived-2.1.5/keepalived/core/namespaces.c:274: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).
	netns_path = MALLOC(strlen(netns_dir) + strlen(net_namespace) + 1);
data/keepalived-2.1.5/keepalived/core/namespaces.c:274:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	netns_path = MALLOC(strlen(netns_dir) + strlen(net_namespace) + 1);
data/keepalived-2.1.5/keepalived/core/reload_monitor.c:144: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(timestr);
data/keepalived-2.1.5/keepalived/core/reload_monitor.c:228: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 ((len = strlen(time_buf)) && time_buf[len - 1] == '\n')
data/keepalived-2.1.5/keepalived/core/reload_monitor.c:314:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((len = read(thread->u.f.fd, buf, sizeof(buf))) < (ssize_t)sizeof(struct inotify_event)) {
data/keepalived-2.1.5/keepalived/core/reload_monitor.c:430:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(dir, global_data->reload_time_file, file_name - global_data->reload_time_file);
data/keepalived-2.1.5/keepalived/core/smtp.c:77:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int (*read) (thread_ref_t, int);
data/keepalived-2.1.5/keepalived/core/smtp.c:176:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rcv_buffer_size = read(thread->u.f.fd, buffer + smtp->buflen,
data/keepalived-2.1.5/keepalived/core/smtp.c:327:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (send(thread->u.f.fd, buffer, strlen(buffer), 0) == -1)
data/keepalived-2.1.5/keepalived/core/smtp.c:358:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (send(thread->u.f.fd, buffer, strlen(buffer), 0) == -1)
data/keepalived-2.1.5/keepalived/core/smtp.c:398:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (send(thread->u.f.fd, buffer, strlen(buffer), 0) == -1)
data/keepalived-2.1.5/keepalived/core/smtp.c:427:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (send(thread->u.f.fd, SMTP_DATA_CMD, strlen(SMTP_DATA_CMD), 0) == -1)
data/keepalived-2.1.5/keepalived/core/smtp.c:471:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (send(thread->u.f.fd, buffer, strlen(buffer), 0) == -1)
data/keepalived-2.1.5/keepalived/core/smtp.c:478:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (send(thread->u.f.fd, buffer, strlen(buffer), 0) == -1)
data/keepalived-2.1.5/keepalived/core/smtp.c:482:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (send(thread->u.f.fd, SMTP_SEND_CMD, strlen(SMTP_SEND_CMD), 0) == -1)
data/keepalived-2.1.5/keepalived/core/smtp.c:512:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (send(thread->u.f.fd, SMTP_QUIT_CMD, strlen(SMTP_QUIT_CMD), 0) == -1)
data/keepalived-2.1.5/keepalived/core/smtp.c:610:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		bytes_to_write = strlen(email->addr);
data/keepalived-2.1.5/keepalived/core/smtp.c:709:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(smtp->body, body, MAX_BODY_LENGTH - 1);
data/keepalived-2.1.5/keepalived/core/snmp.c:41: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).
	int slm_len = strlen(slm->msg);
data/keepalived-2.1.5/keepalived/core/snmp.c:216: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).
		*var_len = strlen(version_string);
data/keepalived-2.1.5/keepalived/core/snmp.c:221: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).
		*var_len = strlen(global_data->router_id);
data/keepalived-2.1.5/keepalived/core/snmp.c:246: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).
		*var_len = strlen(global_data->email_from);
data/keepalived-2.1.5/keepalived/core/snmp.c:281: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).
			*var_len = strlen(global_data->network_namespace);
data/keepalived-2.1.5/keepalived/core/snmp.c:337: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).
		*var_len = strlen(email->addr);
data/keepalived-2.1.5/keepalived/core/track_process.c:288:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			cmdline_len = read(fd, cmd_buf, vrrp_data->vrrp_max_process_name_len + 1);
data/keepalived-2.1.5/keepalived/core/track_process.c:301:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			len = read(fd, stat_buf, sizeof(stat_buf) - 1);
data/keepalived-2.1.5/keepalived/core/track_process.c:338:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					param_start = proc_name + strlen(proc_name) + 1;
data/keepalived-2.1.5/keepalived/core/track_process.c:431:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			cmdline_len = read(fd, cmd_buf, vrrp_data->vrrp_max_process_name_len + 2);
data/keepalived-2.1.5/keepalived/core/track_process.c:459:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			len = read(fd, comm_buf, sizeof(comm_buf) - 1);
data/keepalived-2.1.5/keepalived/core/track_process.c:500: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).
				param_start = proc_name + strlen(proc_name) + 1;
data/keepalived-2.1.5/keepalived/include/smtp.h:86:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((*(SMTP_FSM[S].read)))		\
data/keepalived-2.1.5/keepalived/include/smtp.h:87:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    (*(SMTP_FSM[S].read)) (T, N);	\
data/keepalived-2.1.5/keepalived/trackers/track_file.c:661: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) - 1);
data/keepalived-2.1.5/keepalived/trackers/track_file.c:701:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((len = read(fd, buf, sizeof(buf))) < (ssize_t)sizeof(struct inotify_event)) {
data/keepalived-2.1.5/keepalived/trackers/track_file.c:828:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				new_path = MALLOC(strlen(resolved_path) + strlen((!dir_end) ? tfile->file_path : dir_end + 1) + 2);
data/keepalived-2.1.5/keepalived/trackers/track_file.c:828:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				new_path = MALLOC(strlen(resolved_path) + strlen((!dir_end) ? tfile->file_path : dir_end + 1) + 2);
data/keepalived-2.1.5/keepalived/trackers/track_file.c:830: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(new_path, "/");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_dbus.c:277:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ret = read(dbus_out_pipe[0], &buf, 1)) == -1 && check_EINTR(errno))
data/keepalived-2.1.5/keepalived/vrrp/vrrp_dbus.c:418: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(ifname);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_dbus.c:780:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(dbus_in_pipe[0], &recv_buf, 1) != 1)
data/keepalived-2.1.5/keepalived/vrrp/vrrp_firewall.c:78: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 ((len = strlen(buf)) && buf[len-1] == '\n')
data/keepalived-2.1.5/keepalived/vrrp/vrrp_if.c:1041:78:  [1] (buffer) strlen:
  Does not handle 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 = setsockopt(*sd, SOL_SOCKET, SO_BINDTODEVICE, IF_NAME(ifp), (socklen_t)strlen(IF_NAME(ifp)) + 1);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_if_config.c:93:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(dest, "/");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_if_config.c:95:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(dest, "/");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_if_config.c:147:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, &buf, 1);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipaddress.c:64: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).
		end = buf + strlen(buf);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipaddress.c:173:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				  ip_addr->label, strlen(ip_addr->label) + 1);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_ipaddress.c:515:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(new->label, strvec_slot(strvec, ++i), IFNAMSIZ);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iproute.c:411:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		rta_addattr_l(rta, sizeof(buf), RTAX_CC_ALGO, iproute->congctl, strlen(iproute->congctl));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iproute.c:900: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).
		for (i = 0, len = strlen(buf); i < len; i += i ? MAX_LOG_MSG - 7 : MAX_LOG_MSG - 5)
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iprule.c:228:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		addattr_l(&req.n, sizeof(req), FRA_IFNAME, iprule->iif, strlen(iprule->iif->ifname)+1);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iprule.c:232: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).
		addattr_l(&req.n, sizeof(req), FRA_OIFNAME, iprule->oif, strlen(iprule->oif->ifname)+1);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iptables_calls.c:123:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t vialen = strlen(iface);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iptables_calls.c:478:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(req.set.name, setname, IPSET_MAXNAMELEN);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_iptables_calls.c:524:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(req.set.name, setname, IPSET_MAXNAMELEN);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_nftables.c:1629:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memcpy(&data_buf[4], addr->ifp->ifname, strlen(addr->ifp->ifname));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_notify.c:131: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(type) + strlen(state) + strlen(name) + 10;
data/keepalived-2.1.5/keepalived/vrrp/vrrp_notify.c:131: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).
	size = strlen(type) + strlen(state) + strlen(name) + 10;
data/keepalived-2.1.5/keepalived/vrrp/vrrp_notify.c:131:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size = strlen(type) + strlen(state) + strlen(name) + 10;
data/keepalived-2.1.5/keepalived/vrrp/vrrp_notify.c:139:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (write(global_data->notify_fifo.fd, line, strlen(line)) == -1) {}
data/keepalived-2.1.5/keepalived/vrrp/vrrp_notify.c:142:53:  [1] (buffer) strlen:
  Does not handle 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 (write(global_data->vrrp_notify_fifo.fd, line, strlen(line)) == -1) {}
data/keepalived-2.1.5/keepalived/vrrp/vrrp_parser.c:585: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(strvec_slot(strvec, i)) >= IFNAMSIZ) {
data/keepalived-2.1.5/keepalived/vrrp/vrrp_parser.c:669: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) >= IFNAMSIZ) {
data/keepalived-2.1.5/keepalived/vrrp/vrrp_parser.c:1007:95:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	report_config_error(CONFIG_GENERAL_ERROR, "      %*sPlease use global lvs_sync_daemon", (int)strlen(vrrp->iname) - 2, "");
data/keepalived-2.1.5/keepalived/vrrp/vrrp_parser.c:1184:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t str_len = strlen(str);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_parser.c:1407: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).
			len += strlen(strvec_slot(strvec, i)) + 1;
data/keepalived-2.1.5/keepalived/vrrp/vrrp_parser.c:1413: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).
			p += strlen(strvec_slot(strvec, i)) + 1;
data/keepalived-2.1.5/keepalived/vrrp/vrrp_parser.c:1422: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(tprocess->process_path) + 1;
data/keepalived-2.1.5/keepalived/vrrp/vrrp_scheduler.c:769:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (read(thread->u.f.fd, &evt, sizeof(bfd_event_t)) != -1)
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:568: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).
		*var_len = strlen(scr->sname);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:573: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).
		*var_len = strlen(buf);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:622: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).
		*var_len = strlen(file->fname);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:626: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).
		*var_len = strlen(file->file_path);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:661: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).
		*var_len = strlen(bfd->bname);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:697: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).
		*var_len = strlen(proc->pname);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:701: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).
		*var_len = strlen(proc->process_path);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:717: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).
			for (i = strlen(buf); i < len; i += strlen(buf + i)) {
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:717:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			for (i = strlen(buf); i < len; i += strlen(buf + i)) {
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:991: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).
		*var_len = strlen(addr->ifp->ifname);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:995: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).
			*var_len = strlen(addr->label);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:1145: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).
		*var_len = strlen(IF_NAME(route->oif));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:1299: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).
		*var_len = strlen(route->congctl);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:1433: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).
				*var_len = strlen(labels);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:1491: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).
		*var_len = strlen(nh->ifp->ifname);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:1542: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).
		*var_len = strlen(str);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:1643: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).
		*var_len = strlen(rule->iif->ifname);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:1649: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).
		*var_len = strlen(rule->oif->ifname);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:1684: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).
			*var_len = strlen(str);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:1802: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).
		*var_len = strlen(group->gname);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:1820: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).
			*var_len = strlen(buf);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:1827: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).
			*var_len = strlen(buf);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:1834: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).
			*var_len = strlen(buf);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:1841: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).
			*var_len = strlen(buf);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:1848: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).
			*var_len = strlen(buf);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:1880: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).
	*var_len = strlen(ret.cp);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2070: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).
		*var_len = strlen(rt->iname);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2098: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).
		*var_len = strlen(rt->ifp->ifname);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2129: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).
			*var_len = strlen(global_data->lvs_syncd.ifname);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2137: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).
			*var_len = strlen(rt->sync->gname);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2154: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).
			*var_len = strlen(buf);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2161: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).
			*var_len = strlen(buf);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2168: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).
			*var_len = strlen(buf);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2175: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).
			*var_len = strlen(buf);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2182: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).
			*var_len = strlen(buf);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2189: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).
			*var_len = strlen(buf);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2196: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).
			*var_len = strlen(buf);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2252: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).
		*var_len = strlen(ret.cp);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2284: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).
		*var_len = strlen(ret.cp);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2316: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).
		*var_len = strlen(ret.cp);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2350: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).
		*var_len = strlen(ret.cp);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2385: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).
		*var_len = strlen(ret.cp);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2419: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).
		*var_len = strlen(ret.cp);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2451: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).
		*var_len = strlen(ret.cp);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2483: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).
		*var_len = strlen(ret.cp);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2517: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).
		*var_len = strlen(ret.cp);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:2552: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).
		*var_len = strlen(ret.cp);
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:3093: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).
				  strlen(vrrp->iname));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:3113: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).
				  strlen(global_data->router_id));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:3168: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).
				  strlen(group->gname));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_snmp.c:3182: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).
				  strlen(global_data->router_id));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_track.c:411: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) >= BFD_INAME_MAX) {
data/keepalived-2.1.5/keepalived/vrrp/vrrp_track.c:427:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tbfd->bname, name, BFD_INAME_MAX-1); /* Not really need, but... */
data/keepalived-2.1.5/keepalived/vrrp/vrrp_vmac.c:269:81:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		addattr_l(&req.n, sizeof(req), IFLA_INFO_KIND, (const void *)macvlan_ll_kind, strlen(macvlan_ll_kind));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_vmac.c:286:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		addattr_l(&req.n, sizeof(req), IFLA_IFNAME, vrrp->vmac_ifname, strlen(vrrp->vmac_ifname));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_vmac.c:507:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		addattr_l(&req.n, sizeof(req), IFLA_IFNAME, vrrp->vmac_ifname, strlen(vrrp->vmac_ifname));
data/keepalived-2.1.5/keepalived/vrrp/vrrp_vmac.c:510:80:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		addattr_l(&req.n, sizeof(req), IFLA_INFO_KIND, (const void *)ipvlan_ll_kind, strlen(ipvlan_ll_kind));
data/keepalived-2.1.5/lib/html.c:47:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strtoul(clen + strlen(CONTENT_LENGTH), &end, 10);
data/keepalived-2.1.5/lib/memory.c:207:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(called_func) + (param ? strlen(param) : 0);
data/keepalived-2.1.5/lib/memory.c:207:43:  [1] (buffer) strlen:
  Does not handle 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(called_func) + (param ? strlen(param) : 0);
data/keepalived-2.1.5/lib/memory.c:297:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	str_p = keepalived_malloc_common(strlen(str) + 1, file, function, line, "strdup");
data/keepalived-2.1.5/lib/memory.c:307:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	return strncpy(str_p, str, size);
data/keepalived-2.1.5/lib/memory.c:673: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).
	log_name_len = 5 + strlen(prog_name) + 5 + PID_MAX_DIGITS + 4 + 1;	/* "/tmp/" + prog_name + "_mem." + PID + ".log" + '\0" */
data/keepalived-2.1.5/lib/notify.c:128: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).
		str_len = strlen(script->args[i]);
data/keepalived-2.1.5/lib/notify.c:159: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(script->args[i]) + 3; /* Add two ', and trailing space (or null for last arg) */
data/keepalived-2.1.5/lib/notify.c:515: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(new_path) + 1;
data/keepalived-2.1.5/lib/notify.c:517: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(*wp++) + 1;
data/keepalived-2.1.5/lib/notify.c:525: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).
	words += strlen(words) + 1;
data/keepalived-2.1.5/lib/notify.c:531: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).
		words += strlen(*wp) + 1;
data/keepalived-2.1.5/lib/notify.c:562: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).
	filename_len = strlen(file);
data/keepalived-2.1.5/lib/notify.c:890:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			new_path = MALLOC(new_file_part - real_file_path + 1 + strlen(orig_file_part) - 1 + 1);
data/keepalived-2.1.5/lib/notify.c:891:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(new_path, real_file_path, new_file_part + 1 - real_file_path);
data/keepalived-2.1.5/lib/notify.c:1118: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(strvec_slot(strvec_qe, i)) + 1;
data/keepalived-2.1.5/lib/notify.c:1130: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).
		words += strlen(words) + 1;
data/keepalived-2.1.5/lib/parser.c:186:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			format_buf = MALLOC(1 + strlen(file->current_file_name) + 1 + 6 + 10 + 1 + 1 + strlen(format) + 1);
data/keepalived-2.1.5/lib/parser.c:186:83:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			format_buf = MALLOC(1 + strlen(file->current_file_name) + 1 + 6 + 10 + 1 + 1 + strlen(format) + 1);
data/keepalived-2.1.5/lib/parser.c:190:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			format_buf = MALLOC(1 + 5 + 10 + 1 + 1 + strlen(format) + 1);
data/keepalived-2.1.5/lib/parser.c:678: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).
				len =  strlen(ofs);
data/keepalived-2.1.5/lib/parser.c:685:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(ofs_op, ofs, ofs1 - ofs);
data/keepalived-2.1.5/lib/parser.c:988:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(seq_buf, p, end_seq + 1 - p);
data/keepalived-2.1.5/lib/parser.c:1246:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (globbuf.gl_pathv[i][strlen(globbuf.gl_pathv[i])-1] == '/') {
data/keepalived-2.1.5/lib/parser.c:1402:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len_used = strlen(buf);
data/keepalived-2.1.5/lib/parser.c:1433: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).
				def->value_len = strlen(def->value);
data/keepalived-2.1.5/lib/parser.c:1458:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					s = cur_pos + strlen(cur_pos);
data/keepalived-2.1.5/lib/parser.c:1469: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).
						e = cur_pos + strlen(cur_pos);
data/keepalived-2.1.5/lib/parser.c:1484:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(cur_pos, def->value, replacing_len);
data/keepalived-2.1.5/lib/parser.c:1521:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t name_len = strlen(name);
data/keepalived-2.1.5/lib/parser.c:1535:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	def->value_len = strlen(value);
data/keepalived-2.1.5/lib/parser.c:1591:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	def->value_len = strlen(p);
data/keepalived-2.1.5/lib/parser.c:1627: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).
	def->name_len = strlen(name);
data/keepalived-2.1.5/lib/parser.c:1630:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		def->value_len = strlen(value);
data/keepalived-2.1.5/lib/parser.c:1679:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memmove(str, p, strlen(p) + 1);
data/keepalived-2.1.5/lib/parser.c:1693: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).
					memmove(p, p + 1, strlen(p + 1) + 1);
data/keepalived-2.1.5/lib/parser.c:1715: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).
	p = str + strlen(str) - 1;
data/keepalived-2.1.5/lib/parser.c:1801: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 (file->globbuf.gl_pathv[i][strlen(file->globbuf.gl_pathv[i])-1] == '/') {
data/keepalived-2.1.5/lib/parser.c:1989: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).
	config_id_len = config_id ? strlen(config_id) : 0;
data/keepalived-2.1.5/lib/parser.c:2052:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(buf, next_ptr, (size_t)(end - next_ptr));
data/keepalived-2.1.5/lib/parser.c:2075: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).
				len = strlen(buf);
data/keepalived-2.1.5/lib/parser.c:2102:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(buf);
data/keepalived-2.1.5/lib/parser.c:2123:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(str + def->value_len, buf, len);
data/keepalived-2.1.5/lib/parser.c:2240: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).
				len = strlen(p + skip);
data/keepalived-2.1.5/lib/parser.c:2251:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(buf);
data/keepalived-2.1.5/lib/scheduler.c:282:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	thread_update_timer(&m->read, &timer_wait_time);
data/keepalived-2.1.5/lib/scheduler.c:333:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(m->timer_fd, &expired, sizeof(expired));
data/keepalived-2.1.5/lib/scheduler.c:338:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	thread_rb_move_ready(m, &m->read, THREAD_READ_TIMEOUT);
data/keepalived-2.1.5/lib/scheduler.c:370: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).
	size_t len = strlen(str);
data/keepalived-2.1.5/lib/scheduler.c:391:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t opt_len = strlen(option);
data/keepalived-2.1.5/lib/scheduler.c:423: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(sav_argv[i]) + 3;	/* Add opening and closing 's, and following space or '\0' */
data/keepalived-2.1.5/lib/scheduler.c:825:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     , event->read, event->write);
data/keepalived-2.1.5/lib/scheduler.c:832:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	thread_rb_dump(&m->read, "read", fp);
data/keepalived-2.1.5/lib/scheduler.c:932:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	thread_destroy_rb(m, &m->read);
data/keepalived-2.1.5/lib/scheduler.c:1044:67:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	else if (__test_bit(THREAD_FL_READ_BIT, &event->flags) && event->read) {
data/keepalived-2.1.5/lib/scheduler.c:1045:116:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		log_message(LOG_INFO, "scheduler: There is already read event %p (read %p) registered on fd [%d]", event, event->read, fd);
data/keepalived-2.1.5/lib/scheduler.c:1073:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rb_insert_sort_cached(&m->read, thread, n, thread_timer_cmp);
data/keepalived-2.1.5/lib/scheduler.c:1111:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!event || !event->read)
data/keepalived-2.1.5/lib/scheduler.c:1114:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	thread_cancel(event->read);
data/keepalived-2.1.5/lib/scheduler.c:1125:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!event || !event->read)
data/keepalived-2.1.5/lib/scheduler.c:1128:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	thread = event->read;
data/keepalived-2.1.5/lib/scheduler.c:1137:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rb_move_cached(&thread->master->read, thread, n, thread_timer_cmp);
data/keepalived-2.1.5/lib/scheduler.c:1438:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rb_erase_cached(&thread->n, &m->read);
data/keepalived-2.1.5/lib/scheduler.c:1488:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rb_for_each_entry_safe_cached(thread, thread_tmp, &m->read, n) {
data/keepalived-2.1.5/lib/scheduler.c:1546:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (!event || !event->read)
data/keepalived-2.1.5/lib/scheduler.c:1817:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if (ev->read) {
data/keepalived-2.1.5/lib/scheduler.c:1818:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					thread_move_ready(m, &m->read, ev->read, THREAD_READ_ERROR);
data/keepalived-2.1.5/lib/scheduler.c:1818:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					thread_move_ready(m, &m->read, ev->read, THREAD_READ_ERROR);
data/keepalived-2.1.5/lib/scheduler.c:1837:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if (!ev->read) {
data/keepalived-2.1.5/lib/scheduler.c:1842:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				thread_move_ready(m, &m->read, ev->read, THREAD_READY_READ_FD);
data/keepalived-2.1.5/lib/scheduler.c:1842:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				thread_move_ready(m, &m->read, ev->read, THREAD_READY_READ_FD);
data/keepalived-2.1.5/lib/scheduler.h:117:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	thread_t		*read;
data/keepalived-2.1.5/lib/scheduler.h:127:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rb_root_cached_t	read;
data/keepalived-2.1.5/lib/signals.c:318:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (read(signal_fd, &siginfo, sizeof(struct signalfd_siginfo)) == sizeof(struct signalfd_siginfo)) {
data/keepalived-2.1.5/lib/signals.c:321:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (read(signal_pipe[0], &sig, sizeof(uint32_t)) == sizeof(uint32_t)) {
data/keepalived-2.1.5/lib/utils.c:191: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(name);
data/keepalived-2.1.5/lib/utils.c:193: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(prog) + 1;
data/keepalived-2.1.5/lib/utils.c:195: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(namespace) + 1;
data/keepalived-2.1.5/lib/utils.c:197: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(instance) + 1;
data/keepalived-2.1.5/lib/utils.c:202:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(file_name, name, extn_start ? (size_t)(extn_start - name) : len);
data/keepalived-2.1.5/lib/utils.c:205: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(file_name, "_");
data/keepalived-2.1.5/lib/utils.c:209: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(file_name, "_");
data/keepalived-2.1.5/lib/utils.c:213: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(file_name, "_");
data/keepalived-2.1.5/lib/utils.c:314:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret = read(in, buf, sizeof(buf));
data/keepalived-2.1.5/lib/utils.c:957: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(path) + 6 < sizeof(file_tmp_name))
data/keepalived-2.1.5/lib/utils.c:1126:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	count = read(procfile, ret, PATH_MAX - 1);
data/keepalived-2.1.5/lib/utils.h:215:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	do { strncpy(dst, src, sizeof(dst) - 1); dst[sizeof(dst) - 1] = '\0'; } while (0)

ANALYSIS SUMMARY:

Hits = 733
Lines analyzed = 83222 in approximately 2.04 seconds (40751 lines/second)
Physical Source Lines of Code (SLOC) = 61931
Hits@level = [0] 434 [1] 294 [2] 316 [3]  14 [4] 108 [5]   1
Hits@level+ = [0+] 1167 [1+] 733 [2+] 439 [3+] 123 [4+] 109 [5+]   1
Hits/KSLOC@level+ = [0+] 18.8436 [1+] 11.8358 [2+] 7.08853 [3+] 1.98608 [4+] 1.76002 [5+] 0.016147
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.