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/hping3-3.a2.ds2/adbuf.c
Examining data/hping3-3.a2.ds2/adbuf.h
Examining data/hping3-3.a2.ds2/antigetopt.h
Examining data/hping3-3.a2.ds2/apd.c
Examining data/hping3-3.a2.ds2/apdutils.c
Examining data/hping3-3.a2.ds2/apdutils.h
Examining data/hping3-3.a2.ds2/arsglue.c
Examining data/hping3-3.a2.ds2/binding.c
Examining data/hping3-3.a2.ds2/byteorder.c
Examining data/hping3-3.a2.ds2/cksum.c
Examining data/hping3-3.a2.ds2/datafiller.c
Examining data/hping3-3.a2.ds2/display_ipopt.c
Examining data/hping3-3.a2.ds2/fixtypes.h
Examining data/hping3-3.a2.ds2/gentables.c
Examining data/hping3-3.a2.ds2/gethostname.c
Examining data/hping3-3.a2.ds2/getlhs.c
Examining data/hping3-3.a2.ds2/getusec.c
Examining data/hping3-3.a2.ds2/hcmp.h
Examining data/hping3-3.a2.ds2/hex.c
Examining data/hping3-3.a2.ds2/hex.h
Examining data/hping3-3.a2.ds2/hstring.c
Examining data/hping3-3.a2.ds2/hstring.h
Examining data/hping3-3.a2.ds2/if_promisc.c
Examining data/hping3-3.a2.ds2/in.h
Examining data/hping3-3.a2.ds2/interface.h
Examining data/hping3-3.a2.ds2/ip_opt_build.c
Examining data/hping3-3.a2.ds2/listen.c
Examining data/hping3-3.a2.ds2/logicmp.c
Examining data/hping3-3.a2.ds2/memlock.c
Examining data/hping3-3.a2.ds2/memlockall.c
Examining data/hping3-3.a2.ds2/memstr.c
Examining data/hping3-3.a2.ds2/memunlock.c
Examining data/hping3-3.a2.ds2/memunlockall.c
Examining data/hping3-3.a2.ds2/opensockraw.c
Examining data/hping3-3.a2.ds2/random.c
Examining data/hping3-3.a2.ds2/rapd.c
Examining data/hping3-3.a2.ds2/relid.c
Examining data/hping3-3.a2.ds2/resolve.c
Examining data/hping3-3.a2.ds2/rtt.c
Examining data/hping3-3.a2.ds2/sbignum-tables.c
Examining data/hping3-3.a2.ds2/sbignum-tables.h
Examining data/hping3-3.a2.ds2/sbignum.c
Examining data/hping3-3.a2.ds2/sbignum.h
Examining data/hping3-3.a2.ds2/scan.c
Examining data/hping3-3.a2.ds2/send.c
Examining data/hping3-3.a2.ds2/sendhcmp.c
Examining data/hping3-3.a2.ds2/sendrawip.c
Examining data/hping3-3.a2.ds2/signal.c
Examining data/hping3-3.a2.ds2/sockopt.c
Examining data/hping3-3.a2.ds2/split.c
Examining data/hping3-3.a2.ds2/strlcpy.c
Examining data/hping3-3.a2.ds2/bytesex.h
Examining data/hping3-3.a2.ds2/antigetopt.c
Examining data/hping3-3.a2.ds2/statistics.c
Examining data/hping3-3.a2.ds2/version.c
Examining data/hping3-3.a2.ds2/release.h
Examining data/hping3-3.a2.ds2/sendudp.c
Examining data/hping3-3.a2.ds2/sendicmp.c
Examining data/hping3-3.a2.ds2/datahandler.c
Examining data/hping3-3.a2.ds2/ars.h
Examining data/hping3-3.a2.ds2/sendip_handler.c
Examining data/hping3-3.a2.ds2/ars.c
Examining data/hping3-3.a2.ds2/sendip.c
Examining data/hping3-3.a2.ds2/globals.h
Examining data/hping3-3.a2.ds2/parseoptions.c
Examining data/hping3-3.a2.ds2/usage.c
Examining data/hping3-3.a2.ds2/sendtcp.c
Examining data/hping3-3.a2.ds2/getifname.c
Examining data/hping3-3.a2.ds2/script.c
Examining data/hping3-3.a2.ds2/libpcap_stuff.c
Examining data/hping3-3.a2.ds2/interface.c
Examining data/hping3-3.a2.ds2/main.c
Examining data/hping3-3.a2.ds2/waitpacket.c
Examining data/hping3-3.a2.ds2/hping2.h

