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/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/pkcs11types.h
Examining data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/apictl.h
Examining data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/pkcs11log.h
Examining data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/pkcs32.h
Examining data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/testcert.h
Examining data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/pkcs11err.h
Examining data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/pkcs11.h
Examining data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/stdll.h
Examining data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/stdll/keys.h
Examining data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/stdll/decrypt.h
Examining data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/stdll/encrypt.h
Examining data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/stdll/stdll_gen.h
Examining data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/stdll/functions.h
Examining data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/pkcs11o.h
Examining data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/apiclient.h
Examining data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/slotmgr.h
Examining data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/local_types.h
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.h
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf_msg.h
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/mutex.c
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/err.c
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/garbage_linux.c
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/shmem.c
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/err.h
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/signal.c
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/socket_server.c
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/garbage_linux.h
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/daemon.c
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/log.c
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/log.h
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd.h
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsep11_migrate/ep11adm.h
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsep11_migrate/pkcsep11_migrate.c
Examining data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsicsf/pkcsicsf.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/tok_struct.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/tok_struct.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/defs.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/csulincl.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_stdll.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_func.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/tok_struct.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_func.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/new_host.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tok_struct.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/defs.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_openssl.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_util.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/api/apiutil.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/api/apiproto.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/api/socket_client.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/api/api_interface.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/key_mgr.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/encr_mgr.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/dp_obj.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/p11util.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/attributes.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_dsa.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_ec.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/cert.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/verify_mgr.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/obj_mgr.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/defs.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/btree.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/trace.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_md2.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/h_extern.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/p11util.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_sha.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/ec_defs.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/list.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/hwf_obj.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/data_obj.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/attributes.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rng.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sw_crypt.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/shared_memory.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/template.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_md5.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/key.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sw_crypt.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_ssl3.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/trace.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/object.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/shared_memory.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/tok_specific.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/decr_mgr.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/dig_mgr.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/new_host.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/host_defs.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/globals.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_btree.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_dh.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/tok_spec_struct.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sign_mgr.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_list.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/tok_struct.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/tok_struct.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/pbkdf.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/pbkdf.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_config.h
Examining data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/new_host.c
Examining data/opencryptoki-3.8.1+dfsg/misc/mech_types.h
Examining data/opencryptoki-3.8.1+dfsg/misc/test_mech_list.c
Examining data/opencryptoki-3.8.1+dfsg/misc/mech_list.c

FINAL RESULTS:

