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/jnettop-0.13.0/jconfig.h
Examining data/jnettop-0.13.0/jresolver.c
Examining data/jnettop-0.13.0/jresolver.h
Examining data/jnettop-0.13.0/jcapture.c
Examining data/jnettop-0.13.0/jcapture.h
Examining data/jnettop-0.13.0/jdevice.c
Examining data/jnettop-0.13.0/jdevice.h
Examining data/jnettop-0.13.0/jresolv.c
Examining data/jnettop-0.13.0/jtxtdisplay.c
Examining data/jnettop-0.13.0/jtxtdisplay.h
Examining data/jnettop-0.13.0/jcursesdisplay.h
Examining data/jnettop-0.13.0/jresolv.h
Examining data/jnettop-0.13.0/jfilter.c
Examining data/jnettop-0.13.0/jfilter.h
Examining data/jnettop-0.13.0/include/ether.h
Examining data/jnettop-0.13.0/include/ethertype.h
Examining data/jnettop-0.13.0/include/ip.h
Examining data/jnettop-0.13.0/include/tcp.h
Examining data/jnettop-0.13.0/include/udp.h
Examining data/jnettop-0.13.0/include/sll.h
Examining data/jnettop-0.13.0/include/icmp.h
Examining data/jnettop-0.13.0/include/icmp6.h
Examining data/jnettop-0.13.0/include/ieee8021q.h
Examining data/jnettop-0.13.0/juiadisplay.c
Examining data/jnettop-0.13.0/juiadisplay.h
Examining data/jnettop-0.13.0/jnetdisplay.c
Examining data/jnettop-0.13.0/jnetdisplay.h
Examining data/jnettop-0.13.0/jprocessor.h
Examining data/jnettop-0.13.0/jutil.h
Examining data/jnettop-0.13.0/jbase.c
Examining data/jnettop-0.13.0/jbase.h
Examining data/jnettop-0.13.0/jconfig.c
Examining data/jnettop-0.13.0/jcursesdisplay.c
Examining data/jnettop-0.13.0/jnettop.c
Examining data/jnettop-0.13.0/jprocessor.c
Examining data/jnettop-0.13.0/jutil.c

FINAL RESULTS:

data/jnettop-0.13.0/jconfig.c:107:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(configFileName, "%s/.jnettop", homeDir);
data/jnettop-0.13.0/jcursesdisplay.c:248:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(linebuffer, "%s <-> %s", psrcaddr, pdstaddr);
data/jnettop-0.13.0/jnetdisplay.c:145:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stdout, formatString, ap);
data/jnettop-0.13.0/jnetdisplay.c:221: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(interfaceName, inputScanner->value.v_string);
data/jnettop-0.13.0/jnettop.c:51:2:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	vsprintf(buffer, format, ap);
data/jnettop-0.13.0/jnettop.c:79:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(PACKAGE_STRING "\nWritten by Jakub Skopal <j@kubs.cz>\n\nSee copyright in the COPYING file.\n");
data/jnettop-0.13.0/juiadisplay.c:113:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer, "get:ASCII:%d:%d:ACK:TOTAL:::::%s:%s:%s\n", nSessionID, (int)lUSecsWaited, srcbps, dstbps, bps);
data/jnettop-0.13.0/juiadisplay.c:156:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(linebuffer, "%s:%s", psrcaddr, pdstaddr);
data/jnettop-0.13.0/juiadisplay.c:158:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buffer, "get:ASCII:%d:%d:ACK:%s:%s:%s:%s:%s:%s:%s:%s\n", nSessionID, (int)lUSecsWaited, srcaddr, srcport, JBASE_PROTOCOLS[s->proto], dstaddr, dstport, srcbps, dstbps, bps);
data/jnettop-0.13.0/juiadisplay.c:162:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(GET_REQUEST_END_BOUNDARY);
data/jnettop-0.13.0/juiadisplay.c:227:7:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
						printf(LISTEN_ERROR_ANSWER);
data/jnettop-0.13.0/juiadisplay.c:262:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
							printf(ERROR_MAXIMUM_TIMEOUT_EXPIRED);
