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/asedriveiiie-3.7/asedriveiiie-serial/T1Protocol.h
Examining data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c
Examining data/asedriveiiie-3.7/asedriveiiie-serial/atr.h
Examining data/asedriveiiie-3.7/asedriveiiie-serial/LinuxDefines.h
Examining data/asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.h
Examining data/asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c
Examining data/asedriveiiie-3.7/asedriveiiie-serial/atr.c
Examining data/asedriveiiie-3.7/asedriveiiie-serial/DriverIO.c
Examining data/asedriveiiie-3.7/asedriveiiie-serial/CommandTypes.c
Examining data/asedriveiiie-3.7/asedriveiiie-serial/Ase.h
Examining data/asedriveiiie-3.7/asedriveiiie-serial/T1Protocol.c
Examining data/asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c
Examining data/asedriveiiie-3.7/asedriveiiie-serial/serial.c
Examining data/asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c
Examining data/asedriveiiie-3.7/asedriveiiie-usb/T1Protocol.h
Examining data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c
Examining data/asedriveiiie-3.7/asedriveiiie-usb/atr.h
Examining data/asedriveiiie-3.7/asedriveiiie-usb/LinuxDefines.h
Examining data/asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.h
Examining data/asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c
Examining data/asedriveiiie-3.7/asedriveiiie-usb/atr.c
Examining data/asedriveiiie-3.7/asedriveiiie-usb/DriverIO.c
Examining data/asedriveiiie-3.7/asedriveiiie-usb/CommandTypes.c
Examining data/asedriveiiie-3.7/asedriveiiie-usb/Ase.h
Examining data/asedriveiiie-3.7/asedriveiiie-usb/T1Protocol.c
Examining data/asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c
Examining data/asedriveiiie-3.7/asedriveiiie-usb/usb.c
Examining data/asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c

FINAL RESULTS:

data/asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:115:9:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
        syslog(LOG_INFO, " opened for IO.\n"/*, readerData[readerNum].io.bus_device*/);
data/asedriveiiie-3.7/asedriveiiie-serial/Ase.h:127: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                dataMemory[ASE_DATA_MEMORY_SIZE];
data/asedriveiiie-3.7/asedriveiiie-serial/CommandTypes.c:102:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char cmdTmp[4];
data/asedriveiiie-3.7/asedriveiiie-serial/CommandTypes.c:291:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char cmdTmp[4];
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:116: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 cmd[4];
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:152:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char cmd2[4];
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:195: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 cmd[4], ack;
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:243: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 cmd[4];
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:263:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char cmd2[4];
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:312: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 cmd[15], ack;
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:373: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 cmd[6], response[300];
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:407:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char cmd2[4];
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:442:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char cmd2[4];
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:469: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(atr->data, response, len);
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:507: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 cmd[4], response[300];
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:536:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char cmd2[4];
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:578: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 cmd[4], ack;
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:629: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 cmd[5], ack;
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:707: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 cmd[BULK_BUFFER_SIZE];
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:923: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 cmd[BULK_BUFFER_SIZE];
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:947:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char cmd2[4];
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:988:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char cmd2[4];
data/asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:1069:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char cmd2[4];
data/asedriveiiie-3.7/asedriveiiie-serial/T1Protocol.c:209: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 response[BULK_BUFFER_SIZE];
data/asedriveiiie-3.7/asedriveiiie-serial/T1Protocol.c:642:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(outBuffer + counter, &(recBlock->data[3]), bytes);
data/asedriveiiie-3.7/asedriveiiie-serial/atr.h:33: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 data[MAX_ATR_SIZE];    
data/asedriveiiie-3.7/asedriveiiie-serial/atr.h:46: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 hb[ATR_MAX_HISTORICAL];
data/asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:104: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 name[30];
data/asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:127:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(name, "/dev/ttyS%d", (Lnibble == 0x3F8 ? 0 : Lnibble == 0x2F8 ? 1 : Lnibble == 0x3E8 ? 2 : 3));
data/asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:129:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(name, "/dev/ttyUSB%d", Lnibble);
data/asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:260: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(Value, readerData[readerNum].cards[socket].atr.data, *Length);
data/asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:522: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(Atr, readerData[readerNum].cards[socket].atr.data, *AtrLength);
data/asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:552: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(Atr, readerData[readerNum].cards[socket].atr.data, *AtrLength);
data/asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:707:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(RxBuffer, response, *RxLength);
data/asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:710: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(TxBuffer2, TxBuffer, 4);
data/asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:720:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(RxBuffer, response, *RxLength);
data/asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:731:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(RxBuffer, response, *RxLength);
data/asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:762:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		            memcpy(RxBuffer, response, *RxLength);
data/asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:850:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	        memcpy(RxBuffer, response, *RxLength);
data/asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:895:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	        memcpy(RxBuffer, response, *RxLength);
data/asedriveiiie-3.7/asedriveiiie-serial/serial.c:34:19:  [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).
    int tmpResult=open(port, O_RDWR | O_NOCTTY);