FINAL RESULTS:

data/hping3-3.a2.ds2/adbuf.c:285:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	retval = vsnprintf(buf, ADBUF_PRINTF_BUFSZ, fmt, ap);
data/hping3-3.a2.ds2/adbuf.c:304:15:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		newretval = vsnprintf(dynbuf, retval+1, fmt, ap);
data/hping3-3.a2.ds2/antigetopt.c:155:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr, UNK_LONG_ERRSTRING,
data/hping3-3.a2.ds2/antigetopt.c:158:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr, UNK_SHORT_ERRSTRING,
data/hping3-3.a2.ds2/antigetopt.c:163:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr, ARG_LONG_ERRSTRING,
data/hping3-3.a2.ds2/antigetopt.c:166:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr, ARG_SHORT_ERRSTRING,
data/hping3-3.a2.ds2/antigetopt.c:170: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(stderr, AMB_ERRSTRING, ago_optname);
data/hping3-3.a2.ds2/antigetopt.c:173: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(stderr, IERR_ERRSTRING, error);
data/hping3-3.a2.ds2/ars.c:84:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, ARS_ERR_BUFSZ, fmt, ap);
data/hping3-3.a2.ds2/ars.h:328:8:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	__u16	system;
data/hping3-3.a2.ds2/rapd.c:378:47:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	adbuf_printf(dest, "system=%u,", htons(igrp->system));
data/hping3-3.a2.ds2/main.c:281:2:  [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/hping3-3.a2.ds2/script.c:1348:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		char *home = getenv("HOME");
data/hping3-3.a2.ds2/adbuf.c:117: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(b->buf + adbuf_used(b), data, len);
data/hping3-3.a2.ds2/adbuf.c:137: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 t[1];
data/hping3-3.a2.ds2/adbuf.c:198:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(t, adbuf_ptr(b)+count, newlen);
data/hping3-3.a2.ds2/adbuf.c:219:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[ADBUF_ITOABUFSZ];
data/hping3-3.a2.ds2/adbuf.c:242:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char s[ADBUF_ITOABUFSZ];
data/hping3-3.a2.ds2/adbuf.c:280:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[ADBUF_PRINTF_BUFSZ];
data/hping3-3.a2.ds2/apd.c:256: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 *addrv[IPOPTRR_MAX_ENTRIES];
data/hping3-3.a2.ds2/apd.c:261: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(vcopy, v, vlen+1);
data/hping3-3.a2.ds2/apd.c:270:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(data+3+(i*4), &addr, 4);
data/hping3-3.a2.ds2/apd.c:329: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 *addrv[IPOPTTS_MAX_ENTRIES];
data/hping3-3.a2.ds2/apd.c:334: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(vcopy, v, vlen+1);
data/hping3-3.a2.ds2/apd.c:355: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(data+4+(i*8), &addr, 4);
data/hping3-3.a2.ds2/apd.c:356: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(data+8+(i*8), &ts, 4);
data/hping3-3.a2.ds2/apd.c:366: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(data+4+(i*4), &ts, 4);
data/hping3-3.a2.ds2/apd.c:577: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 *bv[TCPOPTSACK_MAX_ENTRIES];
data/hping3-3.a2.ds2/apd.c:582: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(vcopy, v, vlen+1);
data/hping3-3.a2.ds2/apd.c:597:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(data+2+(i*8), &s_origin, 4);
data/hping3-3.a2.ds2/apd.c:598:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(data+6+(i*8), &s_len, 4);
data/hping3-3.a2.ds2/apd.c:632: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(tcpopt->un.echo.info, &info, 4);
data/hping3-3.a2.ds2/apd.c:711: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(vcopy, v, l+1);
data/hping3-3.a2.ds2/apd.c:734:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(d, x+1, 3);
data/hping3-3.a2.ds2/apd.c:755:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(entry->mtu, &mtu, 2);
data/hping3-3.a2.ds2/apd.c:779:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p+old_size, data, size);
data/hping3-3.a2.ds2/apd.c:861: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 buffer[ARS_DATA_BUF_SIZE];
data/hping3-3.a2.ds2/apd.c:863:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fd = open(v, O_RDONLY)) == -1) {
data/hping3-3.a2.ds2/apd.c:935:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char next[ARS_MAX_TSIZE];
data/hping3-3.a2.ds2/apd.c:936:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char field[ARS_MAX_TSIZE];
data/hping3-3.a2.ds2/apdutils.c:37: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(x+1, layer, layerlen);
data/hping3-3.a2.ds2/apdutils.c:51: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(y+1, field, fieldlen);
data/hping3-3.a2.ds2/apdutils.c:119: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(x, packet+start, len);
data/hping3-3.a2.ds2/apdutils.c:135:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	skip = atoi(argv[3]);
data/hping3-3.a2.ds2/ars.c:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[ARS_ERR_BUFSZ];
data/hping3-3.a2.ds2/ars.c:140: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(pkt->p_layer[layer].l_data,
data/hping3-3.a2.ds2/ars.c:460: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, vbuf+1, nbytes);
data/hping3-3.a2.ds2/ars.c:697: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(&pseudo.saddr, &ip->saddr, 4);
data/hping3-3.a2.ds2/ars.c:698: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(&pseudo.daddr, &ip->daddr, 4);
data/hping3-3.a2.ds2/ars.c:894:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((*packet)+offset, pkt->p_layer[j].l_data,
data/hping3-3.a2.ds2/ars.c:961: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(&sain.sin_addr.s_addr, &ip->daddr, 4);
data/hping3-3.a2.ds2/ars.c:988:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dest, &sa.sin_addr.s_addr, sizeof(u_int32_t));
data/hping3-3.a2.ds2/ars.h:453:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char if_name[ARS_IF_NAME_SIZE];
data/hping3-3.a2.ds2/ars.h:456:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char if_ipv4addr[ARS_INET_ADDRSTRLEN];
data/hping3-3.a2.ds2/ars.h:457:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char if_ipv6addr[ARS_INET6_ADDRSTRLEN];
data/hping3-3.a2.ds2/datafiller.c:30:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(datafilename, O_RDONLY);
data/hping3-3.a2.ds2/datahandler.c:21:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data, rsign, signlen); /* ok, write own reverse sign */
data/hping3-3.a2.ds2/datahandler.c:24:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data, hcmphdr_p, data_size);
data/hping3-3.a2.ds2/datahandler.c:29:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data, sign, signlen); /* length pre-checked */
data/hping3-3.a2.ds2/display_ipopt.c:56:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char old_rr[MAX_IPOPTLEN];
data/hping3-3.a2.ds2/display_ipopt.c:112:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(old_rr, cp, i);
data/hping3-3.a2.ds2/gethostname.c:25:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char answer[1024];
data/hping3-3.a2.ds2/gethostname.c:26:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char lastreq[1024] = {'\0'};	/* last request */
data/hping3-3.a2.ds2/getifname.c:118: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(&sa, &ifr.ifr_addr,
data/hping3-3.a2.ds2/getifname.c:146:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&sa, &ifr.ifr_addr,
data/hping3-3.a2.ds2/getifname.c:189:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			current_if_name[24];
data/hping3-3.a2.ds2/getifname.c:190:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			saved_ifname[24];
data/hping3-3.a2.ds2/getifname.c:259: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(&ifr.ifr_addr, ifa->ifa_addr, 
data/hping3-3.a2.ds2/getifname.c:356: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(ifip, &iface_out, sizeof(struct sockaddr_in));
data/hping3-3.a2.ds2/globals.h:117:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern unsigned char 	lsr[255],
data/hping3-3.a2.ds2/globals.h:120:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char	ifname[1024],
data/hping3-3.a2.ds2/globals.h:142:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char errbuf[PCAP_ERRBUF_SIZE];
data/hping3-3.a2.ds2/hex.c:9:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char hval[256] = {
data/hping3-3.a2.ds2/hex.c:27:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char hcharset[16] = "0123456789abcdef";
data/hping3-3.a2.ds2/interface.h: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 hif_name[HPING_IFNAME_LEN];
data/hping3-3.a2.ds2/ip_opt_build.c:34:13:  [2] (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_opt, &lsr, lsr_length);
data/hping3-3.a2.ds2/ip_opt_build.c:48:13:  [2] (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_opt + optlen, &ssr, ssr_length);
data/hping3-3.a2.ds2/ip_opt_build.c:66:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    		memcpy(ip_opt+optlen+3,&ip,4);
data/hping3-3.a2.ds2/libpcap_stuff.c:71: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(packet, p, pcapsize);
data/hping3-3.a2.ds2/listen.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 packet[IP_MAX_SIZE+linkhdr_size];
data/hping3-3.a2.ds2/main.c:136:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char
data/hping3-3.a2.ds2/main.c:151:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char
data/hping3-3.a2.ds2/main.c:172:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/hping3-3.a2.ds2/main.c:178:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char setflags[1024] = {'\0'};
data/hping3-3.a2.ds2/main.c:325: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(setflags, "raw IP mode");
data/hping3-3.a2.ds2/main.c:328: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(setflags, "icmp mode");
data/hping3-3.a2.ds2/main.c:331: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(setflags, "udp mode");
data/hping3-3.a2.ds2/main.c:342:31:  [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.
		if (setflags[0] == '\0')    strcat(setflags, "NO FLAGS are");
data/hping3-3.a2.ds2/parseoptions.c:172:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(route+4*n, &ip.s_addr, 4);
data/hping3-3.a2.ds2/parseoptions.c:243:6:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					atol(ago_optarg+1);
data/hping3-3.a2.ds2/random.c:19:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char rc4_sbox[256];
data/hping3-3.a2.ds2/random.c:30:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/dev/urandom", O_RDONLY);
data/hping3-3.a2.ds2/random.c:54: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(rc4_sbox, seed, len);
data/hping3-3.a2.ds2/rapd.c:101:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&ipopt, pkt->p_layer[layer].l_data, len);
data/hping3-3.a2.ds2/rapd.c:169: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(&ts, optp+ptr-1, 4);
data/hping3-3.a2.ds2/rapd.c:175: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(&ts, x+4, 4);
data/hping3-3.a2.ds2/rapd.c:223: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 x[4];
data/hping3-3.a2.ds2/rapd.c:224: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(x, &icmp->un.gateway, 4);
data/hping3-3.a2.ds2/rapd.c:286: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(&tcpopt, pkt->p_layer[layer].l_data, len);
data/hping3-3.a2.ds2/rapd.c:314: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(&s_orig, tcpopt.un.sack[i].origin, 4);
data/hping3-3.a2.ds2/rapd.c:315: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(&s_size, tcpopt.un.sack[i].size, 4);
data/hping3-3.a2.ds2/rapd.c:328: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(&info, tcpopt.un.echo.info, 4);
data/hping3-3.a2.ds2/rapd.c:336: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(&info, tcpopt.un.echo.info, 4);
data/hping3-3.a2.ds2/rapd.c:344: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(&tsval, tcpopt.un.timestamp.tsval, 4);
data/hping3-3.a2.ds2/rapd.c:345: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(&tsecr, tcpopt.un.timestamp.tsecr, 4);
data/hping3-3.a2.ds2/resolve.c:37: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(&address->sin_addr, host->h_addr,
data/hping3-3.a2.ds2/sbignum.c:294: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(t->d, (z)->d, (z)->a*MPZ_ATOMSZ); \
data/hping3-3.a2.ds2/sbignum.c: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((z)->d, (D), (L)*MPZ_ATOMSZ); \
data/hping3-3.a2.ds2/sbignum.c:315:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((r)->d, (z)->d, (z)->a*MPZ_ATOMSZ); \
data/hping3-3.a2.ds2/sbignum.c:684: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(t, d, l*MPZ_ATOMSZ);
data/hping3-3.a2.ds2/sbignum.c:790: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(t, d, l*MPZ_ATOMSZ);
data/hping3-3.a2.ds2/sbignum.c:902: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(x, d, l*MPZ_ATOMSZ);
data/hping3-3.a2.ds2/sbignum.c:1433:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(d->d, s->d, s->l*MPZ_ATOMSZ);
data/hping3-3.a2.ds2/sbignum.c:1443:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(D->d, S->d, S->l*MPZ_ATOMSZ); \
data/hping3-3.a2.ds2/sbignum.c:1836:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char rc4_sbox[256];
data/hping3-3.a2.ds2/scan.c:220:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *args[32], *p = strdup(ports);
data/hping3-3.a2.ds2/scan.c:239: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 *range[2];
data/hping3-3.a2.ds2/scan.c:359:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char packet[IP_MAX_SIZE+linkhdr_size];
data/hping3-3.a2.ds2/scan.c:388: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 flags[16];
data/hping3-3.a2.ds2/scan.c:459: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(&icmp, p, sizeof(subtcp));
data/hping3-3.a2.ds2/scan.c:461: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(&subip, p, sizeof(ip));
data/hping3-3.a2.ds2/scan.c:479: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(&gwaddr.s_addr, &ip.saddr, 4);
data/hping3-3.a2.ds2/script.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 rh_ifname[HPING_IFNAME_LEN];
data/hping3-3.a2.ds2/script.c:49:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rh_pcap_errbuf[PCAP_ERRBUF_SIZE];
data/hping3-3.a2.ds2/script.c:248:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&sa.sin_addr.s_addr, &ip->daddr, 4);
data/hping3-3.a2.ds2/script.c:332: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(pkt, d, hdr.caplen);
data/hping3-3.a2.ds2/script.c:339:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char _pkt[65535+255];
data/hping3-3.a2.ds2/script.c:468: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 mtu[32];
data/hping3-3.a2.ds2/script.c:1103: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(mpzPtr, t, sizeof(*mpzPtr));
data/hping3-3.a2.ds2/send.c:26:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char ra[4];
data/hping3-3.a2.ds2/send.c:32: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(&local.sin_addr.s_addr, ra, 4);
data/hping3-3.a2.ds2/send.c:41:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char ra[4];
data/hping3-3.a2.ds2/send.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 a[4], b[4], c[4], d[4];
data/hping3-3.a2.ds2/send.c: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(&remote.sin_addr.s_addr, ra, 4);
data/hping3-3.a2.ds2/sendicmp.c:223: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(&icmp->un.gateway, &icmp_gw.sin_addr.s_addr, 4);
data/hping3-3.a2.ds2/sendicmp.c:238: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(&icmp_ip.saddr, &icmp_ip_src.sin_addr.s_addr, 4);
data/hping3-3.a2.ds2/sendicmp.c:239: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(&icmp_ip.daddr, &icmp_ip_dst.sin_addr.s_addr, 4);
data/hping3-3.a2.ds2/sendicmp.c:243: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(&pseudoheader->saddr, &icmp_ip_src.sin_addr.s_addr, 4);
data/hping3-3.a2.ds2/sendicmp.c:244: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(&pseudoheader->daddr, &icmp_ip_dst.sin_addr.s_addr, 4);
data/hping3-3.a2.ds2/sendicmp.c:256:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(packet+ICMPHDR_SIZE, &icmp_ip, left_space);
data/hping3-3.a2.ds2/sendicmp.c:262:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(packet+ICMPHDR_SIZE+IPHDR_SIZE, icmp_udp, left_space);
data/hping3-3.a2.ds2/sendip.c:98:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(packet+IPHDR_SIZE, options, optlen);
data/hping3-3.a2.ds2/sendip.c:101:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(packet + IPHDR_SIZE + optlen, data, datalen);
data/hping3-3.a2.ds2/sendtcp.c:52: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(&pseudoheader->saddr, &local.sin_addr.s_addr, 4);
data/hping3-3.a2.ds2/sendtcp.c:53: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(&pseudoheader->daddr, &remote.sin_addr.s_addr, 4);
data/hping3-3.a2.ds2/sendtcp.c:84: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(opts+4, &randts, 4); /* random */
data/hping3-3.a2.ds2/sendudp.c:46: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(&pseudoheader->saddr, &local.sin_addr.s_addr, 4);
data/hping3-3.a2.ds2/sendudp.c:47: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(&pseudoheader->daddr, &remote.sin_addr.s_addr, 4);
data/hping3-3.a2.ds2/split.c:50: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(ip2, ip, ip_hdrsize);
data/hping3-3.a2.ds2/split.c:61: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(icmp2, icmp, size);
data/hping3-3.a2.ds2/split.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(newip, ip, ipsize);
data/hping3-3.a2.ds2/split.c:254: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(pkt->p_layer[pkt->p_layer_nr].l_data, ipopt, optsize);
data/hping3-3.a2.ds2/split.c:284: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(newicmp, icmp, icmpsize);
data/hping3-3.a2.ds2/split.c:316: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(newdata, packet, size);
data/hping3-3.a2.ds2/split.c:340: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(newudp, udp, size);
data/hping3-3.a2.ds2/split.c:363: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(newudp, udp, udpsize);
data/hping3-3.a2.ds2/split.c:387:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(newtcp, tcp, size);
data/hping3-3.a2.ds2/split.c:411: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(newtcp, tcp, tcpsize);
data/hping3-3.a2.ds2/split.c:458: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(pkt->p_layer[pkt->p_layer_nr].l_data, tcpopt, optsize);
data/hping3-3.a2.ds2/split.c:486:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pkt->p_layer[pkt->p_layer_nr].l_data, igrp, igrpsize);
data/hping3-3.a2.ds2/split.c:507: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(pkt->p_layer[pkt->p_layer_nr].l_data, entry, entrysize);
data/hping3-3.a2.ds2/waitpacket.c:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char packet [IP_MAX_SIZE+linkhdr_size];
data/hping3-3.a2.ds2/waitpacket.c:109: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(&src, &(ip.saddr), sizeof(struct in_addr));
data/hping3-3.a2.ds2/waitpacket.c:110:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&dst, &(ip.daddr), sizeof(struct in_addr));
data/hping3-3.a2.ds2/waitpacket.c:208:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static unsigned char old_src_addr[4] = { 0, 0, 0, 0 };
data/hping3-3.a2.ds2/waitpacket.c:217:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(old_src_addr, &ip.saddr, sizeof(ip.saddr));
data/hping3-3.a2.ds2/waitpacket.c:352:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char flags[16];
data/hping3-3.a2.ds2/waitpacket.c:400:28:  [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.
		if (flags[0] == '\0')    strcat(flags, "none");
data/hping3-3.a2.ds2/waitpacket.c:446: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(&qip, quoted_ip, sizeof(struct myiphdr));
data/hping3-3.a2.ds2/waitpacket.c:490: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(&tmptcphdr, tcp, sizeof(struct mytcphdr));
data/hping3-3.a2.ds2/waitpacket.c:519: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(&tstamp, opt+2, 4);
data/hping3-3.a2.ds2/waitpacket.c:520: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(&echo, opt+6, 4);
data/hping3-3.a2.ds2/adbuf.c:148: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).
	return adbuf_add(b, string, strlen(string));
data/hping3-3.a2.ds2/adbuf.c:294: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).
		return adbuf_add(dst, buf, strlen(buf));