data/jnettop-0.13.0/juiadisplay.c:273:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(ERROR_MAXIMUM_TIMEOUT_EXPIRED);
data/jnettop-0.13.0/juiadisplay.c:292: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(strDeviceBackup, jconfig_Settings.deviceName);
data/jnettop-0.13.0/juiadisplay.c:334:7:  [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(jconfig_Settings.deviceName, strDeviceBackup);
data/jnettop-0.13.0/juiadisplay.c:376:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
								printf(LISTEN_ERROR_ANSWER);
data/jnettop-0.13.0/juiadisplay.c:397:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
							sprintf(firstAnswer, "listen:ASCII:%d:ACK:%s:%s:%s:%s\n\n", ourpid, strDevice, strBits, strFilter, strMaxLines);
data/jnettop-0.13.0/juiadisplay.c:399:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
							printf(firstAnswer);
data/jnettop-0.13.0/juiadisplay.c:402:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
							printf(LISTEN_ERROR_ANSWER);
data/jnettop-0.13.0/juiadisplay.c:415:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(ERROR_MAXIMUM_TIMEOUT_EXPIRED);fflush(NULL);
data/jnettop-0.13.0/jutil.c:90: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(dst, tmp);
data/jnettop-0.13.0/jutil.c:158:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buf, fmt, f);
data/jnettop-0.13.0/jconfig.c:102:13:  [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.
		homeDir = getenv("HOME");
data/jnettop-0.13.0/jbase.c:25: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	pcap_errbuf[PCAP_ERRBUF_SIZE];
data/jnettop-0.13.0/jbase.h:112: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	pcap_errbuf[PCAP_ERRBUF_SIZE];
data/jnettop-0.13.0/jcapture.c:121: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->header), hdr, sizeof(struct pcap_pkthdr));
data/jnettop-0.13.0/jcapture.c:124: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->data, pcappacket, packet->header.caplen);
data/jnettop-0.13.0/jcapture.c:156:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char BUF[PCAP_ERRBUF_SIZE + 128];
data/jnettop-0.13.0/jcapture.c:168:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char BUF[PCAP_ERRBUF_SIZE + 128];
data/jnettop-0.13.0/jcapture.c:173:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
						char BUF[PCAP_ERRBUF_SIZE + 128];
data/jnettop-0.13.0/jconfig.c:111:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(configFileName, "r");
data/jnettop-0.13.0/jconfig.c:378:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&current->network, network, sizeof(jbase_mutableaddress));
data/jnettop-0.13.0/jconfig.c:379:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&current->netmask, netmask, sizeof(jbase_mutableaddress));
data/jnettop-0.13.0/jcursesdisplay.c:92:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(line0FormatString, "%%-%d.%ds %%7.7s %%7.7s %%8.8s", activeColumns-25, activeColumns-25);
data/jnettop-0.13.0/jcursesdisplay.c:93:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(line1FormatString, " %%-%d.%ds %%5.5s %%6.6s  %%-%d.%ds %%5.5s  %%7.7s %%7.7s %%8.8s", addrColumns, addrColumns, addrColumns, addrColumns);
data/jnettop-0.13.0/jcursesdisplay.c:94:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(line2FormatString, "  %%-%d.%ds", activeColumns-3, activeColumns-3);
data/jnettop-0.13.0/jcursesdisplay.c:134: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(timeBuffer, "%3d:%02d:%02d", (int)((currentTime.tv_sec-jprocessor_Stats.startTime.tv_sec)/3600), (int)((currentTime.tv_sec-jprocessor_Stats.startTime.tv_sec)%3600/60), (int)((currentTime.tv_sec-jprocessor_Stats.startTime.tv_sec)%60));
data/jnettop-0.13.0/jcursesdisplay.c:241:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(srcport, "AGGR.");
data/jnettop-0.13.0/jcursesdisplay.c:243:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(srcport, "%d", s->srcport);
data/jnettop-0.13.0/jcursesdisplay.c:245:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(dstport, "AGGR.");
data/jnettop-0.13.0/jcursesdisplay.c:247:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(dstport, "%d", s->dstport);
data/jnettop-0.13.0/jdevice.c:87: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(&jdevice_Devices[i].hwaddr, &ifr.ifr_hwaddr, sizeof(struct sockaddr));
data/jnettop-0.13.0/jdevice.c:90: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(&jdevice_Devices[i].hwaddr, &ifr.ifr_addr, sizeof(struct sockaddr));
data/jnettop-0.13.0/jfilter.c:54: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(url, data, space2-data);
data/jnettop-0.13.0/jfilter.c:99: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(fd->from, space1, l);
data/jnettop-0.13.0/jfilter.c:115: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(fd->to, space1, l);
data/jnettop-0.13.0/jnetdisplay.c:90: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 buffer[RECV_BUFFER_SIZE];
data/jnettop-0.13.0/jnetdisplay.c:167: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	interfaceName[MAX_INTERFACENAME_LENGTH];
data/jnettop-0.13.0/jnetdisplay.c:229: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 buffer[256];
data/jnettop-0.13.0/jnettop.c:48:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buffer[32768];
data/jnettop-0.13.0/jnettop.c:174: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).
				debugFile = fopen(argv[a], "w");