data/asedriveiiie-3.7/asedriveiiie-serial/serial.c:370: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 temp[700];
data/asedriveiiie-3.7/asedriveiiie-usb/Ase.h:131: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                bus_device[BUS_DEVICE_STRSIZE];
data/asedriveiiie-3.7/asedriveiiie-usb/Ase.h:141: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                response[RESPONSE_BUFFER_SIZE];
data/asedriveiiie-3.7/asedriveiiie-usb/Ase.h:152: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                dataMemory[ASE_DATA_MEMORY_SIZE];
data/asedriveiiie-3.7/asedriveiiie-usb/CommandTypes.c:108:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char cmdTmp[4];
data/asedriveiiie-3.7/asedriveiiie-usb/CommandTypes.c:302:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char cmdTmp[4];
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:116: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 cmd[4];
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:153:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char cmd2[4];
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:196: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 cmd[4], ack;
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:244: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 cmd[4];
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:264:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char cmd2[4];
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:313: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 cmd[15], ack;
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:374: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 cmd[6], response[300];
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:408:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char cmd2[4];
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:443:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char cmd2[4];
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:470: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(atr->data, response, len);
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:508: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 cmd[4], response[300];
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:537:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char cmd2[4];
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:579: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 cmd[4], ack;
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:630: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 cmd[5], ack;
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:708: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 cmd[BULK_BUFFER_SIZE];
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:928: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 cmd[BULK_BUFFER_SIZE];
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:952:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char cmd2[4];
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:993:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char cmd2[4];
data/asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:1073:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char cmd2[4];
data/asedriveiiie-3.7/asedriveiiie-usb/T1Protocol.c:209: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 response[BULK_BUFFER_SIZE];
data/asedriveiiie-3.7/asedriveiiie-usb/T1Protocol.c:642:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(outBuffer + counter, &(recBlock->data[3]), bytes);
data/asedriveiiie-3.7/asedriveiiie-usb/atr.h:33: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 data[MAX_ATR_SIZE];    
data/asedriveiiie-3.7/asedriveiiie-usb/atr.h:46: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 hb[ATR_MAX_HISTORICAL];
data/asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:106: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 name[30];
data/asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:243: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(Value, readerData[readerNum].cards[socket].atr.data, *Length);
data/asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:505: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(Atr, readerData[readerNum].cards[socket].atr.data, *AtrLength);
data/asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:535: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(Atr, readerData[readerNum].cards[socket].atr.data, *AtrLength);
data/asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:689:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(RxBuffer, response, *RxLength);
data/asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:692: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(TxBuffer2, TxBuffer, 4);
data/asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:702:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(RxBuffer, response, *RxLength);
data/asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:713:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(RxBuffer, response, *RxLength);
data/asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:744:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		            memcpy(RxBuffer, response, *RxLength);
data/asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:832:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	        memcpy(RxBuffer, response, *RxLength);
data/asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:877:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	        memcpy(RxBuffer, response, *RxLength);
data/asedriveiiie-3.7/asedriveiiie-usb/usb.c:94:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char bus_device[BUS_DEVICE_STRSIZE];
data/asedriveiiie-3.7/asedriveiiie-usb/usb.c:244: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 temp[MAX_USB_RESPONSE];
data/asedriveiiie-3.7/asedriveiiie-usb/usb.c:285: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((unsigned char*)buf, &(globalData->io.response[globalData->io.curPos]), count);
data/asedriveiiie-3.7/asedriveiiie-usb/usb.c:294: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((unsigned char*)buf, &(globalData->io.response[globalData->io.curPos]), count);
data/asedriveiiie-3.7/asedriveiiie-usb/usb.c:302:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy((unsigned char*)(&buf[ret]), globalData->io.response, count);
data/asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:364:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(10000); /* wait at least 10ms between two cold resets */
data/asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:407:17:  [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); /* wait at least 10ms between two cold resets */
data/asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:412:21:  [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/asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:439:17:  [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); /* wait at least 10ms between two cold resets */
data/asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:448:6:  [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); /* wait at least 10ms between two cold resets */
data/asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:453:25:  [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/asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:637:21:  [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); /* wait at least 10ms before sending PPS */
data/asedriveiiie-3.7/asedriveiiie-serial/serial.c:155:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(1000000);
data/asedriveiiie-3.7/asedriveiiie-serial/serial.c:163: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/asedriveiiie-3.7/asedriveiiie-serial/serial.c:165: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/asedriveiiie-3.7/asedriveiiie-serial/serial.c:167: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/asedriveiiie-3.7/asedriveiiie-serial/serial.c:169: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/asedriveiiie-3.7/asedriveiiie-serial/serial.c:171: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/asedriveiiie-3.7/asedriveiiie-serial/serial.c:173: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/asedriveiiie-3.7/asedriveiiie-serial/serial.c:237:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        rval = read(handle, buf, len);
data/asedriveiiie-3.7/asedriveiiie-serial/serial.c:277:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                rval = read(handle, buf + readBytesNum, len - readBytesNum);
data/asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:364:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(10000); /* wait at least 10ms between two cold resets */
data/asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:407:17:  [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); /* wait at least 10ms between two cold resets */
data/asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:412:21:  [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/asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:439:17:  [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); /* wait at least 10ms between two cold resets */
data/asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:448:6:  [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); /* wait at least 10ms between two cold resets */
data/asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:453:25:  [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/asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:637:21:  [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); /* wait at least 10ms before sending PPS */
data/asedriveiiie-3.7/asedriveiiie-usb/usb.c:177:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(globalData->io.bus_device, bus_device, BUS_DEVICE_STRSIZE);

ANALYSIS SUMMARY:

Hits = 110
Lines analyzed = 13108 in approximately 0.40 seconds (32408 lines/second)
Physical Source Lines of Code (SLOC) = 8566
Hits@level = [0] 387 [1]  24 [2]  85 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+] 497 [1+] 110 [2+]  86 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 58.0201 [1+] 12.8415 [2+] 10.0397 [3+] 0.116741 [4+] 0.116741 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.