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/acsccid-1.1.8/src/tokenparser.c
Examining data/acsccid-1.1.8/src/acr38cmd.h
Examining data/acsccid-1.1.8/src/defs.h
Examining data/acsccid-1.1.8/src/simclist.h
Examining data/acsccid-1.1.8/src/utils.c
Examining data/acsccid-1.1.8/src/ccid_ifdhandler.h
Examining data/acsccid-1.1.8/src/acr38cmd.c
Examining data/acsccid-1.1.8/src/commands.c
Examining data/acsccid-1.1.8/src/debug.h
Examining data/acsccid-1.1.8/src/openct/checksum.c
Examining data/acsccid-1.1.8/src/openct/checksum.h
Examining data/acsccid-1.1.8/src/openct/buffer.h
Examining data/acsccid-1.1.8/src/openct/buffer.c
Examining data/acsccid-1.1.8/src/openct/proto-t1.c
Examining data/acsccid-1.1.8/src/openct/proto-t1.h
Examining data/acsccid-1.1.8/src/simclist.c
Examining data/acsccid-1.1.8/src/ifdhandler.c
Examining data/acsccid-1.1.8/src/strlcpycat.h
Examining data/acsccid-1.1.8/src/ccid_usb.h
Examining data/acsccid-1.1.8/src/debug.c
Examining data/acsccid-1.1.8/src/parser.h
Examining data/acsccid-1.1.8/src/ccid_usb.c
Examining data/acsccid-1.1.8/src/commands.h
Examining data/acsccid-1.1.8/src/strlcpy.c
Examining data/acsccid-1.1.8/src/ccid.c
Examining data/acsccid-1.1.8/src/towitoko/atr.c
Examining data/acsccid-1.1.8/src/towitoko/pps.h
Examining data/acsccid-1.1.8/src/towitoko/defines.h
Examining data/acsccid-1.1.8/src/towitoko/atr.h
Examining data/acsccid-1.1.8/src/towitoko/pps.c
Examining data/acsccid-1.1.8/src/utils.h
Examining data/acsccid-1.1.8/src/misc.h
Examining data/acsccid-1.1.8/src/ccid.h
Examining data/acsccid-1.1.8/MacOSX/wintypes.h
Examining data/acsccid-1.1.8/MacOSX/reader.h
Examining data/acsccid-1.1.8/MacOSX/ifdhandler.h
Examining data/acsccid-1.1.8/MacOSX/pcsclite.h
Examining data/acsccid-1.1.8/MacOSX/debuglog.h
Examining data/acsccid-1.1.8/MacOSX/winscard.h

FINAL RESULTS:

data/acsccid-1.1.8/MacOSX/debuglog.h:121:24:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__((format(printf, 2, 3)));
data/acsccid-1.1.8/src/debug.c:146:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	(void)vsnprintf(debug_buffer, sizeof debug_buffer, fmt, argptr);
data/acsccid-1.1.8/src/ccid.c:414:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
				lang = getenv("LANG");
