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/netdiscover-0.7/src/data_al.h
Examining data/netdiscover-0.7/src/data_reply.c
Examining data/netdiscover-0.7/src/data_request.c
Examining data/netdiscover-0.7/src/data_unique.c
Examining data/netdiscover-0.7/src/fhandle.c
Examining data/netdiscover-0.7/src/fhandle.h
Examining data/netdiscover-0.7/src/ifaces.c
Examining data/netdiscover-0.7/src/ifaces.h
Examining data/netdiscover-0.7/src/main.c
Examining data/netdiscover-0.7/src/misc.c
Examining data/netdiscover-0.7/src/misc.h
Examining data/netdiscover-0.7/src/oui.h
Examining data/netdiscover-0.7/src/screen.c
Examining data/netdiscover-0.7/src/screen.h

FINAL RESULTS:

data/netdiscover-0.7/src/data_reply.c:80:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(tline, "%s ", current_reply->sip);
data/netdiscover-0.7/src/data_reply.c:81:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(line, tline);
data/netdiscover-0.7/src/data_reply.c:85:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(line, blank);
data/netdiscover-0.7/src/data_reply.c:92:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(line, tline);
data/netdiscover-0.7/src/data_reply.c:95:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(tline, "%5d %7d  %s", current_reply->count,
data/netdiscover-0.7/src/data_reply.c:97:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(line, tline);
data/netdiscover-0.7/src/data_reply.c:102:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(line, blank);
data/netdiscover-0.7/src/data_reply.c:109: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(KNOWN_COLOR, line);
data/netdiscover-0.7/src/data_request.c:79:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(tline, "%s ", request_current->sip);
data/netdiscover-0.7/src/data_request.c:80:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(line, tline);
data/netdiscover-0.7/src/data_request.c:84:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(line, blank);
data/netdiscover-0.7/src/data_request.c:91:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(line, tline);
data/netdiscover-0.7/src/data_request.c:94:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(tline, "%s", request_current->dip);
data/netdiscover-0.7/src/data_request.c:95:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(line, tline);
data/netdiscover-0.7/src/data_request.c:99:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(line, blank);
data/netdiscover-0.7/src/data_request.c:103:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(line, tline);
data/netdiscover-0.7/src/data_request.c:107:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(line, blank);
data/netdiscover-0.7/src/data_request.c:114: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(KNOWN_COLOR, line);
data/netdiscover-0.7/src/data_unique.c:80:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(tline, "%s ", current_unique->sip);
data/netdiscover-0.7/src/data_unique.c:81:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(line, tline);
data/netdiscover-0.7/src/data_unique.c:85:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(line, blank);
data/netdiscover-0.7/src/data_unique.c:92:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(line, tline);
data/netdiscover-0.7/src/data_unique.c:95:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(tline, "%5d %7d  %s", current_unique->count,
data/netdiscover-0.7/src/data_unique.c:97:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(line, tline);
data/netdiscover-0.7/src/data_unique.c:101:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(line, blank);
data/netdiscover-0.7/src/data_unique.c:109: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(KNOWN_COLOR, line);
data/netdiscover-0.7/src/main.c:147:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(datos.interface, "%s", optarg);
data/netdiscover-0.7/src/main.c:172:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(datos.source_ip, "%s", optarg);
data/netdiscover-0.7/src/main.c:178:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(plist, "%s", optarg);
data/netdiscover-0.7/src/main.c:184:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(mlist, "%s", optarg);
data/netdiscover-0.7/src/main.c:193:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(datos.pcap_filter, "%s", optarg);
data/netdiscover-0.7/src/main.c:254:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
   sprintf(path, RPATH, home);
data/netdiscover-0.7/src/main.c:262:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
   sprintf(path, FPATH, home);
data/netdiscover-0.7/src/main.c:306:20:  [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.
      int retsys = system("clear");
data/netdiscover-0.7/src/main.c:382:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(fromip,"%s.%i", sip, flag_network_octect);
data/netdiscover-0.7/src/main.c:393:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(test,"%s.%i", sip, j);
data/netdiscover-0.7/src/main.c:413:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(test,"%s.%s", sip, fast_ips[j]);
data/netdiscover-0.7/src/main.c:481:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(net, "%s.%s.%s", a, b, c);
data/netdiscover-0.7/src/main.c:482:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(current_network,"%s.0/%i", net, e);
data/netdiscover-0.7/src/main.c:490:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         sprintf(net, "%s.%s.%i", a, b, i);
data/netdiscover-0.7/src/main.c:491:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         sprintf(current_network,"%s.%s.%i.0/%i", a, b, i, e);
data/netdiscover-0.7/src/main.c:502:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(net, "%s.%i.%i", a, k, i);
data/netdiscover-0.7/src/main.c:503:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(current_network,"%s.%i.%i.0/%i", a, k, i, e);
data/netdiscover-0.7/src/screen.c:251:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(line, " Currently scanning: %s   |   Screen View: %s", 
data/netdiscover-0.7/src/main.c:141:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
   while ((c = getopt(argc, argv, "i:s:r:l:m:n:c:F:pSfdPNLh")) != EOF)
data/netdiscover-0.7/src/main.c:250:11:  [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.
   home = getenv("HOME");
data/netdiscover-0.7/src/data_al.h:51:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 smac[6];     // Source MAC
data/netdiscover-0.7/src/data_al.h:52:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 dmac[6];     // Destination MAC
data/netdiscover-0.7/src/data_reply.c:46: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 line[300], tline[300];
data/netdiscover-0.7/src/data_reply.c:88: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(tline, "%02x:%02x:%02x:%02x:%02x:%02x  ",
data/netdiscover-0.7/src/data_reply.c:169: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(line, " %i Captured ARP Reply packets, from %i hosts.   Total size: %i", 
data/netdiscover-0.7/src/data_request.c:46: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 line[300], tline[300];
data/netdiscover-0.7/src/data_request.c:87: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(tline, "%02x:%02x:%02x:%02x:%02x:%02x   ",
data/netdiscover-0.7/src/data_request.c:102: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(tline, "%5d", request_current->count);
data/netdiscover-0.7/src/data_request.c:175: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(line, " %i Captured ARP Request packets, from %i hosts.   Total size: %i", 
data/netdiscover-0.7/src/data_unique.c:47: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 line[300], tline[300];
data/netdiscover-0.7/src/data_unique.c:88: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(tline, "%02x:%02x:%02x:%02x:%02x:%02x  ",
data/netdiscover-0.7/src/data_unique.c:193: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(line, " %i Captured ARP Req/Rep packets, from %i hosts.   Total size: %i", 
data/netdiscover-0.7/src/fhandle.c:35: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 line[100];
data/netdiscover-0.7/src/fhandle.c:39:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if ((rl = fopen(file, "r")) == NULL)
data/netdiscover-0.7/src/ifaces.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(new_header->dmac, packet, 6);         /* dest mac    */
data/netdiscover-0.7/src/ifaces.c:119: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(new_header->smac, packet + 6, 6);     /* src mac     */
data/netdiscover-0.7/src/ifaces.c:125:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char type[2];
data/netdiscover-0.7/src/ifaces.c:126: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(type, packet + 20, 2);
data/netdiscover-0.7/src/ifaces.c:169:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(new_reg->sip, "%d.%d.%d.%d",
data/netdiscover-0.7/src/ifaces.c:173:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(new_reg->dip, "%d.%d.%d.%d",
data/netdiscover-0.7/src/ifaces.c:186: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_name, disp, if_name_len);
data/netdiscover-0.7/src/ifaces.c:213: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(smac, ifr.ifr_hwaddr.sa_data, ETH_ALEN);
data/netdiscover-0.7/src/ifaces.c:224: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 loc_errbuf[PCAP_ERRBUF_SIZE];
data/netdiscover-0.7/src/ifaces.c:260: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(raw_arp + 28, (char*) &sip, IP_ALEN);
data/netdiscover-0.7/src/ifaces.c:261: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(raw_arp + 38, (char*) &dip, IP_ALEN);
data/netdiscover-0.7/src/ifaces.c:264: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(raw_arp + 6,  smac, ETH_ALEN);
data/netdiscover-0.7/src/ifaces.c:265: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(raw_arp + 22, smac, ETH_ALEN);
data/netdiscover-0.7/src/ifaces.h:53: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 errbuf[PCAP_ERRBUF_SIZE];
data/netdiscover-0.7/src/main.c:138: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(current_network, "Starting.");
data/netdiscover-0.7/src/main.c:155:31:  [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).
            flag_sleep_time = atol(optarg);
data/netdiscover-0.7/src/main.c:163:32:  [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).
            flag_repeat_scan = atoi(optarg);
data/netdiscover-0.7/src/main.c:167:35:  [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).
            flag_network_octect = atoi(optarg);
data/netdiscover-0.7/src/main.c:365: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(current_network, "Finished!");
data/netdiscover-0.7/src/main.c:380: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 test[16], fromip[16];
data/netdiscover-0.7/src/main.c:449: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 tnet[19], net[16];
data/netdiscover-0.7/src/main.c:459:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      e = atoi(aux); /* Subnet mask */
data/netdiscover-0.7/src/misc.c:78: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 *search_vendor(unsigned char mac[6])
data/netdiscover-0.7/src/misc.c:78:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *search_vendor(unsigned char mac[6])
data/netdiscover-0.7/src/misc.c:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmac[7];
data/netdiscover-0.7/src/misc.c:83: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(tmac, "%02x%02x%02x", mac[0], mac[1], mac[2]);
data/netdiscover-0.7/src/misc.c:183: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 *search_known_mac(unsigned char mac[6])
data/netdiscover-0.7/src/misc.c:183:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *search_known_mac(unsigned char mac[6])
data/netdiscover-0.7/src/misc.c:185:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmac[13];
data/netdiscover-0.7/src/misc.c:192: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(tmac, "%02x%02x%02x%02x%02x%02x",
data/netdiscover-0.7/src/misc.h:37: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 *search_vendor(unsigned char[6]);
data/netdiscover-0.7/src/screen.c:55: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 line[300], tline[300];
data/netdiscover-0.7/src/data_reply.c:76:4:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
   sprintf(line, " ");
data/netdiscover-0.7/src/data_reply.c:77:4:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
   sprintf(tline, " ");
data/netdiscover-0.7/src/data_reply.c:84:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   for (j=strlen(line); j<17; j++)
data/netdiscover-0.7/src/data_reply.c:101:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   for (j=strlen(line); (j<win_sz.ws_col - 1) && (j<sizeof(line)-1) ; j++)
data/netdiscover-0.7/src/data_reply.c:174:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   for (j=strlen(line); j<width - 1; j++)
data/netdiscover-0.7/src/data_request.c:75:4:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
   sprintf(line, " ");
data/netdiscover-0.7/src/data_request.c:76:4:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
   sprintf(tline, " ");
data/netdiscover-0.7/src/data_request.c:83:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   for (j=strlen(line); j<17; j++)
data/netdiscover-0.7/src/data_request.c:98:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   for (j=strlen(line); j<54; j++)
data/netdiscover-0.7/src/data_request.c:106:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   for (j=strlen(line); (j<win_sz.ws_col - 1) && (j<sizeof(line)-1); j++)
data/netdiscover-0.7/src/data_request.c:180:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   for (j=strlen(line); j<width - 1; j++)
data/netdiscover-0.7/src/data_unique.c:76:4:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
   sprintf(line, " ");
data/netdiscover-0.7/src/data_unique.c:77:4:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
   sprintf(tline, " ");
data/netdiscover-0.7/src/data_unique.c:84:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   for (j=strlen(line); j<17; j++)
data/netdiscover-0.7/src/data_unique.c:100:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   for (j=strlen(line); (j<win_sz.ws_col - 1) && (j<sizeof(line)-1); j++)
data/netdiscover-0.7/src/data_unique.c:198:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   for (j=strlen(line); j<width - 1; j++)
data/netdiscover-0.7/src/fhandle.c:53: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).
      trim = strlen(line) - 1;
data/netdiscover-0.7/src/fhandle.c:59:56:  [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).
      rlist[lcount] = (char *) malloc (sizeof(char) * (strlen(line) + 1));
data/netdiscover-0.7/src/fhandle.c:60:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      snprintf(rlist[lcount], strlen(line) + 1, "%s", line);
data/netdiscover-0.7/src/ifaces.c:183:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t if_name_len = strlen(disp);
data/netdiscover-0.7/src/main.c:146: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).
            datos.interface = (char *) malloc (sizeof(char) * (strlen(optarg) + 1));
data/netdiscover-0.7/src/main.c:171:63:  [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).
            datos.source_ip = (char *) malloc (sizeof(char) * strlen(optarg) + 1);
data/netdiscover-0.7/src/main.c:177:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            plist = (char *) malloc (sizeof(char) * (strlen(optarg) + 1));
data/netdiscover-0.7/src/main.c:183:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            mlist = (char *) malloc (sizeof(char) * (strlen(optarg) + 1));
data/netdiscover-0.7/src/main.c:192:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            datos.pcap_filter = (char *) malloc (sizeof(char) * (strlen(optarg) + 1));
data/netdiscover-0.7/src/main.c:253:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   path = (char *) malloc (sizeof(char) * (strlen(home) + strlen(RPATH) + 1));
data/netdiscover-0.7/src/main.c:253:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   path = (char *) malloc (sizeof(char) * (strlen(home) + strlen(RPATH) + 1));
data/netdiscover-0.7/src/main.c:261:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   path = (char *) malloc (sizeof(char) * (strlen(home) + strlen(FPATH) + 1));
data/netdiscover-0.7/src/main.c:261:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   path = (char *) malloc (sizeof(char) * (strlen(home) + strlen(FPATH) + 1));
data/netdiscover-0.7/src/main.c:401:19:  [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(flag_sleep_time * 1000);
data/netdiscover-0.7/src/main.c:403:19:  [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(1 * 1000);
data/netdiscover-0.7/src/main.c:422:19:  [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(flag_sleep_time * 1000);
data/netdiscover-0.7/src/main.c:424:19:  [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(1 * 1000);
data/netdiscover-0.7/src/main.c:434:13:  [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(flag_sleep_time * 1000);
data/netdiscover-0.7/src/main.c:436:13:  [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(1 * 1000);
data/netdiscover-0.7/src/misc.c:120:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(known_mac_table[i]);
data/netdiscover-0.7/src/misc.c:169:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(mac_hostname) != 12) {
data/netdiscover-0.7/src/screen.c:140:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   ch = getchar();
data/netdiscover-0.7/src/screen.c:143:27:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   if ( ch == 27 && (ch = getchar()) == 91) {
data/netdiscover-0.7/src/screen.c:144:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      switch (getchar()) {
data/netdiscover-0.7/src/screen.c:256:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   for (j=strlen(line); j<win_sz.ws_col - 1; j++)

ANALYSIS SUMMARY:

Hits = 133
Lines analyzed = 30599 in approximately 1.53 seconds (20021 lines/second)
Physical Source Lines of Code (SLOC) = 29562
Hits@level = [0]  55 [1]  41 [2]  46 [3]   2 [4]  44 [5]   0
Hits@level+ = [0+] 188 [1+] 133 [2+]  92 [3+]  46 [4+]  44 [5+]   0
Hits/KSLOC@level+ = [0+] 6.35952 [1+] 4.49902 [2+] 3.1121 [3+] 1.55605 [4+] 1.4884 [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.