data/hping3-3.a2.ds2/adbuf.c:317: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).
			rv = adbuf_add(dst, dynbuf, strlen(dynbuf));
data/hping3-3.a2.ds2/adbuf.c:368: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(adbuf_ptr(&bb)) == (1024*2)+3)
data/hping3-3.a2.ds2/adbuf.h:28: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).
	do { b->buf = s; b->left = 0; b->size = strlen(s); } while(0)
data/hping3-3.a2.ds2/apd.c:257:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int vlen = strlen(v), num, i;
data/hping3-3.a2.ds2/apd.c:330:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int vlen = strlen(v), num, i;
data/hping3-3.a2.ds2/apd.c:417: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(v) != 4) {
data/hping3-3.a2.ds2/apd.c:426: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(v) != 6) {
data/hping3-3.a2.ds2/apd.c:578:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int vlen = strlen(v), num, i;
data/hping3-3.a2.ds2/apd.c:707: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).
	int l = strlen(v);
data/hping3-3.a2.ds2/apd.c:791:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(s), i;
data/hping3-3.a2.ds2/apd.c:828: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).
	int l = strlen(s), i;
data/hping3-3.a2.ds2/apd.c:868:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((n_read = read(fd, buffer, ARS_DATA_BUF_SIZE)) == -1) {
data/hping3-3.a2.ds2/apd.c:959:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(field, next, ARS_MAX_TSIZE);
data/hping3-3.a2.ds2/apdutils.c:30:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int layerlen = strlen(layer);
data/hping3-3.a2.ds2/apdutils.c:31:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int fieldlen = strlen(field);
data/hping3-3.a2.ds2/apdutils.c:32:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int pktlen = strlen(packet);
data/hping3-3.a2.ds2/datafiller.c:48:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	readed = read(fd, p, size);
data/hping3-3.a2.ds2/hex.c:43:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(hexstr);
data/hping3-3.a2.ds2/hex.c:95: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).
	hlen = strlen(argv[1]);
