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/zmap-2.1.1/examples/forge-socket/forge-socket.c
Examining data/zmap-2.1.1/lib/blacklist.c
Examining data/zmap-2.1.1/lib/blacklist.h
Examining data/zmap-2.1.1/lib/constraint.c
Examining data/zmap-2.1.1/lib/constraint.h
Examining data/zmap-2.1.1/lib/csv.c
Examining data/zmap-2.1.1/lib/csv.h
Examining data/zmap-2.1.1/lib/includes.h
Examining data/zmap-2.1.1/lib/lockfd.c
Examining data/zmap-2.1.1/lib/lockfd.h
Examining data/zmap-2.1.1/lib/logger.c
Examining data/zmap-2.1.1/lib/logger.h
Examining data/zmap-2.1.1/lib/pbm.c
Examining data/zmap-2.1.1/lib/pbm.h
Examining data/zmap-2.1.1/lib/queue.c
Examining data/zmap-2.1.1/lib/queue.h
Examining data/zmap-2.1.1/lib/random.c
Examining data/zmap-2.1.1/lib/random.h
Examining data/zmap-2.1.1/lib/redis.c
Examining data/zmap-2.1.1/lib/redis.h
Examining data/zmap-2.1.1/lib/rijndael-alg-fst.c
Examining data/zmap-2.1.1/lib/rijndael-alg-fst.h
Examining data/zmap-2.1.1/lib/types.h
Examining data/zmap-2.1.1/lib/util.c
Examining data/zmap-2.1.1/lib/util.h
Examining data/zmap-2.1.1/lib/xalloc.c
Examining data/zmap-2.1.1/lib/xalloc.h
Examining data/zmap-2.1.1/src/aesrand.c
Examining data/zmap-2.1.1/src/aesrand.h
Examining data/zmap-2.1.1/src/cyclic.c
Examining data/zmap-2.1.1/src/cyclic.h
Examining data/zmap-2.1.1/src/expression.c
Examining data/zmap-2.1.1/src/expression.h
Examining data/zmap-2.1.1/src/fieldset.c
Examining data/zmap-2.1.1/src/fieldset.h
Examining data/zmap-2.1.1/src/filter.c
Examining data/zmap-2.1.1/src/filter.h
Examining data/zmap-2.1.1/src/get_gateway-bsd.h
Examining data/zmap-2.1.1/src/get_gateway-linux.h
Examining data/zmap-2.1.1/src/get_gateway.c
Examining data/zmap-2.1.1/src/get_gateway.h
Examining data/zmap-2.1.1/src/iterator.c
Examining data/zmap-2.1.1/src/iterator.h
Examining data/zmap-2.1.1/src/monitor.c
Examining data/zmap-2.1.1/src/monitor.h
Examining data/zmap-2.1.1/src/output_modules/module_csv.c
Examining data/zmap-2.1.1/src/output_modules/module_csv.h
Examining data/zmap-2.1.1/src/output_modules/module_json.c
Examining data/zmap-2.1.1/src/output_modules/module_mongodb.c
Examining data/zmap-2.1.1/src/output_modules/module_redis_csv.c
Examining data/zmap-2.1.1/src/output_modules/module_redis_csv.h
Examining data/zmap-2.1.1/src/output_modules/module_redis_packed.c
Examining data/zmap-2.1.1/src/output_modules/module_redis_packed.h
Examining data/zmap-2.1.1/src/output_modules/output_modules.c
Examining data/zmap-2.1.1/src/output_modules/output_modules.h
Examining data/zmap-2.1.1/src/probe_modules/module_icmp_echo.c
Examining data/zmap-2.1.1/src/probe_modules/module_icmp_echo_time.c
Examining data/zmap-2.1.1/src/probe_modules/module_ntp.c
Examining data/zmap-2.1.1/src/probe_modules/module_ntp.h
Examining data/zmap-2.1.1/src/probe_modules/module_tcp_synscan.c
Examining data/zmap-2.1.1/src/probe_modules/module_udp.c
Examining data/zmap-2.1.1/src/probe_modules/module_udp.h
Examining data/zmap-2.1.1/src/probe_modules/module_upnp.c
Examining data/zmap-2.1.1/src/probe_modules/packet.c
Examining data/zmap-2.1.1/src/probe_modules/packet.h
Examining data/zmap-2.1.1/src/probe_modules/probe_modules.c
Examining data/zmap-2.1.1/src/probe_modules/probe_modules.h
Examining data/zmap-2.1.1/src/recv-internal.h
Examining data/zmap-2.1.1/src/recv-pcap.c
Examining data/zmap-2.1.1/src/recv-pfring.c
Examining data/zmap-2.1.1/src/recv.c
Examining data/zmap-2.1.1/src/recv.h
Examining data/zmap-2.1.1/src/send-bsd.h
Examining data/zmap-2.1.1/src/send-linux.h
Examining data/zmap-2.1.1/src/send-pfring.h
Examining data/zmap-2.1.1/src/send.c
Examining data/zmap-2.1.1/src/send.h
Examining data/zmap-2.1.1/src/shard.c
Examining data/zmap-2.1.1/src/shard.h
Examining data/zmap-2.1.1/src/socket-bsd.c
Examining data/zmap-2.1.1/src/socket-linux.c
Examining data/zmap-2.1.1/src/socket-pfring.c
Examining data/zmap-2.1.1/src/socket.c
Examining data/zmap-2.1.1/src/socket.h
Examining data/zmap-2.1.1/src/state.c
Examining data/zmap-2.1.1/src/state.h
Examining data/zmap-2.1.1/src/summary.c
Examining data/zmap-2.1.1/src/summary.h
Examining data/zmap-2.1.1/src/topt_compat.c
Examining data/zmap-2.1.1/src/validate.c
Examining data/zmap-2.1.1/src/validate.h
Examining data/zmap-2.1.1/src/zblacklist.c
Examining data/zmap-2.1.1/src/zbopt_compat.c
Examining data/zmap-2.1.1/src/zmap.c
Examining data/zmap-2.1.1/src/zopt_compat.c
Examining data/zmap-2.1.1/src/ztee.c

