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/perftest-4.4+0.29/src/atomic_lat.c
Examining data/perftest-4.4+0.29/src/multicast_resources.h
Examining data/perftest-4.4+0.29/src/read_lat.c
Examining data/perftest-4.4+0.29/src/send_bw.c
Examining data/perftest-4.4+0.29/src/read_bw.c
Examining data/perftest-4.4+0.29/src/raw_ethernet_resources.c
Examining data/perftest-4.4+0.29/src/raw_ethernet_send_bw.c
Examining data/perftest-4.4+0.29/src/write_lat.c
Examining data/perftest-4.4+0.29/src/write_bw.c
Examining data/perftest-4.4+0.29/src/raw_ethernet_send_burst_lat.c
Examining data/perftest-4.4+0.29/src/raw_ethernet_fs_rate.c
Examining data/perftest-4.4+0.29/src/perftest_counters.c
Examining data/perftest-4.4+0.29/src/multicast_resources.c
Examining data/perftest-4.4+0.29/src/atomic_bw.c
Examining data/perftest-4.4+0.29/src/get_clock.c
Examining data/perftest-4.4+0.29/src/perftest_resources.c
Examining data/perftest-4.4+0.29/src/send_lat.c
Examining data/perftest-4.4+0.29/src/perftest_communication.h
Examining data/perftest-4.4+0.29/src/raw_ethernet_resources.h
Examining data/perftest-4.4+0.29/src/perftest_resources.h
Examining data/perftest-4.4+0.29/src/perftest_communication.c
Examining data/perftest-4.4+0.29/src/perftest_counters.h
Examining data/perftest-4.4+0.29/src/clock_test.c
Examining data/perftest-4.4+0.29/src/raw_ethernet_send_lat.c
Examining data/perftest-4.4+0.29/src/perftest_parameters.c
Examining data/perftest-4.4+0.29/src/perftest_parameters.h
Examining data/perftest-4.4+0.29/src/get_clock.h

FINAL RESULTS:

data/perftest-4.4+0.29/src/atomic_bw.c:225: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(RESULT_LINE);
data/perftest-4.4+0.29/src/atomic_bw.c:226: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((user_param.report_fmt == MBS ? RESULT_FMT : RESULT_FMT_G));
data/perftest-4.4+0.29/src/atomic_bw.c:227: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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/atomic_bw.c:239: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(RESULT_LINE);
data/perftest-4.4+0.29/src/atomic_bw.c:267: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(RESULT_LINE);
data/perftest-4.4+0.29/src/atomic_bw.c:268: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((user_param.report_fmt == MBS ? RESULT_FMT : RESULT_FMT_G));
data/perftest-4.4+0.29/src/atomic_bw.c:269: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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/atomic_bw.c:303: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(RESULT_LINE);
data/perftest-4.4+0.29/src/atomic_bw.c:305: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(RESULT_LINE);
data/perftest-4.4+0.29/src/atomic_bw.c:306: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((user_param.report_fmt == MBS ? RESULT_FMT : RESULT_FMT_G));
data/perftest-4.4+0.29/src/atomic_bw.c:307: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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/atomic_bw.c:309: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(RESULT_LINE);
data/perftest-4.4+0.29/src/atomic_bw.c:312: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(RESULT_LINE);
data/perftest-4.4+0.29/src/atomic_bw.c:313: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((user_param.report_fmt == MBS ? RESULT_FMT : RESULT_FMT_G));
data/perftest-4.4+0.29/src/atomic_bw.c:314: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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/atomic_bw.c:326: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(RESULT_LINE);
data/perftest-4.4+0.29/src/atomic_lat.c:245: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(RESULT_LINE);
data/perftest-4.4+0.29/src/atomic_lat.c:260: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(RESULT_LINE);
data/perftest-4.4+0.29/src/atomic_lat.c:262: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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/atomic_lat.c:275: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(RESULT_LINE);
data/perftest-4.4+0.29/src/get_clock.c:146:6:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	f = popen("/sbin/sysctl hw.clockrate","r");
data/perftest-4.4+0.29/src/multicast_resources.c:164: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(tmp, pstr);
data/perftest-4.4+0.29/src/perftest_communication.c:292:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(msg,KEY_PRINT_FMT,my_dest->lid,my_dest->out_reads,
data/perftest-4.4+0.29/src/perftest_communication.c:303:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(msg,KEY_PRINT_FMT_GID, my_dest->lid,my_dest->out_reads,
data/perftest-4.4+0.29/src/perftest_communication.c:342:12:  [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.
		parsed = sscanf(msg,KEY_PRINT_FMT,(unsigned int*)&rem_dest->lid,
data/perftest-4.4+0.29/src/perftest_communication.c:410: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(tmp, pstr);
data/perftest-4.4+0.29/src/perftest_communication.c:1598:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(BASIC_ADDR_FMT, sideArray[comm->rdma_params->side], dlid, element->qpn, element->psn);
data/perftest-4.4+0.29/src/perftest_communication.c:1601:13:  [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.
		case 2  : printf(READ_FMT,element->out_reads);
data/perftest-4.4+0.29/src/perftest_communication.c:1602:13:  [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.
		case 1  : printf(RDMA_FMT,element->rkey,element->vaddr);
data/perftest-4.4+0.29/src/perftest_communication.c:1607: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(XRC_FMT,element->srqn);
data/perftest-4.4+0.29/src/perftest_communication.c:1609: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(DC_FMT,element->srqn);
data/perftest-4.4+0.29/src/perftest_communication.c:1620: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(PERF_GID_FMT,gidArray[comm->rdma_params->use_mcg && is_there_mgid],
data/perftest-4.4+0.29/src/perftest_communication.c:1838:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(error_message,
data/perftest-4.4+0.29/src/perftest_communication.c:2263:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(error_message, "RDMA CM event error:\nEvent: %s; error: %d.\n",
data/perftest-4.4+0.29/src/perftest_communication.c:2430:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(error_message,
data/perftest-4.4+0.29/src/perftest_communication.c:2477:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(error_message,
data/perftest-4.4+0.29/src/perftest_parameters.c:65: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(tmpMac, mac);
data/perftest-4.4+0.29/src/perftest_parameters.c:745: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:943: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:966: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:972: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:978: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1005:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				printf(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1010:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				printf(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1017: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1032: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1038: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1048: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1076: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1083: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1089: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1095: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1101: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1107: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1138: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1144: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1150: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1184: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1190: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1203: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1209: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1216: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1221: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1233: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1244: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1254: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1260: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1268: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1273: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1282: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1293: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1309: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1316: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1334:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				printf(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1338:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				printf(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1346:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				printf(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1384: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1392: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1398: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1405: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1417: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1424: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1431: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1437: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1450: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1733: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1755: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:1793: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:2786:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:2883: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:2890:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:3055: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( REPORT_FMT_QOS, my_bw_rep->size, my_bw_rep->sl, my_bw_rep->iters, bw_peak, bw_avg, msgRate_avg);
data/perftest-4.4+0.29/src/perftest_parameters.c:3057: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(REPORT_FMT_PER_PORT, my_bw_rep->size, my_bw_rep->iters, bw_peak, bw_avg, msgRate_avg, bw_avg_p1, msgRate_avg_p1, bw_avg_p2, msgRate_avg_p2);
data/perftest-4.4+0.29/src/perftest_parameters.c:3059: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( inc_accuracy ? REPORT_FMT_EXT : REPORT_FMT, my_bw_rep->size, my_bw_rep->iters, bw_peak, bw_avg, msgRate_avg);
data/perftest-4.4+0.29/src/perftest_parameters.c:3062: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(stdout, user_param->cpu_util_data.enable ? REPORT_EXT_CPU_UTIL : REPORT_EXT , calc_cpu_util(user_param));
data/perftest-4.4+0.29/src/perftest_parameters.c:3167: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:3169: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((user_param->cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/perftest_parameters.c:3181: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(REPORT_FMT_LAT,
data/perftest-4.4+0.29/src/perftest_parameters.c:3191: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( user_param->cpu_util_data.enable ? REPORT_EXT_CPU_UTIL : REPORT_EXT , calc_cpu_util(user_param));
data/perftest-4.4+0.29/src/perftest_parameters.c:3222: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(REPORT_FMT_LAT_DUR,
data/perftest-4.4+0.29/src/perftest_parameters.c:3226: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( user_param->cpu_util_data.enable ? REPORT_EXT_CPU_UTIL : REPORT_EXT , calc_cpu_util(user_param));
data/perftest-4.4+0.29/src/perftest_parameters.c:3295: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_parameters.c:3297: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((user_param->cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/perftest_parameters.c:3305: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(REPORT_FMT_FS_RATE,
data/perftest-4.4+0.29/src/perftest_parameters.c:3313: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(REPORT_FMT_FS_RATE_DUR,
data/perftest-4.4+0.29/src/perftest_parameters.c:3318: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(user_param->cpu_util_data.enable ? REPORT_EXT_CPU_UTIL : REPORT_EXT, calc_cpu_util(user_param));
data/perftest-4.4+0.29/src/perftest_parameters.h:237:43:  [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).
{ ALLOCATE(orig,char,(strlen(temp) + 1)); strcpy(orig,temp); }
data/perftest-4.4+0.29/src/raw_ethernet_fs_rate.c:148: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(RESULT_LINE);
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:81:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(openibd_path, F_OK) != -1)
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:328:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(PERF_MAC_FMT,
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:336:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(PERF_MAC_FMT,
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:365:9:  [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(PERF_MAC_FMT,
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:373:9:  [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(PERF_MAC_FMT,
data/perftest-4.4+0.29/src/raw_ethernet_send_burst_lat.c:195: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(RESULT_LINE);
data/perftest-4.4+0.29/src/raw_ethernet_send_burst_lat.c:197: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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/raw_ethernet_send_burst_lat.c:258: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(RESULT_LINE);
data/perftest-4.4+0.29/src/raw_ethernet_send_bw.c:266:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				printf(PERF_RAW_MGID_FMT, "MGID",
data/perftest-4.4+0.29/src/raw_ethernet_send_bw.c:280: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(RESULT_LINE);
data/perftest-4.4+0.29/src/raw_ethernet_send_bw.c:282: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((user_param.report_fmt == MBS ? RESULT_FMT_QOS : RESULT_FMT_G_QOS));
data/perftest-4.4+0.29/src/raw_ethernet_send_bw.c:284: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((user_param.report_fmt == MBS ? RESULT_FMT : RESULT_FMT_G));
data/perftest-4.4+0.29/src/raw_ethernet_send_bw.c:285: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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/raw_ethernet_send_bw.c:423: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(RESULT_LINE);
data/perftest-4.4+0.29/src/raw_ethernet_send_lat.c:193: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(RESULT_LINE);
data/perftest-4.4+0.29/src/raw_ethernet_send_lat.c:195: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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/raw_ethernet_send_lat.c:252: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(RESULT_LINE);
data/perftest-4.4+0.29/src/read_bw.c:223: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(RESULT_LINE_PER_PORT);
data/perftest-4.4+0.29/src/read_bw.c:224: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((user_param.report_fmt == MBS ? RESULT_FMT_PER_PORT : RESULT_FMT_G_PER_PORT));
data/perftest-4.4+0.29/src/read_bw.c:227: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(RESULT_LINE);
data/perftest-4.4+0.29/src/read_bw.c:228: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((user_param.report_fmt == MBS ? RESULT_FMT : RESULT_FMT_G));
data/perftest-4.4+0.29/src/read_bw.c:230: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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/read_bw.c:250:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				printf(RESULT_LINE_PER_PORT);
data/perftest-4.4+0.29/src/read_bw.c:252:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				printf(RESULT_LINE);
data/perftest-4.4+0.29/src/read_bw.c:344: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(RESULT_LINE);
data/perftest-4.4+0.29/src/read_bw.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(RESULT_LINE);
data/perftest-4.4+0.29/src/read_bw.c:347: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((user_param.report_fmt == MBS ? RESULT_FMT : RESULT_FMT_G));
data/perftest-4.4+0.29/src/read_bw.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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/read_bw.c:350: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(RESULT_LINE);
data/perftest-4.4+0.29/src/read_bw.c:353: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(RESULT_LINE);
data/perftest-4.4+0.29/src/read_bw.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((user_param.report_fmt == MBS ? RESULT_FMT : RESULT_FMT_G));
data/perftest-4.4+0.29/src/read_bw.c:355: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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/read_bw.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(RESULT_LINE_PER_PORT);
data/perftest-4.4+0.29/src/read_bw.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(RESULT_LINE);
data/perftest-4.4+0.29/src/read_lat.c:244: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(RESULT_LINE);
data/perftest-4.4+0.29/src/read_lat.c:258: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(RESULT_LINE);
data/perftest-4.4+0.29/src/read_lat.c:260: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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/read_lat.c:286: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(RESULT_LINE);
data/perftest-4.4+0.29/src/send_bw.c:388: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(RESULT_LINE_PER_PORT);
data/perftest-4.4+0.29/src/send_bw.c:389: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((user_param.report_fmt == MBS ? RESULT_FMT_PER_PORT : RESULT_FMT_G_PER_PORT));
data/perftest-4.4+0.29/src/send_bw.c:392: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(RESULT_LINE);
data/perftest-4.4+0.29/src/send_bw.c:393: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((user_param.report_fmt == MBS ? RESULT_FMT : RESULT_FMT_G));
data/perftest-4.4+0.29/src/send_bw.c:395: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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/send_bw.c:504: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(RESULT_LINE);
data/perftest-4.4+0.29/src/send_bw.c:506: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(RESULT_LINE);
data/perftest-4.4+0.29/src/send_bw.c:507: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((user_param.report_fmt == MBS ? RESULT_FMT : RESULT_FMT_G));
data/perftest-4.4+0.29/src/send_bw.c:508: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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/send_bw.c:510: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(RESULT_LINE);
data/perftest-4.4+0.29/src/send_bw.c:513: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(RESULT_LINE);
data/perftest-4.4+0.29/src/send_bw.c:514: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((user_param.report_fmt == MBS ? RESULT_FMT : RESULT_FMT_G));
data/perftest-4.4+0.29/src/send_bw.c:515: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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/send_bw.c:554: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(RESULT_LINE_PER_PORT);
data/perftest-4.4+0.29/src/send_bw.c:556: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(RESULT_LINE);
data/perftest-4.4+0.29/src/send_lat.c:391: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(RESULT_LINE);
data/perftest-4.4+0.29/src/send_lat.c:393: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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/send_lat.c:453: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(RESULT_LINE);
data/perftest-4.4+0.29/src/write_bw.c:226: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(RESULT_LINE_PER_PORT);
data/perftest-4.4+0.29/src/write_bw.c:227: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((user_param.report_fmt == MBS ? RESULT_FMT_PER_PORT : RESULT_FMT_G_PER_PORT));
data/perftest-4.4+0.29/src/write_bw.c:230: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(RESULT_LINE);
data/perftest-4.4+0.29/src/write_bw.c:231: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((user_param.report_fmt == MBS ? RESULT_FMT : RESULT_FMT_G));
data/perftest-4.4+0.29/src/write_bw.c:234: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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/write_bw.c:255:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				printf(RESULT_LINE_PER_PORT);
data/perftest-4.4+0.29/src/write_bw.c:257:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				printf(RESULT_LINE);
data/perftest-4.4+0.29/src/write_bw.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(RESULT_LINE);
data/perftest-4.4+0.29/src/write_bw.c:350: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(RESULT_LINE);
data/perftest-4.4+0.29/src/write_bw.c:351: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((user_param.report_fmt == MBS ? RESULT_FMT : RESULT_FMT_G));
data/perftest-4.4+0.29/src/write_bw.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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/write_bw.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(RESULT_LINE);
data/perftest-4.4+0.29/src/write_bw.c:357: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(RESULT_LINE);
data/perftest-4.4+0.29/src/write_bw.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((user_param.report_fmt == MBS ? RESULT_FMT : RESULT_FMT_G));
data/perftest-4.4+0.29/src/write_bw.c:359: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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/write_bw.c:374: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(RESULT_LINE_PER_PORT);
data/perftest-4.4+0.29/src/write_bw.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(RESULT_LINE);
data/perftest-4.4+0.29/src/write_lat.c:248: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(RESULT_LINE);
data/perftest-4.4+0.29/src/write_lat.c:250: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((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
data/perftest-4.4+0.29/src/write_lat.c:275: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(RESULT_LINE);
data/perftest-4.4+0.29/src/perftest_communication.c:801:22:  [3] (random) lrand48:
  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.
		my_dest[i].psn   = lrand48() & 0xffffff;
data/perftest-4.4+0.29/src/perftest_counters.c:75:15:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		real_path = realpath(given_path, NULL);
data/perftest-4.4+0.29/src/perftest_parameters.c:2008:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc,argv,"w:y:p:d:i:m:s:n:t:u:S:x:c:q:I:o:M:r:Q:A:l:D:f:B:T:L:E:J:j:K:k:X:W:aFegzRvhbNVCHUOZP",long_options,NULL);
data/perftest-4.4+0.29/src/perftest_resources.c:1272:3:  [3] (random) srand:
  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.
		srand(time(NULL));
data/perftest-4.4+0.29/src/get_clock.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 buf[256];
data/perftest-4.4+0.29/src/get_clock.c:148:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen("/proc/cpuinfo","r");
data/perftest-4.4+0.29/src/multicast_resources.c:41: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(sighandler_params->mgid.raw,sighandler_params->base_mgid.raw,16);
data/perftest-4.4+0.29/src/multicast_resources.c:72:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&ptr[0],params->mgid.raw, 16);
data/perftest-4.4+0.29/src/multicast_resources.c:73:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&ptr[16],params->port_gid.raw, 16);
data/perftest-4.4+0.29/src/multicast_resources.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 tmp[20];
data/perftest-4.4+0.29/src/multicast_resources.c:149: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(tmp, pstr, term - pstr+1);
data/perftest-4.4+0.29/src/multicast_resources.c:157: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(tmp, pstr, term - pstr+1);
data/perftest-4.4+0.29/src/multicast_resources.c:168:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(params->mgid.raw,mcg_gid,16);
data/perftest-4.4+0.29/src/perftest_communication.c:216: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(ctx->buf[0], &ctx->qp[0]->qp_num, sizeof(uint32_t));
data/perftest-4.4+0.29/src/perftest_communication.c:290: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 msg[KEY_MSG_SIZE];
data/perftest-4.4+0.29/src/perftest_communication.c:302: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 msg[KEY_MSG_SIZE_GID];
data/perftest-4.4+0.29/src/perftest_communication.c:335: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 msg[KEY_MSG_SIZE];
data/perftest-4.4+0.29/src/perftest_communication.c:353: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 msg[KEY_MSG_SIZE_GID];
data/perftest-4.4+0.29/src/perftest_communication.c:355:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char tmp[120];
data/perftest-4.4+0.29/src/perftest_communication.c:364: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(tmp, pstr, term - pstr);
data/perftest-4.4+0.29/src/perftest_communication.c:370: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(tmp, pstr, term - pstr);
data/perftest-4.4+0.29/src/perftest_communication.c:376: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(tmp, pstr, term - pstr);
data/perftest-4.4+0.29/src/perftest_communication.c:382: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(tmp, pstr, term - pstr);
data/perftest-4.4+0.29/src/perftest_communication.c:388: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(tmp, pstr, term - pstr);
data/perftest-4.4+0.29/src/perftest_communication.c:394: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(tmp, pstr, term - pstr);
data/perftest-4.4+0.29/src/perftest_communication.c:402: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(tmp, pstr, term - pstr);
data/perftest-4.4+0.29/src/perftest_communication.c:417: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(tmp, pstr, term - pstr);
data/perftest-4.4+0.29/src/perftest_communication.c:454:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(comm->rdma_ctx->buf[0], &m_my_dest, sizeof(struct pingpong_dest));
data/perftest-4.4+0.29/src/perftest_communication.c:456: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(comm->rdma_ctx->buf[0], &my_dest, sizeof(struct pingpong_dest));
data/perftest-4.4+0.29/src/perftest_communication.c:509: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(&a_rem_dest,comm->rdma_ctx->buf[0],sizeof(struct pingpong_dest));
data/perftest-4.4+0.29/src/perftest_communication.c:517: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(rem_dest->gid.raw, &(a_rem_dest.gid), 16*sizeof(uint8_t));
data/perftest-4.4+0.29/src/perftest_communication.c:519: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(&rem_dest,comm->rdma_ctx->buf[0],sizeof(struct pingpong_dest));
data/perftest-4.4+0.29/src/perftest_communication.c:814: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(my_dest[i].gid.raw,temp_gid.raw ,16);
data/perftest-4.4+0.29/src/perftest_communication.c:817: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(my_dest[i].gid.raw,temp_gid2.raw ,16);
data/perftest-4.4+0.29/src/perftest_communication.c:819: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(my_dest[i].gid.raw,temp_gid.raw ,16);
data/perftest-4.4+0.29/src/perftest_communication.c:1400: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,comm->rdma_ctx->buf[0], size);
data/perftest-4.4+0.29/src/perftest_communication.c:1421: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(comm->rdma_ctx->buf[0],data,size);
data/perftest-4.4+0.29/src/perftest_communication.c:1730:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cur[sizeof(int)];
data/perftest-4.4+0.29/src/perftest_communication.c:1731:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rem[sizeof(int)];
data/perftest-4.4+0.29/src/perftest_communication.c:1745: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(cur,"%d",curr_mtu);
data/perftest-4.4+0.29/src/perftest_communication.c:1831:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char port[6] = "", error_message[ERROR_MSG_SIZE] = "";
data/perftest-4.4+0.29/src/perftest_communication.c:1833:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(port, "%d", user_param->port);
data/perftest-4.4+0.29/src/perftest_communication.c:1858:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_message[ERROR_MSG_SIZE] = "";
data/perftest-4.4+0.29/src/perftest_communication.c:1885: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(error_message,
data/perftest-4.4+0.29/src/perftest_communication.c:1905:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_message[ERROR_MSG_SIZE] = "";
data/perftest-4.4+0.29/src/perftest_communication.c:1926: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(error_message,
data/perftest-4.4+0.29/src/perftest_communication.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 error_message[ERROR_MSG_SIZE] = "";
data/perftest-4.4+0.29/src/perftest_communication.c:1979: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(error_message,
data/perftest-4.4+0.29/src/perftest_communication.c:1991: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(error_message,
data/perftest-4.4+0.29/src/perftest_communication.c:2261:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_message[ERROR_MSG_SIZE] = "";
data/perftest-4.4+0.29/src/perftest_communication.c:2417:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_message[ERROR_MSG_SIZE] = "";
data/perftest-4.4+0.29/src/perftest_communication.c:2423: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(error_message, "Failed to create RDMA CM server control ID.");
data/perftest-4.4+0.29/src/perftest_communication.c:2437: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(error_message,
data/perftest-4.4+0.29/src/perftest_communication.c:2444: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(error_message,
data/perftest-4.4+0.29/src/perftest_communication.c:2456: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(error_message, "Failed to destroy RDMA CM server listen ID.");
data/perftest-4.4+0.29/src/perftest_communication.c:2473:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_message[ERROR_MSG_SIZE] = "";
data/perftest-4.4+0.29/src/perftest_communication.c:2487: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(error_message, "Failed to resolve RDMA CM address.");
data/perftest-4.4+0.29/src/perftest_communication.c:2495: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(error_message, "Failed to connect RDMA CM events.");
data/perftest-4.4+0.29/src/perftest_communication.c:2512:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_message[ERROR_MSG_SIZE] = "";
data/perftest-4.4+0.29/src/perftest_communication.c:2522: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(error_message, "Failed to destroy RDMA CM contexts.");
data/perftest-4.4+0.29/src/perftest_communication.c:2528:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(error_message,
data/perftest-4.4+0.29/src/perftest_counters.c:28:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char read_buf[COUNTER_VALUE_MAX_LEN];
data/perftest-4.4+0.29/src/perftest_counters.c:86:30:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((ctx->counters[i].fd = open(real_path, O_RDONLY)) < 0) {
data/perftest-4.4+0.29/src/perftest_parameters.c:45:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(_d, _s, _len);                           \
data/perftest-4.4+0.29/src/perftest_parameters.c:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmpMac[MAC_LEN+1];
data/perftest-4.4+0.29/src/perftest_parameters.c:150: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 line[10];
data/perftest-4.4+0.29/src/perftest_parameters.c:151:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fp = fopen(file_name, "r");
data/perftest-4.4+0.29/src/perftest_parameters.c:156: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).
			size = atoi(line);
data/perftest-4.4+0.29/src/perftest_parameters.h:442:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char				version[MAX_VERSION];
data/perftest-4.4+0.29/src/perftest_parameters.h:443:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char				rem_version[MAX_VERSION];
data/perftest-4.4+0.29/src/perftest_resources.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 name[128];
data/perftest-4.4+0.29/src/perftest_resources.c:137:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(fname, O_RDWR);
data/perftest-4.4+0.29/src/perftest_resources.c:206:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[100];
data/perftest-4.4+0.29/src/perftest_resources.c:207:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[100];
data/perftest-4.4+0.29/src/perftest_resources.c:209:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(file_name, "r");
data/perftest-4.4+0.29/src/perftest_resources.c:546: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).
	ctx->fd = open(tmp_file_name, O_RDONLY | O_CREAT, S_IRUSR | S_IRGRP);
data/perftest-4.4+0.29/src/perftest_resources.c:4559:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_message[ERROR_MSG_SIZE] = "";
data/perftest-4.4+0.29/src/perftest_resources.c:4566: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(error_message,
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:65:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4];
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:71:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(file_name, "r");
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:77: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).
	int val = atoi(line);
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:97: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,gid,size);
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:141: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(ip_header_buffer, &ip_header, sizeof(struct IP_V6_header));
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:166: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(ip_header_buffer, &ip_header, sizeof(struct IP_V4_header));
data/perftest-4.4+0.29/src/raw_ethernet_resources.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(UDP_header_buffer, &udp_header, sizeof(struct UDP_header));
data/perftest-4.4+0.29/src/raw_ethernet_resources.c: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(TCP_header_buffer, &tcp_header, sizeof(struct TCP_header));
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:209:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(eth_header->src_mac, src_mac, 6);
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:210:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(eth_header->dst_mac, dst_mac, 6);
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:263: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 str_ip_s[INET_ADDRSTRLEN] = {0};
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:264: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 str_ip_d[INET_ADDRSTRLEN] = {0};
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:266: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 str_ip6_s[INET6_ADDRSTRLEN] = {0};
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:267: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 str_ip6_d[INET6_ADDRSTRLEN] = {0};
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:394:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str_ip_s[INET_ADDRSTRLEN];
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:395:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str_ip_d[INET_ADDRSTRLEN];
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:429:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str_ip_s[INET6_ADDRSTRLEN];
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:430:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str_ip_d[INET6_ADDRSTRLEN];
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:685: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(ipv6_spec->val.dst_ip,
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:687: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(ipv6_spec->val.src_ip,
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:701: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((void*)&ipv6_spec->mask.dst_ip, ipv6_mask, 16);
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:702: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((void*)&ipv6_spec->mask.src_ip, ipv6_mask, 16);
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:880: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(my_dest_info->ip6,
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:887: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(my_dest_info->ip6,
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:897: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(rem_dest_info->ip6,
data/perftest-4.4+0.29/src/raw_ethernet_resources.c:909: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(rem_dest_info->ip6,
data/perftest-4.4+0.29/src/raw_ethernet_resources.h:302:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp_mac , (uint8_t *)eth_header + sizeof(eth_header->src_mac) ,sizeof(eth_header->src_mac));
data/perftest-4.4+0.29/src/raw_ethernet_resources.h: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((uint8_t *)eth_header->src_mac , (uint8_t *)eth_header->dst_mac ,sizeof(eth_header->src_mac));
data/perftest-4.4+0.29/src/raw_ethernet_resources.h:304: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((uint8_t *)eth_header->dst_mac  , tmp_mac ,sizeof(tmp_mac));
data/perftest-4.4+0.29/src/raw_ethernet_send_bw.c:121: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 (&mgid.raw[10], &user_param.dest_mac[0], 6);
data/perftest-4.4+0.29/src/send_bw.c:316: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(mcg_params.mgid.raw, rem_dest[0].gid.raw, 16);
data/perftest-4.4+0.29/src/send_lat.c:150: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(mcg_params->mgid.raw,mcg_params->base_mgid.raw,16);
data/perftest-4.4+0.29/src/send_lat.c:313: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(mcg_params.base_mgid.raw,mcg_params.mgid.raw,16);
data/perftest-4.4+0.29/src/send_lat.c:314: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(mcg_params.mgid.raw,rem_dest[0].gid.raw,16);
data/perftest-4.4+0.29/src/atomic_bw.c:66:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(user_param.version, VERSION, sizeof(user_param.version));
data/perftest-4.4+0.29/src/atomic_lat.c:74:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(user_param.version, VERSION, sizeof(user_param.version));
data/perftest-4.4+0.29/src/get_clock.c:174: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).
		s += (strlen("ClkTck\t: ") - strlen("0x"));
data/perftest-4.4+0.29/src/get_clock.c:174: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).
		s += (strlen("ClkTck\t: ") - strlen("0x"));
data/perftest-4.4+0.29/src/get_clock.c:175: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(s, "0x", strlen("0x"));
data/perftest-4.4+0.29/src/get_clock.c:175: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).
		strncpy(s, "0x", strlen("0x"));
data/perftest-4.4+0.29/src/perftest_communication.c:337:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(comm->rdma_params->sockfd, msg, sizeof msg) != sizeof msg) {
data/perftest-4.4+0.29/src/perftest_communication.c:358:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(comm->rdma_params->sockfd, msg, sizeof msg) != sizeof msg) {
data/perftest-4.4+0.29/src/perftest_communication.c:1044: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);
data/perftest-4.4+0.29/src/perftest_communication.c:1470:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(comm->rdma_params->sockfd, recv_msg, size) != size) {
data/perftest-4.4+0.29/src/perftest_communication.c:2525: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);
data/perftest-4.4+0.29/src/perftest_counters.c:33:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(read_fd, &read_buf, COUNTER_VALUE_MAX_LEN) < 0) {
data/perftest-4.4+0.29/src/perftest_counters.c:49: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).
	unsigned i, num_counters = (unsigned)(strlen(counter_names) > 0);
data/perftest-4.4+0.29/src/perftest_counters.c:50: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(counter_names); i++) {
data/perftest-4.4+0.29/src/perftest_parameters.c:42:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        _len = strlen(_s) + 1;                                  \
data/perftest-4.4+0.29/src/perftest_parameters.c:56: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(mac) != MAC_LEN) {
data/perftest-4.4+0.29/src/perftest_parameters.c:90: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(ether_str) != ETHERTYPE_LEN) {
data/perftest-4.4+0.29/src/perftest_parameters.c:2111:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			case 's': size_len = (int)strlen(optarg);
data/perftest-4.4+0.29/src/perftest_parameters.h:237: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).
{ ALLOCATE(orig,char,(strlen(temp) + 1)); strcpy(orig,temp); }
data/perftest-4.4+0.29/src/perftest_resources.c:1203:14:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
		ctx->buf = memalign(user_param->cycle_buffer, ctx->buff_size);
data/perftest-4.4+0.29/src/perftest_resources.c:1225:26:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
				ctx->buf[qp_index] = memalign(user_param->cycle_buffer, ctx->buff_size);
data/perftest-4.4+0.29/src/raw_ethernet_fs_rate.c:74:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(user_param.version, VERSION, sizeof(user_param.version));
data/perftest-4.4+0.29/src/raw_ethernet_send_burst_lat.c:84:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(user_param.version, VERSION, sizeof(user_param.version));
data/perftest-4.4+0.29/src/raw_ethernet_send_bw.c:84:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(user_param.version, VERSION, sizeof(user_param.version));
data/perftest-4.4+0.29/src/raw_ethernet_send_lat.c:84:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(user_param.version, VERSION, sizeof(user_param.version));
data/perftest-4.4+0.29/src/read_bw.c:66:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(user_param.version, VERSION, sizeof(user_param.version));
data/perftest-4.4+0.29/src/read_lat.c:73:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(user_param.version, VERSION, sizeof(user_param.version));
data/perftest-4.4+0.29/src/send_bw.c:176:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(user_param.version, VERSION, sizeof(user_param.version));
data/perftest-4.4+0.29/src/send_bw.c:330: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(50000);
data/perftest-4.4+0.29/src/send_lat.c:186:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(user_param.version, VERSION, sizeof(user_param.version));
data/perftest-4.4+0.29/src/send_lat.c:334: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(50000);
data/perftest-4.4+0.29/src/write_bw.c:65:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(user_param.version, VERSION, sizeof(user_param.version));
data/perftest-4.4+0.29/src/write_lat.c:73:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(user_param.version, VERSION, sizeof(user_param.version));

ANALYSIS SUMMARY:

Hits = 329
Lines analyzed = 19664 in approximately 0.57 seconds (34373 lines/second)
Physical Source Lines of Code (SLOC) = 13578
Hits@level = [0] 1174 [1]  33 [2] 108 [3]   4 [4] 184 [5]   0
Hits@level+ = [0+] 1503 [1+] 329 [2+] 296 [3+] 188 [4+] 184 [5+]   0
Hits/KSLOC@level+ = [0+] 110.694 [1+] 24.2304 [2+] 21.8 [3+] 13.8459 [4+] 13.5513 [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.