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/mdk3-6.0/manufactor.h
Examining data/mdk3-6.0/osdep/crctable_osdep.h
Examining data/mdk3-6.0/osdep/radiotap/radiotap-parser.h
Examining data/mdk3-6.0/osdep/radiotap/ieee80211_radiotap.h
Examining data/mdk3-6.0/osdep/radiotap/radiotap-parser.c
Examining data/mdk3-6.0/osdep/osdep.h
Examining data/mdk3-6.0/osdep/network.h
Examining data/mdk3-6.0/osdep/tap-win32/common.h
Examining data/mdk3-6.0/osdep/airpcap.h
Examining data/mdk3-6.0/osdep/common.h
Examining data/mdk3-6.0/osdep/packed.h
Examining data/mdk3-6.0/osdep/airpcap.c
Examining data/mdk3-6.0/osdep/common.c
Examining data/mdk3-6.0/osdep/cygwin.c
Examining data/mdk3-6.0/osdep/cygwin.h
Examining data/mdk3-6.0/osdep/cygwin_tap.c
Examining data/mdk3-6.0/osdep/dummy.c
Examining data/mdk3-6.0/osdep/dummy_tap.c
Examining data/mdk3-6.0/osdep/freebsd.c
Examining data/mdk3-6.0/osdep/freebsd_tap.c
Examining data/mdk3-6.0/osdep/linux.c
Examining data/mdk3-6.0/osdep/linux_tap.c
Examining data/mdk3-6.0/osdep/netbsd.c
Examining data/mdk3-6.0/osdep/netbsd_tap.c
Examining data/mdk3-6.0/osdep/network.c
Examining data/mdk3-6.0/osdep/openbsd.c
Examining data/mdk3-6.0/osdep/openbsd_tap.c
Examining data/mdk3-6.0/osdep/osdep.c
Examining data/mdk3-6.0/osdep/byteorder.h
Examining data/mdk3-6.0/pcap.h
Examining data/mdk3-6.0/mdk3.c

FINAL RESULTS:

data/mdk3-6.0/osdep/airpcap.c:282: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, err, AirpcapGetLastError(airpcap_handle));
data/mdk3-6.0/osdep/airpcap.c:284: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, err);
data/mdk3-6.0/osdep/airpcap.c:316:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(iface, DEVICE_PREFIX);
data/mdk3-6.0/osdep/airpcap.c:317:5:  [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(iface, param);
data/mdk3-6.0/osdep/airpcap.c:322:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(iface, param);
data/mdk3-6.0/osdep/cygwin_tap.c:417:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(str, tmp);
data/mdk3-6.0/osdep/freebsd.c:359:9:  [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(ifr.ifr_name, iface);
data/mdk3-6.0/osdep/freebsd.c:366:9:  [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(ifr.ifr_name, iface);
data/mdk3-6.0/osdep/freebsd.c:374:9:  [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(ifmr.ifm_name, iface);
data/mdk3-6.0/osdep/freebsd.c:391:9:  [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(ifr.ifr_name, iface);
data/mdk3-6.0/osdep/freebsd.c:397:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(pf->pf_ireq.i_name, iface);
data/mdk3-6.0/osdep/freebsd.c:401:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(pf->pf_ifr.ifr_name, iface);
data/mdk3-6.0/osdep/freebsd.c:420:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(ifr.ifr_name, iface);
data/mdk3-6.0/osdep/freebsd_tap.c:162:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(ifra.ifra_name, priv->tf_ifr.ifr_name);
data/mdk3-6.0/osdep/linux.c:169:9:  [4] (shell) execl:
  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.
        execl(path, "iwpriv",iface, "ndis_reset", NULL);
data/mdk3-6.0/osdep/linux.c:201:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(curfile, "%s/%s", dir, ep->d_name);
data/mdk3-6.0/osdep/linux.c:366:13:  [4] (shell) execlp:
  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.
            execlp(dev->iwconfig, "iwconfig", wi_get_ifname(wi),
data/mdk3-6.0/osdep/linux.c:819:13:  [4] (shell) execl:
  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.
            execl( dev->wlanctlng, "wlanctl-ng", wi_get_ifname(wi),
data/mdk3-6.0/osdep/linux.c:841:13:  [4] (shell) execlp:
  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.
            execlp( dev->iwpriv, "iwpriv", wi_get_ifname(wi),
data/mdk3-6.0/osdep/linux.c:857:13:  [4] (shell) execlp:
  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.
            execlp(dev->iwconfig, "iwconfig", wi_get_ifname(wi),
data/mdk3-6.0/osdep/linux.c:910:13:  [4] (shell) execlp:
  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.
            execlp(dev->iwconfig, "iwconfig", wi_get_ifname(wi),
data/mdk3-6.0/osdep/linux.c:1031:13:  [4] (shell) execl:
  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.
            execl( dev->wl, "wl", "monitor", "1", NULL);
data/mdk3-6.0/osdep/linux.c:1050:17:  [4] (shell) execl:
  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.
                execl( dev->wlanctlng, "wlanctl-ng", iface,
data/mdk3-6.0/osdep/linux.c:1069:17:  [4] (shell) execlp:
  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.
                execlp( dev->iwpriv, "iwpriv", iface,
data/mdk3-6.0/osdep/linux.c:1086:17:  [4] (shell) execlp:
  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.
                execlp( dev->iwpriv, "iwpriv", iface,
data/mdk3-6.0/osdep/linux.c:1124:9:  [4] (shell) execlp:
  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.
        execlp( "iwpriv", "iwpriv", iface, "monitor_type", "1", NULL );
data/mdk3-6.0/osdep/linux.c:1132:9:  [4] (shell) execlp:
  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.
        execlp( "iwpriv", "iwpriv", iface, "prismhdr", "1", NULL );
data/mdk3-6.0/osdep/linux.c:1140:9:  [4] (shell) execlp:
  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.
        execlp( "iwpriv", "iwpriv", iface, "set_prismhdr", "1", NULL );
data/mdk3-6.0/osdep/linux.c:1433:9:  [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.
    if (system(strbuf) == 0)
data/mdk3-6.0/osdep/linux.c:1441:9:  [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.
    if (system(strbuf) == 0)
data/mdk3-6.0/osdep/linux.c:1449:9:  [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.
    if (system(strbuf) == 0)
data/mdk3-6.0/osdep/linux.c:1462:13:  [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.
        if( system( strbuf ) == 0 )
data/mdk3-6.0/osdep/linux.c:1490:13:  [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.
        if( system( strbuf ) == 0 )
data/mdk3-6.0/osdep/linux.c:1499:13:  [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.
        if( system( strbuf ) == 0 )
data/mdk3-6.0/osdep/linux.c:1514:18:  [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.
        unused = system( strbuf );
data/mdk3-6.0/osdep/linux.c:1538:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf((char *) strbuf, "/proc/sys/net/%s/dev_type", iface);
data/mdk3-6.0/osdep/linux.c:1555:17:  [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.
            if( system( strbuf ) == 0 )
data/mdk3-6.0/osdep/linux.c:1563:26:  [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.
                unused = system( strbuf );
data/mdk3-6.0/osdep/linux.c:1570:26:  [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.
                unused = system( strbuf );
data/mdk3-6.0/osdep/linux.c:1585:13:  [4] (shell) execlp:
  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.
            execlp( "iwpriv", "iwpriv", iface, "get_port3", NULL );
data/mdk3-6.0/osdep/linux.c:1600:13:  [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.
        if( system( strbuf ) == 0 )
data/mdk3-6.0/osdep/linux.c:1611:13:  [4] (shell) execlp:
  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.
            execlp( "iwpriv", "iwpriv", iface, "get_regdomain", NULL );
data/mdk3-6.0/osdep/linux.c:1699:29:  [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(dev->main_if, this_iface->d_name);
data/mdk3-6.0/osdep/linux.c:1725:33:  [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(dev->main_if, this_iface->d_name);
data/mdk3-6.0/osdep/linux.c:1959:23:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
                ret = sscanf(buf, "%*s %*d.%*d %*x %x %x %x %*d%% %d %s\n", &ac,
data/mdk3-6.0/mdk3.c:651:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    pos = random();
data/mdk3-6.0/mdk3.c:662:24:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	    } else mac_v[t] = random();
data/mdk3-6.0/mdk3.c:668:24:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	    } else mac_v[t] = random();
data/mdk3-6.0/mdk3.c:690:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	gmac[t] = random();
data/mdk3-6.0/mdk3.c:706:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    c = (random() % 14) + 1;
data/mdk3-6.0/mdk3.c:715:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    rnd = (random() % 94) + ' ';
data/mdk3-6.0/mdk3.c:729:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    len = (random() % 32) + 1;
data/mdk3-6.0/mdk3.c:1438:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    rnd = random() % aps_known_count;
data/mdk3-6.0/mdk3.c:2809:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    char rnd = random() % 13;
data/mdk3-6.0/manufactor.h:27: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 clients[445][25] = {
data/mdk3-6.0/manufactor.h:476: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 accesspoints[227][25] = {
data/mdk3-6.0/mdk3.c:149: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 tmpbuf[MAX_PACKET_LENGTH];     // Temp buffer for packet manipulation in send/read_packet
data/mdk3-6.0/mdk3.c:161: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 ssid[257];                              // Space for the SSID read from file
data/mdk3-6.0/mdk3.c:610:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp   , input   , 2);
data/mdk3-6.0/mdk3.c:611:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp+2 , input+3 , 2);
data/mdk3-6.0/mdk3.c:612:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp+4 , input+6 , 2);
data/mdk3-6.0/mdk3.c:613:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp+6 , input+9 , 2);
data/mdk3-6.0/mdk3.c:614:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp+8 , input+12 , 2);
data/mdk3-6.0/mdk3.c:615:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp+10, input+15 , 2);
data/mdk3-6.0/mdk3.c:617:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp, input, 12);
data/mdk3-6.0/mdk3.c:634:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp   , input   , 2);
data/mdk3-6.0/mdk3.c:635:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp+2 , input+3 , 2);
data/mdk3-6.0/mdk3.c:636:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp+4 , input+6 , 2);
data/mdk3-6.0/mdk3.c:638:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp, input, 6);
data/mdk3-6.0/mdk3.c:749:25:  [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 ((ssid_file_fp = fopen(ssid_file_name, "r")) == NULL) {
data/mdk3-6.0/mdk3.c:766: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(ssid, ssid_string, max_len);
data/mdk3-6.0/mdk3.c:774: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(ssid, ssid_string, len);
data/mdk3-6.0/mdk3.c:947: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(whitelist[whitelist_len], parsed_mac, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:1010: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(c->data, first_data, max_data_len);
data/mdk3-6.0/mdk3.c:1021: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(c->bssid, first_bssid, max_bssid_len);
data/mdk3-6.0/mdk3.c:1035: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(c->mac, first_mac, max_mac_len);
data/mdk3-6.0/mdk3.c:1036: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(c->data, first_data, max_data_len);
data/mdk3-6.0/mdk3.c:1112: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(new_item->data, data, max_data_len);
data/mdk3-6.0/mdk3.c:1126: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(new_item->bssid, bssid, max_bssid_len);
data/mdk3-6.0/mdk3.c:1143: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(new_item->mac, mac, max_mac_len);
data/mdk3-6.0/mdk3.c:1144: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(new_item->data, data, max_data_len);
data/mdk3-6.0/mdk3.c:1366:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mac_v, upb, 3);
data/mdk3-6.0/mdk3.c:1367:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mac_v+3, lowb, 3);
data/mdk3-6.0/mdk3.c:1372: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(lowb, mac_lower, 3);
data/mdk3-6.0/mdk3.c:1380:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mac_v, mac_base, 3);
data/mdk3-6.0/mdk3.c:1381:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mac_v+3, lowb, 3);
data/mdk3-6.0/mdk3.c:1418: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(aps_known[aps_known_count], pkt_sniff+16, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:1534: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(aps_known[aps_known_count], mac, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:1707: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(tmpbuf, a_data_current->data, a_data_current->status);
data/mdk3-6.0/mdk3.c:1729: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(dest, dst, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:1732: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(tmpbuf+4 , target, ETH_MAC_LEN);	//BSSID
data/mdk3-6.0/mdk3.c:1733: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(tmpbuf+10, mac,    ETH_MAC_LEN);	//Source
data/mdk3-6.0/mdk3.c:1734: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(tmpbuf+16, dest,   ETH_MAC_LEN);	//Destination
data/mdk3-6.0/mdk3.c:1884: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(tmpbuf, cli->data, cli->data_len);
data/mdk3-6.0/mdk3.c:1906: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(dest, dst, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:1909: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(tmpbuf+4 , cli->bssid->bssid, ETH_MAC_LEN);	//BSSID
data/mdk3-6.0/mdk3.c:1910: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(tmpbuf+10, cli->mac, ETH_MAC_LEN);	//Source
data/mdk3-6.0/mdk3.c:1911: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(tmpbuf+16, dest, ETH_MAC_LEN);	//Destination
data/mdk3-6.0/mdk3.c:1944: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(last_mac, pkt_sniff+4, 6);
data/mdk3-6.0/mdk3.c:1972: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 param1[12];
data/mdk3-6.0/mdk3.c:1984: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(&param1, "\x01\x08\x82\x84\x8b\x96\x24\x30\x48\x6c\x03\x01", 12);
data/mdk3-6.0/mdk3.c:1989: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(&param1, "\x01\x04\x82\x84\x8b\x96\x03\x01", 8);
data/mdk3-6.0/mdk3.c:2024: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(pkt, hdr, 36);
data/mdk3-6.0/mdk3.c:2041: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(pkt+10, mac.data, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2042: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(pkt+16, mac.data, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2045: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(pkt+38, ssid, slen);
data/mdk3-6.0/mdk3.c:2047: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(pkt+38+slen, param1, modelen);
data/mdk3-6.0/mdk3.c:2051: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(pkt+39+slen+modelen, param2, 14);
data/mdk3-6.0/mdk3.c:2054: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(pkt+53+slen+modelen, wpatkip, 26);
data/mdk3-6.0/mdk3.c:2058: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(pkt+53+slen+modelen, wpaaes, 26);
data/mdk3-6.0/mdk3.c:2077: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(pkt, hdr, 31);
data/mdk3-6.0/mdk3.c:2079: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(pkt+4, ap, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2080: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(pkt+16,ap, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2085: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+10,mac.data,ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2087: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+10,client_mac,ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2108: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(pkt, hdr, 10);
data/mdk3-6.0/mdk3.c:2110: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(pkt+10, mac.data, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2112: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(pkt+16, bcast, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2114: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(pkt+22, seq, 3);
data/mdk3-6.0/mdk3.c:2117: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(pkt+26, ssid, slen);
data/mdk3-6.0/mdk3.c:2119: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(pkt+26+slen, rates, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2136: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(pkt, hdr, 25);
data/mdk3-6.0/mdk3.c:2139: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(pkt+4, mac_da, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2140: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(pkt+10,mac_sa, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2141: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(pkt+16,mac_bssid, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2160: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(retn.data+4, ap, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2163: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(retn.data+10, mac, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2166: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(retn.data+16, ap, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2172: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(retn.data+24, capability, 2);
data/mdk3-6.0/mdk3.c:2175: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(retn.data+26, "\x0a\x00\x00", 3);
data/mdk3-6.0/mdk3.c:2179: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(retn.data+30, ssid, ssid_len);
data/mdk3-6.0/mdk3.c:2183: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(retn.data + retn.len, SUPP_RATES, 10);
data/mdk3-6.0/mdk3.c:2185: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(retn.data + retn.len, EXT_RATES, 6);
data/mdk3-6.0/mdk3.c:2428: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(michael.data, MICHAEL, 32);
data/mdk3-6.0/mdk3.c:2429: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(michael.data+4, target, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2430: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(michael.data+10, src.data, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2431: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(michael.data+16, target, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2459: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(pkt, hdr, 29);
data/mdk3-6.0/mdk3.c:2460: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(pkt + 4, ap, ETH_MAC_LEN);            // set AP
data/mdk3-6.0/mdk3.c:2461: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(pkt + 10, sta, ETH_MAC_LEN);          // set STA
data/mdk3-6.0/mdk3.c:2462: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(pkt + 16, ap, ETH_MAC_LEN);           // set BSSID
data/mdk3-6.0/mdk3.c:2464: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(pkt + 30, ssid, ssid_len);  // set SSID
data/mdk3-6.0/mdk3.c:2466: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(pkt + ofs, SUPP_RATES, 10); // set supported rates
data/mdk3-6.0/mdk3.c:2468: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(pkt + ofs, EXT_RATES, 6);   // set extended rates
data/mdk3-6.0/mdk3.c:2475: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(pkt + ofs, IE_WPA, 6);    // set WPA IE
data/mdk3-6.0/mdk3.c:2481: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(pkt + ofs, IE_WPA_TKIP, 4);
data/mdk3-6.0/mdk3.c:2484: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(pkt + ofs, IE_WPA_CCMP, 4);
data/mdk3-6.0/mdk3.c:2496: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(pkt + ofs, IE_WPA_TKIP, 4);
data/mdk3-6.0/mdk3.c:2499: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(pkt + ofs, IE_WPA_CCMP, 4);
data/mdk3-6.0/mdk3.c:2507: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(pkt + ofs, IE_WPA_KEY_MGMT, 4);
data/mdk3-6.0/mdk3.c:2514: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(pkt + ofs, IE_RSN, 4);    // set RSN IE
data/mdk3-6.0/mdk3.c:2520: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(pkt + ofs, IE_RSN_TKIP, 4);
data/mdk3-6.0/mdk3.c:2523: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(pkt + ofs, IE_RSN_CCMP, 4);
data/mdk3-6.0/mdk3.c:2535: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(pkt + ofs, IE_RSN_TKIP, 4);
data/mdk3-6.0/mdk3.c:2538: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(pkt + ofs, IE_RSN_CCMP, 4);
data/mdk3-6.0/mdk3.c:2546: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(pkt + ofs, IE_RSN_KEY_MGMT, 4);
data/mdk3-6.0/mdk3.c:2578: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(eapol_src, retn.data + 10, 6);
data/mdk3-6.0/mdk3.c:2640: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(pkt, PKT_EAPOL_START, 36);
data/mdk3-6.0/mdk3.c:2641: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(pkt + 4, target, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2642: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(pkt + 10, eapol_src, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2643: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(pkt + 16, target, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2658: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(pkt, PKT_EAPOL_LOGOFF, 36);
data/mdk3-6.0/mdk3.c:2659: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(pkt + 4, ap, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2660: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(pkt + 10, sta, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2661: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(pkt + 16, ap, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:2713: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(capabilities, pkt_sniff+34, 2);
data/mdk3-6.0/mdk3.c:2715: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(ssid, pkt_sniff+38, ssid_len);
data/mdk3-6.0/mdk3.c:3073: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 (auth[auth_count], ap, ETH_MAC_LEN); //Copy MAC into array
data/mdk3-6.0/mdk3.c:3189: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(&chan, &beacon.data[50+len], 1);
data/mdk3-6.0/mdk3.c:3192: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(&chan, &beacon.data[46+len], 1);
data/mdk3-6.0/mdk3.c:3483:40:  [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).
		    printf("\n\nchannel set to: %d", atoi(argv[t+1]));
data/mdk3-6.0/mdk3.c:3484:19:  [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).
		    set_channel(atoi(argv[t+1]));
data/mdk3-6.0/mdk3.c:3510: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(essid, argv[t+1], essid_len);
data/mdk3-6.0/mdk3.c:3571:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(eapol_dst, target, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:3576:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(eapol_src, mac_sa, ETH_MAC_LEN);
data/mdk3-6.0/mdk3.c:3633: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(target, tmp_mac_addr, 6);
data/mdk3-6.0/mdk3.c:3644: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(mac_base, tmp_mac_addr , 3);
data/mdk3-6.0/mdk3.c:3645: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(mac_lower,tmp_mac_addr+3,3);
data/mdk3-6.0/mdk3.c:3658: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(target, tmp_mac_addr, 6);
data/mdk3-6.0/osdep/airpcap.c:303: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 errbuf[AIRPCAP_ERRBUF_SIZE ];
data/mdk3-6.0/osdep/cygwin.c:313: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 lame[1024];
data/mdk3-6.0/osdep/cygwin.c:460: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 buf[2048];
data/mdk3-6.0/osdep/cygwin_tap.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		tc_name[MAX_IFACE_NAME];
data/mdk3-6.0/osdep/cygwin_tap.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		tc_guid[256];
data/mdk3-6.0/osdep/cygwin_tap.c:108: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 device[256];
data/mdk3-6.0/osdep/cygwin_tap.c:167:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key[256];
data/mdk3-6.0/osdep/cygwin_tap.c:202:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[256];
data/mdk3-6.0/osdep/cygwin_tap.c:272:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/mdk3-6.0/osdep/cygwin_tap.c:375:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char m[16];
data/mdk3-6.0/osdep/cygwin_tap.c:376: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 mold[sizeof(m)];
data/mdk3-6.0/osdep/cygwin_tap.c:405:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[2*6+1];
data/mdk3-6.0/osdep/cygwin_tap.c:406: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 strold[sizeof(str)];
data/mdk3-6.0/osdep/cygwin_tap.c:413:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char tmp[3];
data/mdk3-6.0/osdep/cygwin_tap.c:415: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.
		if (sprintf(tmp, "%.2X", *mac++) != 2)
data/mdk3-6.0/osdep/cygwin_tap.c:582: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 buf[2048];
data/mdk3-6.0/osdep/freebsd.c:53: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			pf_buf[4096];
data/mdk3-6.0/osdep/freebsd.c:272: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(h80211, wh, plen);
data/mdk3-6.0/osdep/freebsd.c:337:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[64];
data/mdk3-6.0/osdep/freebsd.c:405:17:  [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, "/dev/bpf%d", i);
data/mdk3-6.0/osdep/freebsd.c:407: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).
                fd = open(buf, O_RDWR);
data/mdk3-6.0/osdep/freebsd.c:465: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(mac, sdp->sdl_data + sdp->sdl_nlen, 6);
data/mdk3-6.0/osdep/freebsd.c:508: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(ifr->ifr_addr.sa_data, mac, 6);
data/mdk3-6.0/osdep/freebsd.c:584:18:  [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 ((apmfd = open("/dev/apm", O_RDONLY)) < 0)
data/mdk3-6.0/osdep/freebsd_tap.c:40: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		tf_name[MAX_IFACE_NAME];
data/mdk3-6.0/osdep/freebsd_tap.c:60: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(iface, O_RDWR);
data/mdk3-6.0/osdep/freebsd_tap.c:149: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(ifr->ifr_addr.sa_data, mac, 6);
data/mdk3-6.0/osdep/linux.c:119:14:  [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 pl_mac[6];
data/mdk3-6.0/osdep/linux.c:333: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 s[32];
data/mdk3-6.0/osdep/linux.c:472:14:  [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 tmpbuf[4096];
data/mdk3-6.0/osdep/linux.c:663: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( buf, tmpbuf + n, caplen );
data/mdk3-6.0/osdep/linux.c:675:14:  [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 maddr[6];
data/mdk3-6.0/osdep/linux.c:677:14:  [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 tmpbuf[4096];
data/mdk3-6.0/osdep/linux.c:706: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(tmpbuf, u8aRadiotap, sizeof (u8aRadiotap) );
data/mdk3-6.0/osdep/linux.c:707: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(tmpbuf + sizeof (u8aRadiotap), buf, count);
data/mdk3-6.0/osdep/linux.c:726: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.
            if( ( ((unsigned char *) buf)[1] & 3 ) != 3 )
data/mdk3-6.0/osdep/linux.c:728:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy( tmpbuf, buf, 24 );
data/mdk3-6.0/osdep/linux.c:734:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy( tmpbuf + 46, buf + 24, count - 24 );
data/mdk3-6.0/osdep/linux.c:740:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy( tmpbuf, buf, 30 );
data/mdk3-6.0/osdep/linux.c:746:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy( tmpbuf + 46, buf + 30, count - 30 );
data/mdk3-6.0/osdep/linux.c:759: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( maddr, buf + 4, 6 );
data/mdk3-6.0/osdep/linux.c:760: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( buf + 4, buf + 16, 6 );
data/mdk3-6.0/osdep/linux.c:761: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( buf + 16, maddr, 6 );
data/mdk3-6.0/osdep/linux.c:806: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 s[32];
data/mdk3-6.0/osdep/linux.c:895: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 s[32];
data/mdk3-6.0/osdep/linux.c:947: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[256];
data/mdk3-6.0/osdep/linux.c:951:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd2 = open(buf, O_WRONLY);
data/mdk3-6.0/osdep/linux.c:956:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd2 = open(buf, O_WRONLY);
data/mdk3-6.0/osdep/linux.c:1308:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( mac, (unsigned char*)ifr.ifr_hwaddr.sa_data, 6);
data/mdk3-6.0/osdep/linux.c:1356: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 strbuf[512];
data/mdk3-6.0/osdep/linux.c:1364: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 r_file[128], buf[128];
data/mdk3-6.0/osdep/linux.c:1471:28:  [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).
                    kver = atoi(checklinuxversion.release + 4);
data/mdk3-6.0/osdep/linux.c:1528:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        f = fopen(strbuf, "r");
data/mdk3-6.0/osdep/linux.c:1539: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).
            f = fopen( (char *) strbuf,"w");
data/mdk3-6.0/osdep/linux.c:1625:21:  [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 ((acpi = fopen(r_file, "r")) == NULL)
data/mdk3-6.0/osdep/linux.c:1635:25:  [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 ((acpi = fopen(r_file, "w")) == NULL)
data/mdk3-6.0/osdep/linux.c:1640:25:  [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 ((acpi = fopen(r_file, "r")) == NULL)
data/mdk3-6.0/osdep/linux.c:1680:29:  [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 ((acpi = fopen(r_file, "r")) == NULL)
data/mdk3-6.0/osdep/linux.c:1709:41:  [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 ((acpi = fopen(r_file, "w")) == NULL)
data/mdk3-6.0/osdep/linux.c:1714:41:  [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 ((acpi = fopen(r_file, "r")) == NULL)
data/mdk3-6.0/osdep/linux.c:1827: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(mac, pl->pl_mac, 6);
data/mdk3-6.0/osdep/linux.c:1848: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( pl->pl_mac, (unsigned char*)ifr.ifr_hwaddr.sa_data, 6);
data/mdk3-6.0/osdep/linux.c:1851:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mac, pl->pl_mac, 6);
data/mdk3-6.0/osdep/linux.c:1885: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(ifr.ifr_hwaddr.sa_data, mac, 6);
data/mdk3-6.0/osdep/linux.c:1886: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(pl->pl_mac, mac, 6);
data/mdk3-6.0/osdep/linux.c:1943: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[128];
data/mdk3-6.0/osdep/linux.c:1947: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 units[32];
data/mdk3-6.0/osdep/linux.c:1954:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((apm = fopen("/proc/apm", "r")) != NULL ) {
data/mdk3-6.0/osdep/linux.c:1980:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char battery_state[128];
data/mdk3-6.0/osdep/linux.c:1981:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char battery_info[128];
data/mdk3-6.0/osdep/linux.c:1999:25:  [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 ((acpi = fopen(battery_state, "r")) == NULL)
data/mdk3-6.0/osdep/linux.c:2028:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            info = fopen(battery_info, "r");
data/mdk3-6.0/osdep/linux.c:2040:25:  [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 ((acpi = fopen(battery_state, "r")) == NULL)
data/mdk3-6.0/osdep/linux.c:2056:28:  [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).
                    rate = atoi(buf + 25);
data/mdk3-6.0/osdep/linux.c:2058:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    remain = atoi(buf + 25);
data/mdk3-6.0/osdep/linux.c:2062:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    current = atoi(buf + 25);
data/mdk3-6.0/osdep/linux_tap.c:44: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		tl_name[MAX_IFACE_NAME];
data/mdk3-6.0/osdep/linux_tap.c:53:14:  [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_tap = open( name ? name : "/dev/net/tun", O_RDWR );
data/mdk3-6.0/osdep/linux_tap.c:133: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(priv->tl_ifr.ifr_hwaddr.sa_data, mac, 6);
data/mdk3-6.0/osdep/netbsd.c:68: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			pn_buf[4096];
data/mdk3-6.0/osdep/netbsd.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(h80211, wh, plen);
data/mdk3-6.0/osdep/netbsd.c:300:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[64];
data/mdk3-6.0/osdep/netbsd.c:369: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).
                fd = open(buf, O_RDWR);
data/mdk3-6.0/osdep/netbsd.c:433: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(mac, sdp->sdl_data + sdp->sdl_nlen, 6);
data/mdk3-6.0/osdep/netbsd.c:476: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(ifr->ifr_addr.sa_data, mac, 6);
data/mdk3-6.0/osdep/netbsd.c:545:18:  [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 ((apmfd = open("/dev/apm", O_RDONLY)) < 0)
data/mdk3-6.0/osdep/netbsd_tap.c:39:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		tn_name[MAX_IFACE_NAME];
data/mdk3-6.0/osdep/netbsd_tap.c:59: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(iface, O_RDWR);
data/mdk3-6.0/osdep/netbsd_tap.c:147: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(ifr->ifr_addr.sa_data, mac, 6);
data/mdk3-6.0/osdep/network.c:39: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	q_buf[2048];
data/mdk3-6.0/osdep/network.c:71: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(pktbuf + sizeof(struct net_hdr), arg, len);
data/mdk3-6.0/osdep/network.c:199: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(q->q_buf, buf, q->q_len);
data/mdk3-6.0/osdep/network.c:205: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 buf[2048];
data/mdk3-6.0/osdep/network.c:221: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(arg, buf, l);
data/mdk3-6.0/osdep/network.c:259: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(buf, q->q_buf, q->q_len);
data/mdk3-6.0/osdep/network.c:272: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 buf[2048];
data/mdk3-6.0/osdep/network.c:302: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(ri, buf, sz);
data/mdk3-6.0/osdep/network.c:307: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(h80211, &buf[sz], l);
data/mdk3-6.0/osdep/network.c:315: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 buf[6];
data/mdk3-6.0/osdep/network.c:330:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mac, buf, 6);
data/mdk3-6.0/osdep/network.c:340: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 buf[2048];
data/mdk3-6.0/osdep/network.c:345: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(ptr, ti, sz);
data/mdk3-6.0/osdep/network.c:350:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr, h80211, len);
data/mdk3-6.0/osdep/network.c:427: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).
	port = atoi(ptr);
data/mdk3-6.0/osdep/network.c:444: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 ip[16];
data/mdk3-6.0/osdep/openbsd.c:67: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			po_buf[4096];
data/mdk3-6.0/osdep/openbsd.c:255: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(h80211, wh, plen);
data/mdk3-6.0/osdep/openbsd.c:299:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[64];
data/mdk3-6.0/osdep/openbsd.c:368: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).
                fd = open(buf, O_RDWR);
data/mdk3-6.0/osdep/openbsd.c:432: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(mac, sdp->sdl_data + sdp->sdl_nlen, 6);
data/mdk3-6.0/osdep/openbsd.c:475: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(ifr->ifr_addr.sa_data, mac, 6);
data/mdk3-6.0/osdep/openbsd.c:544:18:  [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 ((apmfd = open("/dev/apm", O_RDONLY)) < 0)
data/mdk3-6.0/osdep/openbsd_tap.c:39:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		to_name[MAX_IFACE_NAME];
data/mdk3-6.0/osdep/openbsd_tap.c:59: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(iface, O_RDWR);
data/mdk3-6.0/osdep/openbsd_tap.c:147: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(ifr->ifr_addr.sa_data, mac, 6);
data/mdk3-6.0/osdep/osdep.h:61:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char	wi_interface[MAX_IFACE_NAME];
data/mdk3-6.0/mdk3.c:454:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(10000);
data/mdk3-6.0/mdk3.c:763:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(ssid_string);
data/mdk3-6.0/mdk3.c:768: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).
	len = strlen(ssid);
data/mdk3-6.0/mdk3.c:2010: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).
    slen = strlen(ssid);
data/mdk3-6.0/mdk3.c:2106: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).
    slen = strlen(ssid);
data/mdk3-6.0/mdk3.c:2305:52:  [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 (ssid_len != 0) if ((unsigned int) ssid_len != strlen(ssid)) goto newssid;
data/mdk3-6.0/mdk3.c:3391: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).
    if ((argc < 3) || (strlen(argv[2]) != 1))
data/mdk3-6.0/mdk3.c:3508: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).
		essid_len = strlen(argv[t+1]);
data/mdk3-6.0/mdk3.c:3777:43:  [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).
                frm = eapol_machine(ssid, strlen(ssid), target, eapol_wtype, eapol_ucast, eapol_mcast);
data/mdk3-6.0/mdk3.c:3815:16:  [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.
	if (usespeed) usleep(pps2usec(pps));
data/mdk3-6.0/osdep/airpcap.c:94: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).
	len = strlen(iface);
data/mdk3-6.0/osdep/airpcap.c:279: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(err))
data/mdk3-6.0/osdep/airpcap.c:305:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	iface = (char *)calloc(1, strlen(param) + 100);
data/mdk3-6.0/osdep/airpcap.c:310: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(param) > 0)
data/mdk3-6.0/osdep/cygwin.c:78: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).
           slen  = strlen(String),
data/mdk3-6.0/osdep/cygwin.c:79: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).
           plen  = strlen(Pattern);
data/mdk3-6.0/osdep/cygwin.c:135: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(iface) == 0)
data/mdk3-6.0/osdep/cygwin_tap.c:388:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			  (unsigned char *) m, strlen(m)+1) != ERROR_SUCCESS)
data/mdk3-6.0/osdep/cygwin_tap.c:428: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).
			  strlen(str)+1) != ERROR_SUCCESS)
data/mdk3-6.0/osdep/freebsd.c:259:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		pf->pf_totlen = read(pf->pf_fd, pf->pf_buf, sizeof(pf->pf_buf));
data/mdk3-6.0/osdep/freebsd.c:348: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(iface) >= sizeof(ifr.ifr_name))
data/mdk3-6.0/osdep/freebsd_tap.c:181:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(ti_fd(ti), buf, len);
data/mdk3-6.0/osdep/linux.c:193:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen( filename );
data/mdk3-6.0/osdep/linux.c:194: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).
    lentot = strlen( dir ) + 256 + 2;
data/mdk3-6.0/osdep/linux.c:204: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).
        if ((int)strlen( ep->d_name) == len && !strcmp(ep->d_name, filename))
data/mdk3-6.0/osdep/linux.c:270:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( wrq.ifr_name, dev->main_if, IFNAMSIZ );
data/mdk3-6.0/osdep/linux.c:272:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( wrq.ifr_name, wi_get_ifname(wi), IFNAMSIZ );
data/mdk3-6.0/osdep/linux.c:304:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( wrq.ifr_name, dev->main_if, IFNAMSIZ );
data/mdk3-6.0/osdep/linux.c:306:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( wrq.ifr_name, wi_get_ifname(wi), IFNAMSIZ );
data/mdk3-6.0/osdep/linux.c:341:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( ifr.ifr_name, wi_get_ifname(wi), sizeof( ifr.ifr_name ) - 1 );
data/mdk3-6.0/osdep/linux.c:359:9:  [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(100000);
data/mdk3-6.0/osdep/linux.c:391:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( wrq.ifr_name, dev->main_if, IFNAMSIZ );
data/mdk3-6.0/osdep/linux.c:393:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( wrq.ifr_name, wi_get_ifname(wi), IFNAMSIZ );
data/mdk3-6.0/osdep/linux.c:415:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( wrq.ifr_name, dev->main_if, IFNAMSIZ );
data/mdk3-6.0/osdep/linux.c:417:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( wrq.ifr_name, wi_get_ifname(wi), IFNAMSIZ );
data/mdk3-6.0/osdep/linux.c:435:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( ifr.ifr_name, dev->main_if, sizeof( ifr.ifr_name ) - 1 );
data/mdk3-6.0/osdep/linux.c:437:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( ifr.ifr_name, wi_get_ifname(wi), sizeof( ifr.ifr_name ) - 1 );
data/mdk3-6.0/osdep/linux.c:456:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( ifr.ifr_name, dev->main_if, sizeof( ifr.ifr_name ) - 1 );
data/mdk3-6.0/osdep/linux.c:458:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( ifr.ifr_name, wi_get_ifname(wi), sizeof( ifr.ifr_name ) - 1 );
data/mdk3-6.0/osdep/linux.c:481:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( ( caplen = read( dev->fd_in, tmpbuf, count ) ) < 0 )
data/mdk3-6.0/osdep/linux.c:775: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( 10000 );
data/mdk3-6.0/osdep/linux.c:792: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( 10000 );
data/mdk3-6.0/osdep/linux.c:872:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( wrq.ifr_name, wi_get_ifname(wi), IFNAMSIZ );
data/mdk3-6.0/osdep/linux.c:878:9:  [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( 10000 ); /* madwifi needs a second chance */
data/mdk3-6.0/osdep/linux.c:925:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( wrq.ifr_name, wi_get_ifname(wi), IFNAMSIZ );
data/mdk3-6.0/osdep/linux.c:931:9:  [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( 10000 ); /* madwifi needs a second chance */
data/mdk3-6.0/osdep/linux.c:980:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( ifr.ifr_name, wi_get_ifname(wi), sizeof( ifr.ifr_name ) - 1 );
data/mdk3-6.0/osdep/linux.c:1000:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( wrq.ifr_name, wi_get_ifname(wi), IFNAMSIZ );
data/mdk3-6.0/osdep/linux.c:1104:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( wrq.ifr_name, iface, IFNAMSIZ );
data/mdk3-6.0/osdep/linux.c:1163:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( ifr.ifr_name, iface, sizeof( ifr.ifr_name ) - 1 );
data/mdk3-6.0/osdep/linux.c:1181:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( ifr2.ifr_name, dev->main_if, sizeof( ifr2.ifr_name ) - 1 );
data/mdk3-6.0/osdep/linux.c:1192:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( wrq2.ifr_name, dev->main_if, IFNAMSIZ );
data/mdk3-6.0/osdep/linux.c:1245:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( wrq.ifr_name, iface, IFNAMSIZ );
data/mdk3-6.0/osdep/linux.c:1453: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(iface) == 5 &&
data/mdk3-6.0/osdep/linux.c:1519: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).
    if( ( strlen( iface ) >= 4 || strlen( iface ) <= 6 )
data/mdk3-6.0/osdep/linux.c:1519:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( ( strlen( iface ) >= 4 || strlen( iface ) <= 6 )
data/mdk3-6.0/osdep/linux.c:1647:39:  [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).
        dev->main_if = (char*) malloc(strlen(iface)+1);
data/mdk3-6.0/osdep/linux.c:1648:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memset(dev->main_if, 0, strlen(iface)+1);
data/mdk3-6.0/osdep/linux.c:1649:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(dev->main_if, iface, strlen(iface));
data/mdk3-6.0/osdep/linux.c:1649: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).
        strncpy(dev->main_if, iface, strlen(iface));
data/mdk3-6.0/osdep/linux.c:1651:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        iface=(char*)malloc(strlen(buf)+1);
data/mdk3-6.0/osdep/linux.c:1652:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memset(iface, 0, strlen(buf)+1);
data/mdk3-6.0/osdep/linux.c:1653:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(iface, buf, strlen(buf));
data/mdk3-6.0/osdep/linux.c:1653:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strncpy(iface, buf, strlen(buf));
data/mdk3-6.0/osdep/linux.c:1660:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( ifr.ifr_name, iface, sizeof( ifr.ifr_name ) - 1 );
data/mdk3-6.0/osdep/linux.c:1698: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).
                            dev->main_if = (char*) malloc(strlen(this_iface->d_name)+1);
data/mdk3-6.0/osdep/linux.c:1724: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).
                                dev->main_if = (char*) malloc(strlen(this_iface->d_name)+1);
data/mdk3-6.0/osdep/linux.c:1832:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy( ifr.ifr_name, wi_get_ifname(wi), sizeof( ifr.ifr_name ) - 1 );
data/mdk3-6.0/osdep/linux.c:1865:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy( ifr.ifr_name, wi_get_ifname(wi), sizeof( ifr.ifr_name ) - 1 );
data/mdk3-6.0/osdep/linux_tap.c:63:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy( if_request.ifr_name, "at%d", IFNAMSIZ );
data/mdk3-6.0/osdep/linux_tap.c:71:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( priv->tl_name, if_request.ifr_name, MAX_IFACE_NAME );
data/mdk3-6.0/osdep/linux_tap.c:72:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(priv->tl_ifr.ifr_name, priv->tl_name,
data/mdk3-6.0/osdep/linux_tap.c:160:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(ti_fd(ti), buf, len);
data/mdk3-6.0/osdep/netbsd.c:243:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		pn->pn_totlen = read(pn->pn_fd, pn->pn_buf, sizeof(pn->pn_buf));
data/mdk3-6.0/osdep/netbsd.c:312: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(iface) >= sizeof(ifr.ifr_name))
data/mdk3-6.0/osdep/netbsd.c:323:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ifr.ifr_name, iface, IFNAMSIZ);
data/mdk3-6.0/osdep/netbsd.c:330:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ifr.ifr_name, iface, IFNAMSIZ);
data/mdk3-6.0/osdep/netbsd.c:337:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ifmr.ifm_name, iface, IFNAMSIZ);
data/mdk3-6.0/osdep/netbsd.c:354:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ifr.ifr_name, iface, IFNAMSIZ);
data/mdk3-6.0/osdep/netbsd.c:360:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(pn->pn_ireq.i_name, iface, IFNAMSIZ);
data/mdk3-6.0/osdep/netbsd.c:363:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(pn->pn_ifr.ifr_name, iface, IFNAMSIZ);
data/mdk3-6.0/osdep/netbsd.c:385:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifr.ifr_name, iface, IFNAMSIZ);
data/mdk3-6.0/osdep/netbsd_tap.c:160:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifra.ifra_name, priv->tn_ifr.ifr_name, IFNAMSIZ);
data/mdk3-6.0/osdep/netbsd_tap.c:179:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(ti_fd(ti), buf, len);
data/mdk3-6.0/osdep/network.c:425:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	assert(strlen(host) <= 15);
data/mdk3-6.0/osdep/network.c:426:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ip, host, ipsize);
data/mdk3-6.0/osdep/openbsd.c:242:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		po->po_totlen = read(po->po_fd, po->po_buf, sizeof(po->po_buf));
data/mdk3-6.0/osdep/openbsd.c:311: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(iface) >= sizeof(ifr.ifr_name))
data/mdk3-6.0/osdep/openbsd.c:322:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ifr.ifr_name, iface, IFNAMSIZ);
data/mdk3-6.0/osdep/openbsd.c:329:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ifr.ifr_name, iface, IFNAMSIZ);
data/mdk3-6.0/osdep/openbsd.c:336:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ifmr.ifm_name, iface, IFNAMSIZ);
data/mdk3-6.0/osdep/openbsd.c:353:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ifr.ifr_name, iface, IFNAMSIZ);
data/mdk3-6.0/osdep/openbsd.c:359:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(po->po_ireq.i_name, iface, IFNAMSIZ);
data/mdk3-6.0/osdep/openbsd.c:362:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(po->po_ifr.ifr_name, iface, IFNAMSIZ);
data/mdk3-6.0/osdep/openbsd.c:384:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifr.ifr_name, iface, IFNAMSIZ);
data/mdk3-6.0/osdep/openbsd_tap.c:160:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifra.ifra_name, priv->to_ifr.ifr_name, IFNAMSIZ);
data/mdk3-6.0/osdep/openbsd_tap.c:179:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(ti_fd(ti), buf, len);
data/mdk3-6.0/osdep/osdep.c:162:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(wi->wi_interface, iface, sizeof(wi->wi_interface)-1);

ANALYSIS SUMMARY:

Hits = 393
Lines analyzed = 13219 in approximately 0.36 seconds (36719 lines/second)
Physical Source Lines of Code (SLOC) = 9474
Hits@level = [0] 234 [1]  98 [2] 241 [3]   9 [4]  45 [5]   0
Hits@level+ = [0+] 627 [1+] 393 [2+] 295 [3+]  54 [4+]  45 [5+]   0
Hits/KSLOC@level+ = [0+] 66.1811 [1+] 41.482 [2+] 31.1379 [3+] 5.69981 [4+] 4.74984 [5+]   0
Dot directories skipped = 3 (--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.