FINAL RESULTS:

data/zmap-2.1.1/lib/logger.c:95:4:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			vfprintf(log_output_stream, logMessage, args);
data/zmap-2.1.1/lib/logger.c:158: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(prefixed, name);
data/zmap-2.1.1/lib/logger.c:160:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(prefixed, message);
data/zmap-2.1.1/lib/logger.c:178: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(prefixed, name);
data/zmap-2.1.1/lib/logger.c:180:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(prefixed, message);
data/zmap-2.1.1/lib/logger.c:198: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(prefixed, name);
data/zmap-2.1.1/lib/logger.c:200:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(prefixed, message);
data/zmap-2.1.1/lib/redis.c:35:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (sscanf(connstr, "tcp://%[^:]:%u/%s", servername,
data/zmap-2.1.1/lib/redis.c:70: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(path, connstr);
data/zmap-2.1.1/lib/redis.c:71: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(list_name, listname);
data/zmap-2.1.1/src/output_modules/module_csv.c:92:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(file, "%" PRIu64, (uint64_t) f->value.num);
data/zmap-2.1.1/src/output_modules/module_redis_csv.c:75:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(fieldstring, fields[i]);
data/zmap-2.1.1/src/output_modules/module_redis_csv.c:151:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(dataloc, "\"%s\"", (char*) f->value.ptr);
data/zmap-2.1.1/src/output_modules/module_redis_csv.c:153:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(dataloc, "%s", (char*) f->value.ptr);
data/zmap-2.1.1/src/output_modules/module_redis_csv.c:159:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(dataloc, "%" PRIu64, (uint64_t) f->value.num);
data/zmap-2.1.1/src/probe_modules/module_upnp.c:59:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(payload, upnp_query);
data/zmap-2.1.1/src/probe_modules/packet.c:135: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(retv, temp);
data/zmap-2.1.1/src/probe_modules/probe_modules.c:86:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(timestr_ms, TIMESTR_LEN, timestr, t.tv_usec/1000);
data/zmap-2.1.1/src/recv-pcap.c:72:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(bpftmp, zconf.probe_module->pcap_filter);
data/zmap-2.1.1/src/state.h:114:6:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	int syslog;
data/zmap-2.1.1/src/summary.c:106:39:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
            json_object_new_int(zconf.syslog));
data/zmap-2.1.1/src/summary.c:280:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(cidr, "%s/%i", inet_ntoa(addr), b->prefix_len);
data/zmap-2.1.1/src/summary.c:294:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(cidr, "%s/%i", inet_ntoa(addr), b->prefix_len);
data/zmap-2.1.1/src/zblacklist.c:152:33:  [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 (conf.blacklist_filename && access(conf.blacklist_filename, R_OK) == -1) {
data/zmap-2.1.1/src/zblacklist.c:161:33:  [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 (conf.whitelist_filename && access(conf.whitelist_filename, R_OK) == -1) {
data/zmap-2.1.1/src/zmap.c:329:43:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
		log_init(stderr, zconf.log_level, zconf.syslog, "zmap");
data/zmap-2.1.1/src/zmap.c:343:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(fullpath, "%s/%s", zconf.log_directory, path);
data/zmap-2.1.1/src/zmap.c:351:43:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
		log_init(stderr, zconf.log_level, zconf.syslog, "zmap");
data/zmap-2.1.1/src/zmap.c:355:48:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	log_init(log_location, zconf.log_level, zconf.syslog, "zmap");
data/zmap-2.1.1/src/zmap.c:361:12:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
	if (zconf.syslog) {
data/zmap-2.1.1/examples/forge-socket/forge-socket.c:426: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, "c:t:r:v:f:d:",
data/zmap-2.1.1/src/probe_modules/packet.c:107:26:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    tcp_header->th_seq = random();
data/zmap-2.1.1/examples/forge-socket/forge-socket.c:174: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 out[4] = {0,0,0,0};
data/zmap-2.1.1/examples/forge-socket/forge-socket.c:346:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char synack[12];
data/zmap-2.1.1/examples/forge-socket/forge-socket.c:347:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char srcip[INET_ADDRSTRLEN], dstip[INET_ADDRSTRLEN];
data/zmap-2.1.1/examples/forge-socket/forge-socket.c:435:26:  [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).
			conf.max_concurrent = atoi(optarg);
data/zmap-2.1.1/examples/forge-socket/forge-socket.c:438:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			conf.read_timeout = atoi(optarg);
data/zmap-2.1.1/examples/forge-socket/forge-socket.c:441:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			if (atoi(optarg) >= 0 && atoi(optarg) <= 5) {
data/zmap-2.1.1/examples/forge-socket/forge-socket.c:441:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			if (atoi(optarg) >= 0 && atoi(optarg) <= 5) {
data/zmap-2.1.1/examples/forge-socket/forge-socket.c:442:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				log_init(stderr, atoi(optarg), 1, "forge-socket");
data/zmap-2.1.1/examples/forge-socket/forge-socket.c:458:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fp = fopen(optarg, "r");
data/zmap-2.1.1/lib/blacklist.c:159:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[1000];
data/zmap-2.1.1/lib/blacklist.c:161: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, "r");
data/zmap-2.1.1/lib/blacklist.c:172: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 ip[33];
data/zmap-2.1.1/lib/logger.c:84:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char timestamp[256];
data/zmap-2.1.1/lib/logger.c:159:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(prefixed, ": ");
data/zmap-2.1.1/lib/logger.c:179:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(prefixed, ": ");
data/zmap-2.1.1/lib/logger.c:199:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(prefixed, ": ");
data/zmap-2.1.1/lib/random.c:20:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(RANDSRC, "rb");
data/zmap-2.1.1/lib/redis.c:200:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[50];
data/zmap-2.1.1/lib/redis.c:202:20:  [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).
	return (uint32_t) atoi(buf);
data/zmap-2.1.1/lib/redis.c:208:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[50];
data/zmap-2.1.1/lib/redis.c:209:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%u", value);
data/zmap-2.1.1/lib/redis.c:269:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((void*)((intptr_t)buf+i*obj_size), reply->str, obj_size);
data/zmap-2.1.1/lib/redis.c:305: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(temp, reply->str, *len);
data/zmap-2.1.1/lib/redis.h:27:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[ZMAP_REDIS_ERRLEN];
data/zmap-2.1.1/lib/util.c:167:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char octet[4];
data/zmap-2.1.1/lib/util.c:194:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *file = fopen(name, "r");
data/zmap-2.1.1/src/fieldset.c:25: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(open, fs, len*sizeof(fielddef_t));
data/zmap-2.1.1/src/fieldset.c:25:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	memcpy(open, fs, len*sizeof(fielddef_t));
data/zmap-2.1.1/src/fieldset.c:192: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(&(retv->fields[i]), &(fs->fields[o]), sizeof(field_t));
data/zmap-2.1.1/src/get_gateway-bsd.h:59: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(hw_mac, &entry.arp_ha.addr_eth, ETHER_ADDR_LEN);
data/zmap-2.1.1/src/get_gateway-bsd.h:98:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(hw_mac, eth_addr.data, ETHER_ADDR_LEN);
data/zmap-2.1.1/src/get_gateway-bsd.h:107:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/zmap-2.1.1/src/get_gateway-bsd.h:148:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(_iface, sdl->sdl_data, sdl->sdl_nlen);
data/zmap-2.1.1/src/get_gateway-linux.h:24:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errbuf[PCAP_ERRBUF_SIZE];
data/zmap-2.1.1/src/get_gateway-linux.h:80:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(NLMSG_DATA(nlmsg), payload, payload_len);
data/zmap-2.1.1/src/get_gateway-linux.h:97:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[8192];
data/zmap-2.1.1/src/get_gateway-linux.h:125:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char mac[6];
data/zmap-2.1.1/src/get_gateway-linux.h:148: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(mac, RTA_DATA(rt_attr), IFHWADDRLEN);
data/zmap-2.1.1/src/get_gateway-linux.h:168: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(hw_mac, mac, IFHWADDRLEN);
data/zmap-2.1.1/src/get_gateway-linux.h:181:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[8192];
data/zmap-2.1.1/src/get_gateway-linux.h:237:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char _iface[IF_NAMESIZE];
data/zmap-2.1.1/src/get_gateway-linux.h:287: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(hw_mac, buffer.ifr_hwaddr.sa_data, 6);
data/zmap-2.1.1/src/monitor.c:61:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char send_rate_str[NUMBER_STR_LEN];
data/zmap-2.1.1/src/monitor.c:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char send_rate_avg_str[NUMBER_STR_LEN];
data/zmap-2.1.1/src/monitor.c:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char recv_rate_str[NUMBER_STR_LEN];
data/zmap-2.1.1/src/monitor.c:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char recv_avg_str[NUMBER_STR_LEN];
data/zmap-2.1.1/src/monitor.c:73:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char app_success_rate_str[NUMBER_STR_LEN];
data/zmap-2.1.1/src/monitor.c:75:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char app_success_avg_str[NUMBER_STR_LEN];
data/zmap-2.1.1/src/monitor.c:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pcap_drop_total_str[NUMBER_STR_LEN];
data/zmap-2.1.1/src/monitor.c:82:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pcap_drop_last_str[NUMBER_STR_LEN];
data/zmap-2.1.1/src/monitor.c:84:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pcap_drop_avg_str[NUMBER_STR_LEN];
data/zmap-2.1.1/src/monitor.c:87:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char time_remaining_str[NUMBER_STR_LEN];
data/zmap-2.1.1/src/monitor.c:89:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char time_past_str[NUMBER_STR_LEN];
data/zmap-2.1.1/src/monitor.c:155:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[20];
data/zmap-2.1.1/src/monitor.c:352:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *f = fopen(path, "wb");
data/zmap-2.1.1/src/monitor.c:375:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char timestamp[256];
data/zmap-2.1.1/src/output_modules/module_csv.c:33:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if (!(file = fopen(conf->output_filename, "w"))) {
data/zmap-2.1.1/src/output_modules/module_json.c:44:16:  [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).
		if (!(file = fopen(conf->output_filename, "w"))) {
data/zmap-2.1.1/src/output_modules/module_redis_csv.c:73:25:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                        strcat(fieldstring, ", ");
data/zmap-2.1.1/src/output_modules/module_redis_csv.c:130: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(temp, "%02x", readbuf[i]);
data/zmap-2.1.1/src/probe_modules/module_ntp.c:202:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(payload, ntp_header, module_ntp.packet_length);
data/zmap-2.1.1/src/probe_modules/module_udp.c:64:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const unsigned char charset_all[257]  = {
data/zmap-2.1.1/src/probe_modules/module_udp.c:161:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		inp = fopen(c, "rb");
data/zmap-2.1.1/src/probe_modules/module_udp.c:246: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(payload, udp_send_msg, udp_send_msg_len);
data/zmap-2.1.1/src/probe_modules/module_udp.c:488:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[256];
data/zmap-2.1.1/src/probe_modules/module_udp.c:513: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(p, c->data, c->length);
data/zmap-2.1.1/src/probe_modules/module_udp.c:543: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(p, tmp, strlen(tmp));
data/zmap-2.1.1/src/probe_modules/module_udp.c:554: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(p, tmp, strlen(tmp));
data/zmap-2.1.1/src/probe_modules/module_udp.c:605: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(p, tmp, y);
data/zmap-2.1.1/src/probe_modules/module_udp.c:615: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(p, tmp, y);
data/zmap-2.1.1/src/probe_modules/module_udp.c:646:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		olen = atoi((const char *)param);
data/zmap-2.1.1/src/probe_modules/module_udp.c:652:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		if (strcmp((char *)vname, udp_payload_template_fields[f].name) == 0) {
data/zmap-2.1.1/src/probe_modules/module_udp.c:718: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(tmp, s, tlen);
data/zmap-2.1.1/src/probe_modules/module_udp.c:723:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(tmp, lbrack+1, p-lbrack-1);
data/zmap-2.1.1/src/probe_modules/module_udp.c:756: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, s, tlen);
data/zmap-2.1.1/src/probe_modules/module_upnp.c:268:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			fs_add_string(fs, "icmp_unreach_str", (char *) udp_unreach_strings[icmp->icmp_code], 0);
data/zmap-2.1.1/src/probe_modules/packet.c:41:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char srcip[IP_ADDR_LEN_STR+1];
data/zmap-2.1.1/src/probe_modules/packet.c:42:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dstip[IP_ADDR_LEN_STR+1];
data/zmap-2.1.1/src/probe_modules/packet.c:78: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(ethh->ether_shost, src, ETHER_ADDR_LEN);
data/zmap-2.1.1/src/probe_modules/packet.c:79: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(ethh->ether_dhost, dst, ETHER_ADDR_LEN);
data/zmap-2.1.1/src/recv-pcap.c:56:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char bpftmp[BPFLEN];
data/zmap-2.1.1/src/recv-pcap.c:57:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errbuf[PCAP_ERRBUF_SIZE];
data/zmap-2.1.1/src/recv-pcap.c:71:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(bpftmp, " and (");
data/zmap-2.1.1/src/recv.c:66: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(&fake_eth_hdr[sizeof(struct ether_header)], bytes, buflen);
data/zmap-2.1.1/src/send-linux.h:58: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(sockaddr.sll_addr, zconf.gw_mac, ETH_ALEN);
data/zmap-2.1.1/src/send-pfring.h:30: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(sock.pf.buffers[idx]->data, buf, len);
data/zmap-2.1.1/src/send.c:179:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[MAX_PACKET_SIZE];
data/zmap-2.1.1/src/send.c:188:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mac_buf[(ETHER_ADDR_LEN * 2) + (ETHER_ADDR_LEN - 1) + 1];
data/zmap-2.1.1/src/socket-bsd.c:26:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file[32];
data/zmap-2.1.1/src/socket-bsd.c:35:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		bpf = open(file, O_WRONLY);
data/zmap-2.1.1/src/summary.c:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char send_start_time[STRTIME_LEN+1];
data/zmap-2.1.1/src/summary.c:35:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char send_end_time[STRTIME_LEN+1];
data/zmap-2.1.1/src/summary.c:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char recv_start_time[STRTIME_LEN+1];
data/zmap-2.1.1/src/summary.c:39:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char recv_end_time[STRTIME_LEN+1];
data/zmap-2.1.1/src/summary.c:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostname[1024];
data/zmap-2.1.1/src/summary.c:198: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 mac_buf[ (MAC_ADDR_LEN * 2) + (MAC_ADDR_LEN - 1) + 1 ];
data/zmap-2.1.1/src/summary.c:218: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 mac_buf[(ETHER_ADDR_LEN * 2) + (ETHER_ADDR_LEN - 1) + 1];
data/zmap-2.1.1/src/summary.c:277: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 cidr[50];
data/zmap-2.1.1/src/summary.c:291: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 cidr[50];
data/zmap-2.1.1/src/zblacklist.c:130:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		logfile = fopen(conf.log_filename, "w");
data/zmap-2.1.1/src/zblacklist.c:179:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1000];
data/zmap-2.1.1/src/zblacklist.c:180:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char original[1000];
data/zmap-2.1.1/src/zblacklist.c:183:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(original, line, strlen(line) + 1);
data/zmap-2.1.1/src/zmap.c:335:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		log_location = fopen(zconf.log_file, "w");
data/zmap-2.1.1/src/zmap.c:340: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 path[100];
data/zmap-2.1.1/src/zmap.c:344:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		log_location = fopen(fullpath, "w");
data/zmap-2.1.1/src/zmap.c:546:26:  [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).
			zconf.metadata_file = fopen(zconf.metadata_filename, "w");
data/zmap-2.1.1/src/zmap.c:601:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				zconf.source_port_first = atoi(args.source_port_arg);
data/zmap-2.1.1/src/zmap.c:603:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				zconf.source_port_last = atoi(dash+1);
data/zmap-2.1.1/src/zmap.c:612:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				int port = atoi(args.source_port_arg);
data/zmap-2.1.1/src/zmap.c:694:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		zconf.bandwidth = atoi(args.bandwidth_arg);
data/zmap-2.1.1/src/zmap.c:800:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			zconf.pin_cores[i] = atoi(core_list[i]);
data/zmap-2.1.1/src/ztee.c:164:20:  [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).
		tconf.log_file = fopen(args.log_file_arg, "w");
data/zmap-2.1.1/src/ztee.c:188:22:  [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).
	tconf.output_file = fopen(tconf.output_filename, "w");
data/zmap-2.1.1/src/ztee.c:204:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *file = fopen(filename, "w");
data/zmap-2.1.1/src/ztee.c:397:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (atoi(success_entry)) {
data/zmap-2.1.1/src/ztee.c:461:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char time_past_str[TIME_STR_LEN];
data/zmap-2.1.1/examples/forge-socket/forge-socket.c:395:8:  [1] (obsolete) ulimit:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name, which is NOT obsolete) (CWE-676). Use getrlimit(2),
  setrlimit(2), and sysconf(3) instead.
	ret = ulimit(4, 1000000);	// Allow us to open 1 million fds (instead of 1024)
data/zmap-2.1.1/lib/blacklist.c:173:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		if ((sscanf(line, "%32s", ip)) == EOF) {
data/zmap-2.1.1/lib/csv.c:9:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strncmp(front, names[i], strlen(names[i])) == 0) {
data/zmap-2.1.1/lib/logger.c:157:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *prefixed = xmalloc(strlen(name) + strlen(message) + 3);
data/zmap-2.1.1/lib/logger.c:157:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *prefixed = xmalloc(strlen(name) + strlen(message) + 3);
data/zmap-2.1.1/lib/logger.c:177:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *prefixed = xmalloc(strlen(name) + strlen(message) + 3);
data/zmap-2.1.1/lib/logger.c:177:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *prefixed = xmalloc(strlen(name) + strlen(message) + 3);
data/zmap-2.1.1/lib/logger.c:197:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *prefixed = xmalloc(strlen(name) + strlen(message) + 3);
data/zmap-2.1.1/lib/logger.c:197:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *prefixed = xmalloc(strlen(name) + strlen(message) + 3);
data/zmap-2.1.1/lib/redis.c:32: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).
		char *servername = xmalloc(strlen(connstr));
data/zmap-2.1.1/lib/redis.c:33:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char *list_name = xmalloc(strlen(connstr));
data/zmap-2.1.1/lib/redis.c:50:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char *path = xmalloc(strlen(connstr));
data/zmap-2.1.1/lib/redis.c:51:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char *list_name = xmalloc(strlen(connstr));
data/zmap-2.1.1/lib/redis.c:191:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, reply->str, maxlen - 1);
data/zmap-2.1.1/lib/util.c:41:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(new, currloc, len);
data/zmap-2.1.1/lib/util.c:46:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (len == strlen(currloc)) {
data/zmap-2.1.1/lib/util.c:57: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(s) <= w) {
data/zmap-2.1.1/lib/util.c:66:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(pch) <= w) {
data/zmap-2.1.1/lib/util.c:72:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		while (strlen(t)) {
data/zmap-2.1.1/lib/util.c:77:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (new == strlen(tmp) || new > w) {
data/zmap-2.1.1/lib/util.c:93:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (t > pch + (size_t)strlen(pch)) {
data/zmap-2.1.1/lib/util.c:165: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(in) < MAC_ADDR_LEN*3-1)
data/zmap-2.1.1/lib/util.c:173:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(octet, &in[i*3], 2);
data/zmap-2.1.1/src/fieldset.c:78:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	fs_add_word(fs, name, FS_STRING, free_, strlen(value), val);
data/zmap-2.1.1/src/fieldset.c:104:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	fs_modify_word(fs, name, FS_STRING, free_, strlen(value), val);
data/zmap-2.1.1/src/get_gateway-bsd.h:126:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (rtm->rtm_type == RTM_GET && (len = read(fd, rtm, sizeof(buf))) > 0) {
data/zmap-2.1.1/src/get_gateway-linux.h:260:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifr.ifr_name, iface, IFNAMSIZ-1);
data/zmap-2.1.1/src/get_gateway-linux.h:284:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buffer.ifr_name, iface, IFNAMSIZ);
data/zmap-2.1.1/src/output_modules/module_redis_csv.c:109:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += strlen(f->value.ptr);
data/zmap-2.1.1/src/output_modules/module_redis_csv.c:139:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char *temp = out + (size_t) strlen(out);
data/zmap-2.1.1/src/output_modules/module_redis_csv.c:143:4:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
			sprintf(temp, ",");
data/zmap-2.1.1/src/output_modules/module_redis_csv.c:147:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(dataloc) + strlen((char*) f->value.ptr) >= len) {
data/zmap-2.1.1/src/output_modules/module_redis_csv.c:147:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(dataloc) + strlen((char*) f->value.ptr) >= len) {
data/zmap-2.1.1/src/output_modules/module_redis_csv.c:156:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(dataloc) + INT_STR_LEN >= len) {
data/zmap-2.1.1/src/output_modules/module_redis_csv.c:161:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(dataloc) + 2*f->len >= len) {
data/zmap-2.1.1/src/probe_modules/module_udp.c:123:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	udp_send_msg_len = strlen(udp_send_msg);
data/zmap-2.1.1/src/probe_modules/module_udp.c:125:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!(conf->probe_args && strlen(conf->probe_args) > 0))
data/zmap-2.1.1/src/probe_modules/module_udp.c:158:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		udp_send_msg_len = strlen(udp_send_msg);
data/zmap-2.1.1/src/probe_modules/module_udp.c:179:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		udp_send_msg_len = strlen(c) / 2;
data/zmap-2.1.1/src/probe_modules/module_udp.c:543: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).
				memcpy(p, tmp, strlen(tmp));
data/zmap-2.1.1/src/probe_modules/module_udp.c:544:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				p += strlen(tmp);
data/zmap-2.1.1/src/probe_modules/module_udp.c:554: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).
				memcpy(p, tmp, strlen(tmp));
data/zmap-2.1.1/src/probe_modules/module_udp.c:555:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				p += strlen(tmp);
data/zmap-2.1.1/src/probe_modules/module_upnp.c:46:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    uint16_t len = htons(sizeof(struct ip) + sizeof(struct udphdr) + strlen(upnp_query));
data/zmap-2.1.1/src/probe_modules/module_upnp.c:50:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = sizeof(struct udphdr) + strlen(upnp_query);
data/zmap-2.1.1/src/probe_modules/module_upnp.c:56:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		+ strlen(upnp_query) <= MAX_PACKET_SIZE);
data/zmap-2.1.1/src/probe_modules/module_upnp.c:58:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(MAX_PACKET_SIZE - ((char*)payload - (char*)buf) > (int) strlen(upnp_query));
data/zmap-2.1.1/src/probe_modules/module_upnp.c:95:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(s, payload, plen);
data/zmap-2.1.1/src/probe_modules/module_upnp.c:108:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (pch[strlen(pch)-1] == '\r') {
data/zmap-2.1.1/src/probe_modules/module_upnp.c:109: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).
				pch[strlen(pch)-1] = '\0';
data/zmap-2.1.1/src/probe_modules/module_upnp.c:111:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(pch) == 0) {
data/zmap-2.1.1/src/probe_modules/packet.c:46:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(srcip, inet_ntoa(*s), IP_ADDR_LEN_STR - 1);
data/zmap-2.1.1/src/probe_modules/packet.c:47:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dstip, inet_ntoa(*d), IP_ADDR_LEN_STR - 1);
data/zmap-2.1.1/src/probe_modules/packet.c:134: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).
	char *retv = xmalloc(strlen(temp)+1);
data/zmap-2.1.1/src/recv-pcap.c:69:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	assert(strlen(zconf.probe_module->pcap_filter) + 10 < (BPFLEN - strlen(bpftmp)));
data/zmap-2.1.1/src/recv-pcap.c:69:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	assert(strlen(zconf.probe_module->pcap_filter) + 10 < (BPFLEN - strlen(bpftmp)));
data/zmap-2.1.1/src/recv-pcap.c:73:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(bpftmp, ")");
data/zmap-2.1.1/src/recv-pcap.c:95: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(1000);
data/zmap-2.1.1/src/recv-pfring.c:51:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(1000);
data/zmap-2.1.1/src/send-linux.h:31: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(zconf.iface) >= IFNAMSIZ) {
data/zmap-2.1.1/src/send-linux.h:36:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(if_idx.ifr_name, zconf.iface, IFNAMSIZ-1);
data/zmap-2.1.1/src/send-linux.h:49:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(if_ip.ifr_name, zconf.iface, IFNAMSIZ-1);
data/zmap-2.1.1/src/zblacklist.c:183:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memcpy(original, line, strlen(line) + 1);
data/zmap-2.1.1/src/zmap.c:342:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char *fullpath = xmalloc(strlen(zconf.log_directory) + strlen(path) + 2);
data/zmap-2.1.1/src/zmap.c:342:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char *fullpath = xmalloc(strlen(zconf.log_directory) + strlen(path) + 2);

ANALYSIS SUMMARY:

Hits = 214
Lines analyzed = 13318 in approximately 0.39 seconds (34354 lines/second)
Physical Source Lines of Code (SLOC) = 10417
Hits@level = [0] 117 [1]  65 [2] 117 [3]   2 [4]  30 [5]   0
Hits@level+ = [0+] 331 [1+] 214 [2+] 149 [3+]  32 [4+]  30 [5+]   0
Hits/KSLOC@level+ = [0+] 31.775 [1+] 20.5433 [2+] 14.3035 [3+] 3.0719 [4+] 2.87991 [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.