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/corosync-3.1.0/common_lib/error_conversion.c
Examining data/corosync-3.1.0/vqsim/vqsim.h
Examining data/corosync-3.1.0/vqsim/vq_object.c
Examining data/corosync-3.1.0/vqsim/vqmain.c
Examining data/corosync-3.1.0/vqsim/parser.c
Examining data/corosync-3.1.0/vqsim/vqsim_vq_engine.c
Examining data/corosync-3.1.0/include/corosync/ipc_cfg.h
Examining data/corosync-3.1.0/include/corosync/ipc_votequorum.h
Examining data/corosync-3.1.0/include/corosync/cpg.h
Examining data/corosync-3.1.0/include/corosync/ipc_cpg.h
Examining data/corosync-3.1.0/include/corosync/votequorum.h
Examining data/corosync-3.1.0/include/corosync/corotypes.h
Examining data/corosync-3.1.0/include/corosync/ipc_cmap.h
Examining data/corosync-3.1.0/include/corosync/icmap.h
Examining data/corosync-3.1.0/include/corosync/sam.h
Examining data/corosync-3.1.0/include/corosync/cmap.h
Examining data/corosync-3.1.0/include/corosync/corodefs.h
Examining data/corosync-3.1.0/include/corosync/hdb.h
Examining data/corosync-3.1.0/include/corosync/swab.h
Examining data/corosync-3.1.0/include/corosync/coroapi.h
Examining data/corosync-3.1.0/include/corosync/quorum.h
Examining data/corosync-3.1.0/include/corosync/ipc_quorum.h
Examining data/corosync-3.1.0/include/corosync/totem/totempg.h
Examining data/corosync-3.1.0/include/corosync/totem/totemstats.h
Examining data/corosync-3.1.0/include/corosync/totem/totemip.h
Examining data/corosync-3.1.0/include/corosync/totem/totem.h
Examining data/corosync-3.1.0/include/corosync/logsys.h
Examining data/corosync-3.1.0/include/corosync/sq.h
Examining data/corosync-3.1.0/include/corosync/cfg.h
Examining data/corosync-3.1.0/include/corosync/mar_gen.h
Examining data/corosync-3.1.0/lib/util.h
Examining data/corosync-3.1.0/lib/sam.c
Examining data/corosync-3.1.0/lib/cmap.c
Examining data/corosync-3.1.0/lib/cpg.c
Examining data/corosync-3.1.0/lib/quorum.c
Examining data/corosync-3.1.0/lib/votequorum.c
Examining data/corosync-3.1.0/lib/cfg.c
Examining data/corosync-3.1.0/tools/corosync-cfgtool.c
Examining data/corosync-3.1.0/tools/util.h
Examining data/corosync-3.1.0/tools/corosync-keygen.c
Examining data/corosync-3.1.0/tools/util.c
Examining data/corosync-3.1.0/tools/corosync-cmapctl.c
Examining data/corosync-3.1.0/tools/corosync-cpgtool.c
Examining data/corosync-3.1.0/tools/corosync-notifyd.c
Examining data/corosync-3.1.0/tools/corosync-quorumtool.c
Examining data/corosync-3.1.0/exec/stats.c
Examining data/corosync-3.1.0/exec/schedwrk.h
Examining data/corosync-3.1.0/exec/totemip.c
Examining data/corosync-3.1.0/exec/vsf.h
Examining data/corosync-3.1.0/exec/util.h
Examining data/corosync-3.1.0/exec/cs_queue.h
Examining data/corosync-3.1.0/exec/totempg.c
Examining data/corosync-3.1.0/exec/apidef.c
Examining data/corosync-3.1.0/exec/fsm.h
Examining data/corosync-3.1.0/exec/vsf_ykd.h
Examining data/corosync-3.1.0/exec/timer.h
Examining data/corosync-3.1.0/exec/logsys.c
Examining data/corosync-3.1.0/exec/totemudp.h
Examining data/corosync-3.1.0/exec/totemknet.h
Examining data/corosync-3.1.0/exec/votequorum.h
Examining data/corosync-3.1.0/exec/util.c
Examining data/corosync-3.1.0/exec/icmap.c
Examining data/corosync-3.1.0/exec/cmap.c
Examining data/corosync-3.1.0/exec/timer.c
Examining data/corosync-3.1.0/exec/vsf_quorum.c
Examining data/corosync-3.1.0/exec/logconfig.h
Examining data/corosync-3.1.0/exec/coroparse.c
Examining data/corosync-3.1.0/exec/service.h
Examining data/corosync-3.1.0/exec/schedwrk.c
Examining data/corosync-3.1.0/exec/totemudp.c
Examining data/corosync-3.1.0/exec/ipc_glue.c
Examining data/corosync-3.1.0/exec/main.c
Examining data/corosync-3.1.0/exec/apidef.h
Examining data/corosync-3.1.0/exec/totemnet.c
Examining data/corosync-3.1.0/exec/totemconfig.h
Examining data/corosync-3.1.0/exec/vsf_ykd.c
Examining data/corosync-3.1.0/exec/ipcs_stats.h
Examining data/corosync-3.1.0/exec/mon.c
Examining data/corosync-3.1.0/exec/pload.c
Examining data/corosync-3.1.0/exec/cpg.c
Examining data/corosync-3.1.0/exec/totemnet.h
Examining data/corosync-3.1.0/exec/totemsrp.c
Examining data/corosync-3.1.0/exec/totemudpu.h
Examining data/corosync-3.1.0/exec/totemknet.c
Examining data/corosync-3.1.0/exec/quorum.h
Examining data/corosync-3.1.0/exec/totemconfig.c
Examining data/corosync-3.1.0/exec/quorum.c
Examining data/corosync-3.1.0/exec/wd.c
Examining data/corosync-3.1.0/exec/sync.c
Examining data/corosync-3.1.0/exec/totemudpu.c
Examining data/corosync-3.1.0/exec/service.c
Examining data/corosync-3.1.0/exec/totemsrp.h
Examining data/corosync-3.1.0/exec/logconfig.c
Examining data/corosync-3.1.0/exec/main.h
Examining data/corosync-3.1.0/exec/sync.h
Examining data/corosync-3.1.0/exec/votequorum.c
Examining data/corosync-3.1.0/exec/stats.h
Examining data/corosync-3.1.0/exec/cfg.c
Examining data/corosync-3.1.0/test/cpgverify.c
Examining data/corosync-3.1.0/test/testvotequorum2.c
Examining data/corosync-3.1.0/test/testcpgzc.c
Examining data/corosync-3.1.0/test/testcpg2.c
Examining data/corosync-3.1.0/test/stress_cpgcontext.c
Examining data/corosync-3.1.0/test/testvotequorum1.c
Examining data/corosync-3.1.0/test/cpghum.c
Examining data/corosync-3.1.0/test/stress_cpgzc.c
Examining data/corosync-3.1.0/test/testsam.c
Examining data/corosync-3.1.0/test/cpgbenchzc.c
Examining data/corosync-3.1.0/test/testcpg.c
Examining data/corosync-3.1.0/test/stress_cpgfdget.c
Examining data/corosync-3.1.0/test/testzcgc.c
Examining data/corosync-3.1.0/test/cpgbound.c
Examining data/corosync-3.1.0/test/cpgbench.c
Examining data/corosync-3.1.0/test/testquorum.c
Examining data/corosync-3.1.0/test/testquorummodel.c

FINAL RESULTS:

data/corosync-3.1.0/exec/cfg.c:944: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 ((char *)&res_lib_cfg_ringstatusget.interface_status[i],
data/corosync-3.1.0/exec/cfg.c:946: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 ((char *)&res_lib_cfg_ringstatusget.interface_name[i],
data/corosync-3.1.0/exec/cfg.c:1000:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (sscanf(iter_key, "runtime.members.%u.%s", &nodeid, key_name) != 2) {
data/corosync-3.1.0/exec/cmap.c:970: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((char *)item->key_name.value, argv[i]);
data/corosync-3.1.0/exec/coroparse.c:176:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	        sprintf (error_string_response, "getpwnam_r(): %s", strerror(rc));
data/corosync-3.1.0/exec/coroparse.c:181:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	        sprintf (error_string_response,
data/corosync-3.1.0/exec/coroparse.c:230:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	        sprintf (error_string_response, "getgrnam_r(): %s", strerror(rc));
data/corosync-3.1.0/exec/coroparse.c:235:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	        sprintf (error_string_response,
data/corosync-3.1.0/exec/coroparse.c:381: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_keyname, path);
data/corosync-3.1.0/exec/coroparse.c:385: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(new_keyname, section);
data/corosync-3.1.0/exec/coroparse.c:414: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_keyname, path);
data/corosync-3.1.0/exec/coroparse.c:418: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(new_keyname, key);
data/corosync-3.1.0/exec/ipc_glue.c:798: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(ipcs_mapper[service->id].name, serv_short_name);
data/corosync-3.1.0/exec/logconfig.c:313:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf (formatted_error_reason, "unable to set mode %s", key);
data/corosync-3.1.0/exec/logconfig.c:320:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf (formatted_error_reason, "unable to unset mode %s", key);
data/corosync-3.1.0/exec/logconfig.c:324:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf (formatted_error_reason, "unknown value for %s", key);
data/corosync-3.1.0/exec/logconfig.c:339:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf (formatted_error_reason, "unable to change mode %s", key);
data/corosync-3.1.0/exec/logconfig.c:596:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		res = sscanf(key_name, "logging.logger_subsys.%[^.].%s", key_subsys, key_item);
data/corosync-3.1.0/exec/main.c:932:30:  [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, 6, 7)));
data/corosync-3.1.0/exec/main.c:1263:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr, \
data/corosync-3.1.0/exec/mon.c:252:15:  [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.
		scanf_res = sscanf(tmp_str, "%"PRIu64, &tmp_value);
data/corosync-3.1.0/exec/mon.c:283: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(tmp_str, "%"PRId32, &i32) != 1) {
data/corosync-3.1.0/exec/mon.c:475:6:  [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.
	    sscanf(tmp_str, "%"PRIu64, &tmp_value) != 1) {
data/corosync-3.1.0/exec/service.c:282:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		res = sscanf(iter_key_name, "internal_configuration.service.%hu.%s", &service_id, key_name);
data/corosync-3.1.0/exec/stats.c:292:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(param, "stats.pg.%s", cs_pg_stats[i].name);
data/corosync-3.1.0/exec/stats.c:296:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(param, "stats.srp.%s", cs_srp_stats[i].name);
data/corosync-3.1.0/exec/stats.c:300:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(param, "stats.ipcs.%s", cs_ipcs_global_stats[i].name);
data/corosync-3.1.0/exec/stats.c:384: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(key_name, SCHEDMISS_PREFIX ".%d", &sm_event) != 1) {
data/corosync-3.1.0/exec/stats.c:418:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(param, SCHEDMISS_PREFIX ".%i.timestamp", i);
data/corosync-3.1.0/exec/stats.c:420:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(param, SCHEDMISS_PREFIX ".%i.delay", i);
data/corosync-3.1.0/exec/stats.c:447:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(param, SCHEDMISS_PREFIX ".%i.timestamp", highest_schedmiss_event);
data/corosync-3.1.0/exec/stats.c:449:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(param, SCHEDMISS_PREFIX ".%i.delay", highest_schedmiss_event);
data/corosync-3.1.0/exec/stats.c:719:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(param, "stats.knet.node%d.link%d.%s", nodeid, link_no, cs_knet_stats[i].name);
data/corosync-3.1.0/exec/stats.c:729:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(param, "stats.knet.node%d.link%d.%s", nodeid, link_no, cs_knet_stats[i].name);
data/corosync-3.1.0/exec/stats.c:742:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(param, "stats.knet.handle.%s", cs_knet_handle_stats[i].name);
data/corosync-3.1.0/exec/stats.c:754:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(param, "stats.ipcs.service%d.%d.%p.%s", service_id, pid, ptr, cs_ipcs_conn_stats[i].name);
data/corosync-3.1.0/exec/stats.c:764:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(param, "stats.ipcs.service%d.%d.%p.%s", service_id, pid, ptr, cs_ipcs_conn_stats[i].name);
data/corosync-3.1.0/exec/sync.c:472: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 (my_service_list[my_service_list_entries].name,
data/corosync-3.1.0/exec/totemconfig.c:176: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(runtime_key_name, key_name);
data/corosync-3.1.0/exec/totemconfig.c:204: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(runtime_key_name, key_name);
data/corosync-3.1.0/exec/totemconfig.c:243: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(runtime_key_name, key_name);
data/corosync-3.1.0/exec/totemconfig.c:291: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(runtime_key_name, key_name);
data/corosync-3.1.0/exec/totemconfig.c:635:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		res = sscanf(iter_key, "nodelist.node.%u.%s", &node_pos, name_str);
data/corosync-3.1.0/exec/totemconfig.c:735: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(nodename2, node);
data/corosync-3.1.0/exec/totemconfig.c:765: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(nodename2, node);
data/corosync-3.1.0/exec/totemconfig.c:842:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		res = sscanf(iter_key, "nodelist.node.%u.%s", &node_pos, name_str);
data/corosync-3.1.0/exec/totemconfig.c:1017:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		res = sscanf(iter_key, "nodelist.node.%u.%s", &node_pos, tmp_key);
data/corosync-3.1.0/exec/totemconfig.c:1054:10:  [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.
			res = sscanf(iter_key, "nodelist.node.%u.%s", &node_pos1, tmp_key);
data/corosync-3.1.0/exec/totemconfig.c:1346:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		res = sscanf(iter_key, "nodelist.node.%u.%s", &node_pos, tmp_key);
data/corosync-3.1.0/exec/totemconfig.c:1367:10:  [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.
			res = sscanf(iter_key2, "nodelist.node.%u.ring%u%s", &node_pos, &linknumber, tmp_key2);
data/corosync-3.1.0/exec/totemconfig.c:1394:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						sprintf(error_string_response,
data/corosync-3.1.0/exec/totemconfig.c:1417:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(error_string_response, "failed to parse node address '%s'\n", node_addr_str);
data/corosync-3.1.0/exec/totemconfig.c:1467:10:  [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.
			res = sscanf(iter_key, "nodelist.node.%u.ring%u%s", &node_pos, &linknumber, tmp_key2);
data/corosync-3.1.0/exec/totemconfig.c:1524:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		res = sscanf(iter_key, "totem.interface.%[^.].%s", linknumber_key, tmp_key);
data/corosync-3.1.0/exec/totemconfig.c:1558:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(error_string_response, "failed to parse bindnet address '%s'\n", str);
data/corosync-3.1.0/exec/totemconfig.c:1578:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(error_string_response, "failed to parse mcast address '%s'\n", str);
data/corosync-3.1.0/exec/totemconfig.c:1708:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(error_string_response, "failed to parse node address '%s'\n", str);
data/corosync-3.1.0/exec/totemconfig.c:1796: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 (totem_config->link_mode, str);
data/corosync-3.1.0/exec/totemknet.c:145:29:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		...)__attribute__((format(printf, 6, 7)));
data/corosync-3.1.0/exec/totemknet.c:1560: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(compress_cfg.compress_model, totem_config->knet_compression_model);
data/corosync-3.1.0/exec/totemnet.c:252:43:  [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, 6, 7)));
data/corosync-3.1.0/exec/totempg.c:188:49:  [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.
	const char *format, ...) __attribute__((format(printf, 6, 7)));
data/corosync-3.1.0/exec/totempg.c:1520: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 (iface_string, one_iface);
data/corosync-3.1.0/exec/totemsrp.c:444:49:  [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.
		const char *format, ...)__attribute__((format(printf, 6, 7)));;
data/corosync-3.1.0/exec/totemsrp.c:1418:4:  [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(int_buf, sizeof(int_buf), CS_PRI_NODE_ID, list[i].nodeid);
data/corosync-3.1.0/exec/totemsrp.c:1420:4:  [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(int_buf, sizeof(int_buf), "," CS_PRI_NODE_ID, list[i].nodeid);
data/corosync-3.1.0/exec/totemsrp.c:1426: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(list_str, int_buf);
data/corosync-3.1.0/exec/totemsrp.c:2063:12:  [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.
			sptr += snprintf(joined_node_msg+sptr, sizeof(joined_node_msg)-sptr, " " CS_PRI_NODE_ID, joined_list_totemip[i]);
data/corosync-3.1.0/exec/totemsrp.c:2075:12:  [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.
			sptr += snprintf(left_node_msg+sptr, sizeof(left_node_msg)-sptr, " " CS_PRI_NODE_ID, left_list[i]);
data/corosync-3.1.0/exec/totemsrp.c:2082:14:  [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.
				sptr2 += snprintf(failed_node_msg+sptr2, sizeof(left_node_msg)-sptr2, " " CS_PRI_NODE_ID, left_list[i]);
data/corosync-3.1.0/exec/totemsrp.c:2797: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 (retransmit_msg, value);
data/corosync-3.1.0/exec/totemudp.c:148:29:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		...)__attribute__((format(printf, 6, 7)));
data/corosync-3.1.0/exec/totemudpu.c:138:29:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		...)__attribute__((format(printf, 6, 7)));
data/corosync-3.1.0/exec/votequorum.c:1171:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		res = sscanf(iter_key, "nodelist.node.%u.%s", &node_pos, tmp_key);
data/corosync-3.1.0/exec/votequorum.c:1742: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(req_exec_quorum_qdevice_reconfigure.oldname, oldname);
data/corosync-3.1.0/exec/votequorum.c:1745: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(req_exec_quorum_qdevice_reconfigure.newname, newname);
data/corosync-3.1.0/exec/votequorum.c:1769: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(req_exec_quorum_qdevice_reg.qdevice_name, qdevice_name_req);
data/corosync-3.1.0/exec/votequorum.c:1939: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(qdevice_name, req_exec_quorum_qdevice_reconfigure->newname);
data/corosync-3.1.0/exec/votequorum.c:1984: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(qdevice_name, req_exec_quorum_qdevice_reg->qdevice_name);
data/corosync-3.1.0/exec/votequorum.c:2013: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(qdevice_name, req_exec_quorum_qdevice_reg->qdevice_name);
data/corosync-3.1.0/exec/votequorum.c:2654: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(res_lib_votequorum_getinfo.qdevice_name, qdevice_name);
data/corosync-3.1.0/exec/vsf_quorum.c:154:10:  [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.
			ret = snprintf(view_buf + pos, len - pos, " " CS_PRI_NODE_ID, view_list[i]);
data/corosync-3.1.0/exec/wd.c:428: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(ref->res_path, res_path);
data/corosync-3.1.0/exec/wd.c:432: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(ref->name, res_name);
data/corosync-3.1.0/exec/wd.c:652:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (watchdog_device, W_OK) != 0) {
data/corosync-3.1.0/include/corosync/logsys.h:287:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf (stderr,					\
data/corosync-3.1.0/include/corosync/logsys.h:304:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf (stderr,					\
data/corosync-3.1.0/include/corosync/totem/totem.h:108:30:  [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, 6, 7)));
data/corosync-3.1.0/lib/cfg.c:394: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((char *)req_lib_cfg_killnode.reason.value, reason);
data/corosync-3.1.0/lib/cpg.c:882: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 (path, PATH_MAX, LOCALSTATEDIR "/run/%s", file);
data/corosync-3.1.0/lib/cpg.c:976: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 (req_coroipcc_zc_alloc.path_to_file, path);
data/corosync-3.1.0/lib/votequorum.c:194: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(info->qdevice_name, res_lib_votequorum_getinfo.qdevice_name);
data/corosync-3.1.0/lib/votequorum.c:595: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(req_lib_votequorum_qdevice_register.name, name);
data/corosync-3.1.0/lib/votequorum.c:643: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(req_lib_votequorum_qdevice_poll.name, name);
data/corosync-3.1.0/lib/votequorum.c:692: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(req_lib_votequorum_qdevice_master_wins.name, name);
data/corosync-3.1.0/lib/votequorum.c:742: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(req_lib_votequorum_qdevice_update.oldname, oldname);
data/corosync-3.1.0/lib/votequorum.c:743: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(req_lib_votequorum_qdevice_update.newname, newname);
data/corosync-3.1.0/lib/votequorum.c:789: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(req_lib_votequorum_qdevice_unregister.name, name);
data/corosync-3.1.0/test/cpghum.c:147:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 3, 0)));
data/corosync-3.1.0/test/cpghum.c:150:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 2, 3)));
data/corosync-3.1.0/test/cpghum.c:162:9:  [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.
	assert(vsnprintf(msg+start, sizeof(msg)-start, format, ap) < sizeof(msg)-start);
data/corosync-3.1.0/test/cpghum.c:652: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(group_name.value, optarg);
data/corosync-3.1.0/test/testcpg.c:92:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buffer, "node/pid %s/%d", inet_ntoa(saddr),pid);
data/corosync-3.1.0/test/testcpg.c:120: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(s, hostname);
data/corosync-3.1.0/test/testcpg.c:228: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(CS_PRI_NODE_ID " ", member_list[i]);
data/corosync-3.1.0/test/testcpg.c:338: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(group_name.value, argv[optind]);
data/corosync-3.1.0/test/testcpgzc.c:185: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(group_name.value, argv[optind]);
data/corosync-3.1.0/test/testcpgzc.c:189: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(group_name.value, DEFAULT_GROUP_NAME);
data/corosync-3.1.0/test/testquorum.c:29: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(" " CS_PRI_NODE_ID, view_list[i]);
data/corosync-3.1.0/test/testquorummodel.c:30: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(" " CS_PRI_NODE_ID, view_list[i]);
data/corosync-3.1.0/test/testquorummodel.c:49: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(" " CS_PRI_NODE_ID, member_list[i]);
data/corosync-3.1.0/test/testquorummodel.c:55: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(" " CS_PRI_NODE_ID, joined_list[i]);
data/corosync-3.1.0/test/testquorummodel.c:61: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(" " CS_PRI_NODE_ID, left_list[i]);
data/corosync-3.1.0/test/testvotequorum1.c:115: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(CS_PRI_NODE_ID " ", node_list[i]);
data/corosync-3.1.0/tools/corosync-cmapctl.c:334: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("%s) = %"PRId8, "i8", i8);
data/corosync-3.1.0/tools/corosync-cmapctl.c:336: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("%"PRId8, i8);
data/corosync-3.1.0/tools/corosync-cmapctl.c:340: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("%s) = %"PRIu8, "u8", u8);
data/corosync-3.1.0/tools/corosync-cmapctl.c:342: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("%"PRIu8, u8);
data/corosync-3.1.0/tools/corosync-cmapctl.c:346: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("%s) = %"PRId16, "i16", i16);
data/corosync-3.1.0/tools/corosync-cmapctl.c:348: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("%"PRId16, i16);
data/corosync-3.1.0/tools/corosync-cmapctl.c:352: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("%s) = %"PRIu16, "u16", u16);
data/corosync-3.1.0/tools/corosync-cmapctl.c:354: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("%"PRIu16, u16);
data/corosync-3.1.0/tools/corosync-cmapctl.c:358: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("%s) = %"PRId32, "i32", i32);
data/corosync-3.1.0/tools/corosync-cmapctl.c:360: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("%"PRId32, i32);
data/corosync-3.1.0/tools/corosync-cmapctl.c:364: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("%s) = %"PRIu32, "u32", u32);
data/corosync-3.1.0/tools/corosync-cmapctl.c:366: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("%"PRIu32, u32);
data/corosync-3.1.0/tools/corosync-cmapctl.c:370: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("%s) = %"PRId64, "i64", i64);
data/corosync-3.1.0/tools/corosync-cmapctl.c:372: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("%"PRId64, i64);
data/corosync-3.1.0/tools/corosync-cmapctl.c:376: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("%s) = %"PRIu64, "u64", u64);
data/corosync-3.1.0/tools/corosync-cmapctl.c:378: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("%"PRIu64, u64);
data/corosync-3.1.0/tools/corosync-cmapctl.c:627:15:  [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.
		scanf_res = sscanf(key_value_s, "%"PRId64, &i64);
data/corosync-3.1.0/tools/corosync-cmapctl.c:633:15:  [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.
		scanf_res = sscanf(key_value_s, "%"PRIu64, &u64);
data/corosync-3.1.0/tools/corosync-cmapctl.c:806:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(key_name, "stats.clear.%s", clear_opt);
data/corosync-3.1.0/tools/corosync-notifyd.c:244: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.
	res = sscanf(key_name, "runtime.members.%u.%s", &nodeid, tmp_key);
data/corosync-3.1.0/tools/corosync-notifyd.c:310: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.
	res = sscanf(key_name, "stats.ipcs.service%d.%d.%[^.].%s", &service,&pid, conn_str, tmp_key);
data/corosync-3.1.0/tools/corosync-notifyd.c:406: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(track_item->key_name, key_name);
data/corosync-3.1.0/tools/corosync-notifyd.c:1141: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(track_item->key_name, key_name);
data/corosync-3.1.0/tools/corosync-quorumtool.c:279:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		res = sscanf(key_name, "nodelist.node.%u.%s", &node_pos, tmp_key);
data/corosync-3.1.0/tools/corosync-quorumtool.c:338: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(buf, nodelist_name);
data/corosync-3.1.0/vqsim/vqmain.c:132:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(output_file, CS_PRI_NODE_ID, node->last_view_list[i]);
data/corosync-3.1.0/vqsim/vqmain.c:456:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		res = sscanf(iter_key, "nodelist.node.%u.%s", &node_pos, tmp_key);
data/corosync-3.1.0/vqsim/vqsim_vq_engine.c:198:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		res = sscanf(iter_key, "nodelist.node.%u.%s", &node_pos, name_str);
data/corosync-3.1.0/vqsim/vqsim_vq_engine.c:312: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(pollmsg.name, QDEVICE_NAME);
data/corosync-3.1.0/vqsim/vqsim_vq_engine.c:316:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, CS_PRI_NODE_ID ": qdevice poll failed: %d\n", our_nodeid, res);
data/corosync-3.1.0/vqsim/vqsim_vq_engine.c:359: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(regmsg.name, QDEVICE_NAME);
data/corosync-3.1.0/vqsim/vqsim_vq_engine.c:365:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr, CS_PRI_NODE_ID ": qdevice registration failed: %d\n", our_nodeid, res);
data/corosync-3.1.0/exec/main.c:1236:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt (argc, argv, "c:ftv")) != EOF) {
data/corosync-3.1.0/exec/totemsrp.c:3342:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		usleep (random() % (instance->totem_config->send_join_timeout * 1000));
data/corosync-3.1.0/exec/totemsrp.c:3423:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		usleep (random() % (instance->totem_config->send_join_timeout * 1000));
data/corosync-3.1.0/exec/totemsrp.c:3842:6:  [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.
	if (random()%100 < TEST_DROP_ORF_TOKEN_PERCENTAGE) {
data/corosync-3.1.0/exec/totemsrp.c:4259:6:  [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.
	if (random()%100 < TEST_DROP_MCAST_PERCENTAGE) {
data/corosync-3.1.0/exec/totemsrp.c:4832:6:  [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.
	if (random()%100 < TEST_DROP_COMMIT_TOKEN_PERCENTAGE) {
data/corosync-3.1.0/test/cpghum.c:606:17:  [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 ( (opt = getopt_long(argc, argv, "qlstafMEn:d:r:p:m:w:W:D:",
data/corosync-3.1.0/test/cpgverify.c:124:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, options)) != -1) {
data/corosync-3.1.0/test/stress_cpgzc.c:110:22:  [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.
			buffer_lens[i] = (random() % MAX_SIZE) + 1;
data/corosync-3.1.0/test/testcpg.c:324:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ( (opt = getopt(argc, argv, options)) != -1 ) {
data/corosync-3.1.0/test/testcpgzc.c:171:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ( (opt = getopt(argc, argv, options)) != -1 ) {
data/corosync-3.1.0/test/testvotequorum2.c:123:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, options)) != -1) {
data/corosync-3.1.0/tools/corosync-cfgtool.c:468:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ( (opt = getopt(argc, argv, options)) != -1 ) {
data/corosync-3.1.0/tools/corosync-cmapctl.c:830:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "m:hqgsdDtTbp:C:")) != -1) {
data/corosync-3.1.0/tools/corosync-cpgtool.c:221:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ( (opt = getopt(argc, argv, options)) != -1 ) {
data/corosync-3.1.0/tools/corosync-keygen.c:95: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, "k:r:s:lh",
data/corosync-3.1.0/tools/corosync-notifyd.c:1298:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt (argc, argv, "c:floshdnm:")) != EOF) {
data/corosync-3.1.0/tools/corosync-quorumtool.c:897:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ( (opt = getopt(argc, argv, options)) != -1 ) {
data/corosync-3.1.0/vqsim/vqmain.c:759:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt (argc, argv, "c:o:nh")) != EOF) {
data/corosync-3.1.0/exec/cfg.c:748:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&new_config.interfaces[0], &new_config.orig_interfaces[0],
data/corosync-3.1.0/exec/cfg.c:900: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[CFG_INTERFACE_NAME_MAX_LEN];
data/corosync-3.1.0/exec/cfg.c:985:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/cfg.c:986:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_key[ICMAP_KEYNAME_MAXLEN + 1];
data/corosync-3.1.0/exec/cfg.c:1212: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[PIPE_BUF];
data/corosync-3.1.0/exec/cfg.c:1241: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(addr_buf, node_ifs[i].addr, TOTEMIP_ADDRLEN);
data/corosync-3.1.0/exec/cmap.c:697: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(res_lib_cmap_iter_next.key_name.value, res, strlen(res));
data/corosync-3.1.0/exec/cmap.c:759: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(res_lib_cmap_notify_callback.key_name.value, key_name, strlen(key_name));
data/corosync-3.1.0/exec/cmap.c:1040: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 member_config_version[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/cmap.c:1056: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(&config_version, item->value, value_len);
data/corosync-3.1.0/exec/cmap.c:1127: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(item->value, &u16, sizeof(u16));
data/corosync-3.1.0/exec/cmap.c:1133: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(item->value, &u32, sizeof(u32));
data/corosync-3.1.0/exec/cmap.c:1139: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(item->value, &u64, sizeof(u64));
data/corosync-3.1.0/exec/cmap.c:1144: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(item->value, &flt, sizeof(flt));
data/corosync-3.1.0/exec/cmap.c:1149: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(item->value, &dbl, sizeof(dbl));
data/corosync-3.1.0/exec/coroparse.c:136: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 error_string_response[512];
data/corosync-3.1.0/exec/coroparse.c:298:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[512];
data/corosync-3.1.0/exec/coroparse.c:302: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 new_keyname[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/coroparse.c:303: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 formated_err[384];
data/corosync-3.1.0/exec/coroparse.c:573:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[ICMAP_KEYNAME_MAXLEN + 1];
data/corosync-3.1.0/exec/coroparse.c:574: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 formated_err[256];
data/corosync-3.1.0/exec/coroparse.c:1473:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/coroparse.c:1475: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 formated_err[256];
data/corosync-3.1.0/exec/coroparse.c:1543:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[PATH_MAX + FILENAME_MAX + 1];
data/corosync-3.1.0/exec/coroparse.c:1544: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 uidgid_dirname[PATH_MAX + FILENAME_MAX + 1];
data/corosync-3.1.0/exec/coroparse.c:1548:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/coroparse.c:1591:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fp = fopen (filename, "r");
data/corosync-3.1.0/exec/coroparse.c:1623:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/coroparse.c:1630: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 (filename, "r");
data/corosync-3.1.0/exec/coroparse.c:1632: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 error_str[100];
data/corosync-3.1.0/exec/cpg.c:515: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 res[CPG_MAX_NAME_LENGTH * 4 + 1];
data/corosync-3.1.0/exec/cpg.c:553: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 (my_member_list, member_list, member_list_entries *
data/corosync-3.1.0/exec/cpg.c:599: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 (my_old_member_list, my_member_list,
data/corosync-3.1.0/exec/cpg.c:640: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 (&res->ring_id, &last_sync_ring_id, sizeof (mar_cpg_ring_id_t));
data/corosync-3.1.0/exec/cpg.c:641: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 (res->member_list, member_list, res->member_list_entries * sizeof (mar_uint32_t));
data/corosync-3.1.0/exec/cpg.c:742: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(&res->group_name, group_name, sizeof(mar_cpg_name_t));
data/corosync-3.1.0/exec/cpg.c:754: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 (retgi, left_list, left_list_entries * sizeof(mar_cpg_address_t));
data/corosync-3.1.0/exec/cpg.c:762: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 (retgi, joined_list, joined_list_entries * sizeof(mar_cpg_address_t));
data/corosync-3.1.0/exec/cpg.c:888: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(&pcd->cpg_group, &cpg_group, sizeof(struct cpg_name));
data/corosync-3.1.0/exec/cpg.c:1091:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&req_exec_cpg_procjoin.group_name, group_name, sizeof(mar_cpg_name_t));
data/corosync-3.1.0/exec/cpg.c:1212: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(&pi->group, name, sizeof(*name));
data/corosync-3.1.0/exec/cpg.c:1243: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(&jld->cpg_group, &pi->group, sizeof(mar_cpg_name_t));
data/corosync-3.1.0/exec/cpg.c:1354: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(&stored_msg->group_name, &jle->group_name, sizeof(mar_cpg_name_t));
data/corosync-3.1.0/exec/cpg.c:1379: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(&res_lib_cpg_mcast.group_name, &req_exec_cpg_mcast->group_name,
data/corosync-3.1.0/exec/cpg.c:1437: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(&res_lib_cpg_mcast.group_name, &req_exec_cpg_mcast->group_name,
data/corosync-3.1.0/exec/cpg.c:1527: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 (&jle->group_name, &pi->group, sizeof (mar_cpg_name_t));
data/corosync-3.1.0/exec/cpg.c:1703: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 (path, O_RDWR, 0600);
data/corosync-3.1.0/exec/cpg.c:1934:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&req_exec_cpg_mcast.group_name, &group_name,
data/corosync-3.1.0/exec/cpg.c:1993:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&req_exec_cpg_mcast.group_name, &group_name,
data/corosync-3.1.0/exec/cpg.c:2052:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&req_exec_cpg_mcast.group_name, &cpd->group_name,
data/corosync-3.1.0/exec/cpg.c:2205:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (new_pi, pi, sizeof (struct process_info));
data/corosync-3.1.0/exec/cpg.c:2296: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 (&res_lib_cpg_iterationnext.description.group,
data/corosync-3.1.0/exec/cs_queue.h:138: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 (cs_queue_item, item, cs_queue->size_per_item);
data/corosync-3.1.0/exec/icmap.c:476: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_item->value, value, new_value_len);
data/corosync-3.1.0/exec/icmap.c:719: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(value, tmp_value, tmp_value_len);
data/corosync-3.1.0/exec/icmap.c:775:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_value[16];
data/corosync-3.1.0/exec/icmap.c:791: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(value, key_value, icmap_get_valuetype_len(key_type));
data/corosync-3.1.0/exec/ipc_glue.c:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[CS_IPCS_MAPPER_SERV_NAME];
data/corosync-3.1.0/exec/ipc_glue.c:177:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/ipc_glue.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 fname[32];
data/corosync-3.1.0/exec/ipc_glue.c:224: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/corosync-3.1.0/exec/ipc_glue.c:227:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen (fname, "r");
data/corosync-3.1.0/exec/ipc_glue.c:465: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 (write_buf, iov[i].iov_base, iov[i].iov_len);
data/corosync-3.1.0/exec/ipc_glue.c:672: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(ipcs_stats, &global_stats, sizeof(global_stats));
data/corosync-3.1.0/exec/ipc_glue.c:700: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(&ipcs_stats->cnx, cnx, sizeof(struct cs_ipcs_conn_context));
data/corosync-3.1.0/exec/ipcs_stats.h:42: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 proc_name[32];
data/corosync-3.1.0/exec/ipcs_stats.h:43:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[1];
data/corosync-3.1.0/exec/logconfig.c:56: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 error_string_response[512];
data/corosync-3.1.0/exec/logconfig.c:137: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 new_format_buffer[PATH_MAX];
data/corosync-3.1.0/exec/logconfig.c:140: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 timestamp_str_to_add[8];
data/corosync-3.1.0/exec/logconfig.c:204: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(timestamp_str_to_add, "%t");
data/corosync-3.1.0/exec/logconfig.c:207: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(timestamp_str_to_add, "%T");
data/corosync-3.1.0/exec/logconfig.c:223: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(timestamp_str_to_add, "%T");
data/corosync-3.1.0/exec/logconfig.c:225: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(timestamp_str_to_add, "%t");
data/corosync-3.1.0/exec/logconfig.c:294: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 formatted_error_reason[128];
data/corosync-3.1.0/exec/logconfig.c:297:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[MAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/logconfig.c:361:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[MAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/logconfig.c:566:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[CMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/logconfig.c:568:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_subsys[MAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/logconfig.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 key_item[MAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/logsys.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 subsys[LOGSYS_MAX_SUBSYS_NAMELEN];	/* subsystem name */
data/corosync-3.1.0/exec/logsys.c:96: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 *files[MAX_FILES_PER_SUBSYS];
data/corosync-3.1.0/exec/logsys.c:150: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 error_string_response[512];
data/corosync-3.1.0/exec/logsys.c:152:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file_format[128];
data/corosync-3.1.0/exec/logsys.c:230: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 error_str[LOGSYS_MAX_PERROR_MSG_LEN];
data/corosync-3.1.0/exec/logsys.c:312: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 tempsubsys[LOGSYS_MAX_SUBSYS_NAMELEN];
data/corosync-3.1.0/exec/logsys.c:578: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(file_format, "%t ");
data/corosync-3.1.0/exec/logsys.c:583: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(file_format, "%T ");
data/corosync-3.1.0/exec/logsys.c:587: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(file_format, "[%P] %H %N");
data/corosync-3.1.0/exec/logsys.c:597: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 syslog_format[128];
data/corosync-3.1.0/exec/logsys.c:598: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_format[128];
data/corosync-3.1.0/exec/main.c:168: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 corosync_config_file[PATH_MAX + 1] = COROSYSCONFDIR "/corosync.conf";
data/corosync-3.1.0/exec/main.c:212: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 fname[PATH_MAX];
data/corosync-3.1.0/exec/main.c:213: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 fdata_fname[PATH_MAX];
data/corosync-3.1.0/exec/main.c: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 time_str[PATH_MAX];
data/corosync-3.1.0/exec/main.c:336: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 member_ip[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/main.c:337: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 member_join_count[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/main.c:338:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char member_status[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/main.c:362: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 member_status[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/main.c:387:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&corosync_ring_id, ring_id, sizeof (struct memb_ring_id));
data/corosync-3.1.0/exec/main.c:451: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).
	devnull = open("/dev/null", O_RDWR);
data/corosync-3.1.0/exec/main.c:639:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[PATH_MAX];
data/corosync-3.1.0/exec/main.c:643: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, 0700);
data/corosync-3.1.0/exec/main.c:657: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 (filename, O_CREAT|O_RDWR, 0700);
data/corosync-3.1.0/exec/main.c:682:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[PATH_MAX];
data/corosync-3.1.0/exec/main.c:689: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, 0700);
data/corosync-3.1.0/exec/main.c:691: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 (filename, O_CREAT|O_RDWR, 0700);
data/corosync-3.1.0/exec/main.c:1087: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_s[17];
data/corosync-3.1.0/exec/main.c:1093: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).
	lf = open (lockfile, O_WRONLY | O_CREAT, 0640);
data/corosync-3.1.0/exec/main.c:1181: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("/sys/fs/cgroup/cpu/cpu.rt_runtime_us", "rt");
data/corosync-3.1.0/exec/main.c:1191: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("/sys/fs/cgroup/cpu/tasks", "w");
data/corosync-3.1.0/exec/mon.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 key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/mon.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 key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/mon.c:351:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/mon.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 key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/mon.c:448:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/pload.c:333: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 log_buffer[1024];
data/corosync-3.1.0/exec/pload.c:342: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 (log_buffer, "%5d Writes %d bytes per write %7.3f seconds runtime, %9.3f TP/S, %9.3f MB/S.",
data/corosync-3.1.0/exec/service.c:112:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *service_stats_rx[SERVICES_COUNT_MAX][SERVICE_HANDLER_MAXIMUM_COUNT];
data/corosync-3.1.0/exec/service.c:113:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *service_stats_tx[SERVICES_COUNT_MAX][SERVICE_HANDLER_MAXIMUM_COUNT];
data/corosync-3.1.0/exec/service.c:124:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/service.c:266:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/service.h:78:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 const char *service_stats_rx[SERVICES_COUNT_MAX][SERVICE_HANDLER_MAXIMUM_COUNT];
data/corosync-3.1.0/exec/service.h:79:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 const char *service_stats_tx[SERVICES_COUNT_MAX][SERVICE_HANDLER_MAXIMUM_COUNT];
data/corosync-3.1.0/exec/stats.c:253: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(value, (char *)(stat_array) + conv->offset, *value_len);
data/corosync-3.1.0/exec/stats.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 param[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/stats.c:395: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(value, &schedmiss_event[sm_event].timestamp, sizeof(uint64_t));
data/corosync-3.1.0/exec/stats.c:400: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(value, &schedmiss_event[sm_event].delay, sizeof(float));
data/corosync-3.1.0/exec/stats.c:414: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 param[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/stats.c:432:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char param[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/stats.c:575: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(&tracker->old_value, &value, value_len);
data/corosync-3.1.0/exec/stats.c:587: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 new_value[64];
data/corosync-3.1.0/exec/stats.c:610: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(&old_val, &new_val, sizeof(new_val));
data/corosync-3.1.0/exec/stats.c:716: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 param[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/stats.c:726: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 param[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/stats.c:739: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 param[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/stats.c:751: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 param[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/stats.c:761: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 param[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/sync.c:89: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[128];
data/corosync-3.1.0/exec/sync.c:279:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf (my_service_list[my_service_list_entries].name,
data/corosync-3.1.0/exec/sync.c:343:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&req_exec_barrier_message.ring_id, &my_ring_id,
data/corosync-3.1.0/exec/sync.c:360: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 (&service_build_message->ring_id, &my_ring_id,
data/corosync-3.1.0/exec/sync.c:383: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 (old_trans_list, my_trans_list, my_trans_list_entries *
data/corosync-3.1.0/exec/sync.c:450:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (my_member_list, member_list,
data/corosync-3.1.0/exec/sync.c:518: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 (&my_ring_id, ring_id, sizeof (struct memb_ring_id));
data/corosync-3.1.0/exec/sync.c:530: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 (my_trans_list, member_list, member_list_entries *
data/corosync-3.1.0/exec/totemconfig.c:95: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 error_string_response[768];
data/corosync-3.1.0/exec/totemconfig.c:157: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 runtime_key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/totemconfig.c:175: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(runtime_key_name, "runtime.config.");
data/corosync-3.1.0/exec/totemconfig.c:185: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 runtime_key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/totemconfig.c:203: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(runtime_key_name, "runtime.config.");
data/corosync-3.1.0/exec/totemconfig.c:212: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 runtime_key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/totemconfig.c:242: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(runtime_key_name, "runtime.config.");
data/corosync-3.1.0/exec/totemconfig.c:258: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 runtime_key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/totemconfig.c:290: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(runtime_key_name, "runtime.config.");
data/corosync-3.1.0/exec/totemconfig.c:374: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 local_error_reason[512];
data/corosync-3.1.0/exec/totemconfig.c:375: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_buf[INET6_ADDRSTRLEN];
data/corosync-3.1.0/exec/totemconfig.c:377: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_key[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/totemconfig.c:627: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_str[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/totemconfig.c:698: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 nodename2[PATH_MAX];
data/corosync-3.1.0/exec/totemconfig.c:699: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_str[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/totemconfig.c:941:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr[INET6_ADDRSTRLEN + 1];
data/corosync-3.1.0/exec/totemconfig.c:984: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 (&nodeid, &totemip.addr, sizeof (unsigned int));
data/corosync-3.1.0/exec/totemconfig.c:1005:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_key[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/totemconfig.c:1101: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 runtime_key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/totemconfig.c:1208:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_key[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/totemconfig.c:1268: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_buf[INET6_ADDRSTRLEN];
data/corosync-3.1.0/exec/totemconfig.c:1328:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_key[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/totemconfig.c:1329:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_key2[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/totemconfig.c:1452:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_key[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/totemconfig.c:1453:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_key2[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/totemconfig.c:1495: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 linknumber_key[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/totemconfig.c:1496:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_key[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/totemconfig.c:1534:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		linknumber = atoi(linknumber_key);
data/corosync-3.1.0/exec/totemconfig.c:1740:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_key[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/totemconfig.c:1775: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 (totem_config->link_mode, "passive");
data/corosync-3.1.0/exec/totemconfig.c:1952: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 local_error_reason[512];
data/corosync-3.1.0/exec/totemconfig.c:1953: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 parse_error[512];
data/corosync-3.1.0/exec/totemconfig.c:2124: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_str[100];
data/corosync-3.1.0/exec/totemconfig.c:2127: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 (key_location, O_RDONLY);
data/corosync-3.1.0/exec/totemconfig.c:2173: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_key[TOTEM_PRIVATE_KEY_LEN_MAX];
data/corosync-3.1.0/exec/totemconfig.c:2177: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(old_key, totem_config->private_key, sizeof(totem_config->private_key));
data/corosync-3.1.0/exec/totemconfig.c:2199:5:  [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(error_string_response, "key is too long");
data/corosync-3.1.0/exec/totemconfig.c:2203:5:  [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(error_string_response, "key is too short");
data/corosync-3.1.0/exec/totemconfig.c:2210:5:  [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(error_string_response, "can't load private key");
data/corosync-3.1.0/exec/totemconfig.c:2372: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_interfaces, totem_config->interfaces, sizeof (struct totem_interface) * INTERFACE_MAX);
data/corosync-3.1.0/exec/totemip.c:126: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(addr1, addr2, sizeof(struct totem_ip_address));
data/corosync-3.1.0/exec/totemip.c:138:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&addr, ip_addr->addr, sizeof (uint32_t));
data/corosync-3.1.0/exec/totemip.c:164: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 (&family, &totemip_a->family, sizeof (unsigned short));
data/corosync-3.1.0/exec/totemip.c:167: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 (&ipv4_a1, totemip_a->addr, sizeof (struct in_addr));
data/corosync-3.1.0/exec/totemip.c:168: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 (&ipv4_a2, totemip_b->addr, sizeof (struct in_addr));
data/corosync-3.1.0/exec/totemip.c:182: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 (&ipv6_a1, totemip_a->addr, sizeof (struct in6_addr));
data/corosync-3.1.0/exec/totemip.c:183: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 (&ipv6_a2, totemip_b->addr, sizeof (struct in6_addr));
data/corosync-3.1.0/exec/totemip.c:236: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[INET6_ADDRSTRLEN];
data/corosync-3.1.0/exec/totemip.c:258: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[INET6_ADDRSTRLEN];
data/corosync-3.1.0/exec/totemip.c:278: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(&sin->sin_addr, ip_addr->addr, sizeof(struct in_addr));
data/corosync-3.1.0/exec/totemip.c:293: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(&sin->sin6_addr, ip_addr->addr, sizeof(struct in6_addr));
data/corosync-3.1.0/exec/totemip.c:403: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(totemip->addr, &sa->sin_addr, sizeof(struct in_addr));
data/corosync-3.1.0/exec/totemip.c:407: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(totemip->addr, &sa6->sin6_addr, sizeof(struct in6_addr));
data/corosync-3.1.0/exec/totemip.c:431: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(ip_addr->addr, &sin->sin_addr, sizeof(struct in_addr));
data/corosync-3.1.0/exec/totemip.c:439:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ip_addr->addr, &sin->sin6_addr, sizeof(struct in6_addr));
data/corosync-3.1.0/exec/totemknet.c:149: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 iov_buffer[KNET_MAX_PACKET_SIZE];
data/corosync-3.1.0/exec/totemknet.c:151: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 *link_status[INTERFACE_MAX];
data/corosync-3.1.0/exec/totemknet.c:251: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_str[LOGSYS_MAX_PERROR_MSG_LEN];						\
data/corosync-3.1.0/exec/totemknet.c:665:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[sizeof(struct knet_log_msg)*4];
data/corosync-3.1.0/exec/totemknet.c:915: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(crypto_cfg.crypto_cipher_type, instance->totem_config->crypto_cipher_type, sizeof(crypto_cfg.crypto_model));
data/corosync-3.1.0/exec/totemknet.c:916: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(crypto_cfg.crypto_hash_type, instance->totem_config->crypto_hash_type, sizeof(crypto_cfg.crypto_model));
data/corosync-3.1.0/exec/totemknet.c:917: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(crypto_cfg.private_key, instance->totem_config->private_key, instance->totem_config->private_key_len);
data/corosync-3.1.0/exec/totemknet.c:1638: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(crypto_cfg.crypto_model, "none");
data/corosync-3.1.0/exec/totemknet.c:1639: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(crypto_cfg.crypto_cipher_type, "none");
data/corosync-3.1.0/exec/totemknet.c:1640: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(crypto_cfg.crypto_hash_type, "none");
data/corosync-3.1.0/exec/totemknet.c:1798:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[PATH_MAX + FILENAME_MAX + 1];
data/corosync-3.1.0/exec/totemknet.c:1799: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 updown_dirname[PATH_MAX + FILENAME_MAX + 1];
data/corosync-3.1.0/exec/totemknet.c:1869:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	bits = atoi(prefix);
data/corosync-3.1.0/exec/totemknet.c:1877: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(output_addr, input_addr, coloncolon-input_addr);
data/corosync-3.1.0/exec/totemknet.c:1878: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(output_addr + (coloncolon-input_addr), "::%x", nodeid);
data/corosync-3.1.0/exec/totemknet.c:1906: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 device_name[IFNAMSIZ+1];
data/corosync-3.1.0/exec/totemknet.c:1913: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 parsed_ipaddr[INET6_ADDRSTRLEN];
data/corosync-3.1.0/exec/totemknet.c:1914: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[19];
data/corosync-3.1.0/exec/totemknet.c:1939:91:  [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).
	knet_log_printf (LOGSYS_LEVEL_INFO, "Local nozzle IP address is %s / %d", parsed_ipaddr, atoi(prefix));
data/corosync-3.1.0/exec/totemknet.c:2023: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[32];
data/corosync-3.1.0/exec/totemknet.c:2079:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mac, macaddr_str, 12);
data/corosync-3.1.0/exec/totempg.c:201: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 data[MESSAGE_SIZE_MAX+KNET_MAX_PACKET_SIZE];
data/corosync-3.1.0/exec/totempg.c:429: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(aligned_msg, msg, msg_len);
data/corosync-3.1.0/exec/totempg.c:444: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(msg, aligned_msg, msg_len);
data/corosync-3.1.0/exec/totempg.c:471: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(iovec_aligned.iov_base, iovec->iov_base, iovec->iov_len);
data/corosync-3.1.0/exec/totempg.c:536: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(aligned_iovec.iov_base, msg, msg_len);
data/corosync-3.1.0/exec/totempg.c:560: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 (stripped_iovec.iov_base,
data/corosync-3.1.0/exec/totempg.c:599:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char header[FRAME_SIZE_MAX];
data/corosync-3.1.0/exec/totempg.c:640: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 (header, msg, datasize);
data/corosync-3.1.0/exec/totempg.c:663: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 (&assembly->data[assembly->index], &data[datasize],
data/corosync-3.1.0/exec/totempg.c:896: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 (&iovec[dest++], &iovec_in[src],
data/corosync-3.1.0/exec/totempg.c:940: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 (&fragmentation_data[fragment_size],
data/corosync-3.1.0/exec/totempg.c:941:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				(char *)iovec[i].iov_base + copy_base, copy_len);
data/corosync-3.1.0/exec/totempg.c:958:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				data_ptr = (unsigned char *)iovec[i].iov_base + copy_base;
data/corosync-3.1.0/exec/totempg.c:963: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 (&fragmentation_data[fragment_size],
data/corosync-3.1.0/exec/totempg.c:964: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.
				(unsigned char *)iovec[i].iov_base + copy_base, copy_len);
data/corosync-3.1.0/exec/totempg.c:1202: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_groups[instance->groups_cnt],
data/corosync-3.1.0/exec/totempg.c:1496: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 iface_string[256 * INTERFACE_MAX];
data/corosync-3.1.0/exec/totempg.c:1497: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 one_iface[ONE_IFACE_LEN+1];
data/corosync-3.1.0/exec/totempg.c:1599: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(config, totempg_totem_config, sizeof(struct totem_config));
data/corosync-3.1.0/exec/totempg.c:1601: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(config->orig_interfaces, totempg_totem_config->interfaces, sizeof(struct totem_interface) * INTERFACE_MAX);
data/corosync-3.1.0/exec/totempg.c:1610: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(totempg_totem_config->interfaces, config->interfaces, sizeof(struct totem_interface) * INTERFACE_MAX);
data/corosync-3.1.0/exec/totempg.c:1611: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(totempg_totem_config, config, sizeof(struct totem_config));
data/corosync-3.1.0/exec/totemsrp.c:221: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 end_of_memb_join[0];
data/corosync-3.1.0/exec/totemsrp.c:258: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 end_of_commit_token[0];
data/corosync-3.1.0/exec/totemsrp.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 orf_token_retransmit[TOKEN_SIZE_MAX];
data/corosync-3.1.0/exec/totemsrp.c:530: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 commit_token_storage[40000];
data/corosync-3.1.0/exec/totemsrp.c:699: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_str[LOGSYS_MAX_PERROR_MSG_LEN];						\
data/corosync-3.1.0/exec/totemsrp.c:1072: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(iface_ptr, &instance->totem_config->interfaces[i].member_list[n], sizeof(struct totem_ip_address));
data/corosync-3.1.0/exec/totemsrp.c:1410: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 int_buf[32];
data/corosync-3.1.0/exec/totemsrp.c:1411: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 list_str[512];
data/corosync-3.1.0/exec/totemsrp.c:1542: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 (&instance->my_old_ring_id, &instance->my_ring_id,
data/corosync-3.1.0/exec/totemsrp.c:1918: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 left_node_msg[1024];
data/corosync-3.1.0/exec/totemsrp.c:1919: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 joined_node_msg[1024];
data/corosync-3.1.0/exec/totemsrp.c:1920: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 failed_node_msg[1024];
data/corosync-3.1.0/exec/totemsrp.c:1955: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 (&instance->my_memb_list, instance->my_new_memb_list,
data/corosync-3.1.0/exec/totemsrp.c:2010: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 (instance->my_proc_list, instance->my_new_memb_list,
data/corosync-3.1.0/exec/totemsrp.c:2125: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 (&instance->my_old_ring_id, &instance->my_ring_id,
data/corosync-3.1.0/exec/totemsrp.c:2304: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 (&my_new_memb_ring_id_list[i],
data/corosync-3.1.0/exec/totemsrp.c:2346: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 (instance->my_deliver_memb_list, instance->my_trans_memb_list,
data/corosync-3.1.0/exec/totemsrp.c:2420: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 (&message_item.mcast->ring_id, &instance->my_ring_id,
data/corosync-3.1.0/exec/totemsrp.c:2423:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (((char *)message_item.mcast) + sizeof (struct mcast),
data/corosync-3.1.0/exec/totemsrp.c:2515:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (&addr[addr_idx], iovec[i].iov_base, iovec[i].iov_len);
data/corosync-3.1.0/exec/totemsrp.c:2734: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 (&mcast->ring_id, &instance->my_ring_id, sizeof (struct memb_ring_id));
data/corosync-3.1.0/exec/totemsrp.c:2780: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 retransmit_msg[1024];
data/corosync-3.1.0/exec/totemsrp.c:2781: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 value[64];
data/corosync-3.1.0/exec/totemsrp.c:2791: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 (retransmit_msg, "Retransmit List: ");
data/corosync-3.1.0/exec/totemsrp.c:2796:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf (value, "%x ", rtr_list[i].seq);
data/corosync-3.1.0/exec/totemsrp.c:2890: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 (&rtr_list[orf_token->rtr_list_entries].ring_id,
data/corosync-3.1.0/exec/totemsrp.c:2978: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 (instance->orf_token_retransmit, orf_token, orf_token_size);
data/corosync-3.1.0/exec/totemsrp.c:3013: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 (&token_hold_cancel.ring_id, &instance->my_ring_id,
data/corosync-3.1.0/exec/totemsrp.c:3054: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 (&orf_token.ring_id, &instance->my_ring_id, sizeof (struct memb_ring_id));
data/corosync-3.1.0/exec/totemsrp.c:3076: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 (instance->my_new_memb_list, addr,
data/corosync-3.1.0/exec/totemsrp.c:3081: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 (&memb_list[instance->commit_token->memb_index].ring_id,
data/corosync-3.1.0/exec/totemsrp.c:3160: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 (instance->orf_token_retransmit, commit_token, commit_token_size);
data/corosync-3.1.0/exec/totemsrp.c:3189: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 (instance->orf_token_retransmit, instance->commit_token, commit_token_size);
data/corosync-3.1.0/exec/totemsrp.c:3284:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (addr, token_memb,
data/corosync-3.1.0/exec/totemsrp.c:3292: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 memb_join_data[40000];
data/corosync-3.1.0/exec/totemsrp.c:3326:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&addr[addr_idx],
data/corosync-3.1.0/exec/totemsrp.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 (&addr[addr_idx],
data/corosync-3.1.0/exec/totemsrp.c:3355: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 memb_join_data[40000];
data/corosync-3.1.0/exec/totemsrp.c:3406:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&addr[addr_idx],
data/corosync-3.1.0/exec/totemsrp.c:3413:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&addr[addr_idx],
data/corosync-3.1.0/exec/totemsrp.c:3443: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 (&memb_merge_detect.ring_id, &instance->my_ring_id,
data/corosync-3.1.0/exec/totemsrp.c:3458: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 (&instance->my_ring_id, ring_id, sizeof (struct memb_ring_id));
data/corosync-3.1.0/exec/totemsrp.c:3813: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 token_storage[1500];
data/corosync-3.1.0/exec/totemsrp.c:3814: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 token_convert[1500];
data/corosync-3.1.0/exec/totemsrp.c:3858: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 (token, msg, sizeof (struct orf_token));
data/corosync-3.1.0/exec/totemsrp.c:3859: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 (&token->rtr_list[0], (char *)msg + sizeof (struct orf_token),
data/corosync-3.1.0/exec/totemsrp.c:4057: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 (instance->my_deliver_memb_list, instance->my_trans_memb_list,
data/corosync-3.1.0/exec/totemsrp.c:4189: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 (&mcast_header, mcast_in, sizeof (struct mcast));
data/corosync-3.1.0/exec/totemsrp.c:4247: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 (&mcast_header, msg, sizeof (struct mcast));
data/corosync-3.1.0/exec/totemsrp.c:4329: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 (sort_queue_item.mcast, msg, msg_len);
data/corosync-3.1.0/exec/totemsrp.c:4365: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 (&memb_merge_detect, msg,
data/corosync-3.1.0/exec/totemsrp.c:4826: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 (memb_commit_token_convert, msg, msg_len);
data/corosync-3.1.0/exec/totemsrp.c:4852: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 (instance->commit_token, memb_commit_token, msg_len);
data/corosync-3.1.0/exec/totemudp.c:154: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 iov_buffer[UDP_RECEIVE_FRAME_SIZE_MAX];
data/corosync-3.1.0/exec/totemudp.c:156: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 iov_buffer_flush[UDP_RECEIVE_FRAME_SIZE_MAX];
data/corosync-3.1.0/exec/totemudp.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 _error_str[LOGSYS_MAX_PERROR_MSG_LEN];						\
data/corosync-3.1.0/exec/totemudp.c:957: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(&mreq6.ipv6mr_multiaddr, &mcast_sin6->sin6_addr, sizeof(struct in6_addr));
data/corosync-3.1.0/exec/totemudp.c:1342: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 *statuses[INTERFACE_MAX] = {(char*)"OK"};
data/corosync-3.1.0/exec/totemudp.c:1372: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 (&instance->token_target, &member->member,
data/corosync-3.1.0/exec/totemudp.c:1466: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_member->member, member, sizeof (struct totem_ip_address));
data/corosync-3.1.0/exec/totemudpu.c:142: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 iov_buffer[UDP_RECEIVE_FRAME_SIZE_MAX];
data/corosync-3.1.0/exec/totemudpu.c:236: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_str[LOGSYS_MAX_PERROR_MSG_LEN];						\
data/corosync-3.1.0/exec/totemudpu.c:801: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 *statuses[INTERFACE_MAX] = {(char*)"OK"};
data/corosync-3.1.0/exec/totemudpu.c:1136: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 (&instance->token_target, &member->member,
data/corosync-3.1.0/exec/totemudpu.c:1302: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_member->member, member, sizeof (struct totem_ip_address));
data/corosync-3.1.0/exec/util.c:142: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_name[CS_MAX_NAME_LENGTH];
data/corosync-3.1.0/exec/util.c:147: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 (ret_name, name->value, min(name->length, CS_MAX_NAME_LENGTH -1));
data/corosync-3.1.0/exec/util.c:174:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char path[PATH_MAX] = {'\0'};
data/corosync-3.1.0/exec/votequorum.c:71: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 qdevice_name[VOTEQUORUM_QDEVICE_MAX_NAME_LEN];
data/corosync-3.1.0/exec/votequorum.c:125:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		qdevice_name[VOTEQUORUM_QDEVICE_MAX_NAME_LEN];
data/corosync-3.1.0/exec/votequorum.c: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	oldname[VOTEQUORUM_QDEVICE_MAX_NAME_LEN];
data/corosync-3.1.0/exec/votequorum.c:131: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	newname[VOTEQUORUM_QDEVICE_MAX_NAME_LEN];
data/corosync-3.1.0/exec/votequorum.c:708:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (atoi(atb_string)) {
data/corosync-3.1.0/exec/votequorum.c:780:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[PATH_MAX];
data/corosync-3.1.0/exec/votequorum.c:786:19:  [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).
	ev_tracking_fd = open(filename, O_RDWR, 0700);
data/corosync-3.1.0/exec/votequorum.c:798:19:  [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).
	ev_tracking_fd = open (filename, O_CREAT|O_RDWR, 0700);
data/corosync-3.1.0/exec/votequorum.c:1152:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_key[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/votequorum.c:1788: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 res_lib_votequorum_quorum_notification) + sizeof(struct votequorum_node) * (PROCESSOR_COUNT_MAX + 2)];
data/corosync-3.1.0/exec/votequorum.c:1849: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 res_lib_votequorum_nodelist_notification) + sizeof(uint32_t) * quorum_members_entries];
data/corosync-3.1.0/exec/votequorum.c:2421: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(previous_quorum_members, quorum_members, sizeof(unsigned int) * quorum_members_entries);
data/corosync-3.1.0/exec/votequorum.c:2424: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(quorum_members, member_list, sizeof(unsigned int) * member_list_entries);
data/corosync-3.1.0/exec/votequorum.c:2426: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(&quorum_ringid, ring_id, sizeof(*ring_id));
data/corosync-3.1.0/exec/vsf_quorum.c:130: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 view_buf[64];
data/corosync-3.1.0/exec/vsf_quorum.c:183: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(quorum_view_list, view_list, sizeof(unsigned int)*view_list_entries);
data/corosync-3.1.0/exec/vsf_quorum.c:303: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 (my_member_list, member_list, member_list_entries *
data/corosync-3.1.0/exec/vsf_quorum.c:406: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 (my_old_member_list, my_member_list,
data/corosync-3.1.0/exec/vsf_quorum.c:558: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_v0[size_v0];
data/corosync-3.1.0/exec/vsf_quorum.c:559: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_v1[size_v1];
data/corosync-3.1.0/exec/vsf_ykd.c:245: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 (&ambiguous_sessions_max[ambiguous_sessions_max_entries],
data/corosync-3.1.0/exec/vsf_ykd.c:408: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 (&state_received_process[state_position].ykd_state,
data/corosync-3.1.0/exec/vsf_ykd.c:426: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 (ykd_state.ambiguous_sessions[ykd_state.ambiguous_sessions_entries].member_list,
data/corosync-3.1.0/exec/vsf_ykd.c:447: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 (ykd_state.last_primary.member_list, ykd_view_list, sizeof (ykd_view_list));
data/corosync-3.1.0/exec/vsf_ykd.c:470: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 (&ykd_ring_id, ring_id, sizeof (struct memb_ring_id));
data/corosync-3.1.0/exec/vsf_ykd.c:478: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 (ykd_view_list, member_list,
data/corosync-3.1.0/exec/vsf_ykd.c:497: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 (state_received_process, state_received_confchg,
data/corosync-3.1.0/exec/wd.c:62: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 res_path[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/wd.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 name[CS_MAX_NAME_LENGTH];
data/corosync-3.1.0/exec/wd.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 key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/wd.c:278:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/wd.c:426:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/wd.c:522: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 res_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/wd.c:523: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 res_type[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/wd.c:524:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_key[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/wd.c:551: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 res_name[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/wd.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 res_type[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/wd.c:553:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_key[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/wd.c:660: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).
	dog = open(watchdog_device, O_WRONLY);
data/corosync-3.1.0/include/corosync/cfg.h:98:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char address[sizeof(struct sockaddr_in6)];
data/corosync-3.1.0/include/corosync/coroapi.h:114:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char  addr[TOTEMIP_ADDRLEN];
data/corosync-3.1.0/include/corosync/cpg.h:122: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 value[CPG_MAX_NAME_LENGTH];
data/corosync-3.1.0/include/corosync/ipc_cfg.h:100:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char interface_name[CFG_MAX_INTERFACES][CFG_INTERFACE_NAME_MAX_LEN] __attribute__((aligned(8)));
data/corosync-3.1.0/include/corosync/ipc_cfg.h:101:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char interface_status[CFG_MAX_INTERFACES][CFG_INTERFACE_STATUS_MAX_LEN] __attribute__((aligned(8)));
data/corosync-3.1.0/include/corosync/ipc_cpg.h:114: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 value[CPG_MAX_NAME_LENGTH] __attribute__((aligned(8)));
data/corosync-3.1.0/include/corosync/ipc_cpg.h:136:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&dest->value, &src->value, CPG_MAX_NAME_LENGTH);
data/corosync-3.1.0/include/corosync/ipc_cpg.h: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 (&dest->value, &src->value, CPG_MAX_NAME_LENGTH);
data/corosync-3.1.0/include/corosync/ipc_cpg.h:475:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char path_to_file[CPG_ZC_PATH_LEN] __attribute__((aligned(8)));
data/corosync-3.1.0/include/corosync/ipc_votequorum.h:84: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[VOTEQUORUM_QDEVICE_MAX_NAME_LEN];
data/corosync-3.1.0/include/corosync/ipc_votequorum.h:92: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[VOTEQUORUM_QDEVICE_MAX_NAME_LEN];
data/corosync-3.1.0/include/corosync/ipc_votequorum.h:100: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 oldname[VOTEQUORUM_QDEVICE_MAX_NAME_LEN];
data/corosync-3.1.0/include/corosync/ipc_votequorum.h:101:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char newname[VOTEQUORUM_QDEVICE_MAX_NAME_LEN];
data/corosync-3.1.0/include/corosync/ipc_votequorum.h:109: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[VOTEQUORUM_QDEVICE_MAX_NAME_LEN];
data/corosync-3.1.0/include/corosync/ipc_votequorum.h: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 name[VOTEQUORUM_QDEVICE_MAX_NAME_LEN];
data/corosync-3.1.0/include/corosync/ipc_votequorum.h: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 qdevice_name[VOTEQUORUM_QDEVICE_MAX_NAME_LEN];
data/corosync-3.1.0/include/corosync/logsys.h:318: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 _error_str[LOGSYS_MAX_PERROR_MSG_LEN];						\
data/corosync-3.1.0/include/corosync/mar_gen.h:215:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (dest->value, src->value, CS_MAX_NAME_LENGTH);
data/corosync-3.1.0/include/corosync/mar_gen.h:228:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (dest->value, src->value, CS_MAX_NAME_LENGTH);
data/corosync-3.1.0/include/corosync/sq.h:196: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 (sq_dest->items, sq_src->items,
data/corosync-3.1.0/include/corosync/sq.h: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 (sq_dest->items_inuse, sq_src->items_inuse,
data/corosync-3.1.0/include/corosync/sq.h:200: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 (sq_dest->items_miss_count, sq_src->items_miss_count,
data/corosync-3.1.0/include/corosync/sq.h:237: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 (sq_item, item, sq->size_per_item);
data/corosync-3.1.0/include/corosync/totem/totem.h:174:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char private_key[TOTEM_PRIVATE_KEY_LEN_MAX];
data/corosync-3.1.0/include/corosync/totem/totem.h:205: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 link_mode[TOTEM_LINK_MODE_BYTES];
data/corosync-3.1.0/include/corosync/totem/totem.h: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 crypto_model[CONFIG_STRING_LEN_MAX];
data/corosync-3.1.0/include/corosync/totem/totem.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 crypto_cipher_type[CONFIG_STRING_LEN_MAX];
data/corosync-3.1.0/include/corosync/totem/totem.h: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 crypto_hash_type[CONFIG_STRING_LEN_MAX];
data/corosync-3.1.0/include/corosync/totem/totem.h:233: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 knet_compression_model[CONFIG_STRING_LEN_MAX];
data/corosync-3.1.0/include/corosync/totem/totemip.h:67:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char  addr[TOTEMIP_ADDRLEN];
data/corosync-3.1.0/include/corosync/votequorum.h:85:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char qdevice_name[VOTEQUORUM_QDEVICE_MAX_NAME_LEN];
data/corosync-3.1.0/lib/cfg.c:110:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&cfg_inst->callbacks, cfg_callbacks, sizeof (corosync_cfg_callbacks_t));
data/corosync-3.1.0/lib/cfg.c:156: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 dispatch_buf[IPC_DISPATCH_SIZE];
data/corosync-3.1.0/lib/cfg.c:206: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 (&callbacks, &cfg_inst->callbacks, sizeof (corosync_cfg_callbacks_t));
data/corosync-3.1.0/lib/cfg.c:496: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 response_buf[IPC_RESPONSE_SIZE];
data/corosync-3.1.0/lib/cfg.c:497: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 zeroes[sizeof(struct sockaddr_storage)];
data/corosync-3.1.0/lib/cfg.c:543: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(&in->sin_addr, addr_buf, sizeof(struct in_addr));
data/corosync-3.1.0/lib/cfg.c:553: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(&in6->sin6_addr, addr_buf, sizeof(struct in6_addr));
data/corosync-3.1.0/lib/cmap.c:238: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 dispatch_buf[IPC_DISPATCH_SIZE];
data/corosync-3.1.0/lib/cmap.c:420:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(req_lib_cmap_set.key_name.value, key_name, strlen(key_name));
data/corosync-3.1.0/lib/cmap.c:531:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(req_lib_cmap_delete.key_name.value, key_name, strlen(key_name));
data/corosync-3.1.0/lib/cmap.c:587:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(req_lib_cmap_get.key_name.value, key_name, strlen(key_name));
data/corosync-3.1.0/lib/cmap.c:627:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(value, res_lib_cmap_get->value, res_lib_cmap_get->value_len);
data/corosync-3.1.0/lib/cmap.c:645:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_value[16];
data/corosync-3.1.0/lib/cmap.c:662: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(value, key_value, value_size);
data/corosync-3.1.0/lib/cmap.c:787:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(req_lib_cmap_adjust_int.key_name.value, key_name, strlen(key_name));
data/corosync-3.1.0/lib/cmap.c:851:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(req_lib_cmap_iter_init.prefix.value, prefix, strlen(prefix));
data/corosync-3.1.0/lib/cmap.c:920: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(key_name, (const char *)res_lib_cmap_iter_next.key_name.value,
data/corosync-3.1.0/lib/cmap.c:1026:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(req_lib_cmap_track_add.key_name.value, key_name, strlen(key_name));
data/corosync-3.1.0/lib/cpg.c:218: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 (&cpg_inst->model_v1_data, model_data, sizeof (cpg_model_v1_data_t));
data/corosync-3.1.0/lib/cpg.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 dispatch_buf[IPC_DISPATCH_SIZE];
data/corosync-3.1.0/lib/cpg.c:446: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 (&cpg_inst_copy, cpg_inst, sizeof (struct cpg_inst));
data/corosync-3.1.0/lib/cpg.c:525: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(assembly_data->assembly_buf + assembly_data->assembly_buf_ptr,
data/corosync-3.1.0/lib/cpg.c:879:7:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	fd = mkstemp (path);
data/corosync-3.1.0/lib/cpg.c:884:8:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
		fd = mkstemp (path);
data/corosync-3.1.0/lib/cpg.c:950:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/corosync-3.1.0/lib/cpg.c:1159: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.
		iov[1].iov_base = (char *)iovec[i].iov_base + iov_sent;
data/corosync-3.1.0/lib/cpg.c:1228: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 (&iov[1], iovec, iov_len * sizeof (struct iovec));
data/corosync-3.1.0/lib/quorum.c:180: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(&quorum_inst->model_v0_data, model_data, sizeof(quorum_model_v0_data_t));
data/corosync-3.1.0/lib/quorum.c:183: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(&quorum_inst->model_v1_data, model_data, sizeof(quorum_model_v1_data_t));
data/corosync-3.1.0/lib/quorum.c:428: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 dispatch_buf[IPC_DISPATCH_SIZE];
data/corosync-3.1.0/lib/sam.c:138:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmap_pid_path[CMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/lib/sam.c:150:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[CMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/lib/sam.c:219:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[CMAP_KEYNAME_MAXLEN + 1];
data/corosync-3.1.0/lib/sam.c:486:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (data, sam_internal_data.user_data, sam_internal_data.user_data_size);
data/corosync-3.1.0/lib/sam.c:574: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 (sam_internal_data.user_data, data, size);
data/corosync-3.1.0/lib/votequorum.c:97: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(&votequorum_inst->callbacks, callbacks, sizeof (*callbacks));
data/corosync-3.1.0/lib/votequorum.c:441: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 dispatch_buf[IPC_DISPATCH_SIZE];
data/corosync-3.1.0/lib/votequorum.c:500: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 (&callbacks, &votequorum_inst->callbacks, sizeof (votequorum_callbacks_t));
data/corosync-3.1.0/test/cpgbench.c:106: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 data[ONE_MEG];
data/corosync-3.1.0/test/cpgbound.c:78:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char buffer[2000000];
data/corosync-3.1.0/test/cpghum.c:84: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 data[DATASIZE];
data/corosync-3.1.0/test/cpghum.c:154: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 msg[1024];
data/corosync-3.1.0/test/cpghum.c:365: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(&header->timestamp, &tv1, sizeof(struct timeval));
data/corosync-3.1.0/test/cpghum.c:633:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			bs = atoi(optarg);
data/corosync-3.1.0/test/cpghum.c:671: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).
			delay_time = atoi(optarg);
data/corosync-3.1.0/test/cpghum.c:677:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			repetitions = atoi(optarg);
data/corosync-3.1.0/test/cpghum.c:680: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).
			print_time = atoi(optarg);
data/corosync-3.1.0/test/cpghum.c:692:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			model = atoi(optarg);
data/corosync-3.1.0/test/cpgverify.c:54: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 crc32[4];
data/corosync-3.1.0/test/cpgverify.c:55:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buffer[0];
data/corosync-3.1.0/test/cpgverify.c:108:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char buffer[200000];
data/corosync-3.1.0/test/cpgverify.c:128:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			iter = atoi(optarg);
data/corosync-3.1.0/test/cpgverify.c:159: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 ((char *)buffer,
data/corosync-3.1.0/test/cpgverify.c:165: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(msg.crc32, &nchsum, sizeof(nchsum)) ;
data/corosync-3.1.0/test/stress_cpgcontext.c:50: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 sha1[20];
data/corosync-3.1.0/test/stress_cpgcontext.c:51:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buffer[0];
data/corosync-3.1.0/test/stress_cpgfdget.c:50: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 sha1[20];
data/corosync-3.1.0/test/stress_cpgfdget.c:51:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buffer[0];
data/corosync-3.1.0/test/stress_cpgzc.c:51: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 sha1[20];
data/corosync-3.1.0/test/stress_cpgzc.c:52:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buffer[0];
data/corosync-3.1.0/test/testcpg.c:84: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 buffer[100];
data/corosync-3.1.0/test/testcpg.c:95: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(buffer, "node/pid " CS_PRI_NODE_ID "/%d", nodeid, pid);
data/corosync-3.1.0/test/testcpg.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[MAXLEN];
data/corosync-3.1.0/test/testcpg.c:105:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostname[HOST_NAME_MAX];
data/corosync-3.1.0/test/testcpg.c:274:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addrStr[128];
data/corosync-3.1.0/test/testcpg.c:342: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(group_name.value, "GROUP");
data/corosync-3.1.0/test/testcpg.c:400: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 inbuf[132];
data/corosync-3.1.0/test/testsam.c:287: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 saved_data[128];
data/corosync-3.1.0/test/testsam.c:288: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 saved_data2[128];
data/corosync-3.1.0/test/testsam.c:865:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[CMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/test/testsam.c:1110:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[CMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/test/testvotequorum1.c:161:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (argc >= 2 && atoi(argv[1])) {
data/corosync-3.1.0/test/testvotequorum1.c:162:46:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if ( (err=votequorum_setexpected(g_handle, atoi(argv[1]))) != CS_OK)
data/corosync-3.1.0/test/testvotequorum1.c:165:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (argc >= 3 && atoi(argv[2])) {
data/corosync-3.1.0/test/testvotequorum1.c:166:46:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if ( (err=votequorum_setvotes(g_handle, 0, atoi(argv[2]))) != CS_OK)
data/corosync-3.1.0/test/testvotequorum2.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(&last_received_ring_id, &ring_id, sizeof(ring_id));
data/corosync-3.1.0/test/testvotequorum2.c:138:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		        send_old_ringid = atoi(optarg)+1;
data/corosync-3.1.0/test/testvotequorum2.c:141:23:  [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).
		        pollcount = atoi(optarg)+1;
data/corosync-3.1.0/test/testvotequorum2.c:147:22:  [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).
		        polltime = atoi(optarg);
data/corosync-3.1.0/test/testzcgc.c:163: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(group_name.value, "GROUP");
data/corosync-3.1.0/tools/corosync-cfgtool.c:101:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char iter_key[CMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/tools/corosync-cfgtool.c:389: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[INET6_ADDRSTRLEN];
data/corosync-3.1.0/tools/corosync-cfgtool.c:462:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char interface_name[128] = "";
data/corosync-3.1.0/tools/corosync-cmapctl.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 key_name[CMAP_KEYNAME_MAXLEN + 1];
data/corosync-3.1.0/tools/corosync-cmapctl.c:447:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[CMAP_KEYNAME_MAXLEN + 1];
data/corosync-3.1.0/tools/corosync-cmapctl.c:521: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 inbuf[3];
data/corosync-3.1.0/tools/corosync-cmapctl.c:564:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/corosync-3.1.0/tools/corosync-cmapctl.c:573: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).
		f = fopen(fname, "rb");
data/corosync-3.1.0/tools/corosync-cmapctl.c:590: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(val + pos, buf, readed);
data/corosync-3.1.0/tools/corosync-cmapctl.c:734:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/corosync-3.1.0/tools/corosync-cmapctl.c:740: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).
	fh = fopen(filename, "r");
data/corosync-3.1.0/tools/corosync-cmapctl.c:804:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[CMAP_KEYNAME_MAXLEN + 1];
data/corosync-3.1.0/tools/corosync-cpgtool.c:72: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[INET6_ADDRSTRLEN];
data/corosync-3.1.0/tools/corosync-cpgtool.c:176: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 (&old_group, &description.group, sizeof (struct cpg_name));
data/corosync-3.1.0/tools/corosync-keygen.c:77: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 key[TOTEM_PRIVATE_KEY_LEN_MAX];
data/corosync-3.1.0/tools/corosync-keygen.c:138: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).
	random_fd = open (random_dev, O_RDONLY);
data/corosync-3.1.0/tools/corosync-keygen.c:168:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	authkey_fd = open (keyfile, O_CREAT|O_WRONLY|O_TRUNC, 0600);
data/corosync-3.1.0/tools/corosync-notifyd.c:98:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[CMAP_KEYNAME_MAXLEN + 1];
data/corosync-3.1.0/tools/corosync-notifyd.c:109: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 local_nodename[CS_MAX_NAME_LENGTH];
data/corosync-3.1.0/tools/corosync-notifyd.c:129: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 _err[512];
data/corosync-3.1.0/tools/corosync-notifyd.c:175: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 snmp_manager_buf[CS_MAX_NAME_LENGTH];
data/corosync-3.1.0/tools/corosync-notifyd.c:177: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 snmp_community_buf[CS_MAX_NAME_LENGTH];
data/corosync-3.1.0/tools/corosync-notifyd.c: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 nodename[CS_MAX_NAME_LENGTH];
data/corosync-3.1.0/tools/corosync-notifyd.c:231:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_key[CMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/tools/corosync-notifyd.c:304: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 obj_name[CS_MAX_NAME_LENGTH];
data/corosync-3.1.0/tools/corosync-notifyd.c:305:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char conn_str[CMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/tools/corosync-notifyd.c:306:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_key[CMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/tools/corosync-notifyd.c:784: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 default_port[128];
data/corosync-3.1.0/tools/corosync-notifyd.c:838:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char csysuptime[CS_TIMESTAMP_STR_LEN];
data/corosync-3.1.0/tools/corosync-notifyd.c:1117:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[CMAP_KEYNAME_MAXLEN + 1];
data/corosync-3.1.0/tools/corosync-quorumtool.c:216: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 quorumtype[256];
data/corosync-3.1.0/tools/corosync-quorumtool.c:264:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_name[CMAP_KEYNAME_MAXLEN + 1];
data/corosync-3.1.0/tools/corosync-quorumtool.c:265:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_key[CMAP_KEYNAME_MAXLEN + 1];
data/corosync-3.1.0/tools/corosync-quorumtool.c:266: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_buf[_POSIX_HOST_NAME_MAX];
data/corosync-3.1.0/tools/corosync-quorumtool.c:320: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[(INET6_ADDRSTRLEN + 1) * KNET_MAX_LINK];
data/corosync-3.1.0/tools/corosync-quorumtool.c:437: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[12];
data/corosync-3.1.0/tools/corosync-quorumtool.c:526:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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];
data/corosync-3.1.0/tools/corosync-quorumtool.c:588: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 quorumtype[256];
data/corosync-3.1.0/vqsim/parser.c:99:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		*partition = atoi(string);
data/corosync-3.1.0/vqsim/parser.c:131:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			nodes[nodecount++] = atoi(&nodeptr[last_comma]);
data/corosync-3.1.0/vqsim/parser.c:147: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 *argv[MAX_ARGS];
data/corosync-3.1.0/vqsim/parser.c:268:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		nodeid = atoi(argv[1]);
data/corosync-3.1.0/vqsim/parser.c:288:23:  [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).
		cmd_join_partitions(atoi(argv[1]), atoi(argv[i]));
data/corosync-3.1.0/vqsim/parser.c:288:38:  [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).
		cmd_join_partitions(atoi(argv[1]), atoi(argv[i]));
data/corosync-3.1.0/vqsim/parser.c:372:18:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	cmd_set_timeout(atol(argv[1]));
data/corosync-3.1.0/vqsim/vq_object.c:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msgbuf[sizeof(int)*nodeids_entries + sizeof(struct vqsim_sync_msg)];
data/corosync-3.1.0/vqsim/vq_object.c:88: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(&msg->view_list, nodeids, nodeids_entries*sizeof(int));
data/corosync-3.1.0/vqsim/vq_object.c:89: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(&msg->ring_id, ring_id, sizeof(struct memb_ring_id));
data/corosync-3.1.0/vqsim/vqmain.c:74: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 input_buf[INPUT_BUF_SIZE];
data/corosync-3.1.0/vqsim/vqmain.c:79: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 corosync_config_file[PATH_MAX + 1] = COROSYSCONFDIR "/corosync.conf";
data/corosync-3.1.0/vqsim/vqmain.c:103: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(&node->last_ring_id, &qmsg->ring_id, sizeof(struct memb_ring_id));
data/corosync-3.1.0/vqsim/vqmain.c:104: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(node->last_view_list, qmsg->view_list, sizeof(int) * qmsg->view_list_entries);
data/corosync-3.1.0/vqsim/vqmain.c:215: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 msgbuf[8192];
data/corosync-3.1.0/vqsim/vqmain.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 text[132];
data/corosync-3.1.0/vqsim/vqmain.c:342:5:  [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(text, "(exit code %d)", WEXITSTATUS(status));
data/corosync-3.1.0/vqsim/vqmain.c:444:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_key[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/vqsim/vqmain.c:781:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		output_file = fopen(output_file_name, "w");
data/corosync-3.1.0/vqsim/vqsim_vq_engine.c:32: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 buffer[8192];
data/corosync-3.1.0/vqsim/vqsim_vq_engine.c:144:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msgbuf[8192];
data/corosync-3.1.0/vqsim/vqsim_vq_engine.c:155: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(&quorum_msg->ring_id, ring_id, sizeof(*ring_id));
data/corosync-3.1.0/vqsim/vqsim_vq_engine.c:158: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(quorum_msg->view_list, view_list, sizeof(unsigned int)*view_list_entries);
data/corosync-3.1.0/vqsim/vqsim_vq_engine.c:163: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(&current_ring_id, ring_id, sizeof(*ring_id));
data/corosync-3.1.0/vqsim/vqsim_vq_engine.c:176: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 cwd_buffer[PATH_MAX];
data/corosync-3.1.0/vqsim/vqsim_vq_engine.c:190:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name_str[ICMAP_KEYNAME_MAXLEN];
data/corosync-3.1.0/exec/cfg.c:931: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(totem_ip_string) >= CFG_INTERFACE_NAME_MAX_LEN-3) {
data/corosync-3.1.0/exec/cfg.c:938: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(status[i]) >= CFG_INTERFACE_STATUS_MAX_LEN) {
data/corosync-3.1.0/exec/cmap.c:695: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).
		assert(strlen(res) <= sizeof(res_lib_cmap_iter_next.key_name.value));
data/corosync-3.1.0/exec/cmap.c:697: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).
		memcpy(res_lib_cmap_iter_next.key_name.value, res, strlen(res));
data/corosync-3.1.0/exec/cmap.c:698:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	        res_lib_cmap_iter_next.key_name.length = strlen(res);
data/corosync-3.1.0/exec/cmap.c:754:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	res_lib_cmap_notify_callback.key_name.length = strlen(key_name);
data/corosync-3.1.0/exec/cmap.c:757: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).
	assert(strlen(key_name) <= sizeof(res_lib_cmap_notify_callback.key_name.value));
data/corosync-3.1.0/exec/cmap.c:759:64:  [1] (buffer) strlen:
  Does not handle 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(res_lib_cmap_notify_callback.key_name.value, key_name, strlen(key_name));
data/corosync-3.1.0/exec/cmap.c:966: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).
		item->key_name.length = strlen(argv[i]);
data/corosync-3.1.0/exec/cmap.c:968: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).
		assert(strlen(argv[i]) < sizeof(item->key_name.value));
data/corosync-3.1.0/exec/cmap.c:1025: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(key) == key_name_len && strcmp((char *)item->key_name.value, key) == 0) {
data/corosync-3.1.0/exec/coroparse.c:276: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 = start+(strlen(start))-1;
data/corosync-3.1.0/exec/coroparse.c:315: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(line) > 0) {
data/corosync-3.1.0/exec/coroparse.c:320: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 ((line[strlen(line) - 1] != '\n') && !feof(fp)) {
data/corosync-3.1.0/exec/coroparse.c:325: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 (line[strlen(line) - 1] == '\n')
data/corosync-3.1.0/exec/coroparse.c:326: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).
				line[strlen(line) - 1] = '\0';
data/corosync-3.1.0/exec/coroparse.c:327: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 (line) > 0 && line[strlen(line) - 1] == '\r')
data/corosync-3.1.0/exec/coroparse.c:327:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen (line) > 0 && line[strlen(line) - 1] == '\r')
data/corosync-3.1.0/exec/coroparse.c:328: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).
				line[strlen(line) - 1] = '\0';
data/corosync-3.1.0/exec/coroparse.c:333:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		for (i = strlen (line) - 1; i > -1; i--) {
data/corosync-3.1.0/exec/coroparse.c:342:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		for (i = 0; i < strlen (line); i++) {
data/corosync-3.1.0/exec/coroparse.c:377: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(path) + strlen(section) + 1 >= ICMAP_KEYNAME_MAXLEN) {
data/corosync-3.1.0/exec/coroparse.c:377: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).
			if (strlen(path) + strlen(section) + 1 >= ICMAP_KEYNAME_MAXLEN) {
data/corosync-3.1.0/exec/coroparse.c:383: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_keyname, ".");
data/corosync-3.1.0/exec/coroparse.c:410: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(path) + strlen(key) + 1 >= ICMAP_KEYNAME_MAXLEN) {
data/corosync-3.1.0/exec/coroparse.c:410: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).
			if (strlen(path) + strlen(key) + 1 >= ICMAP_KEYNAME_MAXLEN) {
data/corosync-3.1.0/exec/coroparse.c:416: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_keyname, ".");
data/corosync-3.1.0/exec/coroparse.c:586: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(path) >= sizeof(key_name)) {
data/corosync-3.1.0/exec/coroparse.c:599:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(key_name, path, sizeof(key_name) - 1);
data/corosync-3.1.0/exec/icmap.c:282:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i = 0; i < strlen(key_name); i++) {
data/corosync-3.1.0/exec/icmap.c:293: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(key_name) < ICMAP_KEYNAME_MINLEN) || strlen(key_name) > ICMAP_KEYNAME_MAXLEN) {
data/corosync-3.1.0/exec/icmap.c:293:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(key_name) < ICMAP_KEYNAME_MINLEN) || strlen(key_name) > ICMAP_KEYNAME_MAXLEN) {
data/corosync-3.1.0/exec/icmap.c:297:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i = 0; i < strlen(key_name); i++) {
data/corosync-3.1.0/exec/icmap.c:350: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).
		if (value_len > strlen((const char *)value) + 1) {
data/corosync-3.1.0/exec/icmap.c:369: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).
		ptr_len = strlen((const char *)value);
data/corosync-3.1.0/exec/icmap.c:443: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).
			new_value_len = strlen((const char *)value);
data/corosync-3.1.0/exec/icmap.c:564: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).
	return (icmap_set_r(map, key_name, value, strlen(value), ICMAP_VALUETYPE_STRING));
data/corosync-3.1.0/exec/icmap.c:1281: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(icmap_ro_ai->key_name) > strlen(key_name))
data/corosync-3.1.0/exec/icmap.c:1281: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).
			if (strlen(icmap_ro_ai->key_name) > strlen(key_name))
data/corosync-3.1.0/exec/icmap.c:1284:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strncmp(icmap_ro_ai->key_name, key_name, strlen(icmap_ro_ai->key_name)) == 0) {
data/corosync-3.1.0/exec/ipc_glue.c:257:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (out_name, name, name_len - 1);
data/corosync-3.1.0/exec/ipc_glue.c:792: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(serv_short_name) >= CS_IPCS_MAPPER_SERV_NAME) {
data/corosync-3.1.0/exec/logconfig.c:110: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).
		afterlen = strlen(after);
data/corosync-3.1.0/exec/logconfig.c:230: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(timestamp_str_to_add, " ");
data/corosync-3.1.0/exec/logsys.c:176: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(file) >= PATH_MAX) {
data/corosync-3.1.0/exec/logsys.c:270:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (logsys_loggers[subsysid].subsys, subsys,
data/corosync-3.1.0/exec/logsys.c:315: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(mainsystem) >= LOGSYS_MAX_SUBSYS_NAMELEN)) {
data/corosync-3.1.0/exec/logsys.c:395:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (tempsubsys, logsys_loggers[i].subsys,
data/corosync-3.1.0/exec/logsys.c:438: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(subsys) >= LOGSYS_MAX_SUBSYS_NAMELEN)) {
data/corosync-3.1.0/exec/logsys.c:588:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(file_format, format_buffer_start, buf_len - strlen(file_format));
data/corosync-3.1.0/exec/logsys.c:588: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).
	strncat(file_format, format_buffer_start, buf_len - strlen(file_format));
data/corosync-3.1.0/exec/logsys.c:625:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (c = 0; c < strlen(format_buffer); c++) {
data/corosync-3.1.0/exec/logsys.c:628:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			for (c++; c < strlen(format_buffer); c++) {
data/corosync-3.1.0/exec/main.c:648:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		res = read (fd, &memb_ring_id->seq, sizeof (uint64_t));
data/corosync-3.1.0/exec/main.c:656:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(0);
data/corosync-3.1.0/exec/main.c:1135:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write (lf, pid_s, strlen (pid_s)) != strlen (pid_s)) {
data/corosync-3.1.0/exec/main.c:1135: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).
	if (write (lf, pid_s, strlen (pid_s)) != strlen (pid_s)) {
data/corosync-3.1.0/exec/stats.c:247: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).
			*value_len = strlen((char *)(stat_array) + conv->offset)+1;
data/corosync-3.1.0/exec/stats.c:470: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 (strncmp(key_name, STATS_CLEAR_KNET, strlen(STATS_CLEAR_KNET)) == 0) {
data/corosync-3.1.0/exec/stats.c:474:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp(key_name, STATS_CLEAR_IPC, strlen(STATS_CLEAR_IPC)) == 0) {
data/corosync-3.1.0/exec/stats.c:478: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).
	if (strncmp(key_name, STATS_CLEAR_TOTEM, strlen(STATS_CLEAR_TOTEM)) == 0) {
data/corosync-3.1.0/exec/stats.c:482: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).
	if (strncmp(key_name, STATS_CLEAR_SCHEDMISS, strlen(STATS_CLEAR_SCHEDMISS)) == 0) {
data/corosync-3.1.0/exec/stats.c:486:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp(key_name, STATS_CLEAR_ALL, strlen(STATS_CLEAR_ALL)) == 0) {
data/corosync-3.1.0/exec/stats.c:511:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp(key_name, STATS_CLEAR, strlen(STATS_CLEAR)) == 0) {
data/corosync-3.1.0/exec/stats.c:594:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp(key, SCHEDMISS_PREFIX, strlen(SCHEDMISS_PREFIX)) == 0 ) {
data/corosync-3.1.0/exec/sync.c:470: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).
		assert(strlen(sync_callbacks.name) < sizeof(my_service_list[my_service_list_entries].name));
data/corosync-3.1.0/exec/totemconfig.c:168: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("runtime.config.") + strlen(key_name) >= ICMAP_KEYNAME_MAXLEN) {
data/corosync-3.1.0/exec/totemconfig.c:168:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen("runtime.config.") + strlen(key_name) >= ICMAP_KEYNAME_MAXLEN) {
data/corosync-3.1.0/exec/totemconfig.c:196: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("runtime.config.") + strlen(key_name) >= ICMAP_KEYNAME_MAXLEN) {
data/corosync-3.1.0/exec/totemconfig.c:196:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen("runtime.config.") + strlen(key_name) >= ICMAP_KEYNAME_MAXLEN) {
data/corosync-3.1.0/exec/totemconfig.c:224:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy((char *)config_value, default_value, CONFIG_STRING_LEN_MAX);
data/corosync-3.1.0/exec/totemconfig.c:226:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy((char *)config_value, new_config_value, CONFIG_STRING_LEN_MAX);
data/corosync-3.1.0/exec/totemconfig.c:235: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("runtime.config.") + strlen(key_name) >= ICMAP_KEYNAME_MAXLEN) {
data/corosync-3.1.0/exec/totemconfig.c:235:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen("runtime.config.") + strlen(key_name) >= ICMAP_KEYNAME_MAXLEN) {
data/corosync-3.1.0/exec/totemconfig.c:283: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("runtime.config.") + strlen(key_name) >= ICMAP_KEYNAME_MAXLEN) {
data/corosync-3.1.0/exec/totemconfig.c:283:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen("runtime.config.") + strlen(key_name) >= ICMAP_KEYNAME_MAXLEN) {
data/corosync-3.1.0/exec/totemconfig.c:616:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(totem_config->crypto_cipher_type, tmp_cipher, CONFIG_STRING_LEN_MAX);
data/corosync-3.1.0/exec/totemconfig.c:617:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(totem_config->crypto_hash_type, tmp_hash, CONFIG_STRING_LEN_MAX);
data/corosync-3.1.0/exec/totemconfig.c:618:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(totem_config->crypto_model, tmp_model, CONFIG_STRING_LEN_MAX);
data/corosync-3.1.0/exec/totemconfig.c:646: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).
		namelen = strlen(name);
data/corosync-3.1.0/exec/totemconfig.c:656: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(find_name) == strlen(name)) {
data/corosync-3.1.0/exec/totemconfig.c:656: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).
		    strlen(find_name) == strlen(name)) {
data/corosync-3.1.0/exec/totemconfig.c:926:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i = 0; i < strlen(cluster_name); i++) {
data/corosync-3.1.0/exec/totemconfig.c:1297:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
								strncpy(addr_buf, ip_str, sizeof(addr_buf));
data/corosync-3.1.0/exec/totemconfig.c:1790:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(str) >= TOTEM_LINK_MODE_BYTES) {
data/corosync-3.1.0/exec/totemconfig.c:2136:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	res = read (fd, totem_config->private_key, TOTEM_PRIVATE_KEY_LEN_MAX);
data/corosync-3.1.0/exec/totemknet.c:670:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, buffer, sizeof(buffer));
data/corosync-3.1.0/exec/totemknet.c:1559: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).
	assert(strlen(totem_config->knet_compression_model) < sizeof(compress_cfg.compress_model));
data/corosync-3.1.0/exec/totemknet.c:1918:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(device_name, name, size);
data/corosync-3.1.0/exec/totemknet.c:2059:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (macaddr_str && strlen(macaddr_str) != 17) {
data/corosync-3.1.0/exec/totemsrp.c:1423: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(list_str) + strlen(int_buf) >= sizeof(list_str)) {
data/corosync-3.1.0/exec/totemsrp.c:1423:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(list_str) + strlen(int_buf) >= sizeof(list_str)) {
data/corosync-3.1.0/exec/totemsrp.c:2105: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(failed_node_msg)) {
data/corosync-3.1.0/exec/totemsrp.c:2799: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 (retransmit_msg, "");
data/corosync-3.1.0/exec/totemsrp.c:3342:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep (random() % (instance->totem_config->send_join_timeout * 1000));
data/corosync-3.1.0/exec/totemsrp.c:3423:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep (random() % (instance->totem_config->send_join_timeout * 1000));
data/corosync-3.1.0/exec/util.c:154:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy ((char *)name->value, str, sizeof (name->value) - 1);
data/corosync-3.1.0/exec/util.c:156: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 ((char *)name->value) > CS_MAX_NAME_LENGTH) {
data/corosync-3.1.0/exec/util.c:159: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).
		name->length = strlen (str);
data/corosync-3.1.0/exec/util.c:164:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (str1->length == strlen (str2)) {
data/corosync-3.1.0/exec/votequorum.c:788:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		res = read (ev_tracking_fd, &ev_tracking_barrier, sizeof(uint32_t));
data/corosync-3.1.0/exec/votequorum.c:797:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(0);
data/corosync-3.1.0/exec/votequorum.c:1218: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(qdevice_model)) {
data/corosync-3.1.0/exec/votequorum.c:1741: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).
	assert(strlen(oldname) < sizeof(req_exec_quorum_qdevice_reconfigure.oldname));
data/corosync-3.1.0/exec/votequorum.c:1744: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).
	assert(strlen(newname) < sizeof(req_exec_quorum_qdevice_reconfigure.newname));
data/corosync-3.1.0/exec/votequorum.c:1768: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).
	assert(strlen(qdevice_name_req) < sizeof(req_exec_quorum_qdevice_reg.qdevice_name));
data/corosync-3.1.0/exec/votequorum.c:1982:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (!strlen(qdevice_name)) {
data/corosync-3.1.0/exec/votequorum.c:2012: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(qdevice_name)) {
data/corosync-3.1.0/exec/votequorum.c:2452: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(qdevice_name)) {
data/corosync-3.1.0/lib/cfg.c:382: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(reason) >= CS_MAX_NAME_LENGTH)
data/corosync-3.1.0/lib/cfg.c:395:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	req_lib_cfg_killnode.reason.length = strlen(reason)+1;
data/corosync-3.1.0/lib/cmap.c:407: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(key_name) >= CS_MAX_NAME_LENGTH) {
data/corosync-3.1.0/lib/cmap.c:420:52:  [1] (buffer) strlen:
  Does not handle 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(req_lib_cmap_set.key_name.value, key_name, strlen(key_name));
data/corosync-3.1.0/lib/cmap.c:421:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	req_lib_cmap_set.key_name.length = strlen(key_name);
data/corosync-3.1.0/lib/cmap.c:504: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).
	return (cmap_set(handle, key_name, value, strlen(value), CMAP_VALUETYPE_STRING));
data/corosync-3.1.0/lib/cmap.c:518: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(key_name) >= CS_MAX_NAME_LENGTH) {
data/corosync-3.1.0/lib/cmap.c:531:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(req_lib_cmap_delete.key_name.value, key_name, strlen(key_name));
data/corosync-3.1.0/lib/cmap.c:532: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).
	req_lib_cmap_delete.key_name.length = strlen(key_name);
data/corosync-3.1.0/lib/cmap.c:570: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(key_name) >= CS_MAX_NAME_LENGTH) {
data/corosync-3.1.0/lib/cmap.c:587:52:  [1] (buffer) strlen:
  Does not handle 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(req_lib_cmap_get.key_name.value, key_name, strlen(key_name));
data/corosync-3.1.0/lib/cmap.c:588:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	req_lib_cmap_get.key_name.length = strlen(key_name);
data/corosync-3.1.0/lib/cmap.c:774: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(key_name) >= CS_MAX_NAME_LENGTH) {
data/corosync-3.1.0/lib/cmap.c:787: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).
	memcpy(req_lib_cmap_adjust_int.key_name.value, key_name, strlen(key_name));
data/corosync-3.1.0/lib/cmap.c:788: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).
	req_lib_cmap_adjust_int.key_name.length = strlen(key_name);
data/corosync-3.1.0/lib/cmap.c:848: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(prefix) >= CS_MAX_NAME_LENGTH) {
data/corosync-3.1.0/lib/cmap.c:851:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memcpy(req_lib_cmap_iter_init.prefix.value, prefix, strlen(prefix));
data/corosync-3.1.0/lib/cmap.c:852: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).
		req_lib_cmap_iter_init.prefix.length = strlen(prefix);
data/corosync-3.1.0/lib/cmap.c:1023: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(key_name) >= CS_MAX_NAME_LENGTH) {
data/corosync-3.1.0/lib/cmap.c:1026: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).
		memcpy(req_lib_cmap_track_add.key_name.value, key_name, strlen(key_name));
data/corosync-3.1.0/lib/cmap.c:1027: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).
		req_lib_cmap_track_add.key_name.length = strlen(key_name);
data/corosync-3.1.0/lib/cpg.c:878:14:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	old_umask = umask(CPG_MEMORY_MAP_UMASK);
data/corosync-3.1.0/lib/cpg.c:880:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(old_umask);
data/corosync-3.1.0/lib/cpg.c:883:15:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		old_umask = umask(CPG_MEMORY_MAP_UMASK);
data/corosync-3.1.0/lib/cpg.c:885:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		(void)umask(old_umask);
data/corosync-3.1.0/lib/cpg.c:967: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(path) >= CPG_ZC_PATH_LEN) {
data/corosync-3.1.0/lib/cpg.c:1171:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(10000);
data/corosync-3.1.0/lib/sam.c:382:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		tmp_bytes_read = read (d, (char *)buf + bytes_read,
data/corosync-3.1.0/lib/votequorum.c:582: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(name) == 0) ||
data/corosync-3.1.0/lib/votequorum.c:583: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(name) >= VOTEQUORUM_QDEVICE_MAX_NAME_LEN)) {
data/corosync-3.1.0/lib/votequorum.c:631: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(name) == 0) ||
data/corosync-3.1.0/lib/votequorum.c:632: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(name) >= VOTEQUORUM_QDEVICE_MAX_NAME_LEN)) {
data/corosync-3.1.0/lib/votequorum.c:680: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(name) == 0) ||
data/corosync-3.1.0/lib/votequorum.c:681: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(name) >= VOTEQUORUM_QDEVICE_MAX_NAME_LEN)) {
data/corosync-3.1.0/lib/votequorum.c:728: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(oldname) == 0) ||
data/corosync-3.1.0/lib/votequorum.c:729: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(oldname) >= VOTEQUORUM_QDEVICE_MAX_NAME_LEN) ||
data/corosync-3.1.0/lib/votequorum.c:730: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(newname) == 0) ||
data/corosync-3.1.0/lib/votequorum.c:731: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(newname) >= VOTEQUORUM_QDEVICE_MAX_NAME_LEN)) {
data/corosync-3.1.0/lib/votequorum.c:777: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(name) == 0) ||
data/corosync-3.1.0/lib/votequorum.c:778: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(name) >= VOTEQUORUM_QDEVICE_MAX_NAME_LEN)) {
data/corosync-3.1.0/test/cpghum.c:159: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).
		start = strlen(msg);
data/corosync-3.1.0/test/cpghum.c:457:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(10000);
data/corosync-3.1.0/test/cpghum.c:468:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(delay_time*1000);
data/corosync-3.1.0/test/cpghum.c:647: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(optarg) >= CPG_MAX_NAME_LENGTH) {
data/corosync-3.1.0/test/cpghum.c:653:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			group_name.length = strlen(group_name.value);
data/corosync-3.1.0/test/testcpg.c:121: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).
	s += strlen(hostname);
data/corosync-3.1.0/test/testcpg.c:333: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(argv[optind]) >= CPG_MAX_NAME_LENGTH) {
data/corosync-3.1.0/test/testcpg.c:339: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).
		group_name.length = strlen(argv[optind]);
data/corosync-3.1.0/test/testcpg.c:408:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strncmp(inbuf, exitStr, strlen(exitStr)) == 0) {
data/corosync-3.1.0/test/testcpg.c:414: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).
				iov.iov_len = strlen(inbuf)+1;
data/corosync-3.1.0/test/testcpgzc.c:180: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(argv[optind]) >= CPG_MAX_NAME_LENGTH) {
data/corosync-3.1.0/test/testcpgzc.c:186: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).
		group_name.length = strlen(argv[optind])+1;
data/corosync-3.1.0/test/testcpgzc.c:190: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).
		group_name.length = strlen(DEFAULT_GROUP_NAME) + 1;
data/corosync-3.1.0/test/testcpgzc.c:235: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).
					buffer, strlen (buffer) + 1);
data/corosync-3.1.0/tools/corosync-cfgtool.c:153:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (nodeid_match_guard != strlen(iter_key)) {
data/corosync-3.1.0/tools/corosync-cfgtool.c:213: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(interface_status[i]);
data/corosync-3.1.0/tools/corosync-cfgtool.c:261: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).
						len = strlen(interface_status[i]);
data/corosync-3.1.0/tools/corosync-cfgtool.c:471:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(interface_name, optarg, sizeof(interface_name));
data/corosync-3.1.0/tools/corosync-cpgtool.c:224:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen (optarg) > 0) {
data/corosync-3.1.0/tools/corosync-keygen.c:153:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	res = read (random_fd, &key[bytes_read], key_len - bytes_read);
data/corosync-3.1.0/tools/corosync-notifyd.c:284:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(nodename, open_bracket, CS_MAX_NAME_LENGTH-1);
data/corosync-3.1.0/tools/corosync-notifyd.c:288:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(nodename, open_bracket, CS_MAX_NAME_LENGTH-1);
data/corosync-3.1.0/tools/corosync-notifyd.c:390: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).
			assert(strlen(key_name) < sizeof(track_item->key_name));
data/corosync-3.1.0/tools/corosync-notifyd.c:803: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).
		session->community_len = strlen(snmp_community_buf);
data/corosync-3.1.0/tools/corosync-notifyd.c:887:91:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	_cs_snmp_add_field (trap_pdu, ASN_OCTET_STR, SNMP_OID_OBJECT_NODE_NAME, (void*)nodename, strlen (nodename));
data/corosync-3.1.0/tools/corosync-notifyd.c:889:85:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	_cs_snmp_add_field (trap_pdu, ASN_OCTET_STR, SNMP_OID_OBJECT_NODE_ADDR, (void*)ip, strlen (ip));
data/corosync-3.1.0/tools/corosync-notifyd.c:890:90:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	_cs_snmp_add_field (trap_pdu, ASN_OCTET_STR, SNMP_OID_OBJECT_NODE_STATUS, (void*)state, strlen (state));
data/corosync-3.1.0/tools/corosync-notifyd.c:920:91:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	_cs_snmp_add_field (trap_pdu, ASN_OCTET_STR, SNMP_OID_OBJECT_NODE_NAME, (void*)nodename, strlen (nodename));
data/corosync-3.1.0/tools/corosync-notifyd.c:922:85:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	_cs_snmp_add_field (trap_pdu, ASN_OCTET_STR, SNMP_OID_OBJECT_QUORUM, (void*)state, strlen (state));
data/corosync-3.1.0/tools/corosync-notifyd.c:952:91:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	_cs_snmp_add_field (trap_pdu, ASN_OCTET_STR, SNMP_OID_OBJECT_NODE_NAME, (void*)nodename, strlen (nodename));
data/corosync-3.1.0/tools/corosync-notifyd.c:956:90:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	_cs_snmp_add_field (trap_pdu, ASN_OCTET_STR, SNMP_OID_OBJECT_LINK_STATUS, (void*)state, strlen (state));
data/corosync-3.1.0/tools/corosync-notifyd.c:1047:4:  [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(local_nodename, "localhost", sizeof (local_nodename));
data/corosync-3.1.0/tools/corosync-notifyd.c:1301:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(snmp_community_buf, optarg, sizeof (snmp_community_buf));
data/corosync-3.1.0/tools/corosync-notifyd.c:1313:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(snmp_manager_buf, optarg, sizeof (snmp_manager_buf));
data/corosync-3.1.0/tools/corosync-quorumtool.c:202:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(quorum_type, str, quorum_type_len - 1);
data/corosync-3.1.0/tools/corosync-quorumtool.c:302:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ret_buf, str, sizeof(ret_buf) - 1);
data/corosync-3.1.0/tools/corosync-quorumtool.c:335: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(nodelist_name) > 0)) {
data/corosync-3.1.0/tools/corosync-quorumtool.c:337: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).
		assert(strlen(nodelist_name) < sizeof(buf));
data/corosync-3.1.0/tools/corosync-quorumtool.c:339: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).
		bufptr = strlen(buf);
data/corosync-3.1.0/tools/corosync-quorumtool.c:377: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).
			bufptr += strlen(buf+bufptr);
data/corosync-3.1.0/tools/corosync-quorumtool.c:426:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(buf);
data/corosync-3.1.0/tools/corosync-quorumtool.c:599:3:  [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(quorumtype, "Not configured", sizeof(quorumtype) - 1);
data/corosync-3.1.0/vqsim/parser.c:109:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i=0; i<strlen(nodeptr); i++) {
data/corosync-3.1.0/vqsim/parser.c:126: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(nodeptr);
data/corosync-3.1.0/vqsim/parser.c:169: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(cmd);
data/corosync-3.1.0/vqsim/parser.c:199:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (argc < 1 || strlen(argv[0]) == 0) {
data/corosync-3.1.0/vqsim/vqmain.c:222:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		msglen = read(fd, msgbuf, sizeof(msgbuf));
data/corosync-3.1.0/vqsim/vqmain.c:700:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c = getchar();
data/corosync-3.1.0/vqsim/vqmain.c:762: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(optarg) >= sizeof(sizeof(corosync_config_file) - 1)) {
data/corosync-3.1.0/vqsim/vqmain.c:766:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(corosync_config_file, optarg, sizeof(corosync_config_file) - 1);
data/corosync-3.1.0/vqsim/vqsim_vq_engine.c:387:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, buffer, sizeof(buffer));

ANALYSIS SUMMARY:

Hits = 891
Lines analyzed = 62740 in approximately 1.51 seconds (41511 lines/second)
Physical Source Lines of Code (SLOC) = 43758
Hits@level = [0] 1118 [1] 200 [2] 526 [3]  19 [4] 146 [5]   0
Hits@level+ = [0+] 2009 [1+] 891 [2+] 691 [3+] 165 [4+] 146 [5+]   0
Hits/KSLOC@level+ = [0+] 45.9116 [1+] 20.362 [2+] 15.7914 [3+] 3.77074 [4+] 3.33653 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.