data/hping3-3.a2.ds2/hstring.c:57:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t seplen = strlen(sep);
data/hping3-3.a2.ds2/interface.c:243:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(ifmr.ifm_name, ifa->ifa_name, sizeof(ifmr.ifm_name));
data/hping3-3.a2.ds2/listen.c:76: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).
			p+=strlen(sign);
data/hping3-3.a2.ds2/main.c:205: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).
		char *src = sign+strlen(sign)-1; /* last char before '\0' */
data/hping3-3.a2.ds2/main.c:334:31:  [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.
		if (tcp_th_flags & TH_RST)  strcat(setflags, "R");
data/hping3-3.a2.ds2/main.c:335:31:  [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.
		if (tcp_th_flags & TH_SYN)  strcat(setflags, "S");
data/hping3-3.a2.ds2/main.c:336:31:  [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.
		if (tcp_th_flags & TH_ACK)  strcat(setflags, "A");
data/hping3-3.a2.ds2/main.c:337:31:  [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.
		if (tcp_th_flags & TH_FIN)  strcat(setflags, "F");
data/hping3-3.a2.ds2/main.c:338:31:  [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.
		if (tcp_th_flags & TH_PUSH) strcat(setflags, "P");
data/hping3-3.a2.ds2/main.c:339:31:  [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.
		if (tcp_th_flags & TH_URG)  strcat(setflags, "U");
data/hping3-3.a2.ds2/main.c:340:31:  [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.
		if (tcp_th_flags & TH_X)    strcat(setflags, "X");
data/hping3-3.a2.ds2/main.c:341:31:  [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.
		if (tcp_th_flags & TH_Y)    strcat(setflags, "Y");
data/hping3-3.a2.ds2/memstr.c:19: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).
	char needlesize = strlen(needle);
data/hping3-3.a2.ds2/parseoptions.c:361: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).
			signlen = strlen(ago_optarg);
data/hping3-3.a2.ds2/parseoptions.c:405: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).
			signlen = strlen(ago_optarg);
data/hping3-3.a2.ds2/random.c:32:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read(fd, rc4_sbox, 256);
data/hping3-3.a2.ds2/rapd.c:15:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(s);
data/hping3-3.a2.ds2/sbignum.c:1760:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(s);
data/hping3-3.a2.ds2/scan.c:309:7:  [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(usec_delay.it_interval.tv_usec);
data/hping3-3.a2.ds2/scan.c:320:5:  [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((int) (avrgms*1000));
data/hping3-3.a2.ds2/script.c:1066:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	objPtr->length = strlen(objPtr->bytes);
data/hping3-3.a2.ds2/waitpacket.c:392:31:  [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.
		if (tcp.th_flags & TH_RST)  strcat(flags, "R");
data/hping3-3.a2.ds2/waitpacket.c:393:31:  [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.
		if (tcp.th_flags & TH_SYN)  strcat(flags, "S");
data/hping3-3.a2.ds2/waitpacket.c:394:31:  [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.
		if (tcp.th_flags & TH_ACK)  strcat(flags, "A");
data/hping3-3.a2.ds2/waitpacket.c:395:31:  [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.
		if (tcp.th_flags & TH_FIN)  strcat(flags, "F");
data/hping3-3.a2.ds2/waitpacket.c:396:31:  [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.
		if (tcp.th_flags & TH_PUSH) strcat(flags, "P");
data/hping3-3.a2.ds2/waitpacket.c:397:31:  [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.
		if (tcp.th_flags & TH_URG)  strcat(flags, "U");
data/hping3-3.a2.ds2/waitpacket.c:398:31:  [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.
		if (tcp.th_flags & TH_X)    strcat(flags, "X");
data/hping3-3.a2.ds2/waitpacket.c:399:31:  [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.
		if (tcp.th_flags & TH_Y)    strcat(flags, "Y");
data/hping3-3.a2.ds2/waitpacket.c:617: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).
	p+=strlen(rsign);

ANALYSIS SUMMARY:

Hits = 223
Lines analyzed = 15019 in approximately 0.51 seconds (29466 lines/second)
Physical Source Lines of Code (SLOC) = 11628
Hits@level = [0] 282 [1]  51 [2] 159 [3]   2 [4]  11 [5]   0
Hits@level+ = [0+] 505 [1+] 223 [2+] 172 [3+]  13 [4+]  11 [5+]   0
Hits/KSLOC@level+ = [0+] 43.4297 [1+] 19.1778 [2+] 14.7919 [3+] 1.11799 [4+] 0.945992 [5+]   0
Dot directories skipped = 2 (--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.