data/jnettop-0.13.0/jprocessor.c:252: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(stat, &packetStream, sizeof(jbase_stream));
data/jnettop-0.13.0/jresolv.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(&stream->src.addr4, &ip->ip_src, sizeof(struct in_addr));
data/jnettop-0.13.0/jresolv.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(&stream->dst.addr4, &ip->ip_dst, sizeof(struct in_addr));
data/jnettop-0.13.0/jresolv.c:155:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&stream->src.addr6, &ip->ip6_src, sizeof(struct in6_addr));
data/jnettop-0.13.0/jresolv.c:156:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&stream->dst.addr6, &ip->ip6_dst, sizeof(struct in6_addr));
data/jnettop-0.13.0/jresolv.c:348:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&addr, &stream->src, sizeof(jbase_mutableaddress));
data/jnettop-0.13.0/jresolv.c:349: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(&stream->src, &stream->dst, sizeof(jbase_mutableaddress));
data/jnettop-0.13.0/jresolv.c:350:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&stream->dst, &addr, sizeof(jbase_mutableaddress));
data/jnettop-0.13.0/jresolver.c:43: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(&key.addr, address, sizeof(jbase_mutableaddress));
data/jnettop-0.13.0/jresolver.c:50: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(rentry, &key, sizeof(key));
data/jnettop-0.13.0/jresolver.c:132:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((err = cacheDb->open(cacheDb, NULL, "/var/cache/jnettop/dns.cache", NULL, DB_HASH, DB_AUTO_COMMIT || DB_CREATE || DB_THREAD, 0))) {
data/jnettop-0.13.0/jresolver.c:327: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(&type->mask, mask, sizeof(jbase_mutableaddress));
data/jnettop-0.13.0/jresolver.c:328: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(&type->value, value, sizeof(jbase_mutableaddress));
data/jnettop-0.13.0/jresolver.c:337: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(&type->mask, mask, sizeof(jbase_mutableaddress));
data/jnettop-0.13.0/jresolver.c:338: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(&type->value, value, sizeof(jbase_mutableaddress));
data/jnettop-0.13.0/jtxtdisplay.c:98:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		secondsToRun = atoi(arg[1]);
data/jnettop-0.13.0/juiadisplay.c:149:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(srcport, "AGGR.");
data/jnettop-0.13.0/juiadisplay.c:151:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(srcport, "%d", s->srcport);
data/jnettop-0.13.0/juiadisplay.c:153:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(dstport, "AGGR.");
data/jnettop-0.13.0/juiadisplay.c:155:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(dstport, "%d", s->dstport);
data/jnettop-0.13.0/juiadisplay.c:224: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(strPid && ourpid != atoi(strPid)){
data/jnettop-0.13.0/juiadisplay.c:232:7:  [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(endAnswer, "end:ASCII:%d:ACK\n\n", ourpid);
data/jnettop-0.13.0/juiadisplay.c:243:24:  [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).
							lMicroSeconds = atol(strMaxWaitUSecs);
data/jnettop-0.13.0/juiadisplay.c:360:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
							nStrMaxLines = atoi(strMaxLines);
data/jnettop-0.13.0/jutil.c:63:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%02x", hwaddr->sa_data[i]);
data/jnettop-0.13.0/jutil.c:133: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->addr4, &tmpaddr, sizeof(struct in_addr));
data/jnettop-0.13.0/jutil.c:149: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(fmt, "%.0f", f);
data/jnettop-0.13.0/jutil.c:154:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "ERR");
data/jnettop-0.13.0/jutil.c:157: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(fmt, "%%%d.%df%c", ipart, fpart, !mag && onoffPackets ? 'p' : suffixes[mag]);
data/jnettop-0.13.0/jutil.c:165:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&addr, address, JBASE_AF_SIZE(address_af));
data/jnettop-0.13.0/jconfig.c:106:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			configFileName = g_new0(char, strlen(homeDir) + 10);
data/jnettop-0.13.0/jdevice.c:47:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		jdevice_Devices[i++].name = g_strndup((const gchar*)t->name, strlen(t->name));
data/jnettop-0.13.0/jdevice.c:60: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).
	jdevice_Devices[0].name = g_strndup((const gchar*)name, strlen(name));