data/acsccid-1.1.8/src/debug.c:80:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		term = getenv("TERM");
data/acsccid-1.1.8/src/ifdhandler.c:3018:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	e = getenv("LIBCCID_ifdLogLevel");
data/acsccid-1.1.8/src/acr38cmd.c:115: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 cmd[6];
data/acsccid-1.1.8/src/acr38cmd.c:189:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char buffer_tmp[16];
data/acsccid-1.1.8/src/acr38cmd.c:213: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 cmd[4];
data/acsccid-1.1.8/src/acr38cmd.c:244: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 cmd[4];
data/acsccid-1.1.8/src/acr38cmd.c:248: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 buffer_tmp[20];
data/acsccid-1.1.8/src/acr38cmd.c:349: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 cmd[ACR38_HEADER_SIZE + tx_length];	/* Header + APDU buffer */
data/acsccid-1.1.8/src/acr38cmd.c:358: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(cmd + ACR38_HEADER_SIZE, tx_buffer, tx_length);
data/acsccid-1.1.8/src/acr38cmd.c:369: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 cmd[ACR38_HEADER_SIZE + tx_length];	/* Header + APDU buffer */
data/acsccid-1.1.8/src/acr38cmd.c:378:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cmd + ACR38_HEADER_SIZE, tx_buffer, tx_length);
data/acsccid-1.1.8/src/acr38cmd.c:389: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 cmd[ACR38_HEADER_SIZE + tx_length];	/* Header + APDU buffer */
data/acsccid-1.1.8/src/acr38cmd.c:398: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(cmd + ACR38_HEADER_SIZE, tx_buffer, tx_length);
data/acsccid-1.1.8/src/acr38cmd.c:410: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 cmd[ACR38_HEADER_SIZE + CMD_BUF_SIZE];	/* Header + APDU buffer */
data/acsccid-1.1.8/src/acr38cmd.c:435: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(rx_buffer, cmd + ACR38_HEADER_SIZE, length);
data/acsccid-1.1.8/src/acr38cmd.c:443: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 cmd[8];
data/acsccid-1.1.8/src/acr38cmd.c:590: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 cmd[4];
data/acsccid-1.1.8/src/acr38cmd.c:594: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 buffer_tmp[20];
data/acsccid-1.1.8/src/acr38cmd.c:621: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(firmwareVersion, buffer_tmp + ACR38_HEADER_SIZE, 10);
data/acsccid-1.1.8/src/acr38cmd.c:662: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 cmd[5];
data/acsccid-1.1.8/src/acr38cmd.c:692: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 cmd[5];
data/acsccid-1.1.8/src/ccid.c:129:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char tmp[MAX_ATR_SIZE];
data/acsccid-1.1.8/src/ccid.c:141:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char tmp[MAX_ATR_SIZE];
data/acsccid-1.1.8/src/ccid.c:275: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 res[10];
data/acsccid-1.1.8/src/ccid.c:294: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 cmd[L10N_HEADER_SIZE + L10N_NB_STRING * L10N_STRING_MAX_SIZE];
data/acsccid-1.1.8/src/ccid.c:295: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 res[20];
data/acsccid-1.1.8/src/ccid.c:533: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 res[20];
data/acsccid-1.1.8/src/ccid.c:695: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 firmwareVersion[30];
data/acsccid-1.1.8/src/ccid.c:726: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 firmwareVersion[30];
data/acsccid-1.1.8/src/ccid.c:752: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 firmwareVersion[11];	// Firmware version
data/acsccid-1.1.8/src/ccid.c:830:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char firmwareVersion[30];
data/acsccid-1.1.8/src/ccid.c:937: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 var_text[30];
data/acsccid-1.1.8/src/ccid.c:1061: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 var_text[30];
data/acsccid-1.1.8/src/ccid.c:1133: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 response[300];
data/acsccid-1.1.8/src/ccid.c:1175: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 response[3 + 6];
data/acsccid-1.1.8/src/ccid.c:1216: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 command[5 + 32] = { 0x05, 0x00, 0x20, 0x00, 0x00 };
data/acsccid-1.1.8/src/ccid.c:1218: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 response[3 + 2];
data/acsccid-1.1.8/src/ccid.c:1229: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(command + 5, message, messageLen);
data/acsccid-1.1.8/src/ccid.c:1247: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 response[300];
data/acsccid-1.1.8/src/ccid.c:1255: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(firmwareVersion, response + 5, *pFirmwareVersionLen);
data/acsccid-1.1.8/src/ccid.h:410: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	RFUb2[2];
data/acsccid-1.1.8/src/ccid.h:424: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	RFUb4[3];
data/acsccid-1.1.8/src/ccid.h:440: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	RFUb6[3];
data/acsccid-1.1.8/src/ccid_usb.c:73: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 buffer[CCID_INTERRUPT_SIZE];
data/acsccid-1.1.8/src/ccid_usb.c:244: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 infofile[FILENAME_MAX];
data/acsccid-1.1.8/src/ccid_usb.c:563: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(ptr, SerialCustomDataRates,
data/acsccid-1.1.8/src/ccid_usb.c:946:15:  [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 serial[128];
data/acsccid-1.1.8/src/ccid_usb.c:960:15:  [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 iManufacturer[128];
data/acsccid-1.1.8/src/ccid_usb.c:1235:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char epBuffer[64];
data/acsccid-1.1.8/src/ccid_usb.c:1266: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(buffer + readLen, epBuffer, actual_length);
data/acsccid-1.1.8/src/ccid_usb.c:1648: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 buffer[256*sizeof(int)];	/* maximum is 256 records */
data/acsccid-1.1.8/src/ccid_usb.c:1762: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 buffer[8];
data/acsccid-1.1.8/src/ccid_usb.c:1935: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 buffer[CCID_INTERRUPT_SIZE];
data/acsccid-1.1.8/src/ccid_usb.c:2088: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(msExt->buffer, buffer, actual_length);
data/acsccid-1.1.8/src/ccid_usb.c:2165: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 buffer[CCID_INTERRUPT_SIZE];
data/acsccid-1.1.8/src/ccid_usb.c:2200: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(buffer, msExt->buffer, sizeof buffer);
data/acsccid-1.1.8/src/ccid_usb.c:2318: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 buffer[CCID_INTERRUPT_SIZE];
data/acsccid-1.1.8/src/commands.c:108: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 cmd[10];
data/acsccid-1.1.8/src/commands.c:120:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char pcbuffer[SIZE_GET_SLOT_STATUS];
data/acsccid-1.1.8/src/commands.c:150:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char tmp[MAX_ATR_SIZE+1];
data/acsccid-1.1.8/src/commands.c:190: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(buffer, tmp+1, *nlength);
data/acsccid-1.1.8/src/commands.c:261:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char res_tmp[1];
data/acsccid-1.1.8/src/commands.c:320: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 cmd[11+14+TxLength];
data/acsccid-1.1.8/src/commands.c:455:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char sdata[T1_BUFFER_SIZE];
data/acsccid-1.1.8/src/commands.c:472: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(TxBuffer + offsetof(PIN_VERIFY_STRUCTURE, bTeoPrologue),
data/acsccid-1.1.8/src/commands.c:503:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char res_tmp[1];
data/acsccid-1.1.8/src/commands.c:576: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 sblk[1]; /* we only need 1 byte of data */
data/acsccid-1.1.8/src/commands.c:674: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 cmd[11+19+TxLength];
data/acsccid-1.1.8/src/commands.c:836:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char sdata[T1_BUFFER_SIZE];
data/acsccid-1.1.8/src/commands.c:853: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(TxBuffer + offsetof(PIN_MODIFY_STRUCTURE, bTeoPrologue),
data/acsccid-1.1.8/src/commands.c:1016: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(&cmd_in[10], TxBuffer, TxLength);
data/acsccid-1.1.8/src/commands.c:1084: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(RxBuffer, &cmd_out[10], length_out);
data/acsccid-1.1.8/src/commands.c:1103: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 cmd[10];
data/acsccid-1.1.8/src/commands.c:1130:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char buffer[3];
data/acsccid-1.1.8/src/commands.c:1192: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 cmd[10];
data/acsccid-1.1.8/src/commands.c:1202:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char status[1];
data/acsccid-1.1.8/src/commands.c:1242:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char buffer_tmp[3];
data/acsccid-1.1.8/src/commands.c:1392: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 cmd[10+tx_length];	/* CCID + APDU buffer */
data/acsccid-1.1.8/src/commands.c:1447: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(cmd+10, tx_buffer, tx_length);
data/acsccid-1.1.8/src/commands.c:1464: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 cmd[10+CMD_BUF_SIZE];	/* CCID + APDU buffer */
data/acsccid-1.1.8/src/commands.c:1474:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char pcbuffer[SIZE_GET_SLOT_STATUS];
data/acsccid-1.1.8/src/commands.c:1501:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char rx_tmp[4];
data/acsccid-1.1.8/src/commands.c:1535:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(old_rx_buffer, rx_buffer, min(r, old_rx_length));
data/acsccid-1.1.8/src/commands.c:1699: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(rx_buffer, cmd+10, length);
data/acsccid-1.1.8/src/commands.c:1974: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(tmpBuffer, tx_buffer, tx_length);
data/acsccid-1.1.8/src/commands.c:2053:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char tmp_buf[512];
data/acsccid-1.1.8/src/commands.c:2060: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(*rcv_buf, *in_buf, proc_len);
data/acsccid-1.1.8/src/commands.c:2072: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(*rcv_buf, *in_buf, *in_len);
data/acsccid-1.1.8/src/commands.c:2129: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(*rcv_buf, tmp_buf, remain_len);
data/acsccid-1.1.8/src/commands.c:2211: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 cmd[5];
data/acsccid-1.1.8/src/commands.c:2212: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 tmp_buf[512];
data/acsccid-1.1.8/src/commands.c:2222:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char pcbuffer[SIZE_GET_SLOT_STATUS];
data/acsccid-1.1.8/src/commands.c:2237: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(cmd, snd_buf, 4);
data/acsccid-1.1.8/src/commands.c:2243: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(cmd, snd_buf, 5);
data/acsccid-1.1.8/src/commands.c:2324: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(cmd, snd_buf, 4);
data/acsccid-1.1.8/src/commands.c:2330: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(cmd, snd_buf, 5);
data/acsccid-1.1.8/src/commands.c:2456: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 cmd[10+length];	/* CCID + APDU buffer */
data/acsccid-1.1.8/src/commands.c:2469: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(cmd+10, buffer, length);
data/acsccid-1.1.8/src/debug.c:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char debug_buffer[3 * 80]; /* up to 3 lines of 80 characters */
data/acsccid-1.1.8/src/debug.c:162: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 *c, debug_buffer[len*3 + strlen(msg) +1];
data/acsccid-1.1.8/src/defs.h:56: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 pcATRBuffer[MAX_ATR_SIZE];
data/acsccid-1.1.8/src/ifdhandler.c:214:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char pcbuffer[SIZE_GET_SLOT_STATUS];
data/acsccid-1.1.8/src/ifdhandler.c:531: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(Value, CcidSlots[reader_index].pcATRBuffer, *Length);
data/acsccid-1.1.8/src/ifdhandler.c:1393: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 pcbuffer[10+MAX_ATR_SIZE];
data/acsccid-1.1.8/src/ifdhandler.c:1571: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(Atr, pcbuffer, *AtrLength);
data/acsccid-1.1.8/src/ifdhandler.c:1572: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(CcidSlots[reader_index].pcATRBuffer, pcbuffer, *AtrLength);
data/acsccid-1.1.8/src/ifdhandler.c:1630: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 pcbuffer[SIZE_GET_SLOT_STATUS];
data/acsccid-1.1.8/src/ifdhandler.c:1654: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(RxBuffer, "KOBIL systems\220\0", 15);
data/acsccid-1.1.8/src/ifdhandler.c:1663: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(RxBuffer, "IDToken\220\0", 9);
data/acsccid-1.1.8/src/ifdhandler.c:1674:16:  [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.
			*RxLength = sprintf((char *)RxBuffer, "%X.%02X",
data/acsccid-1.1.8/src/ifdhandler.c:1686: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(RxBuffer, DRIVER_VERSION, sizeof DRIVER_VERSION -1);
data/acsccid-1.1.8/src/ifdhandler.c:1766: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(RxBuffer, PACKAGE_VERSION, versionLen);
data/acsccid-1.1.8/src/ifdhandler.c:2086:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char command[5 + 34];
data/acsccid-1.1.8/src/ifdhandler.c:2088:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char response[3 + 2];
data/acsccid-1.1.8/src/ifdhandler.c:2174:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char command[11];
data/acsccid-1.1.8/src/ifdhandler.c:2176:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char response[3 + 4];
data/acsccid-1.1.8/src/ifdhandler.c:2296:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char firmware[256];
data/acsccid-1.1.8/src/ifdhandler.c:2308: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(&RxBuffer[p], firmware, len);
data/acsccid-1.1.8/src/ifdhandler.c:2525:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char response[3 + 6];
data/acsccid-1.1.8/src/ifdhandler.c:2538: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(RxBuffer, response + 3, *pdwBytesReturned);
data/acsccid-1.1.8/src/ifdhandler.c:2549:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char command[5 + 32] = { 0x05, 0x00, 0x20, 0x00, 0x00 };
data/acsccid-1.1.8/src/ifdhandler.c:2551:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char response[3 + 2];
data/acsccid-1.1.8/src/ifdhandler.c:2560: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(command + 5, TxBuffer, TxLength);
data/acsccid-1.1.8/src/ifdhandler.c:2572:8:  [2] (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 + 3, *pdwBytesReturned);
data/acsccid-1.1.8/src/ifdhandler.c:2584:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char command[5 + 6] = { 0x06, 0x00, 0x06, 0x00, 0x00 };
data/acsccid-1.1.8/src/ifdhandler.c:2586:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char response[3 + 35];
data/acsccid-1.1.8/src/ifdhandler.c:2592: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(command + 5, TxBuffer, TxLength);
data/acsccid-1.1.8/src/ifdhandler.c:2604:8:  [2] (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 + 3, *pdwBytesReturned);
data/acsccid-1.1.8/src/ifdhandler.c:2634: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(command + 3, TxBuffer, TxLength);
data/acsccid-1.1.8/src/ifdhandler.c:2711: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 pcbuffer[SIZE_GET_SLOT_STATUS];
data/acsccid-1.1.8/src/ifdhandler.c:2865:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char res[10];
data/acsccid-1.1.8/src/ifdhandler.c:2955: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 infofile[FILENAME_MAX];
data/acsccid-1.1.8/src/ifdhandler.c:3226: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 buffer[43];
data/acsccid-1.1.8/src/ifdhandler.c:3278: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(RxBuffer, buffer, length);
data/acsccid-1.1.8/src/ifdhandler.c:3380:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char command[5 + 34];
data/acsccid-1.1.8/src/ifdhandler.c:3382:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char response[3 + 2];
data/acsccid-1.1.8/src/ifdhandler.c:3514:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char command[11];
data/acsccid-1.1.8/src/ifdhandler.c:3516:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char response[3 + 4];
data/acsccid-1.1.8/src/ifdhandler.c:3607: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(RxBuffer, buffer, length);
data/acsccid-1.1.8/src/ifdhandler.c:3642: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(RxBuffer, buffer, length);
data/acsccid-1.1.8/src/ifdhandler.c:3748: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(RxBuffer, buffer, length);
data/acsccid-1.1.8/src/openct/buffer.c:36: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(mem, bp->base + bp->head, len);
data/acsccid-1.1.8/src/openct/buffer.c:49: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(bp->base + bp->tail, mem, len);
data/acsccid-1.1.8/src/openct/proto-t1.c:165: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 sdata[T1_BUFFER_SIZE], sblk[5];
data/acsccid-1.1.8/src/openct/proto-t1.c:593: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(block + 3, ct_buf_head(bp), len);
data/acsccid-1.1.8/src/openct/proto-t1.c:601: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(t1->previous_block, block, 4);
data/acsccid-1.1.8/src/openct/proto-t1.c:613: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(block, t1 -> previous_block, 4);
data/acsccid-1.1.8/src/openct/proto-t1.c:635: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 csum[2];
data/acsccid-1.1.8/src/openct/proto-t1.c:752: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 sdata[T1_BUFFER_SIZE];
data/acsccid-1.1.8/src/openct/proto-t1.c:757: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 snd_buf[1];
data/acsccid-1.1.8/src/openct/proto-t1.h:69: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	previous_block[4];	/* to store the last R-block */
data/acsccid-1.1.8/src/simclist.c:520: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(lent->data, data, datalen);
data/acsccid-1.1.8/src/simclist.c:1129:10:  [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(filename, O_RDONLY, 0);
data/acsccid-1.1.8/src/simclist.c:1428:10:  [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(filename, oflag, mode);
data/acsccid-1.1.8/src/simclist.c:1440:10:  [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(filename, O_RDONLY, 0);
data/acsccid-1.1.8/src/tokenparser.c:1831: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(elt->key, &pcToken[5], len-1);
data/acsccid-1.1.8/src/tokenparser.c:1863: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(value, &pcToken[8], len-1);
data/acsccid-1.1.8/src/tokenparser.c:1943:9:  [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).
	file = fopen(fileName, "r");
data/acsccid-1.1.8/src/towitoko/atr.c:151: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 (atr->hb, atr_buffer + pointer + 1, atr->hbn);
data/acsccid-1.1.8/src/towitoko/pps.c:88: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 (params, confirm, len_confirm);
data/acsccid-1.1.8/src/acr38cmd.c:159:3:  [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(10 * 1000);
data/acsccid-1.1.8/src/ccid.c:1220:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int messageLen = strlen(message);
data/acsccid-1.1.8/src/ccid_usb.c:1205: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(10 * 1000);
data/acsccid-1.1.8/src/commands.c:435: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.
		(void)usleep(250*1000);
data/acsccid-1.1.8/src/commands.c:1221:10:  [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.
			(void)usleep(1000 * 10);
data/acsccid-1.1.8/src/commands.c:1563:11:  [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.
				(void)usleep(delay * 1000 * 10);
data/acsccid-1.1.8/src/debug.c:162:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *c, debug_buffer[len*3 + strlen(msg) +1];
data/acsccid-1.1.8/src/ifdhandler.c:471:8:  [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.
	(void)usleep(timeout * 1000);
data/acsccid-1.1.8/src/ifdhandler.c:657:16:  [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).
					*Length = strlen((char *)Value) +1;
data/acsccid-1.1.8/src/ifdhandler.c:765:16:  [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).
					*Length = strlen((char *)Value)+1;
data/acsccid-1.1.8/src/ifdhandler.c:1126: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(10 * 1000);
data/acsccid-1.1.8/src/ifdhandler.c:1239: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(10 * 1000);
data/acsccid-1.1.8/src/ifdhandler.c:1300: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(10 * 1000);
data/acsccid-1.1.8/src/ifdhandler.c:1488:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
						usleep(10 * 1000);
data/acsccid-1.1.8/src/ifdhandler.c:1713:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			unsigned int versionLen = strlen(PACKAGE_VERSION);
data/acsccid-1.1.8/src/ifdhandler.c:2662: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(10 * 1000);
data/acsccid-1.1.8/src/simclist.c:98:57:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                                    if (read(fd, msgbuf, msglen) != msglen) {           \
data/acsccid-1.1.8/src/simclist.c:1513:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
size_t list_meter_string(const void *el) { return strlen((const char *)el) + 1; }
data/acsccid-1.1.8/src/tokenparser.c:637:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/acsccid-1.1.8/src/tokenparser.c:1561:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return yy_scan_bytes( yystr, (int) strlen(yystr) );

ANALYSIS SUMMARY:

Hits = 183
Lines analyzed = 20026 in approximately 0.52 seconds (38728 lines/second)
Physical Source Lines of Code (SLOC) = 12379
Hits@level = [0]  21 [1]  20 [2] 158 [3]   3 [4]   2 [5]   0
Hits@level+ = [0+] 204 [1+] 183 [2+] 163 [3+]   5 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 16.4795 [1+] 14.7831 [2+] 13.1675 [3+] 0.40391 [4+] 0.161564 [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.