data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:326:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
			if (chown(lockdir, geteuid(), grp->gr_gid) != 0) {
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:334:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			if (chmod(lockdir, S_IRWXU|S_IRWXG) != 0){
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:3491:7:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		if (chown(lockdir, geteuid(), grp->gr_gid) != 0) {
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:3499:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		if (chmod(lockdir, S_IRWXU|S_IRWXG) != 0){
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:3518:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		if (chmod(lockfile, mode) == -1) {
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_util.c:131:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		if (chmod(filename, mode) == -1) {
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:166:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
			if (chown(dircheck[i].dir, geteuid(), grp->gr_gid) != 0) {
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:174:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			if (chmod(dircheck[i].dir, dircheck[i].mode) != 0){
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:259:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		rc = chown(tokendir, uid, grpid);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:284:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		rc = chown(tokendir, uid, grpid);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/socket_server.c:65:6:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	if (chown(SOCKET_FILE_PATH, 0, grp->gr_gid)) {
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/socket_server.c:70:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (chmod(SOCKET_FILE_PATH, S_IRUSR|S_IRGRP|S_IWUSR|S_IWGRP|S_IXUSR|S_IXGRP)) {
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/api/apiproto.h:57: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(priority, "%s " fmt, __FILE__, ##__VA_ARGS__);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/api/socket_client.c:68:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(daemon_address.sun_path, SOCKET_FILE_PATH);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/h_extern.h:2761: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(priority, "%s " fmt, __FILE__, ##__VA_ARGS__);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:51:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(fname,"%s/%s", pk_dir, pw->pw_name);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:53:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(fname, "%s", pk_dir);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:404:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fname, "%s/%s", tokdata->data_store, PK_LITE_NV);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:478:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fname, "%s/%s", tokdata->data_store, PK_LITE_NV);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:530:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fname, "%s/%s/%s", tokdata->data_store, PK_LITE_OBJ_DIR,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:579:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fname, "%s/%s/", tokdata->data_store, PK_LITE_OBJ_DIR);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:693:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fname, "%s/%s/", tokdata->data_store, PK_LITE_OBJ_DIR);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:748:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(iname, "%s/%s/%s", tokdata->data_store, PK_LITE_OBJ_DIR,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:758:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf((char *)fname, "%s/%s/", tokdata->data_store,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:760:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat((char *)fname, (char *)tmp);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:829:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(iname, "%s/%s/%s", tokdata->data_store, PK_LITE_OBJ_DIR,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:839:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf((char *)fname, "%s/%s/", tokdata->data_store,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:841:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat((char *)fname, (char *)tmp);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1056:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fname, "%s/MK_SO", tokdata->data_store);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1162:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fname, "%s/MK_USER", tokdata->data_store);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1291:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fname, "%s/MK_SO", tokdata->data_store);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1382:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fname, "%s/MK_USER", tokdata->data_store);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1427:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf((char *)fname, "%s/%s/", tokdata->data_store, PK_LITE_OBJ_DIR);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1497:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf((char *)objidx, "%s/%s/%s", tokdata->data_store,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1499:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf((char *)idxtmp, "%s/%s/%s", tokdata->data_store,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1552:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf((char *)fname, "%s/%s/%s", tokdata->data_store,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1576:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd))
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1625:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(pk_dir, "%s/%s", pkdir, SUB_DIR);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1632:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(pk_dir, "%s", directory);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1638:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(pk_dir, "%s", PK_DIR);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/new_host.c:160:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(abs_tokdir_name,"%s/%s", CONFIG_PATH, sinfp->tokname);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/shared_memory.c:254:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(ctx->name, name);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/shared_memory.c:383:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(buffer, ctx->name);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/trace.c:235:3:  [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.
		vsnprintf(pbuf, buflen, fmt, ap);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/trace.h:125:29:  [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/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:304:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(lockdir, "%s/%s", LOCKDIR_PATH, tokname);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:306:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(lockdir, "%s/%s", LOCKDIR_PATH, SUB_DIR);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:344:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(lockfile, "%s/%s/LCK..%s",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:347:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(lockfile, "%s/%s/LCK..%s",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/new_host.c:149:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(abs_tokdir_name,"%s/%s", CONFIG_PATH, sinfp->tokname);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:349:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(tokdata->nv_token_data->token_info.label, config.name);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:350:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(tokdata->nv_token_data->token_info.manufacturerID, config.manuf);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:351:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(tokdata->nv_token_data->token_info.model, config.model);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:352:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(tokdata->nv_token_data->token_info.serialNumber, config.serial);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:355:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(slot_data[slot_id]->uri, config.uri);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:356:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(slot_data[slot_id]->dn, config.dn);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:357:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(slot_data[slot_id]->ca_file, config.ca_file);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:358:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(slot_data[slot_id]->cert_file, config.cert_file);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:359:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(slot_data[slot_id]->key_file, config.key_file);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:515:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(fname, "%s/MK_SO", get_pk_dir(pk_dir_buf));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:565:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(fname, "%s/MK_USER", get_pk_dir(pk_dir_buf));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:570:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(fname, "%s/MK_SO", get_pk_dir(pk_dir_buf));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:738:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(fname, "%s/MK_USER", get_pk_dir(pk_dir_buf));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:805:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf (fname, "%s/MK_USER", get_pk_dir(pk_dir_buf));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:843:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf (fname, "%s/MK_SO", get_pk_dir(pk_dir_buf));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:1165:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(fname, "%s/MK_USER", get_pk_dir(pk_dir_buf));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:1187:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(fname, "%s/MK_SO", get_pk_dir(pk_dir_buf));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/new_host.c:147:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(abs_tokdir_name,"%s/%s", CONFIG_PATH, sinfp->tokname);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_openssl.c:138:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(loc, "%s/%s/%s", pk_dir, pw->pw_name, filename);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_openssl.c:177:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(loc, "%s/%s/%s", pk_dir, pw->pw_name, filename);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:183:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path_buf, "%s", get_pk_dir(fname));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:1472:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf((char *)fname,"%s/%s/%s", pk_dir, pw->pw_name, TPMTOK_MASTERKEY_PRIVATE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:1549:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf((char *)fname,"%s/%s/%s", pk_dir, pw->pw_name, TPMTOK_MASTERKEY_PRIVATE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2071:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd) == -1)
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2082:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd) == -1)
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2092:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd) == -1)
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2103:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd) == -1)
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:3471:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(lockdir, "%s/%s", LOCKDIR_PATH, SUB_DIR);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:3508:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(lockfile, "%s/%s/%s", LOCKDIR_PATH, SUB_DIR, pw->pw_name);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:3526:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(lockfile, "%s/%s/%s/LCK..%s", LOCKDIR_PATH, SUB_DIR, pw->pw_name, SUB_DIR);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_util.c:85:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf((char *)ret, "%s", TPMTOK_PRIVATE_ROOT_KEY_ID);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_util.c:94:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf((char *)ret, "%s", TPMTOK_PUBLIC_ROOT_KEY_ID);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_util.c:103:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf((char *)ret, "%s", TPMTOK_PUBLIC_LEAF_KEY_ID);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_util.c:112:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf((char *)ret, "%s", TPMTOK_PRIVATE_LEAF_KEY_ID);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:184:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat((char *)fname, (char *)tmp);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/daemon.c:86:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy( arg, Arg0 );
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/daemon.c:91:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(StartDir, "%s/%s", cwd, dname);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/daemon.c:93:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(StartDir, "%s", cwd);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/garbage_linux.c:382:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fbuf, "%s/%d/stat", PROC_BASE, pid);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/garbage_linux.c:409:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  num = sscanf(tmp + 2,                         // skip space after ')' as well
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/log.c:266:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf( pInfo->Descrip, "%s %s", pStuff->Label, ID );
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/log.c:422:8:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  if ( vsprintf(&(Buffer[0]), Format, ap) < 0 ) {
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c:49:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(package_version_tmp, PACKAGE_VERSION);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:246:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(tokendir, "%s/%s", CONFIG_PATH, tokdir);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:271:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(tokendir, "%s/%s/%s", CONFIG_PATH, tokdir, OBJ_DIR);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/socket_server.c:49:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(address.sun_path, SOCKET_FILE_PATH);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1622:15:  [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.
	if ((pkdir = getenv("PKCS_APP_STORE")) != NULL) {
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_list.c:125:15:  [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.
	if ((envrn = getenv("NS_SERVER_HOME")) != NULL) {
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/trace.c:143:8:  [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.
	opt = getenv("OPENCRYPTOKI_TRACE_LEVEL");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:3621:19:  [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.
	char *conf_dir = getenv("OCK_EP11_TOKEN_DIR");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_util.c:226:9:  [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.
	mode = getenv("OCK_SRK_MODE");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_util.c:252:15:  [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.
	passwd_ptr = getenv("OCK_SRK_SECRET");
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:1280:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, argv, "m:d:s:k:hv", long_opts, NULL))
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:87:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
   while ((c = getopt (argc, argv, "itsmIc:S:U:upPn:lh")) != (-1)){
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsep11_migrate/pkcsep11_migrate.c:213:9:  [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.
  val = getenv(PKCS11_USER_PIN_ENV_VAR);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsep11_migrate/pkcsep11_migrate.c:240: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.
  evar = getenv("PKCSLIB");
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsicsf/pkcsicsf.c:497:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "hla:b:u:m:k:c:C:")) != (-1)) {
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/shmem.c:44:17:  [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.
  if ( ((Path = getenv("PKCS11_SHMEM_FILE")) == NULL ) || ( Path[0] == '\0' ) ) {
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:348:25:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while (-1 != (option = getopt(argc, argv, ARGS_STRING))) {
data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/pkcs11err.h:65:18:  [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 const char      Name[128];
data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/pkcs11log.h:92:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char                      Descrip[255];
data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/slotmgr.h:86: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          dll_location[NAME_MAX+1];   // location of slot management  DLL
data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/slotmgr.h:87: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          slot_init_fcn[NAME_MAX+1];  // function to call to initialize the token in the slot
data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/slotmgr.h:164: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		pad1[7];		// pad for dword alignment
data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/slotmgr.h:166: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		dll_location[NAME_MAX+1];   // location of slot's  DLL
data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/slotmgr.h:167:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		confname[NAME_MAX+1];	// token specific config file
data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/slotmgr.h:168: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		tokname[NAME_MAX+1];	// token specific directory
data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/testcert.h:13:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char    DN[83] = {
data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/testcert.h:25:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char    Issuer[83] = {
data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/testcert.h:37:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char    Cert[541] = {
data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/testcert.h:95:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char    PrivKey[633] = {
data/opencryptoki-3.8.1+dfsg/usr/include/pkcs11/testcert.h:162:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char    PubKey[162] = {
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/api/api_interface.c:2232: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(pInfo, (char *)&(sinfp->pk_slot), sizeof(CK_SLOT_INFO));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/api/api_interface.c:2236: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((char *)&(pInfo->slotDescription[0]),
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/api/api_interface.c:2238: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((char *)&(pInfo->manufacturerID[0]),
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/api/api_interface.c:2288: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(pInfo, (char *)&(sinfp->pk_slot), sizeof(CK_SLOT_INFO));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/api/apiutil.c:61:12:  [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).
			xplfd = open(OCK_API_LOCK_FILE, O_RDONLY);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/api/apiutil.c:651:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dest->manufacturerID, src->manufacturerID, 32);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/api/apiutil.c:653:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dest->libraryDescription, src->libraryDescription, 32);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/api/socket_client.c:114: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(&(Anchor->SocketDataP), daemon_socket_data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:207: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 form[CCA_KEYWORD_SIZE], random_number[CCA_RNG_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:211: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(form, "RANDOM  ", (size_t)CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:230: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(&output[bytes_so_far], random_number, (size_t)bytes_left);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:233: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(&output[bytes_so_far], random_number, (size_t)CCA_RNG_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:352: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 rule_array[256] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:372: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(rule_array, "STATCCAE", 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:414: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 key_length[CCA_KEYWORD_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:415: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 key_type_2[CCA_KEYWORD_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:416: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 kek_key_identifier_1[CCA_KEY_ID_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:417: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 kek_key_identifier_2[CCA_KEY_ID_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:418: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 generated_key_identifier_2[CCA_KEY_ID_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:423: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(key_length, "KEYLN8  ", (size_t)CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:426: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(key_length, "KEYLN24 ", (size_t)CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:435: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(key_length, "KEYLN16 ", CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:438: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(key_length, "KEYLN24 ", (size_t)CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:441: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(key_length, "        ", (size_t)CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:478: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 key_form[CCA_KEYWORD_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:479: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 key_type_1[CCA_KEYWORD_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:485:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key_form, "OP      ", (size_t)CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:486:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key_type_1, "DATA    ", (size_t)CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:518: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 chaining_vector[CCA_OCV_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:519: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 rule_array[CCA_RULE_ARRAY_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:548: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(rule_array, "CBC     ", (size_t)CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:610: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(out_data, local_out, (size_t)length);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:672: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(n, &tok[privkey_n_offset], (size_t)n_length);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:692: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(e, &tok[CCA_RSA_INTTOK_PUBKEY_E_OFFSET], (size_t)e_length);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:793: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:797: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 key_value_structure[CCA_KEY_VALUE_STRUCT_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:798: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 private_key_name[CCA_PRIVATE_KEY_NAME_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:799: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 key_token[CCA_KEY_TOKEN_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:802: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 regeneration_data[CCA_REGENERATION_DATA_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:803: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 transport_key_identifier[CCA_KEY_ID_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:804: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 generated_key_token[CCA_KEY_TOKEN_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:840: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((void *)&tmpexp + sizeof(CK_ULONG) - tmpsize,    // right align
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:852: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(&key_value_structure[CCA_PKB_E_SIZE_OFFSET],
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:854: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(&key_value_structure[CCA_PKB_E_OFFSET],
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:859:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key_value_structure, &mod_bits, sizeof(uint16_t));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:876: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(rule_array, "RSA-CRT KEY-MGMT", (size_t)(CCA_KEYWORD_SIZE * 2));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:913: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(rule_array, "MASTER  ", (size_t)CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:966: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:981: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(rule_array, "PKCS-1.2", CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1021: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1036: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(rule_array, "PKCS-1.2", CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1076: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1087: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(rule_array, "PKCS-1.1", CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1124: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1134: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(rule_array, "PKCS-1.1", CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1170: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 key_token[CCA_KEY_ID_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1171: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 key_form[CCA_KEYWORD_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1172: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 key_type[CCA_KEYWORD_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1173: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0x20, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.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 exit_data[4] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1176: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 reserved_1[4] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1178: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 mkvp[16] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1184: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(rule_array, "INTERNALAES     NO-KEY  ", (size_t) (CCA_KEYWORD_SIZE*3));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1185:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key_type, "DATA    ", (size_t)CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1189: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(rule_array + 3*CCA_KEYWORD_SIZE, "KEYLN16 ", CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1192: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(rule_array + 3*CCA_KEYWORD_SIZE, "KEYLN24 ", (size_t)CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1195: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(rule_array + 3*CCA_KEYWORD_SIZE, "KEYLN32 ", (size_t)CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1236:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key_form, "OP      ", (size_t)CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1237:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key_type, "AESTOKEN", (size_t) CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1238: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(aes_key, key_token, (size_t)CCA_KEY_ID_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1255: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 rule_array[CCA_RULE_ARRAY_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1257: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 exit_data[0];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1269: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(rule_array, "AES     ECB     KEYIDENTINITIAL ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1351: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 chaining_vector[32];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1352: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 rule_array[CCA_RULE_ARRAY_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1355: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 exit_data[0];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1367: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(rule_array, "AES     KEYIDENTINITIAL ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1380: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(rule_array, "AES     PKCS-PADKEYIDENT",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1461: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(out_data, local_out, (size_t)length);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1534: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(pInfo, &mech_list[i].mech_info,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1629:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(q, &tok[q_offset], (size_t)q_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1675: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1677: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 key_value_structure[CCA_EC_KEY_VALUE_STRUCT_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1678: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 private_key_name[CCA_PRIVATE_KEY_NAME_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1679: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 key_token[CCA_KEY_TOKEN_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1681: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 regeneration_data[CCA_REGENERATION_DATA_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1682: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 transport_key_identifier[CCA_KEY_ID_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1683: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 generated_key_token[CCA_KEY_TOKEN_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1713:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key_value_structure,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1715:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[CCA_PKB_EC_LEN_OFFSET],
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1721: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(rule_array, "ECC-PAIR", (size_t)(CCA_KEYWORD_SIZE));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1758: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(rule_array, "MASTER  ", (size_t)CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1807: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1819: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(rule_array, "ECDSA   ", CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1856: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1867: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(rule_array, "ECDSA   ", CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1940: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1955: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(rule_array, "SHA-1   ONLY    ", CCA_KEYWORD_SIZE * 2);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1959: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(rule_array, "SHA-256 ONLY    ", CCA_KEYWORD_SIZE * 2);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1963: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(rule_array, "SHA-384 ONLY    ", CCA_KEYWORD_SIZE * 2);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1967: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(rule_array, "SHA-512 ONLY    ", CCA_KEYWORD_SIZE * 2);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1986: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(out_data, cca_ctx->hash, cca_ctx->hash_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:1998: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2060: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, cca_ctx->tail, cca_ctx->tail_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2061: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 + cca_ctx->tail_len, in_data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2067: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(cca_ctx->tail,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2073: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(cca_ctx->tail + cca_ctx->tail_len, in_data, in_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2082: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(rule_array, "SHA-1   FIRST   ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2086: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(rule_array, "SHA-1   MIDDLE  ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2092: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(rule_array, "SHA-256 FIRST   ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2096: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(rule_array, "SHA-256 MIDDLE  ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2102: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(rule_array, "SHA-384 FIRST   ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2106: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(rule_array, "SHA-384 MIDDLE  ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2112: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(rule_array, "SHA-512 FIRST   ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2116: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(rule_array, "SHA-512 MIDDLE  ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2144: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2145: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 dummy_buf[1] = { 0 };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2159: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(rule_array, "SHA-1   ONLY    ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2165: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(rule_array, "SHA-1   LAST    ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2171: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(rule_array, "SHA-256 ONLY    ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2177: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(rule_array, "SHA-256 LAST    ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2183: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(rule_array, "SHA-384 ONLY    ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2189: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(rule_array, "SHA-384 LAST    ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2195: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(rule_array, "SHA-512 ONLY    ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2201: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(rule_array, "SHA-512 LAST    ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2227: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(out_data, cca_ctx->hash, cca_ctx->hash_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2300: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 rule_array[CCA_RULE_ARRAY_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2332: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(rule_array, "HMAC    SHA-1   ONLY    ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2337: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(rule_array, "HMAC    SHA-256 ONLY    ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2342: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(rule_array, "HMAC    SHA-384 ONLY    ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2347: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(rule_array, "HMAC    SHA-512 ONLY    ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2377: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(signature, cca_ctx->hash, cca_ctx->hash_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2425: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2508: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, cca_ctx->tail, cca_ctx->tail_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2509: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 + cca_ctx->tail_len, in_data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2515: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(cca_ctx->tail,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2522: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(cca_ctx->tail + cca_ctx->tail_len, in_data, in_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2532: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(rule_array, "HMAC    SHA-1   ", CCA_KEYWORD_SIZE * 2);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2537: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(rule_array, "HMAC    SHA-256 ", CCA_KEYWORD_SIZE * 2);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2542: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(rule_array, "HMAC    SHA-384 ", CCA_KEYWORD_SIZE * 2);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2547: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(rule_array, "HMAC    SHA-512 ", CCA_KEYWORD_SIZE * 2);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2552: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(rule_array + (CCA_KEYWORD_SIZE*2), "FIRST   ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2556: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(rule_array + (CCA_KEYWORD_SIZE*2), "MIDDLE  ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2617: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2644: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(rule_array, "HMAC    SHA-1   ", CCA_KEYWORD_SIZE * 2);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2648: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(rule_array, "HMAC    SHA-256 ", CCA_KEYWORD_SIZE * 2);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2652: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(rule_array, "HMAC    SHA-384 ", CCA_KEYWORD_SIZE * 2);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2656: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(rule_array, "HMAC    SHA-512 ", CCA_KEYWORD_SIZE * 2);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2663: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(rule_array + (CCA_KEYWORD_SIZE*2), "ONLY    ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2666: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(rule_array + (CCA_KEYWORD_SIZE*2), "LAST    ",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2690: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(signature, cca_ctx->hash, cca_ctx->hash_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2735: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2741: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 key_value_structure[CCA_KEY_VALUE_STRUCT_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2742: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 private_key_name[CCA_PRIVATE_KEY_NAME_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2743: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 key_token[CCA_KEY_TOKEN_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2744: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 target_key_token[CCA_KEY_TOKEN_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2745: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 transport_key_identifier[CCA_KEY_ID_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2811:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[0], &mod_bits, sizeof(uint16_t));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2815:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[2], &mod_bytes, sizeof(uint16_t));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2819:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[4], &size_of_e, sizeof(uint16_t));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2825:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[8], &bytes, sizeof(uint16_t));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2829:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[10], &bytes, sizeof(uint16_t));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2833:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[12], &bytes, sizeof(uint16_t));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2837:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[14], &bytes, sizeof(uint16_t));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2841:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[16], &bytes, sizeof(uint16_t));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2844:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[18], mod->pValue, mod_bytes);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2849:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[offset],
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2855:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[offset],
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2861:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[offset],
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2867:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[offset],
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2873:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[offset],
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2879:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[offset],
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2885: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(rule_array, "RSA-CRT KEY-MGMT", (size_t)(CCA_KEYWORD_SIZE * 2));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2941: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2945: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 key_value_structure[CCA_KEY_VALUE_STRUCT_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2946: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 private_key_name[CCA_PRIVATE_KEY_NAME_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2947: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 key_token[CCA_KEY_TOKEN_SIZE] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2991:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[0], &mod_bits, sizeof(uint16_t));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2995:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[2], &mod_bytes, sizeof(uint16_t));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:2999:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[4], &size_of_e, sizeof(uint16_t));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3004:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[8], pub_mod->pValue,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3008:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_value_structure[8 + mod_bytes],
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3014: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(rule_array, "RSA-PUBL", (size_t)(CCA_KEYWORD_SIZE * 1));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3054: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 target_key_id[CCA_KEY_ID_SIZE] = { 0 };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3055: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0 };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3067: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(rule_array, "AES     ", CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3071: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(rule_array, "DES     ", CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3111: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 key_token[CCA_KEY_TOKEN_SIZE] = { 0 };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3112: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0 };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3134: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(rule_array, "INTERNALNO-KEY  HMAC    MAC     GENERATE",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3149: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(rule_array, "HMAC    FIRST   MIN1PART", 3 * CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3164: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(rule_array, "HMAC    COMPLETE", 2 * CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3293: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 key_type1[8] = {0};
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3294: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 key_type2[8] = {0};
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3295: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 key_token[CCA_KEY_TOKEN_SIZE] = { 0 };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3297: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 rule_array[CCA_RULE_ARRAY_SIZE] = { 0 };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3315: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(rule_array, "INTERNALHMAC    MAC     GENERATE",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3338: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(rule_array, "HMAC    OP      ", 2 * CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3344:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key_type1, "TOKEN   ", CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/cca_specific.c:3349:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key_type2, "        ", CCA_KEYWORD_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/defs.h:34: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 chain_vector[CCA_CHAIN_VECTOR_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/defs.h:36: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 tail[MAX_SHA_BLOCK_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/cca_stdll/defs.h:38: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 hash[MAX_SHA_HASH_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:81: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( &buf[3], data, data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:83: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( &buf[2], data, data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:95: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( &buf[4], data, data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:97: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( &buf[3], data, data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:110: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( &buf[5], data, data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:112: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( &buf[4], data, data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:126: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( &buf[6], data, data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:128: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( &buf[5], data, data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:281: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( &buf[2], data, data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:293: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( &buf[3], data, data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:306: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( &buf[4], data, data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:320: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( &buf[5], data, data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:451: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( &buf[2], data, data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:463: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( &buf[3], data, data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:476: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( &buf[4], data, data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:490: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( &buf[5], data, data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:642: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( buf+len, tmp, total );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:646: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( buf+len, algorithm_id, algorithm_id_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:654: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( buf+len, tmp, total );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:807: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( buf+offset, buf2, len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:817: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( buf+offset, buf2, len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:827: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( buf+offset, buf2, len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:839: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( buf+offset, buf2, len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:849: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( buf+offset, buf2, len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:859: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( buf+offset, buf2, len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:869: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( buf+offset, buf2, len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:879: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( buf+offset, buf2, len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:889: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( buf+offset, buf2, len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:899: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( buf+offset, buf2, len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:1344: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( buf+offset, tmp, len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:1354: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( buf+offset, tmp, len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:1364: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( buf+offset, tmp, len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:1392: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( buf,                ber_idDSA, ber_idDSALen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/asn1.c:1393: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( buf + ber_idDSALen, param,     param_len    );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/attributes.c:76: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(it->pValue, orig->pValue, orig->ulValueLen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/attributes.c:118: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(copied_value, value, value_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/decr_mgr.c:615:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( ptr, mech->pParameter, mech->ulParameterLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/decr_mgr.c:623: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( ptr, mech->pParameter, mech->ulParameterLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/defs.h:119: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 hash[MAX_SHA_HASH_SIZE + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/defs.h:124: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 tail[MAX_SHA_BLOCK_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/dig_mgr.c:116: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( ptr, mech->pParameter, mech->ulParameterLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/encr_mgr.c:594:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( ptr, mech->pParameter, mech->ulParameterLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/encr_mgr.c:602:12:  [2] (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, mech->pParameter, mech->ulParameterLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/host_defs.h:275: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      name[8];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/host_defs.h:294: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		data_store[256];	// path information of the token directory
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/key.c:1140: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(public_exp_attr->pValue, pubExp, sizeof(pubExp));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/key.c:3185: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( ptr, attr->pValue, attr->ulValueLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/key.c:3762: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( value_attr->pValue, ptr, data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/key.c:3767: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( value_attr->pValue, ptr, DES_BLOCK_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/key.c:3873: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( ptr, attr->pValue, attr->ulValueLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/key.c:4115: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( value_attr->pValue, ptr, data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/key.c:4120: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( value_attr->pValue, ptr, 3 * DES_BLOCK_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/key.c:4221: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( ptr, attr->pValue, attr->ulValueLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/key.c:4762: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( args.des_key, attr->pValue, DES_KEY_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/key.c:4777:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
               memcpy( attr->pValue, cdmf_key, DES_KEY_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/key.c:5211: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( ptr, attr->pValue, attr->ulValueLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/key.c:5294: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( value_attr->pValue, ptr, key_size );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:121:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(initial_vector, iv, block_size);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:191: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(cipher, clear, clear_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:238: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(cipher, clear, clear_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:307:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(clear, cipher, cipher_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:353: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(clear, cipher, cipher_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:405:7:  [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).
	fp = fopen((char *)fname, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:420: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).
			fp = fopen((char *)fname, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:443: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(tokdata->nv_token_data, &td, sizeof(TOKEN_DATA));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:479:7:  [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).
	fp = fopen((char *)fname, "w");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:488: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(&td, tokdata->nv_token_data, sizeof(TOKEN_DATA));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:532:7:  [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).
	fp = fopen((char *)fname, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:548:7:  [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).
	fp = fopen((char *)fname, "a");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:581:7:  [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).
	fp = fopen((char *)fname, "w");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:664:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key, tokdata->master_key, key_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:677:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr, &obj_data_len_32, sizeof(CK_ULONG_32));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:679:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr, obj_data, obj_data_len_32);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:681:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr, hash_sha, SHA1_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:695:7:  [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).
	fp = fopen((char *)fname, "w");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:751:8:  [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).
	fp1 = fopen((char *)iname, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:762: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).
		fp2 = fopen((char *)fname, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:832:8:  [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).
	fp1 = fopen((char *)iname, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:843: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).
		fp2 = fopen((char *)fname, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:949:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key, tokdata->master_key, key_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1057:7:  [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).
	fp = fopen((char *)fname, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1075:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key, tokdata->so_pin_md5, MD5_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1076:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key + MD5_HASH_SIZE, tokdata->so_pin_md5,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1106: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(tokdata->master_key, clear, master_key_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1163:7:  [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).
	fp = fopen((char *)fname, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1180:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key, tokdata->user_pin_md5, MD5_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1181:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key + MD5_HASH_SIZE, tokdata->user_pin_md5,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1211: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(tokdata->master_key, clear, master_key_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1267: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(clear, tokdata->master_key, master_key_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1275:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key, tokdata->so_pin_md5, MD5_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1276:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key + MD5_HASH_SIZE, tokdata->so_pin_md5,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1292:7:  [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).
	fp = fopen((char *)fname, "w");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1358: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(clear, tokdata->master_key, master_key_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1366:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key, tokdata->user_pin_md5, MD5_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1367:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key + MD5_HASH_SIZE, tokdata->user_pin_md5,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1383:7:  [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).
	fp = fopen((char *)fname, "w");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1431:7:  [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).
	fp = fopen((char *)fname, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1509:8:  [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).
	fp1 = fopen((char *)objidx, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1510:8:  [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).
	fp2 = fopen((char *)idxtmp, "w");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1532:8:  [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).
	fp2 = fopen((char *)objidx, "w");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1533:8:  [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).
	fp1 = fopen((char *)idxtmp, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1633: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(data_store, pk_dir, strlen(directory) + 25);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1639: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(data_store, pk_dir, strlen(PK_DIR) + 25);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:510: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:517: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:525: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:551: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:558: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:566: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:592: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:599: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:607: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:633: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:640: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:648: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:674: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:681: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:689: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:763:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
               memcpy( context, ptr2, ctx->context_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:774:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
               memcpy( mech_param, ptr3, ctx->mech.ulParameterLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:807:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
               memcpy( context, ptr2, ctx->context_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:818:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
               memcpy( mech_param, ptr3, ctx->mech.ulParameterLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:850:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
               memcpy( context, ptr2, ctx->context_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:861:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
               memcpy( mech_param, ptr3, ctx->mech.ulParameterLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:894: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( &sess->encr_ctx, ptr1, sizeof(ENCR_DECR_CONTEXT) );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:902: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( &sess->decr_ctx, ptr1, sizeof(ENCR_DECR_CONTEXT) );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:910: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( &sess->sign_ctx, ptr1, sizeof(SIGN_VERIFY_CONTEXT) );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:918: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( &sess->verify_ctx, ptr1, sizeof(SIGN_VERIFY_CONTEXT) );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/lock_sess_mgr.c:926: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( &sess->digest_ctx, ptr1, sizeof(DIGEST_CONTEXT) );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:270: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( clear, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:344: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( out_data, clear, *out_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:474: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:504: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( clear,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:505: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( clear + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:516: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:555: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:586: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( cipher,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:587: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( cipher + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:597: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:636: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:669: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( clear,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:670: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( clear + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:680: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( ctx->mech.pParameter, out_data + (*out_data_len - AES_BLOCK_SIZE), AES_BLOCK_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:685: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:725: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:758: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( cipher,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:759: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( cipher + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:769: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( ctx->mech.pParameter, cipher + (out_len - AES_BLOCK_SIZE), AES_BLOCK_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:774: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:817: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:857: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( clear,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:858: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( clear + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:869: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( ctx->mech.pParameter, out_data + (*out_data_len - AES_BLOCK_SIZE), AES_BLOCK_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:874: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:916: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:958: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( cipher,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:959: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( cipher + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:967: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( ctx->mech.pParameter, cipher + (out_len - AES_BLOCK_SIZE), AES_BLOCK_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:972: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1007: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( context->data + context->len, in_data, in_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1035: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 ( clear,		     context->data, context->len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1036: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 ( clear+context->len, in_data, out_len - context->len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1045:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
           memcpy( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1080: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( context->data + context->len, in_data, in_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1107: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 ( clear,		     context->data, context->len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1108: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 ( clear+context->len, in_data, out_len - context->len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1117:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
           memcpy( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1310: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( clear, context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1377: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( out_data, clear, out_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1541: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1575: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( cipher,                    context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1576: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( cipher + context->len, in_data, out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1586: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1715: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1749: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( cipher,                    context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1750: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( cipher + context->len, in_data, out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1760: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1893: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1927: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( cipher,                    context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1928: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( cipher + context->len, in_data, out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:1938: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:2070: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:2104: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( cipher,                    context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:2105: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( cipher + context->len, in_data, out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:2115: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:2238: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(out_data, ((AES_DATA_CONTEXT *)ctx->context)->iv, mac_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:2268: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:2289: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( cipher,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:2290: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( cipher + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:2297: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:2366: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(out_data, context->iv, mac_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:2455: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:2476: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( cipher,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:2477: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( cipher + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:2484: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:2908: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(opaque_attr->pValue, aes_key, token_keysize);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:2932: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( value_attr->pValue, dummy_key, key_size );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_aes.c:2934: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( value_attr->pValue, aes_key, key_size );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:273: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( clear, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:346: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( out_data, clear, *out_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:382: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:412: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( clear,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:413: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( clear + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:423: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:460: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:491: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( cipher,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:492: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( cipher + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:502: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:541: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:574: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( clear,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:575: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( clear + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:584: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( ctx->mech.pParameter, out_data + (*out_data_len - DES_BLOCK_SIZE), DES_BLOCK_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:589: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:629: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:662: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( cipher,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:663: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( cipher + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:672: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( ctx->mech.pParameter, cipher + (out_len - DES_BLOCK_SIZE), DES_BLOCK_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:677: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:719: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:761: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( clear,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:762: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( clear + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:773: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( ctx->mech.pParameter, out_data + (*out_data_len - DES_BLOCK_SIZE), DES_BLOCK_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:777: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:818: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:860: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( cipher,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:861: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( cipher + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:869: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( ctx->mech.pParameter, cipher + (out_len - DES_BLOCK_SIZE), DES_BLOCK_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:873: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:1072: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( clear, context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:1132: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( cipher, context->data, DES_BLOCK_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:1140: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( out_data, clear, out_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:1203: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(opaque_attr->pValue, des_key, keysize);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:1227: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( value_attr->pValue, dummy_key, DES_KEY_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:1229: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( value_attr->pValue, des_key, DES_KEY_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des.c:1306: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( value_attr->pValue, cdmf_key, DES_KEY_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:272: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( clear, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:346: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( out_data, clear, *out_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:382: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:411: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( clear,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:412: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( clear + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:423: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:462: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:493: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( cipher,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:494: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( cipher + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:504: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:544: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:576: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( clear,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:577: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( clear + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:587: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( ctx->mech.pParameter, out_data + (*out_data_len - DES_BLOCK_SIZE), DES_BLOCK_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:592: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:631: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:664: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( cipher,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:665: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( cipher + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:675: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( ctx->mech.pParameter, cipher + (out_len - DES_BLOCK_SIZE), DES_BLOCK_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:680: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:723: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:763: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( clear,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:764: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( clear + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:775: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( ctx->mech.pParameter, out_data + (*out_data_len - DES_BLOCK_SIZE), DES_BLOCK_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:780: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:821: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:863: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( cipher,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:864: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( cipher + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:872: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( ctx->mech.pParameter, cipher + (out_len - DES_BLOCK_SIZE), DES_BLOCK_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:877: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1075: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( clear, context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1141: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( out_data, clear, out_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1216: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1250: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( cipher,                    context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1251: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( cipher + context->len, in_data, out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1261: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1389: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1423: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( cipher,                    context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1424: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( cipher + context->len, in_data, out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1434: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1566: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1599: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( cipher,                    context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1600: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( cipher + context->len, in_data, out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1610: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1744: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1777: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( cipher,                    context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1778: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( cipher + context->len, in_data, out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1788: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1908: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(out_data, ((DES_DATA_CONTEXT *)ctx->context)->iv, mac_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1937: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1958: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( cipher,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1959: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( cipher + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:1967: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:2036: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(out_data, context->iv, mac_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:2123: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( context->data + context->len, in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:2144: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( cipher,                context->data, context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:2145: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( cipher + context->len, in_data,       out_len - context->len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:2152: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( context->data, in_data + (in_data_len - remain), remain );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:2277: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(opaque_attr->pValue, des_key, keysize);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:2301: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( value_attr->pValue, dummy_key, 3 * DES_KEY_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_des3.c:2303: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( value_attr->pValue, des_key, 3 * DES_KEY_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_dh.c:184: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(x, (CK_BYTE *)temp_attr->pValue, x_len) ;
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_dh.c:197: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(p, (CK_BYTE *)temp_attr->pValue, p_len) ;
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_dsa.c:90: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( out_data, sig, DSA_SIGNATURE_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_list.c:30: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(&current->element, &mech_list_arr[i],
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_list.c:105: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(pInfo, &mech_list[i].mech_info,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_md2.c:323: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( out_data, hash, hmac_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_md2.c:410: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( (CK_BYTE *)&context->buffer[index], (CK_BYTE *)input, partLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_md2.c:423: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( (CK_BYTE *)&context->buffer[index], (CK_BYTE *)&input[i], inputLen-i );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_md2.c:456: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( (CK_BYTE *)out_data, (CK_BYTE *)context->state, 16 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_md2.c:476: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( (CK_BYTE *)x,    (CK_BYTE *)state, 16 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_md2.c:477: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( (CK_BYTE *)x+16, (CK_BYTE *)block, 16 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_md2.c:493: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( (CK_BYTE *)state, (CK_BYTE *)x, 16 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_md5.c:308: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( out_data, hash, hmac_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_md5.c:489: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( out_data, context->digest, MD5_HASH_SIZE );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rng.c:43: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).
	ranfd = open("/dev/urandom",O_RDONLY);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:170: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(&out_data[i], in_data, in_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:315: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(out_data, &in_data[i], in_data_len - i);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:1735: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( tmp,           oid,       oid_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:1736: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( tmp + oid_len, octet_str, octet_str_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:1910: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( tmp,           oid,       oid_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:1911: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( tmp + oid_len, octet_str, octet_str_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:2068: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( tmp,           oid,       oid_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:2069: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( tmp + oid_len, octet_str, octet_str_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:2175: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( tmp,           oid,       oid_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:2176: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( tmp + oid_len, octet_str, octet_str_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:2241: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 counter[4];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:2273: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(seed_buffer, seed, seedlen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:2274: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(seed_buffer + seedlen, counter, 4);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:2282: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(mask + (i * hlen), hash, hlen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:2287: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(mask + (i * hlen), hash, T_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:2327: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(maskedDB, hash, hlen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:2335: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(maskedDB + (hlen + ps_len + 1), mData, mLen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:2463: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(out_data, dbMask + ps_len, dbMask_len - ps_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:2537:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf + 8, in_data, in_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:2548: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(DB + (PSlen + 1), salt, pssParms->sLen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:2652: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(M + 8, in_data, in_data_len);	// in_data is mHash.
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rsa.c:2653: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(M + (8 + in_data_len), salt, pssParms->sLen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_sha.c:285: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(p, buffer, count);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_sha.c:288: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(p, buffer, t);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_sha.c:298: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(ctx->buf, buffer, SHA1_BLOCK_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_sha.c:307:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ctx->buf, buffer, count);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_sha.c:363: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(hash, ctx->hash_value, SHA1_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_sha.c:722: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(out_data, hash, hmac_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_sha.c:903: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(out_data, hash, hmac_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_sha.c:1085: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(out_data, hash, hmac_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_sha.c:1274: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(out_data, hash, hmac_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_ssl3.c:198: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( out_data, hash, mac_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_ssl3.c:413: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( out_data, hash, mac_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_ssl3.c:733: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( value_attr->pValue, key, 48 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_ssl3.c:865: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( outBuff, hash, len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_ssl3.c:942: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( outBuff, hash, len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_ssl3.c:1492: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( params->pReturnedKeyMaterial->pIVClient, client_IV, iv_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_ssl3.c:1495: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( params->pReturnedKeyMaterial->pIVServer, server_IV, iv_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_ssl3.c:1508: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( p1, client_IV, iv_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_ssl3.c:1509: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( p2, server_IV, iv_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_ssl3.c:1603: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( attr->pValue, pTemplate[i].pValue, attr->ulValueLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_ssl3.c:1791: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( attr->pValue, pTemplate[i].pValue, attr->ulValueLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/new_host.c:112: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 abs_tokdir_name[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/new_host.c:464: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(tokdata->nv_token_data->so_pin_sha, hash_sha, SHA1_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/new_host.c:466: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(tokdata->nv_token_data->token_info.label, pLabel, 32);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/new_host.c:551: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(tokdata->nv_token_data->user_pin_sha, hash_sha, SHA1_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/new_host.c:556: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(tokdata->user_pin_md5, hash_md5, MD5_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/new_host.c:652: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(tokdata->nv_token_data->user_pin_sha, new_hash_sha,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/new_host.c:654: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(tokdata->user_pin_md5, hash_md5, MD5_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/new_host.c:692: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(tokdata->nv_token_data->so_pin_sha, new_hash_sha, SHA1_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/new_host.c:693: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(tokdata->so_pin_md5, hash_md5, MD5_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/new_host.c:808: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(pInfo, &sess->session_info, sizeof(CK_SESSION_INFO));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/new_host.c:1491: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(phObject, sess->find_list + sess->find_idx,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/obj_mgr.c:160: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( current, &tokdata->nv_token_data->next_token_object_name, 8 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/obj_mgr.c:163: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( &o->name, current, 8 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/obj_mgr.c:171: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( &tokdata->nv_token_data->next_token_object_name, next, 8 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/obj_mgr.c:447: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( current, &tokdata->nv_token_data->next_token_object_name, 8 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/obj_mgr.c:450: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( &new_obj->name, current, 8 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/obj_mgr.c:453: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( &tokdata->nv_token_data->next_token_object_name, next, 8 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/obj_mgr.c:670: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( current, &tokdata->nv_token_data->next_token_object_name, 8 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/obj_mgr.c:673: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( &obj->name, current, 8 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/obj_mgr.c:676: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( &tokdata->nv_token_data->next_token_object_name, next, 8 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/obj_mgr.c:1659: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( entry->name, obj->name, 8 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/obj_mgr.c:1974:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy( new_obj->name, shm_te->name, 8 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/obj_mgr.c:2021:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy( new_obj->name, shm_te->name, 8 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/object.c:328: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( buf + offset, &obj->class, sizeof(CK_OBJECT_CLASS_32) );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/object.c:331: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( buf + offset, &count, sizeof(CK_ULONG_32) );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/object.c:334: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( buf + offset, &obj->name,  sizeof(CK_BYTE) * 8 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/object.c:531: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( pTemplate[i].pValue, attr->pValue, attr->ulValueLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/object.c:649: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( &obj->class, data + offset, sizeof(CK_OBJECT_CLASS_32) );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/object.c:652: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( &count, data + offset, sizeof(CK_ULONG_32) );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/object.c:656: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( &obj->name, data + offset, 8 );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/object.c:671: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( *new_obj, obj, sizeof(OBJECT) );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/p11util.c:406:13:  [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(*dst + 2*i, "%02hhX", ptr[i]);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:487: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:494: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:502: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:528: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:535: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:543: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:569: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:576: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:584: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:610: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:617: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:625: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:651: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:658: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:666: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( (CK_BYTE *)op_data + offset,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:740:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
               memcpy( context, ptr2, ctx->context_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:751:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
               memcpy( mech_param, ptr3, ctx->mech.ulParameterLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:784:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
               memcpy( context, ptr2, ctx->context_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:795:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
               memcpy( mech_param, ptr3, ctx->mech.ulParameterLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:827:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
               memcpy( context, ptr2, ctx->context_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:838:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
               memcpy( mech_param, ptr3, ctx->mech.ulParameterLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:871: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( &sess->encr_ctx, ptr1, sizeof(ENCR_DECR_CONTEXT) );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:879: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( &sess->decr_ctx, ptr1, sizeof(ENCR_DECR_CONTEXT) );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:887: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( &sess->sign_ctx, ptr1, sizeof(SIGN_VERIFY_CONTEXT) );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.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( &sess->verify_ctx, ptr1, sizeof(SIGN_VERIFY_CONTEXT) );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sess_mgr.c:903: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( &sess->digest_ctx, ptr1, sizeof(DIGEST_CONTEXT) );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/shared_memory.c:47:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char _sys_error[1024];					\
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/shared_memory.c:49:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(_sys_error, "Unknown error");		\
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/shared_memory.c:74:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[SM_NAME_LEN + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/shared_memory.c:297:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[SM_NAME_LEN + 1] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sign_mgr.c:643: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( ptr, mech->pParameter, mech->ulParameterLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sw_crypt.c:52:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_SSL1, key_value, (size_t)8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sw_crypt.c:53:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_SSL2, key_value+8, (size_t)8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/sw_crypt.c:54:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_SSL3, key_value+16, (size_t)8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/template.c:72: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(attr->pValue, pTemplate[i].pValue,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/template.c:299: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(parselist[i].ptr, attr->pValue,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/template.c:528:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(new_attr, attr, len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/template.c:566: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(ptr, attr,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/template.c:587: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(ptr, attr_32, sizeof(CK_ATTRIBUTE_32));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/template.c:593: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( ptr, &Val_32, sizeof(CK_ULONG_32));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/template.c:597: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(ptr, attr_32, sizeof(CK_ATTRIBUTE_32));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/template.c:600: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(ptr, attr->pValue,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/template.c:679: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(a2, a1_64, len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/template.c:727: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(pb2, (CK_BYTE *)&attr_ulong,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/template.c:747: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(pb2, pb, a1->ulValueLen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/trace.c:137: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 tracefile[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/trace.c:183:13:  [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).
	trace.fd = open(tracefile, O_RDWR|O_APPEND|O_CREAT,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/trace.c:214:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:351:25:  [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).
			tokdata->spinxplfd = open(lockfile, O_RDONLY, mode);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:353:25:  [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).
			tokdata->spinxplfd = open(lockfile, O_CREAT | O_RDONLY, mode);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:446: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(slot_info->slotDescription, descr, strlen((char *)descr));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:447: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(slot_info->manufacturerID, manuf, strlen((char *)manuf));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:467: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(token_info->label, label, strlen((char *)label));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:469: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(token_info->manufacturerID, manuf, strlen((char *)manuf));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:470: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(token_info->model, model, strlen((char *)model));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:474: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(token_info->serialNumber, "123", 3);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:527: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(tokdata->nv_token_data->user_pin_sha, "00000000000000000000",
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:529: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(tokdata->nv_token_data->so_pin_sha, default_so_pin_sha, SHA1_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:532: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(tokdata->so_pin_md5, default_so_pin_md5, MD5_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:534: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(tokdata->nv_token_data->next_token_object_name, "00000000", 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:540: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(tokdata->nv_token_data->token_info.label, label, strlen((char *)label));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:647: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(attr->pValue, data, data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:751:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:940: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(pInfo, &nv_token_data->token_info, sizeof(CK_TOKEN_INFO_32));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/verify_mgr.c:632: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( ptr, mech->pParameter, mech->ulParameterLen );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:123: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 line[68];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:128:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(line + j*3, "%02hhx ", b);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:131:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(line + j*3, "   ");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:353:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf+offset, buf2, len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:364:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf+offset, buf2, len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:391: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(buf3+total_len, ber_AlgIdRSAEncryption, ber_AlgIdRSAEncryptionLen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.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(buf3+total_len, val->bv_val, val->bv_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:829: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   cipher[MAX_BLOBSIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:868: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(iv, "1234567812345678", AES_BLOCK_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:935: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[MAX_CSUMSIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:1130: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 csum[MAX_BLOBSIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:1136: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(iv, "1234567812345678", AES_BLOCK_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:1208: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(blob, data, data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:1548: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 csum[MAX_BLOBSIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:1699: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(&pPublicKeyTemplate_new[new_public_attr],
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:1745: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(dh_pgs.pg, prime_attr->pValue, p_len); /* copy CKA_PRIME value */
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:1749: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(dh_pgs.pg + p_len + (p_len - g_len), base_attr->pValue, g_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:1762: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(&(pPublicKeyTemplate_new[new_public_attr]),
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:1932: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(&pPublicKeyTemplate_new[new_public_attr],
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:1991: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(dsa_pqgs.pqg, prime_attr->pValue, p_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:1992: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(dsa_pqgs.pqg + p_len + (p_len - q_len),
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:1994: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(dsa_pqgs.pqg + 2*p_len + (p_len - g_len),
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:2011: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(&(pPublicKeyTemplate_new[new_public_attr]),
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:2135: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 spki[MAX_BLOBSIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:2219: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(publblob, spki, spki_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:2222: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(privblob, privkey_blob, privkey_blob_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:3193: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 csum[MAX_BLOBSIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:3616: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 filebuf[EP11_CFG_FILE_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:3617: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 line[1024];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:3622: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 fname[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:3641:12:  [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).
			ap_fp = fopen(fname, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:3650:12:  [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).
			ap_fp = fopen(fname, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:3659:12:  [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).
			ap_fp = fopen(fname, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:3665:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				ap_fp = fopen(fname, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:3673:12:  [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).
			ap_fp = fopen(fname, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:3702: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(filebuf+ap_file_size, p, len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/new_host.c:101: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 abs_tokdir_name[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/new_host.c:428: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(tokdata->nv_token_data->so_pin_sha, hash_sha, SHA1_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/new_host.c:430: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(tokdata->nv_token_data->token_info.label, pLabel, 32);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/new_host.c:496: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(tokdata->nv_token_data->user_pin_sha, hash_sha, SHA1_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/new_host.c:501: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(tokdata->user_pin_md5, hash_md5, MD5_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/new_host.c:591: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(tokdata->nv_token_data->user_pin_sha, new_hash_sha,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/new_host.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(tokdata->user_pin_md5, hash_md5,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/new_host.c:632: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(tokdata->nv_token_data->so_pin_sha, new_hash_sha, SHA1_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/new_host.c:633: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(tokdata->so_pin_md5, hash_md5, MD5_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/new_host.c:747: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(pInfo, &sess->session_info, sizeof(CK_SESSION_INFO));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/new_host.c:1392: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(phObject, sess->find_list + sess->find_idx,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:285: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(key_value, attr->pValue, 2*DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:286: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(key_value + (2*DES_KEY_SIZE), attr->pValue, DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:288: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(key_value, attr->pValue, 3*DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:346: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(key_value, attr->pValue, 2*DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:347: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(key_value + (2*DES_KEY_SIZE), attr->pValue, DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:349: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(key_value, attr->pValue, 3*DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:450: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(key_value, attr->pValue, 2*DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:451: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(key_value + (2*DES_KEY_SIZE), attr->pValue, DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:453: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(key_value, attr->pValue, 3*DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:586: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(out_data, sc->hash, sc->hash_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:673: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(sc->tail + sc->tail_len, in_data, in_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:684: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(sc->tail + sc->tail_len, in_data, fill);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:724: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(sc->tail, in_data, rest);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:813: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(out_data, sc->hash, sc->hash_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:874: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(ptr, modulus->pValue, modexpokey->key_length);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:883: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(ptr, exponent->pValue, exponent->ulValueLen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:948: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(ptr, prime1->pValue, prime1->ulValueLen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:957: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(ptr, prime2->pValue, prime2->ulValueLen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:965: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(ptr, exp1->pValue, exp1->ulValueLen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:973: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(ptr, exp2->pValue, exp2->ulValueLen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:981: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(ptr, coeff->pValue, coeff->ulValueLen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:1075: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(ptr, publ_exp->pValue, publ_exp->ulValueLen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:1526: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(out_data, cipher, modulus_bytes);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:1596: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( out_data, sig, modulus_bytes );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:1703: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(&clear[modulus_bytes - in_data_len], in_data, in_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:1707: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(out_data, cipher, modulus_bytes);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:1735: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(out_data, out, modulus_bytes);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:1764: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(&data[modulus_bytes - in_data_len], in_data, in_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:1768: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(out_data, sig, modulus_bytes);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:1852: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(out_data, out, modulus_bytes);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:1911: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(out_data, cipher, modulus_bytes);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:2406: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(context->data + context->len, in_data, in_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:2416: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(context->data + context->len, in_data, in_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:2448: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, context->data, context->len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:2449: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+context->len, in_data, out_len - context->len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:2463: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(context->data, in_data + (in_data_len - remain),
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:2472: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 (buffer, context->data, context->len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:2474: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 (buffer + context->len, in_data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:2477: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(context->data, in_data + out_len - context->len,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:2481: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(buffer, context->data, AES_BLOCK_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:2482: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(context->data, context->data + AES_BLOCK_SIZE,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:2484: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(context->data + context->len - AES_BLOCK_SIZE,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:2566: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(buffer, context->data, context->len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:2602: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(out_data + context->len, tag_data, tag_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c:2613: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(buffer, context->data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:150:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dest, orig, str_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:200: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 hex_seq[ICSF_SEQUENCE_LEN + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:207: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(data + offset, hex_seq, ICSF_SEQUENCE_LEN);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:221: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 hex_seq[ICSF_SEQUENCE_LEN + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:227: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(hex_seq, data + offset, ICSF_SEQUENCE_LEN);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:687: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(handle, out_handle->bv_val, len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:732: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:733: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 rule_array[2 * ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:734: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 attribute_list[68] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:801: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:802: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 rule_array[1 * ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:864: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(record->flags, data + offset, ICSF_FLAGS_LEN);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1104: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 handle[44];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1105: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 rule_array[ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1153: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1154: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 rule_array[2 * ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1229: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1230: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 rule_array[ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1315: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1316: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 rule_array[2 * ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1372: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1373: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 rule_array[1 * ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1403: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1481: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1482: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 rule_array[1 * ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1483: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 param[2];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1774: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(iv, mech->pParameter, expected_iv_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1793: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1794: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 rule_array[3 * ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1797: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 init_vector[32];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1898: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(cipher_text, bv_cipher_data.bv_val, bv_cipher_data.bv_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1912: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(chaining_data, bv_chaining_data.bv_val,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1936: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1937: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 rule_array[3 * ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:1940: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 init_vector[32];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2045: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(clear_text, bv_clear_data.bv_val, bv_clear_data.bv_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2059: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(chaining_data, bv_chaining_data.bv_val,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2125: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(attrs[i].pValue, attrbval.bv_val,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2173: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2246: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2301: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2302: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 rule_array[2 * ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2374: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(clear_text, bv_clear_text.bv_val, *p_clear_text_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2395: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2396: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 rule_array[2 * ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2479: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(cipher_text, bv_cipher_text.bv_val, *p_cipher_text_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2495: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2496: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 rule_array[2 * ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2592: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(chain_data, bvChain.bv_val, bvChain.bv_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2597: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(hmac, bvHmac.bv_val, bvHmac.bv_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2624: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2625: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 rule_array[2 * ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2719: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(chain_data, bvChain.bv_val, bvChain.bv_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2742: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2743: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 wrapping_handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2744: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 rule_array[2 * ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2846: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(wrapped_key, bv_wrapped_key.bv_val, *p_wrapped_key_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2868: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2869: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 rule_array[2 * ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2958: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:2959: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 rule_array[3 * ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:3032: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(chain_data, bvChain.bv_val, bvChain.bv_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:3036: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(sig, bvSig.bv_val, bvSig.bv_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:3061: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:3062: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 rule_array[1 * ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:3224: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:3225: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 rule_array[ICSF_RULE_ITEM_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:3386: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->pReturnedKeyMaterial->pIVClient,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:3395: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->pReturnedKeyMaterial->pIVServer,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:3413: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 handle[ICSF_HANDLE_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.h:114:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[ICSF_TOKEN_NAME_LEN + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.h:115: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 manufacturer[ICSF_MANUFACTURER_LEN + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.h:116: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 model[ICSF_MODEL_LEN + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.h:117: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 serial[ICSF_SERIAL_LEN + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.h:118: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 date[ICSF_DATE_LEN + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.h:119: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 time[ICSF_TIME_LEN + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.h:120: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 flags[ICSF_FLAGS_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.h:124: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 token_name[ICSF_TOKEN_NAME_LEN + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_config.h:23:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[ICSF_TOKEN_NAME_LEN + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_config.h:24: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 manuf[ICSF_MANUFACTURER_LEN + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_config.h:25: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 model[ICSF_MODEL_LEN + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_config.h:26: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 serial[ICSF_SERIAL_LEN + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_config.h:27: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 uri[PATH_MAX + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_config.h:28: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 dn[NAME_MAX + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_config.h:29: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 ca_file[PATH_MAX + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_config.h:30: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 cert_file[PATH_MAX + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_config.h:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_file[PATH_MAX + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:153: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 chain_data[ICSF_CHAINING_DATA_LEN];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:203: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 conf_name[PATH_MAX + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:204: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 uri[PATH_MAX + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:205: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 dn[NAME_MAX + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:206: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 ca_file[PATH_MAX + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:207: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 cert_file[PATH_MAX + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:208:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_file[PATH_MAX + 1];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:393: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(slot_data[slot_id], &data, sizeof(data));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:721: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 pk_dir_buf[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:754: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(tokdata->nv_token_data->user_pin_sha, hash_sha, SHA1_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:772: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 pk_dir_buf[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:821: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(tokdata->nv_token_data->user_pin_sha, new_hash_sha, SHA1_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:859: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(tokdata->nv_token_data->so_pin_sha, new_hash_sha, SHA1_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:1124: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 fname[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:1127: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 pk_dir_buf[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:1394: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 token_name[sizeof(tokdata->nv_token_data->token_info.label)];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:1565: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 token_name[sizeof(tokdata->nv_token_data->token_info.label)];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:1678: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 token_name[sizeof(tokdata->nv_token_data->token_info.label)];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:1919: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(encr_ctx->mech.pParameter, mech->pParameter,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:1977: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 chain_data[ICSF_CHAINING_DATA_LEN] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2072: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 chain_data[ICSF_CHAINING_DATA_LEN] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2123: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(chain_data, multi_part_ctx->chain_data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2157: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(buffer, multi_part_ctx->data, multi_part_ctx->used_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2158: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(buffer + multi_part_ctx->used_data_len, input_part,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2201: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(multi_part_ctx->chain_data, chain_data, chain_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2218: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(multi_part_ctx->data +
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2222: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(multi_part_ctx->data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2252: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 chain_data[ICSF_CHAINING_DATA_LEN] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2308: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(chain_data, multi_part_ctx->chain_data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2408: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(decr_ctx->mech.pParameter, mech->pParameter,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2466: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 chain_data[ICSF_CHAINING_DATA_LEN] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2560: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 chain_data[ICSF_CHAINING_DATA_LEN] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2617: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(chain_data, multi_part_ctx->chain_data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2663: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(buffer, multi_part_ctx->data, multi_part_ctx->used_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2664: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(buffer + multi_part_ctx->used_data_len, input_part,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2705: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(multi_part_ctx->chain_data, chain_data, chain_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2723: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(multi_part_ctx->data +
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2727: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(multi_part_ctx->data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2757: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 chain_data[ICSF_CHAINING_DATA_LEN] = { 0, };
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:2813: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(chain_data, multi_part_ctx->chain_data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:3018: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 token_name[sizeof(tokdata->nv_token_data->token_info.label)];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:3391: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(ctx->mech.pParameter, mech->pParameter,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:3612: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(chain_data, multi_part_ctx->chain_data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:3640: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(multi_part_ctx->chain_data, chain_data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:3662: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(multi_part_ctx->data + multi_part_ctx->used_data_len,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:3680: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, multi_part_ctx->data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:3682: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 + multi_part_ctx->used_data_len,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:3690: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(multi_part_ctx->data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:3709: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(multi_part_ctx->chain_data, chain_data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:3768: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(chain_data, multi_part_ctx->chain_data, chain_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:3824: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(buffer, multi_part_ctx->data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:3977: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(ctx->mech.pParameter, mech->pParameter,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:4164: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(chain_data, multi_part_ctx->chain_data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:4191: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(multi_part_ctx->chain_data, chain_data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:4212: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(multi_part_ctx->data + multi_part_ctx->used_data_len,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:4229: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, multi_part_ctx->data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:4231: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 + multi_part_ctx->used_data_len,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:4239: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(multi_part_ctx->data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:4258: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(multi_part_ctx->chain_data, chain_data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:4322: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(chain_data, multi_part_ctx->chain_data, chain_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:4365: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(buffer, multi_part_ctx->data,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:4592: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 token_name[sizeof(tokdata->nv_token_data->token_info.label)];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/new_host.c:99: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 abs_tokdir_name[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/new_host.c:637: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(pInfo, &sess->session_info, sizeof(CK_SESSION_INFO));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/new_host.c:1279: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(phObject, sess->find_list + sess->find_idx,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/pbkdf.c:39: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).
	ranfd = open("/dev/urandom",O_RDONLY);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/pbkdf.c:201:7:  [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).
	fp = fopen(fname, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/pbkdf.c:274:7:  [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).
	fp = fopen(RACFFILE, "r");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/pbkdf.c:322: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 hash[SHA2_HASH_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/pbkdf.c:323: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 hash_block[SHA2_HASH_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/pbkdf.c:372: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(hash, salt, SALTSIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/pbkdf.c:391: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(hash, result, SHA2_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/pbkdf.c:405: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(dkey, hash_block, r);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/pbkdf.c:407: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(dkey, hash_block, SHA2_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/pbkdf.c:447:7:  [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).
	fp = fopen(RACFFILE, "w");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/pbkdf.c:518:7:  [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).
	fp = fopen(fname, "w");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:139:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_val_SSL, attr->pValue, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:152: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(in_key_data, in_data+i, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:154: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(out_data+i, out_key_data, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:162: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(in_key_data, in_data+j, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:164: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(out_data+j, out_key_data, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:198:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_val_SSL, attr->pValue, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:201: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(&ivec, init_v, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:258: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(key_value, attr->pValue, 2*DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:259: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(key_value + (2*DES_KEY_SIZE), attr->pValue, DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:261: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(key_value, attr->pValue, 3*DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:265:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_SSL1, key_value, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:266:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_SSL2, key_value+8, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:267:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_SSL3, key_value+16, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:282: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(in_key_data, in_data+k, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:289: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(out_data+k, out_key_data, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:295: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(in_key_data, in_data+j, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:302:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(out_data+j, out_key_data, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:347: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(key_value, attr->pValue, 2*DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:348:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(key_value + (2*DES_KEY_SIZE), attr->pValue, DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:350:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(key_value, attr->pValue, 3*DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:354:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_SSL1, key_value, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:355:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_SSL2, key_value+8, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:356:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_SSL3, key_value+16, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:608:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static unsigned char  buffer[RNG_BUF_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:667: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(&aux, publ_exp->pValue, publ_exp->ulValueLen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:1036:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(out_data, cipher, modulus_bytes);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:1106: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(out_data, sig, modulus_bytes);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:1339: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( &clear[modulus_bytes - in_data_len], in_data, in_data_len );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:1343: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(out_data, cipher, modulus_bytes);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:1371: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(out_data, out, modulus_bytes);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:1402: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(&data[modulus_bytes - in_data_len], in_data, in_data_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:1406: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(out_data, sig, modulus_bytes);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:1487: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(out_data, out, modulus_bytes);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:1546: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(out_data, cipher, modulus_bytes);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:2333: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 mac[MAX_SHA_HASH_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:2400: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(signature, mac, *sig_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:2479: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 mac[MAX_SHA_HASH_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/soft_stdll/soft_specific.c:2537: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(signature, mac, *sig_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_openssl.c:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_openssl.c:129: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 loc[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_openssl.c:167:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char loc[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:166: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(output, random_bytes, bytes);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:177: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 path_buf[PATH_MAX], fname[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:251: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( &hObj, dummy_sess.find_list + dummy_sess.find_idx, ulObjCount * sizeof(CK_OBJECT_HANDLE) );
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:1233: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	n[256], p[256];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:1300: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	n[256], p[256];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:1365: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		n[256], p[256];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:1455: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		fname[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:1508:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen((char *)fname, "w")) == NULL) {
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:1535: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		fname[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:1575:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen((char *)fname, "r")) == NULL) {
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:1614: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(master_key_private, masterkey, MK_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:1701: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(current_user_pin_sha, hash_sha, SHA1_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:1776: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(current_so_pin_sha, hash_sha, SHA1_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2179: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(tokdata->nv_token_data->so_pin_sha, hash_sha, SHA1_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2181: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(tokdata->nv_token_data->token_info.label, pLabel, 32);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2256:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_val_SSL, attr->pValue, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2269: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(in_key_data, in_data+i, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2271: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(out_data+i, out_key_data, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2279: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(in_key_data, in_data+j, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2281: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(out_data+j, out_key_data, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2316:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_val_SSL, attr->pValue, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2319: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(&ivec, init_v, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2376: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(key_value, attr->pValue, 2*DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2377: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(key_value + (2*DES_KEY_SIZE), attr->pValue, DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2379: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(key_value, attr->pValue, 3*DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2383:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_SSL1, key_value, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2384:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_SSL2, key_value+8, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2385:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_SSL3, key_value+16, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2400: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(in_key_data, in_data+k, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2407: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(out_data+k, out_key_data, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2413: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(in_key_data, in_data+j, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2420: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(out_data+j, out_key_data, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2465: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(key_value, attr->pValue, 2*DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2466:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(key_value + (2*DES_KEY_SIZE), attr->pValue, DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2468:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(key_value, attr->pValue, 3*DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2472:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_SSL1, key_value, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2473:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_SSL2, key_value+8, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2474:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_SSL3, key_value+16, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2636: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(ret, modulus->pValue, modulus->ulValueLen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:2936: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(out_data, buf, buf_size);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:3038: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(out_data, sig, sig_len);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:3090: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(out_data, dataBlob, dataBlobSize);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:3528:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	lockfd = open(lockfile, O_CREAT|O_RDWR, mode);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_util.c:282: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(secret, passwd_ptr, srk->len);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:101: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 chaining_vector[18];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:102: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 rule_array[256];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:106: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(rule_array, "CBC     ", 8);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:126: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 des3_key[64];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:127: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 sw_des3_key[3 * DES_KEY_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:142: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(des3_key, masterkey, MASTER_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:148: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(sw_des3_key, masterkey, 3 * DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.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 tmp[PATH_MAX], fname[PATH_MAX], iname[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:175:8:  [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).
	fp1 = fopen((char *)iname, "r");
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:186: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).
		fp2 = fopen((char *)fname, "r");
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:244: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).
		fp2 = fopen((char *)fname, "w");
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:281: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 des3_key[3 * DES_KEY_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:282: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 hash_sha[SHA1_HASH_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:283: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 pin_md5_hash[MD5_HASH_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:293:7:  [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).
	fp = fopen((char *)mkfile, "r");
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:321: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(des3_key, pin_md5_hash, MD5_HASH_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:322: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(des3_key + MD5_HASH_SIZE, pin_md5_hash, DES_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:352: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(masterkey, clear, MASTER_KEY_SIZE);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:411: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(*pin, buff, nread);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:426: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 fname[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:427: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 pin_sha[SHA1_HASH_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:433:7:  [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).
	fp = fopen((char *)fname, "r");
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:584: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(new_key->opaque_attr, attrs[0].pValue, attrs[0].ulValueLen);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:592: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(new_key->label, attrs[2].pValue, attrs[2].ulValueLen);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:781:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key_identifier, (char *)key->opaque_attr, key->attr_len);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:824:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key_identifier, (char *)key->opaque_attr, key->attr_len);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:866:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key_identifier, (char *)key->opaque_attr, key->attr_len);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:1158: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 masterkey[MASTER_KEY_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:1159: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 fname[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:1324:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			slot_id = atoi(optarg);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:1353: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(data_store, TOK_DATASTORE, data_store_len);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:113: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(sopin, optarg, strlen(optarg)+1);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:125: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(pin, optarg, strlen(optarg)+1);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:137: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(newpin, optarg, strlen(optarg)+1);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:405:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buff[PIN_SIZE] = { 0 }, c = 0;
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsep11_migrate/ep11adm.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  module[ EP11_SERIALNR_CHARS + EP11_SERIALNR_CHARS ];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsep11_migrate/ep11adm.h:57: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   modNr[ EP11_SERIALNR_CHARS ];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsep11_migrate/ep11adm.h:58: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 modInst[ EP11_SERIALNR_CHARS ];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsep11_migrate/ep11adm.h:60: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    tctr[ EP11_ADMCTR_BYTES ];    /* transaction counter */
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsep11_migrate/pkcsep11_migrate.c:64: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 blob[blobsize];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsep11_migrate/pkcsep11_migrate.c:150: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(op_new.blob,lrb.payload,op_new.blob_size);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsep11_migrate/pkcsep11_migrate.c:227: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(dest, val, strlen(val) + 1);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsicsf/pkcsicsf.c:130: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(*pin, buff, nread);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsicsf/pkcsicsf.c:146: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 temp[LINESIZ];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsicsf/pkcsicsf.c:155:7:  [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).
	fp = fopen(OCK_CONFIG, "r");
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsicsf/pkcsicsf.c:211:8:  [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).
	tfp = fopen(configname, "w");
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsicsf/pkcsicsf.c:256: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 configname[LINESIZ];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsicsf/pkcsicsf.c:267:8:  [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).
		fp = fopen(OCK_CONFIG, "w");
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsicsf/pkcsicsf.c:269:8:  [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).
		fp = fopen(OCK_CONFIG, "a");
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsicsf/pkcsicsf.c:376: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(found, &tokens[i],
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsicsf/pkcsicsf.c:394: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 fname[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsicsf/pkcsicsf.c:435: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 masterkey[AES_KEY_SIZE_256];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsicsf/pkcsicsf.c:436: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 fname[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/daemon.c:51:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char                cwd[PATH_MAX+1];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/daemon.c:52:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char                arg[PATH_MAX+1];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/daemon.c:114: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, StartDir, strlen(StartDir) + 1 );
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/err.h:65:18:  [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 const char      Name[128];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/garbage_linux.c:372:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[800];  // about 40 fields, 64-bit decimal is about 20 chars
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/garbage_linux.c:373:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fbuf[800];  // about 40 fields, 64-bit decimal is about 20 chars
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/garbage_linux.c:384:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if( (fd = open(fbuf, O_RDONLY, 0)) == -1)
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/garbage_linux.h:18:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/log.c:293:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ( ( fd = fopen((pStuff->Filename), FileMode ) ) == NULL ) {
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/log.c:301:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/log.c:406:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char                    Buffer[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/log.c:473:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ( (fd = fopen ( pInfo->Filename, "a+" ) ) == NULL ) {
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/log.c:476:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[32]; /* Specs say 26-character array */
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/log.h:82:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char                      Descrip[255];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/mutex.c:34:12:  [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).
			xplfd = open(OCK_API_LOCK_FILE, O_RDONLY, mode);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/mutex.c:36:12:  [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).
			xplfd = open(OCK_API_LOCK_FILE, O_CREAT|O_RDONLY, mode);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c:38: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(ckinf->manufacturerID, MFG, strlen(MFG));
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c:39: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(ckinf->libraryDescription, LIB, strlen(LIB));
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c:52:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			lib_major = (CK_BYTE)atoi(tok_str);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c:55:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				lib_minor = (CK_BYTE)atoi(tok_str);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c:86: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(slot_info[id].dll_location,
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c:90:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(slot_info[id].confname, sinfo[id].confname,
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c:93: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(slot_info[id].tokname, sinfo[id].tokname,
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c:105: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(slot_info[id].pk_slot.slotDescription,
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c:109: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(slot_info[id].pk_slot.manufacturerID,
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c:113: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(&slot_info[id].pk_slot.hardwareVersion,
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c:117: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(&slot_info[id].pk_slot.firmwareVersion,
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/shmem.c:144:9:  [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(MAPFILENAME,O_RDWR,MODE);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/shmem.c:147:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
     fd = open(MAPFILENAME,O_RDWR|O_CREAT,MODE); // Create the file
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/shmem.c:220: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(MAPFILENAME,O_RDWR,MODE);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:31:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char md5_hash_entry[MD5_HASH_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char Buf[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:69:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(Buf, "%08X %08X %08X %08X", p[0+(i*4)], p[1+(i*4)], p[2+(i*4)], p[3+(i*4)]);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:206: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 tokendir[PATH_MAX];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:212: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 token_md5_hash[MD5_HASH_SIZE];
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:242: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(tokname_hash_table[psinfo->slot_number], token_md5_hash,
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:527:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		pidfile = fopen(PID_FILE_PATH,"w");
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/api/apiutil.c:589:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((dll_len = strlen(sinfp->dll_location))) {
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/api/socket_client.c:88:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read(socketfd, ((char*)daemon_socket_data)+bytes_received,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:536:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			line[strlen(line) - 1] = 0;
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:580:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat((char *)fname, (char *)obj->name, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:694:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat((char *)fname, (char *)obj->name, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:756:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tmp[strlen((char *)tmp) - 1] = 0;
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:837:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tmp[strlen((char *)tmp) - 1] = 0;
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1429:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat((char *)fname, (char *)obj->name, 8);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1523:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		line[strlen((char *)line) - 1] = 0;
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1623:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		pk_dir = (char *)malloc(strlen(pkdir) + 1024);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1624:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memset(pk_dir, 0, strlen(pkdir) + 1024);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1630:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		pk_dir = (char *)malloc(strlen(directory) + 25);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1631:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memset(pk_dir, 0, strlen(directory) + 25);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1633: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).
		memcpy(data_store, pk_dir, strlen(directory) + 25);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1636:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		pk_dir = (char *)malloc(strlen(PK_DIR) + 25);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1637:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memset(pk_dir, 0, strlen(PK_DIR) + 25);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/loadsave.c:1639: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).
		memcpy(data_store, pk_dir, strlen(PK_DIR) + 25);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/mech_rng.c:46:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rlen = read(ranfd, output+totallen,
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/new_host.c:159:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(sinfp->tokname)) {
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/shared_memory.c:105:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(file_path) + 1;
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/shared_memory.c:309:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(name, ctx->name, SM_NAME_LEN);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/shared_memory.c:379:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	name_len = strlen(ctx->name);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/trace.c:240:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (write(trace.fd, buf, strlen(buf) == -1))
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:303:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(tokname) > 0)
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:343:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(tokname) > 0)
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:446:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(slot_info->slotDescription, descr, strlen((char *)descr));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:447:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(slot_info->manufacturerID, manuf, strlen((char *)manuf));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:467:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(token_info->label, label, strlen((char *)label));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:469:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(token_info->manufacturerID, manuf, strlen((char *)manuf));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:470:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(token_info->model, model, strlen((char *)model));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:540:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(tokdata->nv_token_data->token_info.label, label, strlen((char *)label));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:926:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(pw->pw_name)) == 0)) ||
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/common/utility.c:928:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(epw->pw_name)) == 0)))
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:3635:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (conf_name && strlen(conf_name) > 0) {
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:3637:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			for (i=strlen(conf_name)-1; i >= 0 && conf_name[i] != '/'; i--);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:3656:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (conf_name && strlen(conf_name) > 0) {
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:3657:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(fname, conf_name, sizeof(fname));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/ep11_specific.c:3698:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(p);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/ep11_stdll/new_host.c:148:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(sinfp->tokname)) {
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:127:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (_arg && (strlen(_arg) > _length)) {				\
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:145: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).
	size_t str_len = strlen(orig);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:167:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dest, orig, i);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:296: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).
	cred.bv_len = strlen(password);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf.c:484:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					     strlen(expected_oid))) {
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:297:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(data->conf_name, conf_name, sizeof(data->conf_name) - 1);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/icsf_specific.c:603:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pin_len = strlen((pin = "87654321"));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/new_host.c:146:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(sinfp->tokname)) {
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/icsf_stdll/pbkdf.c:42:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rlen = read(ranfd, output+totallen, bytes-totallen);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:193:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
	strncat(path_buf, "/", 1);
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:194:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(path_buf, PK_LITE_OBJ_DIR, strlen(PK_LITE_OBJ_DIR));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:194: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).
	strncat(path_buf, PK_LITE_OBJ_DIR, strlen(PK_LITE_OBJ_DIR));
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:232:21:  [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).
	  {CKA_ID, key_id, strlen((char *)key_id)},
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:949:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((rc = build_attribute(CKA_ID, key_id, strlen((char *)key_id), &new_attr))) {
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:1037:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		{CKA_ID, key_id, strlen((char *)key_id)},
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c:1201:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((result = Tspi_Data_Bind(hEncData, hKey, strlen(rgbData), (BYTE *)rgbData))) {
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.h:36:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define TPMTOK_PRIVATE_ROOT_KEY_ID_SIZE	strlen(TPMTOK_PRIVATE_ROOT_KEY_ID)
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.h:37:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define TPMTOK_PRIVATE_LEAF_KEY_ID_SIZE	strlen(TPMTOK_PRIVATE_LEAF_KEY_ID)
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.h:38:40:  [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).
#define TPMTOK_PUBLIC_ROOT_KEY_ID_SIZE	strlen(TPMTOK_PUBLIC_ROOT_KEY_ID)
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.h:39:40:  [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).
#define TPMTOK_PUBLIC_LEAF_KEY_ID_SIZE	strlen(TPMTOK_PUBLIC_LEAF_KEY_ID)
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_util.c:232:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp(mode, tss_modes[i].str, strlen(mode)) == 0)
data/opencryptoki-3.8.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_util.c:264:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		srk->len = strlen(passwd_ptr);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:180:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tmp[strlen((char *)tmp) - 1] = 0;
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:315:25:  [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).
	ret = compute_md5(pin, strlen(pin), pin_md5_hash);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:1070:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    strlen(userpin));
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcscca/pkcscca.c:1346:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		data_store_len = strlen(TOK_DATASTORE);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:112:46:  [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).
                sopin = (CK_CHAR_PTR) malloc(strlen(optarg)+1);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:113:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                memcpy(sopin, optarg, strlen(optarg)+1);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:124:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                pin = (CK_CHAR_PTR) malloc(strlen(optarg)+1);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:125: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).
                memcpy(pin, optarg, strlen(optarg)+1);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:136:47:  [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).
                newpin = (CK_CHAR_PTR) malloc(strlen(optarg)+1);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:137:40:  [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).
                memcpy(newpin, optarg, strlen(optarg)+1);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:268:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                newpinlen = strlen((char *)newpin);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:274: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).
                newpin2len = strlen((char *)newpin2);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:275:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (newpinlen != newpin2len || memcmp(newpin, newpin2, strlen((char *)newpin)) != 0) {
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:311:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                newpinlen = strlen((char *)newpin);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:317: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).
                newpin2len = strlen((char *)newpin2);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:318:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (newpinlen != newpin2len || memcmp(newpin, newpin2, strlen((char *)newpin)) != 0) {
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:352:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                newpinlen = strlen((char *)newpin);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:358: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).
                newpin2len = strlen((char *)newpin2);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:359:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (newpinlen != newpin2len || memcmp(newpin, newpin2, strlen((char *)newpin)) != 0) {
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:380:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     memset(sopin, 0, strlen((char *)sopin));
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:385:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      memset(pin, 0, strlen((char *)pin));
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:390:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      memset(newpin, 0, strlen((char *)newpin));
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:395:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      memset(newpin2, 0, strlen((char *)newpin2));
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:413:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		buff[count] = getc(stdin);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:438:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char *)*pin, buff, (strlen((char *)buff) + 1));
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:438:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strncpy((char *)*pin, buff, (strlen((char *)buff) + 1));
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:867:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pinlen = strlen((char *)pin);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:885:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy((char *)label, (char *)enteredlabel, strlen((char *)enteredlabel));
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:885:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncpy((char *)label, (char *)enteredlabel, strlen((char *)enteredlabel));
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:911:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pinlen = strlen((char *)pin);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:912: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).
    sopinlen = strlen((char *)sopin);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:977:17:  [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).
    oldpinlen = strlen((char *)oldpin);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsconf/pkcsconf.c:978:17:  [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).
    newpinlen = strlen((char *)newpin);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsep11_migrate/pkcsep11_migrate.c:220:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((strlen(val) + 1) > PKCS11_MAX_PIN_LEN) {
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsep11_migrate/pkcsep11_migrate.c:227:21:  [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).
  memcpy(dest, val, strlen(val) + 1);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsep11_migrate/pkcsep11_migrate.c:410:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  user_pin_len = (CK_ULONG) strlen( (char *) user_pin);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsicsf/pkcsicsf.c:228:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (memcmp(mech, "simple", strlen("simple")) == 0) {
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsicsf/pkcsicsf.c:470:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(sopin), fname);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsicsf/pkcsicsf.c:592:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((flags & CFG_ADD) && !(memcmp(tokenname, "all", strlen(tokenname))))
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsicsf/pkcsicsf.c:645: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).
		if (memcmp(tokenname, "all", strlen(tokenname)) == 0) {
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsicsf/pkcsicsf.c:672: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).
			rc = secure_racf_passwd(racfpwd, strlen(racfpwd));
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/daemon.c:114:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  memcpy(Buffer, StartDir, strlen(StartDir) + 1 );
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/garbage_linux.c:387:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  num = read(fd, buf, 800);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/log.c:126:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  Buffer[strlen(Buffer)-1] = '\0';
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/log.c:275:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ( (pStuff->Filename != NULL) && (strlen(pStuff->Filename) > 0) ) {
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/log.c:430:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  while ( strlen(Buffer) && (Buffer[strlen(Buffer)-1] == '\n') ) {
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/log.c:430: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).
  while ( strlen(Buffer) && (Buffer[strlen(Buffer)-1] == '\n') ) {
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/log.c:431:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    Buffer[strlen(Buffer)-1] = '\0';
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c:38: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).
	memcpy(ckinf->manufacturerID, MFG, strlen(MFG));
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c:39:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(ckinf->libraryDescription, LIB, strlen(LIB));
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c:47:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	package_version_tmp = malloc(strlen(PACKAGE_VERSION)+1);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c:88:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       strlen(sinfo[id].dll_location));
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c:91:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       strlen(sinfo[id].confname));
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/pkcsslotd_util.c:94:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       strlen(sinfo[id].tokname));
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:215:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!tokdir || strlen(tokdir) == 0)
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:218:15:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	proc_umask = umask(0);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:230:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	rc = compute_md5(tokdir, strlen(tokdir), token_md5_hash);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:255:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			umask(proc_umask);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:264:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			umask(proc_umask);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:280:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			umask(proc_umask);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:289:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			umask(proc_umask);
data/opencryptoki-3.8.1+dfsg/usr/sbin/pkcsslotd/slotmgr.c:293:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(proc_umask);

ANALYSIS SUMMARY:

Hits = 1328
Lines analyzed = 105269 in approximately 2.22 seconds (47326 lines/second)
Physical Source Lines of Code (SLOC) = 77960
Hits@level = [0] 397 [1] 123 [2] 1096 [3]  13 [4]  84 [5]  12
Hits@level+ = [0+] 1725 [1+] 1328 [2+] 1205 [3+] 109 [4+]  96 [5+]  12
Hits/KSLOC@level+ = [0+] 22.1267 [1+] 17.0344 [2+] 15.4566 [3+] 1.39815 [4+] 1.2314 [5+] 0.153925
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.