data/jnettop-0.13.0/jdevice.c:68:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	jdevice_Devices[0].name = g_strndup(deviceName, strlen(deviceName));
data/jnettop-0.13.0/jdevice.c:83:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ifr.ifr_name, jdevice_Devices[i].name, IFNAMSIZ);
data/jnettop-0.13.0/jnetdisplay.c:114:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		l = read(fileno(stdin), buffer, RECV_BUFFER_SIZE);
data/jnettop-0.13.0/jnetdisplay.c:173:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	g_scanner_input_text(inputScanner, commandLine, strlen(commandLine));
data/jnettop-0.13.0/jnetdisplay.c:216: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(inputScanner->value.v_string) > MAX_INTERFACENAME_LENGTH-1) {
data/jnettop-0.13.0/jresolver.c:107: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(outname) > 0) {
data/jnettop-0.13.0/jresolver.c:195: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).
	valueThang.size = strlen(entry->name) + 1;
data/jnettop-0.13.0/juiadisplay.c:197:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				nDataRecievedCount = read(fileno(stdin), data, MAXRECV - 2);
data/jnettop-0.13.0/juiadisplay.c:228:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					}else if(strncmp(strMethod, "end", strlen("end")) == 0){
data/jnettop-0.13.0/juiadisplay.c:236:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					}else if(strncmp(data, "get", strlen("get")) == 0){
data/jnettop-0.13.0/juiadisplay.c:314:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				int nDataRecievedCount = read(fileno(stdin), data, MAXRECV - 2);
data/jnettop-0.13.0/juiadisplay.c:333:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if(strlen(strDeviceBackup) > 0){
data/jnettop-0.13.0/juiadisplay.c:354:38:  [1] (buffer) strlen:
  Does not handle 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(strMethod, "listen", strlen("listen")) == 0){
data/jnettop-0.13.0/jutil.c:89:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (tmp && strlen(tmp)<cnt-1) {
data/jnettop-0.13.0/jutil.c:150: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).
	ipart = strlen(fmt);

ANALYSIS SUMMARY:

Hits = 99
Lines analyzed = 5738 in approximately 1.45 seconds (3963 lines/second)
Physical Source Lines of Code (SLOC) = 4012
Hits@level = [0]  56 [1]  18 [2]  58 [3]   1 [4]  22 [5]   0
Hits@level+ = [0+] 155 [1+]  99 [2+]  81 [3+]  23 [4+]  22 [5+]   0
Hits/KSLOC@level+ = [0+] 38.6341 [1+] 24.676 [2+] 20.1894 [3+] 5.7328 [4+] 5.48355 [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.