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/p11-kit-0.23.21/p11-kit/mock-module-ep6.c
Examining data/p11-kit-0.23.21/p11-kit/messages.c
Examining data/p11-kit-0.23.21/p11-kit/test-uri.c
Examining data/p11-kit-0.23.21/p11-kit/test-modules.c
Examining data/p11-kit-0.23.21/p11-kit/virtual.h
Examining data/p11-kit-0.23.21/p11-kit/server.c
Examining data/p11-kit-0.23.21/p11-kit/proxy.h
Examining data/p11-kit-0.23.21/p11-kit/client-init.c
Examining data/p11-kit-0.23.21/p11-kit/p11-kit.c
Examining data/p11-kit-0.23.21/p11-kit/mock-module-ep3.c
Examining data/p11-kit-0.23.21/p11-kit/test-virtual.c
Examining data/p11-kit-0.23.21/p11-kit/deprecated.h
Examining data/p11-kit-0.23.21/p11-kit/mock-module-ep5.c
Examining data/p11-kit-0.23.21/p11-kit/test-proxy.c
Examining data/p11-kit-0.23.21/p11-kit/test-progname.c
Examining data/p11-kit-0.23.21/p11-kit/test-log.c
Examining data/p11-kit-0.23.21/p11-kit/test-deprecated.c
Examining data/p11-kit-0.23.21/p11-kit/private.h
Examining data/p11-kit-0.23.21/p11-kit/iter.c
Examining data/p11-kit-0.23.21/p11-kit/virtual.c
Examining data/p11-kit-0.23.21/p11-kit/test-filter.c
Examining data/p11-kit-0.23.21/p11-kit/test-init.c
Examining data/p11-kit-0.23.21/p11-kit/mock-module-ep.c
Examining data/p11-kit-0.23.21/p11-kit/remote.c
Examining data/p11-kit-0.23.21/p11-kit/uri.c
Examining data/p11-kit-0.23.21/p11-kit/remote.h
Examining data/p11-kit-0.23.21/p11-kit/mock-module-ep8.c
Examining data/p11-kit-0.23.21/p11-kit/print-messages.c
Examining data/p11-kit-0.23.21/p11-kit/test-transport.c
Examining data/p11-kit-0.23.21/p11-kit/mock-module-ep7.c
Examining data/p11-kit-0.23.21/p11-kit/test-rpc.c
Examining data/p11-kit-0.23.21/p11-kit/util.c
Examining data/p11-kit-0.23.21/p11-kit/lists.c
Examining data/p11-kit-0.23.21/p11-kit/p11-kit.h
Examining data/p11-kit-0.23.21/p11-kit/client.c
Examining data/p11-kit-0.23.21/p11-kit/test-server.c
Examining data/p11-kit-0.23.21/p11-kit/uri.gnu.c
Examining data/p11-kit-0.23.21/p11-kit/pkcs11-gnu.c
Examining data/p11-kit-0.23.21/p11-kit/proxy.c
Examining data/p11-kit-0.23.21/p11-kit/test-mock.c
Examining data/p11-kit-0.23.21/p11-kit/test-pin.c
Examining data/p11-kit-0.23.21/p11-kit/modules.c
Examining data/p11-kit-0.23.21/p11-kit/test-iter.c
Examining data/p11-kit-0.23.21/p11-kit/filter.c
Examining data/p11-kit-0.23.21/p11-kit/mock-module-ep4.c
Examining data/p11-kit-0.23.21/p11-kit/pkcs11.h
Examining data/p11-kit-0.23.21/p11-kit/rpc.h
Examining data/p11-kit-0.23.21/p11-kit/uri.h
Examining data/p11-kit-0.23.21/p11-kit/proxy-init.c
Examining data/p11-kit-0.23.21/p11-kit/docs.h
Examining data/p11-kit-0.23.21/p11-kit/mock-module-ep2.c
Examining data/p11-kit-0.23.21/p11-kit/virtual-fixed.h
Examining data/p11-kit-0.23.21/p11-kit/rpc-server.c
Examining data/p11-kit-0.23.21/p11-kit/iter.gnu.c
Examining data/p11-kit-0.23.21/p11-kit/client.h
Examining data/p11-kit-0.23.21/p11-kit/test-conf.c
Examining data/p11-kit-0.23.21/p11-kit/pin.gnu.c
Examining data/p11-kit-0.23.21/p11-kit/iter.h
Examining data/p11-kit-0.23.21/p11-kit/rpc-message.c
Examining data/p11-kit-0.23.21/p11-kit/conf.h
Examining data/p11-kit-0.23.21/p11-kit/modules.h
Examining data/p11-kit-0.23.21/p11-kit/rpc-transport.c
Examining data/p11-kit-0.23.21/p11-kit/log.h
Examining data/p11-kit-0.23.21/p11-kit/pin.c
Examining data/p11-kit-0.23.21/p11-kit/test-util.c
Examining data/p11-kit-0.23.21/p11-kit/rpc-message.h
Examining data/p11-kit-0.23.21/p11-kit/log.c
Examining data/p11-kit-0.23.21/p11-kit/pin.h
Examining data/p11-kit-0.23.21/p11-kit/filter.h
Examining data/p11-kit-0.23.21/p11-kit/test-managed.c
Examining data/p11-kit-0.23.21/p11-kit/rpc-client.c
Examining data/p11-kit-0.23.21/p11-kit/conf.c
Examining data/p11-kit-0.23.21/p11-kit/frob-setuid.c
Examining data/p11-kit-0.23.21/trust/test-bundle.c
Examining data/p11-kit-0.23.21/trust/session.h
Examining data/p11-kit-0.23.21/trust/frob-nss-trust.c
Examining data/p11-kit-0.23.21/trust/parser.h
Examining data/p11-kit-0.23.21/trust/utf8.h
Examining data/p11-kit-0.23.21/trust/base64.h
Examining data/p11-kit-0.23.21/trust/enumerate.c
Examining data/p11-kit-0.23.21/trust/pem.c
Examining data/p11-kit-0.23.21/trust/index.c
Examining data/p11-kit-0.23.21/trust/test-trust.h
Examining data/p11-kit-0.23.21/trust/test-digest.c
Examining data/p11-kit-0.23.21/trust/index.h
Examining data/p11-kit-0.23.21/trust/asn1.h
Examining data/p11-kit-0.23.21/trust/x509.c
Examining data/p11-kit-0.23.21/trust/digest.h
Examining data/p11-kit-0.23.21/trust/test-module.c
Examining data/p11-kit-0.23.21/trust/frob-token.c
Examining data/p11-kit-0.23.21/trust/save.h
Examining data/p11-kit-0.23.21/trust/pem.h
Examining data/p11-kit-0.23.21/trust/extract-pem.c
Examining data/p11-kit-0.23.21/trust/anchor.c
Examining data/p11-kit-0.23.21/trust/pkix.asn.h
Examining data/p11-kit-0.23.21/trust/asn1.c
Examining data/p11-kit-0.23.21/trust/module.h
Examining data/p11-kit-0.23.21/trust/test-utf8.c
Examining data/p11-kit-0.23.21/trust/persist.c
Examining data/p11-kit-0.23.21/trust/extract-openssl.c
Examining data/p11-kit-0.23.21/trust/list.c
Examining data/p11-kit-0.23.21/trust/frob-eku.c
Examining data/p11-kit-0.23.21/trust/frob-oid.c
Examining data/p11-kit-0.23.21/trust/frob-cert.c
Examining data/p11-kit-0.23.21/trust/persist.h
Examining data/p11-kit-0.23.21/trust/utf8.c
Examining data/p11-kit-0.23.21/trust/session.c
Examining data/p11-kit-0.23.21/trust/x509.h
Examining data/p11-kit-0.23.21/trust/dump.c
Examining data/p11-kit-0.23.21/trust/test-builder.c
Examining data/p11-kit-0.23.21/trust/test-jks.c
Examining data/p11-kit-0.23.21/trust/oid.h
Examining data/p11-kit-0.23.21/trust/test-save.c
Examining data/p11-kit-0.23.21/trust/token.c
Examining data/p11-kit-0.23.21/trust/test-index.c
Examining data/p11-kit-0.23.21/trust/extract-edk2.c
Examining data/p11-kit-0.23.21/trust/test-pem.c
Examining data/p11-kit-0.23.21/trust/test-cer.c
Examining data/p11-kit-0.23.21/trust/test-token.c
Examining data/p11-kit-0.23.21/trust/frob-pow.c
Examining data/p11-kit-0.23.21/trust/openssl.asn.h
Examining data/p11-kit-0.23.21/trust/test-parser.c
Examining data/p11-kit-0.23.21/trust/anchor.h
Examining data/p11-kit-0.23.21/trust/frob-bc.c
Examining data/p11-kit-0.23.21/trust/test-asn1.c
Examining data/p11-kit-0.23.21/trust/oid.c
Examining data/p11-kit-0.23.21/trust/frob-ext.c
Examining data/p11-kit-0.23.21/trust/extract-jks.c
Examining data/p11-kit-0.23.21/trust/extract.h
Examining data/p11-kit-0.23.21/trust/basic.asn.h
Examining data/p11-kit-0.23.21/trust/parser.c
Examining data/p11-kit-0.23.21/trust/test-enumerate.c
Examining data/p11-kit-0.23.21/trust/test-x509.c
Examining data/p11-kit-0.23.21/trust/test-oid.c
Examining data/p11-kit-0.23.21/trust/trust.c
Examining data/p11-kit-0.23.21/trust/frob-ku.c
Examining data/p11-kit-0.23.21/trust/test-edk2.c
Examining data/p11-kit-0.23.21/trust/extract-cer.c
Examining data/p11-kit-0.23.21/trust/module-init.c
Examining data/p11-kit-0.23.21/trust/builder.h
Examining data/p11-kit-0.23.21/trust/digest.c
Examining data/p11-kit-0.23.21/trust/token.h
Examining data/p11-kit-0.23.21/trust/test-base64.c
Examining data/p11-kit-0.23.21/trust/save.c
Examining data/p11-kit-0.23.21/trust/test-openssl.c
Examining data/p11-kit-0.23.21/trust/types.h
Examining data/p11-kit-0.23.21/trust/module.c
Examining data/p11-kit-0.23.21/trust/list.h
Examining data/p11-kit-0.23.21/trust/base64.c
Examining data/p11-kit-0.23.21/trust/test-persist.c
Examining data/p11-kit-0.23.21/trust/dump.h
Examining data/p11-kit-0.23.21/trust/builder.c
Examining data/p11-kit-0.23.21/trust/enumerate.h
Examining data/p11-kit-0.23.21/trust/extract.c
Examining data/p11-kit-0.23.21/trust/test-trust.c
Examining data/p11-kit-0.23.21/common/test-attrs.c
Examining data/p11-kit-0.23.21/common/dict.c
Examining data/p11-kit-0.23.21/common/test-buffer.c
Examining data/p11-kit-0.23.21/common/buffer.h
Examining data/p11-kit-0.23.21/common/test-constants.c
Examining data/p11-kit-0.23.21/common/test-lexer.c
Examining data/p11-kit-0.23.21/common/array.h
Examining data/p11-kit-0.23.21/common/test-message.c
Examining data/p11-kit-0.23.21/common/tool.h
Examining data/p11-kit-0.23.21/common/runtime.h
Examining data/p11-kit-0.23.21/common/constants.c
Examining data/p11-kit-0.23.21/common/vsock.c
Examining data/p11-kit-0.23.21/common/test-url.c
Examining data/p11-kit-0.23.21/common/attrs.c
Examining data/p11-kit-0.23.21/common/hash.c
Examining data/p11-kit-0.23.21/common/mock.c
Examining data/p11-kit-0.23.21/common/pkcs11x.h
Examining data/p11-kit-0.23.21/common/argv.c
Examining data/p11-kit-0.23.21/common/test-argv.c
Examining data/p11-kit-0.23.21/common/test-runtime.c
Examining data/p11-kit-0.23.21/common/test-dict.c
Examining data/p11-kit-0.23.21/common/debug.h
Examining data/p11-kit-0.23.21/common/debug.c
Examining data/p11-kit-0.23.21/common/test.c
Examining data/p11-kit-0.23.21/common/url.h
Examining data/p11-kit-0.23.21/common/library.h
Examining data/p11-kit-0.23.21/common/array.c
Examining data/p11-kit-0.23.21/common/runtime.c
Examining data/p11-kit-0.23.21/common/argv.h
Examining data/p11-kit-0.23.21/common/test-hash.c
Examining data/p11-kit-0.23.21/common/attrs.h
Examining data/p11-kit-0.23.21/common/lexer.h
Examining data/p11-kit-0.23.21/common/pkcs11.h
Examining data/p11-kit-0.23.21/common/message.c
Examining data/p11-kit-0.23.21/common/mock.h
Examining data/p11-kit-0.23.21/common/buffer.c
Examining data/p11-kit-0.23.21/common/path.h
Examining data/p11-kit-0.23.21/common/lexer.c
Examining data/p11-kit-0.23.21/common/frob-getenv.c
Examining data/p11-kit-0.23.21/common/frob-getprogname.c
Examining data/p11-kit-0.23.21/common/test-path.c
Examining data/p11-kit-0.23.21/common/test-tests.c
Examining data/p11-kit-0.23.21/common/tool.c
Examining data/p11-kit-0.23.21/common/url.c
Examining data/p11-kit-0.23.21/common/test-array.c
Examining data/p11-kit-0.23.21/common/unix-peer.h
Examining data/p11-kit-0.23.21/common/pkcs11i.h
Examining data/p11-kit-0.23.21/common/hash.h
Examining data/p11-kit-0.23.21/common/message.h
Examining data/p11-kit-0.23.21/common/test.h
Examining data/p11-kit-0.23.21/common/library.c
Examining data/p11-kit-0.23.21/common/init.h
Examining data/p11-kit-0.23.21/common/constants.h
Examining data/p11-kit-0.23.21/common/dict.h
Examining data/p11-kit-0.23.21/common/vsock.h
Examining data/p11-kit-0.23.21/common/compat.h
Examining data/p11-kit-0.23.21/common/path.c
Examining data/p11-kit-0.23.21/common/frob-getauxval.c
Examining data/p11-kit-0.23.21/common/compat.c
Examining data/p11-kit-0.23.21/common/unix-peer.c
Examining data/p11-kit-0.23.21/common/test-compat.c

FINAL RESULTS:

data/p11-kit-0.23.21/p11-kit/server.c:331: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 (socket_file, uid, gid);
data/p11-kit-0.23.21/trust/save.c:254:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	} else if (chmod (file->temp, S_IRUSR | S_IRGRP | S_IROTH) < 0) {
data/p11-kit-0.23.21/trust/save.c:358:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			    chmod (path, S_IRWXU | sb.st_mode) < 0) {
data/p11-kit-0.23.21/trust/save.c:607:14:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		if (ret && chmod (dir->path, S_IRUSR | S_IXUSR | S_IRGRP |
data/p11-kit-0.23.21/trust/test-module.c:124:3:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		chmod (test.unreadable, 0644);
data/p11-kit-0.23.21/trust/test-module.c:204:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod (test.unreadable, 0);
data/p11-kit-0.23.21/trust/test-token.c:101:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod (test.unwritable, 0);
data/p11-kit-0.23.21/trust/test-token.c:122:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod (test.unwritable, 0644);
data/p11-kit-0.23.21/trust/test-trust.c:261:6:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	if (readlink (filename, buf, sizeof (buf)) < 0)
data/p11-kit-0.23.21/trust/test-trust.c:326: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 (directory, S_IRWXU) < 0)
data/p11-kit-0.23.21/common/compat.c:619:9:  [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.
		ret = vsnprintf (buf, length, fmt, aq);
data/p11-kit-0.23.21/common/debug.c:143:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf (stderr, format, args);
data/p11-kit-0.23.21/common/debug.c:160:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf (stderr, format, args);
data/p11-kit-0.23.21/common/debug.c:182:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf (stderr, format, va);
data/p11-kit-0.23.21/common/frob-getprogname.c:76:4:  [4] (shell) execv:
  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.
			execv (BUILDDIR "/common/frob-getprogname" EXEEXT, args);
data/p11-kit-0.23.21/common/message.c:113:11:  [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.
	length = vsnprintf (buffer, P11_MESSAGE_MAX - 1, msg, va);
data/p11-kit-0.23.21/common/message.c:142:11:  [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.
	length = vsnprintf (buffer, P11_MESSAGE_MAX - 1, msg, va);
data/p11-kit-0.23.21/common/test-compat.c:137:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access ("/proc/self/exe", F_OK) < 0)
data/p11-kit-0.23.21/common/test.c:259:2:  [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 (item.x.test.name, sizeof (item.x.test.name), name, va);
data/p11-kit-0.23.21/common/test.c:279:2:  [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 (item.x.test.name, sizeof (item.x.test.name), name, va);
data/p11-kit-0.23.21/common/test.c:635:3:  [4] (shell) execv:
  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.
		execv (argv[0], (char **)argv);
data/p11-kit-0.23.21/p11-kit/p11-kit.c:84:2:  [4] (shell) execv:
  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.
	execv (args[0], args);
data/p11-kit-0.23.21/p11-kit/p11-kit.c:126:2:  [4] (shell) execv:
  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.
	execv (path, argv);
data/p11-kit-0.23.21/p11-kit/rpc-transport.c:814:3:  [4] (shell) execvp:
  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.
		execvp (rex->argv->elem[0], (char **)rex->argv->elem);
data/p11-kit-0.23.21/p11-kit/server.c:285:7:  [4] (shell) execv:
  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.
	rc = execv (path, argv);
data/p11-kit-0.23.21/p11-kit/test-server.c:132:7:  [4] (shell) execv:
  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 (execv (BUILDDIR "/p11-kit/p11-kit-server-testable", (char **)args->elem) == -1)
data/p11-kit-0.23.21/p11-kit/test-transport.c:198:7:  [4] (shell) execv:
  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.
	rc = execv (BUILDDIR "/p11-kit/p11-kit-remote", argv);
data/p11-kit-0.23.21/trust/extract.c:313:2:  [4] (shell) execv:
  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.
	execv (path, argv);
data/p11-kit-0.23.21/trust/extract.c:320:3:  [4] (shell) execv:
  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.
		execv (path, argv);
data/p11-kit-0.23.21/trust/token.c:446:42:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		*is_writable = S_ISDIR (sb.st_mode) && access (path, W_OK) == 0;
data/p11-kit-0.23.21/common/compat.c:130:10:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
			buf = realpath ("/proc/self/exe", NULL);
data/p11-kit-0.23.21/common/compat.c:882: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.
	return getenv (name);
data/p11-kit-0.23.21/common/compat.h:132:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	(InitializeCriticalSection (&m))
data/p11-kit-0.23.21/common/compat.h:134:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	(InitializeCriticalSection (m))
data/p11-kit-0.23.21/common/compat.h:136:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	(EnterCriticalSection (m))
data/p11-kit-0.23.21/common/compat.h:155:3:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
	(LoadLibrary (f))
data/p11-kit-0.23.21/common/debug.c:92: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.
	env = getenv ("P11_KIT_DEBUG");
data/p11-kit-0.23.21/common/frob-getenv.c:50:83:  [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.
fprintf (stderr, "calling secure_getenv(%s) getenv(%s) = %s\n", argv[1], argv[1], getenv(argv[1]));
data/p11-kit-0.23.21/common/path.c:125: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.
		env = getenv ("XDG_CONFIG_HOME");
data/p11-kit-0.23.21/common/path.c:130: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.
	env = getenv ("HOME");
data/p11-kit-0.23.21/common/test-compat.c:140:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	path = realpath ("/proc/self/exe", NULL);
data/p11-kit-0.23.21/common/test-compat.c:167:7:  [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 (!getenv ("FAKED_MODE") && strncmp (BUILDDIR, "/tmp/", 5) != 0) {
data/p11-kit-0.23.21/common/test-tests.c:50:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv ("TEST_FAIL")) {
data/p11-kit-0.23.21/common/test-tests.c:61:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv ("TEST_FAIL")) {
data/p11-kit-0.23.21/common/test-tests.c:76:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv ("TEST_FAIL")) {
data/p11-kit-0.23.21/common/test-tests.c:90:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv ("TEST_FAIL")) {
data/p11-kit-0.23.21/common/test.c:330: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 ((opt = getopt (argc, argv, "")) != -1) {
data/p11-kit-0.23.21/common/tool.c:159:8:  [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.
	ret = getopt_long (argc, argv, buf.data, longopts, NULL);
data/p11-kit-0.23.21/p11-kit/test-conf.c:459:7:  [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 (!getenv ("FAKED_MODE") && strncmp (BUILDDIR, "/tmp/", 5) != 0) {
data/p11-kit-0.23.21/common/attrs.c:151:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (attr, add, sizeof (CK_ATTRIBUTE));
data/p11-kit-0.23.21/common/attrs.c:439: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 (attrs + out, attrs + in, sizeof (CK_ATTRIBUTE));
data/p11-kit-0.23.21/common/buffer.c:197:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (at, data, length);
data/p11-kit-0.23.21/common/compat.c:157:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 char prognamebuf[256];
data/p11-kit-0.23.21/common/compat.c:238: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).
	map->fd = open (path, O_RDONLY | O_CLOEXEC);
data/p11-kit-0.23.21/common/compat.c:475: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 (dup, data, length);
data/p11-kit-0.23.21/common/compat.c:572: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 (at, arg, length);
data/p11-kit-0.23.21/common/compat.c:675:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (result, tg, sizeof (struct tm));
data/p11-kit-0.23.21/common/compat.c:703: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 carrybuf[maxpathlen];
data/p11-kit-0.23.21/common/compat.c:732:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (carrybuf, start, suffp - start);
data/p11-kit-0.23.21/common/compat.c:756:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((*doopen = open (path, O_BINARY | O_CREAT | O_EXCL | O_RDWR | O_CLOEXEC, 0600)) >= 0)
data/p11-kit-0.23.21/common/compat.c:809:1:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
mkstemp (char *template)
data/p11-kit-0.23.21/common/compat.h:89:14:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
int          mkstemp     (char *template);
data/p11-kit-0.23.21/common/constants.h:46:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *nicks[4];
data/p11-kit-0.23.21/common/debug.c:155: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 strerr[P11_DEBUG_MESSAGE_MAX];
data/p11-kit-0.23.21/common/frob-getauxval.c:51:10:  [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).
		type = atoi (argv[1]);
data/p11-kit-0.23.21/common/frob-getenv.c:57:8:  [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).
	ret = atoi (val);
data/p11-kit-0.23.21/common/frob-getprogname.c:79: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 buffer[1024];
data/p11-kit-0.23.21/common/hash.c:104: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 (&k1, data, 4);
data/p11-kit-0.23.21/common/hash.c:110: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 (overflow, data, len);
data/p11-kit-0.23.21/common/hash.c:124: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 (overflow + num, data, part);
data/p11-kit-0.23.21/common/hash.c:135: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 (&k1, overflow, 4);
data/p11-kit-0.23.21/common/hash.c:173:2:  [2] (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, &h1, sizeof (h1));
data/p11-kit-0.23.21/common/library.c:58: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 message[P11_MESSAGE_MAX];
data/p11-kit-0.23.21/common/message.c:70: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.
	static char message[P11_MESSAGE_MAX] = { 0, };
data/p11-kit-0.23.21/common/message.c:97: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, msg, length);
data/p11-kit-0.23.21/common/message.c:107: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 buffer[P11_MESSAGE_MAX];
data/p11-kit-0.23.21/common/message.c:108:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char strerr[P11_MESSAGE_MAX];
data/p11-kit-0.23.21/common/message.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 buffer[P11_MESSAGE_MAX];
data/p11-kit-0.23.21/common/mock.c:498:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (info, &MOCK_INFO, sizeof (*info));
data/p11-kit-0.23.21/common/mock.c:596: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 (info, &MOCK_INFO_ONE, sizeof (*info));
data/p11-kit-0.23.21/common/mock.c:599: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 (info, &MOCK_INFO_TWO, sizeof (*info));
data/p11-kit-0.23.21/common/mock.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 (info, &MOCK_TOKEN_ONE, sizeof (*info));
data/p11-kit-0.23.21/common/mock.c:795: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 (info, &MOCK_MECH_CAPITALIZE, sizeof (*info));
data/p11-kit-0.23.21/common/mock.c:798: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 (info, &MOCK_MECH_PREFIX, sizeof (*info));
data/p11-kit-0.23.21/common/mock.c:936:2:  [2] (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->random_seed, "random", 6);
data/p11-kit-0.23.21/common/mock.c:1083:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (info, &sess->info, sizeof (*info));
data/p11-kit-0.23.21/common/mock.c:1216:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (operation_state, &sess, sizeof (sess));
data/p11-kit-0.23.21/common/mock.c:1615: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 (result->pValue, attr->pValue, attr->ulValueLen);
data/p11-kit-0.23.21/common/mock.c:2465: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 buffer[32];
data/p11-kit-0.23.21/common/mock.c:2491:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (digest, &buffer, len);
data/p11-kit-0.23.21/common/mock.c:2581:2:  [2] (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_prefix, param, n_param);
data/p11-kit-0.23.21/common/mock.c:2582:2:  [2] (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_prefix + n_param, value->pValue, value->ulValueLen);
data/p11-kit-0.23.21/common/mock.c:2706: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 buffer[32];
data/p11-kit-0.23.21/common/mock.c:2735:2:  [2] (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, sess->sign_prefix, sess->n_sign_prefix);
data/p11-kit-0.23.21/common/mock.c:2736:2:  [2] (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 + sess->n_sign_prefix, buffer, len);
data/p11-kit-0.23.21/common/mock.c:2828:2:  [2] (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, sess->sign_prefix, sess->n_sign_prefix);
data/p11-kit-0.23.21/common/mock.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 (signature + sess->n_sign_prefix, data, data_len);
data/p11-kit-0.23.21/common/mock.c:2970: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 buffer[32];
data/p11-kit-0.23.21/common/mock.c:3085:2:  [2] (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, signature + sess->n_sign_prefix, length);
data/p11-kit-0.23.21/common/mock.c:3486:2:  [2] (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, attr->pValue, attr->ulValueLen);
data/p11-kit-0.23.21/common/mock.c:3696:2:  [2] (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->random_seed, seed, seed_len);
data/p11-kit-0.23.21/common/mock.c:3734: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 (random_data, sess->random_seed, block);
data/p11-kit-0.23.21/common/path.c:136: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[1024];
data/p11-kit-0.23.21/common/path.c:157: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 directory[MAX_PATH + 1];
data/p11-kit-0.23.21/common/path.c:250: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 (built + at, path, num);
data/p11-kit-0.23.21/common/pkcs11.h:226: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 manufacturer_id[32];
data/p11-kit-0.23.21/common/pkcs11.h:228: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 library_description[32];
data/p11-kit-0.23.21/common/pkcs11.h:243: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 slot_description[64];
data/p11-kit-0.23.21/common/pkcs11.h:244: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 manufacturer_id[32];
data/p11-kit-0.23.21/common/pkcs11.h:259: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 label[32];
data/p11-kit-0.23.21/common/pkcs11.h:260: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 manufacturer_id[32];
data/p11-kit-0.23.21/common/pkcs11.h:261: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 model[16];
data/p11-kit-0.23.21/common/pkcs11.h:262: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 serial_number[16];
data/p11-kit-0.23.21/common/pkcs11.h:276: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 utc_time[16];
data/p11-kit-0.23.21/common/pkcs11.h:539: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 year[4];
data/p11-kit-0.23.21/common/pkcs11.h:540: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 month[2];
data/p11-kit-0.23.21/common/pkcs11.h:541: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 day[2];
data/p11-kit-0.23.21/common/pkcs11.h:979: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 cb[16];
data/p11-kit-0.23.21/common/pkcs11.h:1021: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 iv[8];
data/p11-kit-0.23.21/common/pkcs11.h:1027: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 iv[16];
data/p11-kit-0.23.21/common/runtime.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[1024];
data/p11-kit-0.23.21/common/test-compat.c:119:11:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	int fd = mkstemp (file);
data/p11-kit-0.23.21/common/test.c:71: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[1024];
data/p11-kit-0.23.21/common/test.c:239:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (item, it, sizeof (test_item));
data/p11-kit-0.23.21/common/test.c:427: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 directory[MAX_PATH + 1];
data/p11-kit-0.23.21/common/test.c:480:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen (name, "wb");
data/p11-kit-0.23.21/common/test.c:607:7:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	fd = mkstemp (path);
data/p11-kit-0.23.21/common/url.c:113: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[3];
data/p11-kit-0.23.21/common/vsock.c:111: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).
	int fd = open ("/dev/vsock", O_RDONLY);
data/p11-kit-0.23.21/p11-kit/conf.c:336:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (name, fname, name_len);
data/p11-kit-0.23.21/p11-kit/filter.c:380:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&functions, &p11_virtual_stack, sizeof (CK_X_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/frob-setuid.c:89:8:  [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).
	ret = atoi (field ? field : "0");
data/p11-kit-0.23.21/p11-kit/iter.c:218: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 (&iter->match_module, minfo, sizeof (CK_INFO));
data/p11-kit-0.23.21/p11-kit/iter.c:222: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 (&iter->match_slot, sinfo, sizeof (CK_SLOT_INFO));
data/p11-kit-0.23.21/p11-kit/iter.c:226: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 (&iter->match_token, tinfo, sizeof (CK_TOKEN_INFO));
data/p11-kit-0.23.21/p11-kit/log.c:77: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:93: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:109: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:125: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:143: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[128];
data/p11-kit-0.23.21/p11-kit/log.c:175:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(p + 2, "%02X", ch);
data/p11-kit-0.23.21/p11-kit/log.c:182:3:  [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 (e, "...");
data/p11-kit-0.23.21/p11-kit/log.c:194: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:219: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:262: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:307: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:339: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:375:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[32];
data/p11-kit-0.23.21/p11-kit/log.c:416: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:461: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:501: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:538: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:573: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:630: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:649: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:742: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:766: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:808: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:1097: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[32];
data/p11-kit-0.23.21/p11-kit/log.c:1120: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[32];
data/p11-kit-0.23.21/p11-kit/modules.c:1094:7:  [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).
	o1 = atoi (v1 ? v1 : "0");
data/p11-kit-0.23.21/p11-kit/modules.c:1095:7:  [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).
	o2 = atoi (v2 ? v2 : "0");
data/p11-kit-0.23.21/p11-kit/p11-kit.c:81:2:  [2] (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 + 1, argv, sizeof (char *) * argc);
data/p11-kit-0.23.21/p11-kit/pin.c:469:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open (pin_source, O_BINARY | O_RDONLY | O_CLOEXEC);
data/p11-kit-0.23.21/p11-kit/pin.c:552:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (copy, value, length);
data/p11-kit-0.23.21/p11-kit/proxy.c:125: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 (mapping, &px->mappings[i], sizeof(Mapping));
data/p11-kit-0.23.21/p11-kit/proxy.c:179: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 (session, sess, sizeof (Session));
data/p11-kit-0.23.21/p11-kit/proxy.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 ((char*)info->manufacturerID, MANUFACTURER_ID, 32);
data/p11-kit-0.23.21/p11-kit/proxy.c:465:2:  [2] (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*)info->libraryDescription, LIBRARY_DESCRIPTION, 32);
data/p11-kit-0.23.21/p11-kit/rpc-client.c:332:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (arr, val, vlen);
data/p11-kit-0.23.21/p11-kit/rpc-client.c:844:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (info, &stand_in_info, sizeof (CK_INFO));
data/p11-kit-0.23.21/p11-kit/rpc-message.c:468:2:  [2] (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, data, length);
data/p11-kit-0.23.21/p11-kit/rpc-message.c:893: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 (&byte_value, value, value_length);
data/p11-kit-0.23.21/p11-kit/rpc-message.c:911: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 (&ulong_value, value, value_length);
data/p11-kit-0.23.21/p11-kit/rpc-message.c:983: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 array[8];
data/p11-kit-0.23.21/p11-kit/rpc-message.c:993: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 (&date_value, value, value_length);
data/p11-kit-0.23.21/p11-kit/rpc-message.c:994: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 (array, date_value.year, 4);
data/p11-kit-0.23.21/p11-kit/rpc-message.c:995: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 (array + 4, date_value.month, 2);
data/p11-kit-0.23.21/p11-kit/rpc-message.c:996: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 (array + 6, date_value.day, 2);
data/p11-kit-0.23.21/p11-kit/rpc-message.c:1067: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 (value, &byte_value, sizeof (CK_BYTE));
data/p11-kit-0.23.21/p11-kit/rpc-message.c:1089: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 (value, &ulong_value, sizeof (CK_ULONG));
data/p11-kit-0.23.21/p11-kit/rpc-message.c:1178: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 (date_value.year, array, 4);
data/p11-kit-0.23.21/p11-kit/rpc-message.c:1179: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 (date_value.month, array + 4, 2);
data/p11-kit-0.23.21/p11-kit/rpc-message.c:1180: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 (date_value.day, array + 6, 2);
data/p11-kit-0.23.21/p11-kit/rpc-message.c:1181: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 (value, &date_value, sizeof (CK_DATE));
data/p11-kit-0.23.21/p11-kit/rpc-message.c:1203: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 (value, val, len);
data/p11-kit-0.23.21/p11-kit/rpc-message.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 (&params, value, value_length);
data/p11-kit-0.23.21/p11-kit/rpc-message.c:1311: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 (value, &params, sizeof (CK_RSA_PKCS_PSS_PARAMS));
data/p11-kit-0.23.21/p11-kit/rpc-message.c:1333:2:  [2] (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, value, value_length);
data/p11-kit-0.23.21/p11-kit/rpc-message.c:1382: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 (value, &params, sizeof (CK_RSA_PKCS_OAEP_PARAMS));
data/p11-kit-0.23.21/p11-kit/rpc-server.c:397:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (*val, data, n_data);
data/p11-kit-0.23.21/p11-kit/rpc-transport.c:254: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 header[12];
data/p11-kit-0.23.21/p11-kit/rpc-transport.c:340:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char header[12] = { 0, };
data/p11-kit-0.23.21/p11-kit/rpc-transport.c:396: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 header[12];
data/p11-kit-0.23.21/p11-kit/server.c:704:16:  [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).
			ts.tv_sec = atoi (optarg);
data/p11-kit-0.23.21/p11-kit/test-deprecated.c:274:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&module, &mock_module_no_slots, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-deprecated.c:303:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&module, &mock_module_no_slots, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-deprecated.c:375:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&module, &mock_module_no_slots, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-deprecated.c:454:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&module, &mock_module_no_slots, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-filter.c:220:2:  [2] (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_one, &TOKEN_ONE, sizeof (CK_TOKEN_INFO));
data/p11-kit-0.23.21/p11-kit/test-init.c:98:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&module, &mock_module_no_slots, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-init.c:143:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&module, &mock_module_no_slots, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-init.c:232:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&module, &mock_module_no_slots, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-init.c:324:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&module, &mock_module_no_slots, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-init.c:371:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&failer, &mock_module, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-iter.c:1104:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&module, &mock_module, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-iter.c:1137:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&module, &mock_module, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-iter.c:1170:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&module, &mock_module, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-iter.c:1203:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&module, &mock_module, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-iter.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 (&module, &mock_module, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-iter.c:1263: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 label[128];
data/p11-kit-0.23.21/p11-kit/test-iter.c:1398:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&module, &mock_module, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-iter.c:1431:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&module, &mock_module, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-iter.c:1465:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&module, &mock_module, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-managed.c:152:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&base, &mock_module, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-mock.c:511: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 label[32];
data/p11-kit-0.23.21/p11-kit/test-mock.c:570: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 label[32];
data/p11-kit-0.23.21/p11-kit/test-mock.c:576:2:  [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 (label, "Blahooo");
data/p11-kit-0.23.21/p11-kit/test-mock.c:612: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 label[32];
data/p11-kit-0.23.21/p11-kit/test-mock.c:618:2:  [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 (label, "Blahooo");
data/p11-kit-0.23.21/p11-kit/test-mock.c:655: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 label[32];
data/p11-kit-0.23.21/p11-kit/test-mock.c:694: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 label[32];
data/p11-kit-0.23.21/p11-kit/test-mock.c:1091:2:  [2] (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, "prefix:value4", length);
data/p11-kit-0.23.21/p11-kit/test-mock.c:1111:2:  [2] (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, "prefix:value10", length);
data/p11-kit-0.23.21/p11-kit/test-mock.c:1346: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 label[32];
data/p11-kit-0.23.21/p11-kit/test-mock.c:1347: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 value[64];
data/p11-kit-0.23.21/p11-kit/test-mock.c:1353:2:  [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 (label, "Blahooo");
data/p11-kit-0.23.21/p11-kit/test-mock.c:1401: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 pub_label[32];
data/p11-kit-0.23.21/p11-kit/test-mock.c:1402: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 pub_value[64];
data/p11-kit-0.23.21/p11-kit/test-mock.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 priv_label[32];
data/p11-kit-0.23.21/p11-kit/test-mock.c:1404: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 priv_value[64];
data/p11-kit-0.23.21/p11-kit/test-mock.c:1411:2:  [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 (pub_label, "Blahooo");
data/p11-kit-0.23.21/p11-kit/test-mock.c:1420:2:  [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 (priv_label, "Private");
data/p11-kit-0.23.21/p11-kit/test-mock.c:1511: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 label[32];
data/p11-kit-0.23.21/p11-kit/test-mock.c:1512: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 value[64];
data/p11-kit-0.23.21/p11-kit/test-mock.c:1518:2:  [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 (label, "Blahooo");
data/p11-kit-0.23.21/p11-kit/test-mock.c:1566: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 label[32];
data/p11-kit-0.23.21/p11-kit/test-mock.c:1567: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 value[64];
data/p11-kit-0.23.21/p11-kit/test-mock.c:1573:2:  [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 (label, "Blahooo");
data/p11-kit-0.23.21/p11-kit/test-rpc.c:375:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char val[16];
data/p11-kit-0.23.21/p11-kit/test-rpc.c:536:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (date.year, "2017", 4);
data/p11-kit-0.23.21/p11-kit/test-rpc.c:537:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (date.month, "05", 2);
data/p11-kit-0.23.21/p11-kit/test-rpc.c:538:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (date.day, "16", 2);
data/p11-kit-0.23.21/p11-kit/test-rpc.c:586: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 val[32];
data/p11-kit-0.23.21/p11-kit/test-rpc.c:934:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (response->data, data, sizeof (data));
data/p11-kit-0.23.21/p11-kit/test-rpc.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 (response->data, data, sizeof (data));
data/p11-kit-0.23.21/p11-kit/test-rpc.c:1026:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (response->data, data, sizeof (data));
data/p11-kit-0.23.21/p11-kit/test-rpc.c:1073:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (response->data, data, sizeof (data));
data/p11-kit-0.23.21/p11-kit/test-rpc.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 (&real_module, &mock_module_no_slots, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/p11-kit/test-transport.c:158: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 *argv[3];
data/p11-kit-0.23.21/p11-kit/test-uri.c:506:2:  [2] (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, string, len);
data/p11-kit-0.23.21/p11-kit/uri.c:172:2:  [2] (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, length);
data/p11-kit-0.23.21/p11-kit/uri.c:1069: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[64];
data/p11-kit-0.23.21/p11-kit/uri.c:1086: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[64];
data/p11-kit-0.23.21/p11-kit/uri.c:1348:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (where, value, value_length);
data/p11-kit-0.23.21/p11-kit/uri.c:1585:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (name, name_start, name_end - name_start);
data/p11-kit-0.23.21/p11-kit/util.c:131:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (result, string, length);
data/p11-kit-0.23.21/p11-kit/util.c:197: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 p11_my_progname[256] = { 0, };
data/p11-kit-0.23.21/p11-kit/virtual.c:2503:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (virt, funcs, sizeof (CK_X_FUNCTION_LIST));
data/p11-kit-0.23.21/trust/asn1.c:69: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 message[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = { 0, };
data/p11-kit-0.23.21/trust/asn1.c:139: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 msg[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
data/p11-kit-0.23.21/trust/asn1.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 message[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
data/p11-kit-0.23.21/trust/base64.c:204: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 input[3];
data/p11-kit-0.23.21/trust/base64.c:205:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char output[4];
data/p11-kit-0.23.21/trust/builder.c:135: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 (match, public_key, sizeof (CK_ATTRIBUTE));
data/p11-kit-0.23.21/trust/builder.c:263:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&two, &tm, sizeof (tm));
data/p11-kit-0.23.21/trust/builder.c:403:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&two, &tm, sizeof (tm));
data/p11-kit-0.23.21/trust/builder.c:456: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 checksum[P11_DIGEST_SHA1_LEN];
data/p11-kit-0.23.21/trust/builder.c:458:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (check_value, checksum, 3);
data/p11-kit-0.23.21/trust/builder.c:509: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[64];
data/p11-kit-0.23.21/trust/builder.c:543: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 (date, buf, 8);
data/p11-kit-0.23.21/trust/builder.c:558: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 (((char *)date) + 2, buf, 6);
data/p11-kit-0.23.21/trust/builder.c:597: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 buffer[16];
data/p11-kit-0.23.21/trust/builder.c:700: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 checksum[P11_DIGEST_SHA1_LEN];
data/p11-kit-0.23.21/trust/builder.c:901: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 checksum[P11_DIGEST_SHA1_LEN];
data/p11-kit-0.23.21/trust/builder.c:1688: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 (match_negative + 0, issuer, sizeof (CK_ATTRIBUTE));
data/p11-kit-0.23.21/trust/builder.c:1689: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 (match_negative + 1, serial, sizeof (CK_ATTRIBUTE));
data/p11-kit-0.23.21/trust/digest.c:83:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buffer[SHA1_BLOCK_LENGTH];
data/p11-kit-0.23.21/trust/digest.c:130: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 c[64];
data/p11-kit-0.23.21/trust/digest.c:139:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                const unsigned char buffer[64])
data/p11-kit-0.23.21/trust/digest.c:149: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.
	(void)memcpy(block, buffer, 64);
data/p11-kit-0.23.21/trust/digest.c:238: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.
		(void)memcpy(&context->buffer[j], data, (i = 64 - j));
data/p11-kit-0.23.21/trust/digest.c:247: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.
	(void)memcpy(&context->buffer[j], &data[i], len - i);
data/p11-kit-0.23.21/trust/digest.c:263: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 finalcount[8];
data/p11-kit-0.23.21/trust/digest.c:540: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((unsigned char *)ctx->in + 64 - t, buf, len);
data/p11-kit-0.23.21/trust/digest.c:544:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((unsigned char *)ctx->in + 64 - t, buf, t);
data/p11-kit-0.23.21/trust/digest.c:552: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->in, buf, 64);
data/p11-kit-0.23.21/trust/digest.c:560:2:  [2] (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->in, buf, len);
data/p11-kit-0.23.21/trust/digest.c:596:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(digest, ctx->buf, 16);
data/p11-kit-0.23.21/trust/dump.c:64:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (p11_kit_uri_get_token_info (uri),
data/p11-kit-0.23.21/trust/enumerate.c:60: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 message[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
data/p11-kit-0.23.21/trust/enumerate.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 message[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
data/p11-kit-0.23.21/trust/extract-jks.c:179: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 num[32];
data/p11-kit-0.23.21/trust/extract-openssl.c:282: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 message[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
data/p11-kit-0.23.21/trust/extract-openssl.c:455: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 outer[64];
data/p11-kit-0.23.21/trust/extract-openssl.c:456: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 field[128];
data/p11-kit-0.23.21/trust/extract-openssl.c:533: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 md[P11_DIGEST_SHA1_LEN];
data/p11-kit-0.23.21/trust/extract-openssl.c:566: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 md[P11_DIGEST_MD5_LEN];
data/p11-kit-0.23.21/trust/frob-bc.c:57: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 message[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = { 0, };
data/p11-kit-0.23.21/trust/frob-cert.c:85: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 message[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = { 0, };
data/p11-kit-0.23.21/trust/frob-eku.c:57: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 message[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = { 0, };
data/p11-kit-0.23.21/trust/frob-ext.c:57: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 message[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = { 0, };
data/p11-kit-0.23.21/trust/frob-ext.c: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 input[1024];
data/p11-kit-0.23.21/trust/frob-ku.c:59: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 message[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = { 0, };
data/p11-kit-0.23.21/trust/frob-ku.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 bits[2];
data/p11-kit-0.23.21/trust/frob-oid.c:56: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 message[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = { 0, };
data/p11-kit-0.23.21/trust/index.c:340: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 + *noutput, merge + i, sizeof (CK_ATTRIBUTE));
data/p11-kit-0.23.21/trust/index.c:385: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 (built, merge, sizeof (CK_ATTRIBUTE) * nmerge);
data/p11-kit-0.23.21/trust/list.c:65:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (p11_kit_uri_get_token_info (uri),
data/p11-kit-0.23.21/trust/module.c:452: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 ((char*)info->manufacturerID, MANUFACTURER_ID, 32);
data/p11-kit-0.23.21/trust/module.c:453: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 ((char*)info->libraryDescription, LIBRARY_DESCRIPTION, 32);
data/p11-kit-0.23.21/trust/module.c:535: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 ((char*)info->manufacturerID, MANUFACTURER_ID, 32);
data/p11-kit-0.23.21/trust/module.c:543: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 (info->slotDescription, path, length);
data/p11-kit-0.23.21/trust/module.c:575: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 ((char*)info->manufacturerID, MANUFACTURER_ID, 32);
data/p11-kit-0.23.21/trust/module.c:576: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 ((char*)info->model, TOKEN_MODEL, 16);
data/p11-kit-0.23.21/trust/module.c:577: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 ((char*)info->serialNumber, TOKEN_SERIAL_NUMBER, 16);
data/p11-kit-0.23.21/trust/module.c:595: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 (info->label, label, length);
data/p11-kit-0.23.21/trust/module.c:1088: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 (result->pValue, attr->pValue, attr->ulValueLen);
data/p11-kit-0.23.21/trust/module.c:1249: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 der[32];
data/p11-kit-0.23.21/trust/parser.c:176: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 message[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
data/p11-kit-0.23.21/trust/parser.c:274: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 field[128];
data/p11-kit-0.23.21/trust/parser.c:492: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 message[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
data/p11-kit-0.23.21/trust/persist.c:257: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 string[sizeof (CK_ULONG) * 4];
data/p11-kit-0.23.21/trust/persist.c:402: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 message[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = { 0, };
data/p11-kit-0.23.21/trust/persist.c:459: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 message[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = { 0, };
data/p11-kit-0.23.21/trust/persist.c:726: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 string[sizeof (CK_ULONG) * 4];
data/p11-kit-0.23.21/trust/save.c:110:7:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	fd = mkstemp (temp);
data/p11-kit-0.23.21/trust/save.c:391: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 unique[16];
data/p11-kit-0.23.21/trust/test-asn1.c:83:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		length = p11_asn1_tlv_length ((const unsigned char *)tlv_lengths[i].der, tlv_lengths[i].der_len);
data/p11-kit-0.23.21/trust/test-base64.c: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 decoded[8192];
data/p11-kit-0.23.21/trust/test-builder.c:188: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 checksum[P11_DIGEST_SHA1_LEN];
data/p11-kit-0.23.21/trust/test-bundle.c:72:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&test.module, &mock_module, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/trust/test-cer.c:72:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&test.module, &mock_module, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/trust/test-digest.c:61: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 checksum[P11_DIGEST_SHA1_LEN];
data/p11-kit-0.23.21/trust/test-digest.c:82: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 checksum[P11_DIGEST_SHA1_LEN];
data/p11-kit-0.23.21/trust/test-digest.c:117: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 checksum[P11_DIGEST_MD5_LEN];
data/p11-kit-0.23.21/trust/test-edk2.c:69:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&test.module, &mock_module, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/trust/test-enumerate.c:156:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&test.module, &mock_module, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/trust/test-jks.c:69:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&test.module, &mock_module, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/trust/test-module.c:180: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 buffer[4096];
data/p11-kit-0.23.21/trust/test-module.c:201:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen (test.unreadable, "w");
data/p11-kit-0.23.21/trust/test-module.c:207: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).
	ff = fopen (p, "w");
data/p11-kit-0.23.21/trust/test-module.c:208:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen (SRCDIR "/trust/fixtures/thawte.pem", "r");
data/p11-kit-0.23.21/trust/test-module.c:342: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 description[64];
data/p11-kit-0.23.21/trust/test-module.c:368: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 (description, paths[i], length);
data/p11-kit-0.23.21/trust/test-module.c:380: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 label[32];
data/p11-kit-0.23.21/trust/test-module.c:416: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 (label, labels[i], strlen (labels[i]));
data/p11-kit-0.23.21/trust/test-module.c:539: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 subject[1024];
data/p11-kit-0.23.21/trust/test-module.c:540: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 issuer[1024];
data/p11-kit-0.23.21/trust/test-module.c:541: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 serial[128];
data/p11-kit-0.23.21/trust/test-module.c:567: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 sha1[P11_DIGEST_SHA1_LEN];
data/p11-kit-0.23.21/trust/test-module.c:568: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 md5[P11_DIGEST_MD5_LEN];
data/p11-kit-0.23.21/trust/test-module.c:569: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 check[128];
data/p11-kit-0.23.21/trust/test-module.c:620: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 label[4096]= { 0, };
data/p11-kit-0.23.21/trust/test-module.c:622: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 value[4096];
data/p11-kit-0.23.21/trust/test-module.c:623: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 subject[1024];
data/p11-kit-0.23.21/trust/test-module.c:624: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 issuer[1024];
data/p11-kit-0.23.21/trust/test-module.c:625: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 serial[128];
data/p11-kit-0.23.21/trust/test-module.c:626: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 id[128];
data/p11-kit-0.23.21/trust/test-module.c:1307: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 label[32];
data/p11-kit-0.23.21/trust/test-module.c:1343: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 (label, labels[i], strlen (labels[i]));
data/p11-kit-0.23.21/trust/test-oid.c:52: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 buffer[128];
data/p11-kit-0.23.21/trust/test-openssl.c:75:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&test.module, &mock_module, sizeof (CK_FUNCTION_LIST));
data/p11-kit-0.23.21/trust/test-openssl.c:425: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 input[100];
data/p11-kit-0.23.21/trust/test-openssl.c:427: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 output[100];
data/p11-kit-0.23.21/trust/test-openssl.c:497: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 input[100];
data/p11-kit-0.23.21/trust/test-openssl.c:499: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 output[100];
data/p11-kit-0.23.21/trust/test-openssl.c:551: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 input[100];
data/p11-kit-0.23.21/trust/test-persist.c:588: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 buffer[sizeof (CK_ULONG) + 1];
data/p11-kit-0.23.21/trust/test-save.c:88:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open (filename, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR);
data/p11-kit-0.23.21/trust/test-token.c:274:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open (path, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR);
data/p11-kit-0.23.21/trust/test-trust.c:181:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen (filename, "rb");
data/p11-kit-0.23.21/trust/test-trust.c:255: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] = { 0, };
data/p11-kit-0.23.21/trust/test-utf8.c:55: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.
		const unsigned char input[100];
data/p11-kit-0.23.21/trust/test-utf8.c:90: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.
		const unsigned char input[100];
data/p11-kit-0.23.21/trust/test-utf8.c:114: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.
		const unsigned char input[100];
data/p11-kit-0.23.21/trust/test-utf8.c:164: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.
		const unsigned char input[100];
data/p11-kit-0.23.21/trust/test-x509.c:217:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *expected[16];
data/p11-kit-0.23.21/trust/test-x509.c:236:61:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		                                          (const unsigned char *)extended_key_usage_fixtures[i].eku,
data/p11-kit-0.23.21/trust/test-x509.c:272:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		                                (const unsigned char *)key_usage_fixtures[i].ku,
data/p11-kit-0.23.21/trust/test-x509.c:328: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 input[100];
data/p11-kit-0.23.21/trust/utf8.c:288: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 block[6];
data/p11-kit-0.23.21/trust/x509.c:55: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 field[128];
data/p11-kit-0.23.21/trust/x509.c:145: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 buffer[8];
data/p11-kit-0.23.21/trust/x509.c:179: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 message[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = { 0, };
data/p11-kit-0.23.21/trust/x509.c:180:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[2];
data/p11-kit-0.23.21/trust/x509.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 field[128];
data/p11-kit-0.23.21/trust/x509.c:324: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 field[128];
data/p11-kit-0.23.21/common/attrs.c:493: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).
		length = strlen (value);
data/p11-kit-0.23.21/common/buffer.c:193: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).
		length = strlen (data);
data/p11-kit-0.23.21/common/compat.c:132:34:  [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 (buf && strncmp (buf, name, strlen (buf)) == 0)
data/p11-kit-0.23.21/common/compat.c:178:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (prognamebuf, name, length);
data/p11-kit-0.23.21/common/compat.c:180:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen (prognamebuf);
data/p11-kit-0.23.21/common/compat.c:446: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 (find);
data/p11-kit-0.23.21/common/compat.c:512:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (ret, data, length);
data/p11-kit-0.23.21/common/compat.c:555: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).
		length += strlen (arg);
data/p11-kit-0.23.21/common/compat.c:571:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	       length = strlen (arg);
data/p11-kit-0.23.21/common/compat.c:902:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, p, buflen);
data/p11-kit-0.23.21/common/debug.c:111: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).
				q = p + strlen (p);
data/p11-kit-0.23.21/common/debug.c:114:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (q - p == strlen (debug_keys[i].name) &&
data/p11-kit-0.23.21/common/debug.c:166:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (strerr, strerror_l (errnum, p11_message_locale), sizeof (strerr));
data/p11-kit-0.23.21/common/dict.c:332: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).
	p11_hash_murmur3 (&hash, string, strlen (string), NULL);
data/p11-kit-0.23.21/common/frob-getprogname.c:86:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				nread = read (pfds[0], buffer + offset, sizeof(buffer) - offset);
data/p11-kit-0.23.21/common/message.c:124:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (strerr, strerror_l (errnum, p11_message_locale), sizeof (strerr));
data/p11-kit-0.23.21/common/mock.c:207:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			{ CKA_LABEL, label, strlen (label) },
data/p11-kit-0.23.21/common/mock.c:222:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			{ CKA_LABEL, label, strlen (label) },
data/p11-kit-0.23.21/common/mock.c:229:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			{ CKA_VALUE, value, strlen (value) },
data/p11-kit-0.23.21/common/mock.c:245:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			{ CKA_LABEL, label, strlen (label) },
data/p11-kit-0.23.21/common/mock.c:249:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			{ CKA_VALUE, value, strlen (value) },
data/p11-kit-0.23.21/common/mock.c:264:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			{ CKA_LABEL, label, strlen (label) },
data/p11-kit-0.23.21/common/mock.c:269:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			{ CKA_VALUE, value, strlen (value) },
data/p11-kit-0.23.21/common/mock.c:285:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			{ CKA_LABEL, label, strlen (label) },
data/p11-kit-0.23.21/common/mock.c:290:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			{ CKA_VALUE, value, strlen (value) },
data/p11-kit-0.23.21/common/mock.c:840: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 ("TEST PIN") != pin_len ||
data/p11-kit-0.23.21/common/mock.c:1117: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 ("TEST PIN") != pin_len ||
data/p11-kit-0.23.21/common/mock.c:1163: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 ("TEST PIN") != new_pin_len ||
data/p11-kit-0.23.21/common/mock.c:2566: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).
		n_param = strlen (SIGNED_PREFIX) + 1;
data/p11-kit-0.23.21/common/mock.c:3308: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).
	value.ulValueLen = strlen (value.pValue);
data/p11-kit-0.23.21/common/mock.c:3379: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).
	value.ulValueLen = strlen (value.pValue);
data/p11-kit-0.23.21/common/mock.c:3645: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).
	value.ulValueLen = strlen (value.pValue);
data/p11-kit-0.23.21/common/path.c:78: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).
	end = path + strlen (path);
data/p11-kit-0.23.21/common/path.c:220: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).
		len += strlen (path) + 1;
data/p11-kit-0.23.21/common/path.c:236: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).
		num = strlen (path);
data/p11-kit-0.23.21/common/path.c:276: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).
	e = path + strlen (path);
data/p11-kit-0.23.21/common/path.c:311:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	a = strlen (string);
data/p11-kit-0.23.21/common/path.c:312:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	b = strlen (prefix);
data/p11-kit-0.23.21/common/path.c:344:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!p11_buffer_init_null (&buf, strlen (path)))
data/p11-kit-0.23.21/common/path.c:348: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).
			(unsigned char *)path + strlen (path),
data/p11-kit-0.23.21/common/path.c:362: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).
	return (char *) p11_url_decode (path, path + strlen (path), "", NULL);
data/p11-kit-0.23.21/common/test-lexer.c:66: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).
	p11_lexer_init (&lexer, "test", input, strlen (input));
data/p11-kit-0.23.21/common/test-lexer.c:90: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).
			len = strlen (expected[i].name);
data/p11-kit-0.23.21/common/test-url.c:61: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).
		input_len = strlen (input);
data/p11-kit-0.23.21/common/test-url.c:101: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).
	decoded = p11_url_decode (input, input + strlen (input), P11_URL_WHITESPACE, &length);
data/p11-kit-0.23.21/p11-kit/conf.c:327: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).
	fname_len = strlen (fname);
data/p11-kit-0.23.21/p11-kit/log.c:183:2:  [1] (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). Risk is low because the
  source is a constant character.
	strcat (p, "\"");
data/p11-kit-0.23.21/p11-kit/modules.c:508: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).
			start += strlen (string);
data/p11-kit-0.23.21/p11-kit/modules.c:512: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).
		where += strlen (string);
data/p11-kit-0.23.21/p11-kit/pin.c:492:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		res = read (fd, buffer + used, allocated - used);
data/p11-kit-0.23.21/p11-kit/pin.c:576:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return p11_kit_pin_new ((const unsigned char *)value, strlen (value));
data/p11-kit-0.23.21/p11-kit/rpc-client.c:774:79:  [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 (!p11_rpc_message_write_byte_array (&msg, (CK_BYTE_PTR) reserved_string, strlen (reserved_string) + 1))
data/p11-kit-0.23.21/p11-kit/rpc-message.c:147: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 (msg->signature);
data/p11-kit-0.23.21/p11-kit/rpc-message.c:201: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 (msg->signature) != len) || (memcmp (val, msg->signature, len) != 0)) {
data/p11-kit-0.23.21/p11-kit/rpc-message.c:219:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (part);
data/p11-kit-0.23.21/p11-kit/rpc-message.c:499:42:  [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).
	                               string ? strlen ((char *)string) : 0);
data/p11-kit-0.23.21/p11-kit/rpc-message.h:217:3:  [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 ((char *)P11_RPC_HANDSHAKE))
data/p11-kit-0.23.21/p11-kit/rpc-server.c:1962:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	switch (read (in_fd, &version, 1)) {
data/p11-kit-0.23.21/p11-kit/rpc-transport.c:229:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read (fd, data, len);
data/p11-kit-0.23.21/p11-kit/rpc-transport.c:505:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	num = read (fd, data + from, len - from);
data/p11-kit-0.23.21/p11-kit/server.c:303: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).
	return_val_if_fail (strlen (address) < sizeof (sa.sun_path), -1);
data/p11-kit-0.23.21/p11-kit/server.c:304:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (sa.sun_path, address, sizeof (sa.sun_path));
data/p11-kit-0.23.21/p11-kit/server.c:315:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask (066);
data/p11-kit-0.23.21/p11-kit/server.c:779: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).
		if (shell != NULL && (len = strlen (shell)) > 2 &&
data/p11-kit-0.23.21/p11-kit/test-mock.c:581:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	attrs[0].ulValueLen = strlen (label);
data/p11-kit-0.23.21/p11-kit/test-mock.c:623:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	attrs[0].ulValueLen = strlen (label);
data/p11-kit-0.23.21/p11-kit/test-mock.c:1358:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	attrs[0].ulValueLen = strlen (label);
data/p11-kit-0.23.21/p11-kit/test-mock.c:1415: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).
	pub_attrs[0].ulValueLen = strlen (pub_label);
data/p11-kit-0.23.21/p11-kit/test-mock.c:1424: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).
	priv_attrs[0].ulValueLen = strlen (priv_label);
data/p11-kit-0.23.21/p11-kit/test-mock.c:1523:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	attrs[0].ulValueLen = strlen (label);
data/p11-kit-0.23.21/p11-kit/test-mock.c:1578:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	attrs[0].ulValueLen = strlen (label);
data/p11-kit-0.23.21/p11-kit/test-proxy.c:302:65:  [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).
	p11_test_file_write (test.directory, "one.module", ONE_MODULE, strlen (ONE_MODULE));
data/p11-kit-0.23.21/p11-kit/test-proxy.c:303:65:  [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).
	p11_test_file_write (test.directory, "two.module", TWO_MODULE, strlen (TWO_MODULE));
data/p11-kit-0.23.21/p11-kit/test-proxy.c:307:73:  [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).
	p11_test_file_write (test.directory, "one.module", ONE_MODULE ENABLED, strlen (ONE_MODULE ENABLED));
data/p11-kit-0.23.21/p11-kit/test-proxy.c:308:65:  [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).
	p11_test_file_write (test.directory, "two.module", TWO_MODULE, strlen (TWO_MODULE));
data/p11-kit-0.23.21/p11-kit/test-proxy.c:312:65:  [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).
	p11_test_file_write (test.directory, "one.module", ONE_MODULE, strlen (ONE_MODULE));
data/p11-kit-0.23.21/p11-kit/test-proxy.c:313:74:  [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).
	p11_test_file_write (test.directory, "two.module", TWO_MODULE DISABLED, strlen (TWO_MODULE DISABLED));
data/p11-kit-0.23.21/p11-kit/test-proxy.c:317:80:  [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).
	p11_test_file_write (test.directory, "one.module", ONE_MODULE ENABLED_PREFIX, strlen (ONE_MODULE ENABLED_PREFIX));
data/p11-kit-0.23.21/p11-kit/test-proxy.c:318:65:  [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).
	p11_test_file_write (test.directory, "two.module", TWO_MODULE, strlen (TWO_MODULE));
data/p11-kit-0.23.21/p11-kit/test-proxy.c:331:69:  [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).
	p11_test_file_write (test.directory, "eight.module", EIGHT_MODULE, strlen (EIGHT_MODULE));
data/p11-kit-0.23.21/p11-kit/test-proxy.c:364:67:  [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).
	p11_test_file_write (test.directory, "nine.module", NINE_MODULE, strlen (NINE_MODULE));
data/p11-kit-0.23.21/p11-kit/test-proxy.c:405:65:  [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).
	p11_test_file_write (test.directory, "ten.module", TEN_MODULE, strlen (TEN_MODULE));
data/p11-kit-0.23.21/p11-kit/test-transport.c:83:53:  [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).
	p11_test_file_write (NULL, test.user_config, data, strlen (data));
data/p11-kit-0.23.21/p11-kit/test-transport.c:87:65:  [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).
	p11_test_file_write (test.user_modules, "remote.module", data, strlen (data));
data/p11-kit-0.23.21/p11-kit/test-transport.c:89:67:  [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).
	p11_test_file_write (test.user_modules, "init-arg.module", data, strlen (data));
data/p11-kit-0.23.21/p11-kit/test-transport.c:216:53:  [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).
	p11_test_file_write (NULL, test.user_config, data, strlen (data));
data/p11-kit-0.23.21/p11-kit/test-transport.c:242:65:  [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).
	p11_test_file_write (test.user_modules, "remote.module", data, strlen (data));
data/p11-kit-0.23.21/p11-kit/test-uri.c:159: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).
	assert (attr->ulValueLen == strlen ("Test Label"));
data/p11-kit-0.23.21/p11-kit/test-uri.c:180: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).
	assert (attr->ulValueLen == strlen ("Test Label"));
data/p11-kit-0.23.21/p11-kit/test-uri.c:206: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).
	assert (attr->ulValueLen == strlen ("Test Label"));
data/p11-kit-0.23.21/p11-kit/test-uri.c:337:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t i, len = strlen (check);
data/p11-kit-0.23.21/p11-kit/test-uri.c:503: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 (string);
data/p11-kit-0.23.21/p11-kit/uri.c:165:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t length = strlen (value);
data/p11-kit-0.23.21/p11-kit/uri.c:1209: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).
		                           strlen (uri->pin_source), 0)) {
data/p11-kit-0.23.21/p11-kit/uri.c:1217: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).
		                           strlen (uri->pin_value), 0)) {
data/p11-kit-0.23.21/p11-kit/uri.c:1225: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).
		                           strlen (uri->module_name), 0)) {
data/p11-kit-0.23.21/p11-kit/uri.c:1233: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).
		                           strlen (uri->module_path), 0)) {
data/p11-kit-0.23.21/p11-kit/uri.c:1242: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).
					   strlen (attr->value), 0)) {
data/p11-kit-0.23.21/p11-kit/uri.c:1255: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).
	return strlen (input) == end - start &&
data/p11-kit-0.23.21/p11-kit/uri.c:1747: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).
			spos = string + strlen (string);
data/p11-kit-0.23.21/p11-kit/util.c:192: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).
		p11_message_store (msg, strlen (msg));
data/p11-kit-0.23.21/p11-kit/util.c:226:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (p11_my_progname, progname, sizeof (p11_my_progname));
data/p11-kit-0.23.21/trust/builder.c:780: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).
		label.ulValueLen = strlen (labelv);
data/p11-kit-0.23.21/trust/builder.c:1579:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		purpose.ulValueLen = strlen (oids[i]);
data/p11-kit-0.23.21/trust/enumerate.c:626:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (string);
data/p11-kit-0.23.21/trust/extract-jks.c:190: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).
		input_len = strlen (input);
data/p11-kit-0.23.21/trust/frob-eku.c:78:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ret = asn1_write_value (ekus, "?LAST", argv[i], strlen (argv[i]));
data/p11-kit-0.23.21/trust/frob-oid.c:78: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).
	ret = asn1_write_value (oid, "", argv[1], strlen (argv[1]));
data/p11-kit-0.23.21/trust/module.c:246:42:  [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 (path, labels[i].prefix, strlen (labels[i].prefix)) == 0) {
data/p11-kit-0.23.21/trust/module.c:539: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).
		length = strlen (path);
data/p11-kit-0.23.21/trust/module.c:591: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).
		length = strlen (label);
data/p11-kit-0.23.21/trust/parser.c:553:53:  [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).
			attrs = p11_attrs_take (attrs, CKA_LABEL, label, strlen (label));
data/p11-kit-0.23.21/trust/pem.c:113: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).
	n_type = strlen (type);
data/p11-kit-0.23.21/trust/persist.c:125: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).
	end = value + strlen (value);
data/p11-kit-0.23.21/trust/persist.c:409: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).
	length = strlen (value);
data/p11-kit-0.23.21/trust/save.c:109:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mode = umask (0077);
data/p11-kit-0.23.21/trust/save.c:111:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask (mode);
data/p11-kit-0.23.21/trust/save.c:153: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).
		length = strlen (data);
data/p11-kit-0.23.21/trust/test-base64.c:60: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).
		input_len = strlen (input);
data/p11-kit-0.23.21/trust/test-base64.c:62:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		expected_len = strlen ((char *)expected);
data/p11-kit-0.23.21/trust/test-digest.c:67: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 (sha1_input[i]);
data/p11-kit-0.23.21/trust/test-digest.c:123: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 (md5_input[i]);
data/p11-kit-0.23.21/trust/test-module.c:365: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).
		length = strlen(paths[i]);
data/p11-kit-0.23.21/trust/test-module.c:416: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).
		memcpy (label, labels[i], strlen (labels[i]));
data/p11-kit-0.23.21/trust/test-module.c:1343: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).
		memcpy (label, labels[i], strlen (labels[i]));
data/p11-kit-0.23.21/trust/test-openssl.c:401: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).
			len = strlen (fixtures[i].input);
data/p11-kit-0.23.21/trust/test-openssl.c:409: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).
			out = strlen (fixtures[i].output);
data/p11-kit-0.23.21/trust/test-pem.c:180:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ret = p11_pem_parse (success_fixtures[i].input, strlen (success_fixtures[i].input),
data/p11-kit-0.23.21/trust/test-pem.c:244:45:  [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 = p11_pem_parse (failure_fixtures[i], strlen (failure_fixtures[i]),
data/p11-kit-0.23.21/trust/test-pem.c:342:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		assert_num_eq (strlen (fixture->output), buf.len);
data/p11-kit-0.23.21/trust/test-persist.c:68:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	assert (p11_persist_magic ((unsigned char *)input, strlen (input)));
data/p11-kit-0.23.21/trust/test-persist.c:70:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	assert (p11_persist_magic ((unsigned char *)other, strlen (other)));
data/p11-kit-0.23.21/trust/test-persist.c:111:71:  [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 (p11_persist_read (persist, "test", (const unsigned char *)input, strlen (input), objects)) {
data/p11-kit-0.23.21/trust/test-save.c:342: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).
	ret = p11_save_write (file, test_text, strlen (test_text));
data/p11-kit-0.23.21/trust/test-save.c:369: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).
	test_check_data (subdir, "file.txt", test_text, strlen (test_text));
data/p11-kit-0.23.21/trust/test-save.c:543: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).
	ret = p11_save_write (file, test_text, strlen (test_text));
data/p11-kit-0.23.21/trust/test-save.c:570: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).
	test_check_data (subdir, "file.txt", test_text, strlen (test_text));
data/p11-kit-0.23.21/trust/test-token.c:695:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	p11_test_file_write (test.directory, "Test.p11-kit", test_data, strlen (test_data));
data/p11-kit-0.23.21/trust/test-token.c:735:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	p11_test_file_write (test.directory, "Test.p11-kit", test_data, strlen (test_data));
data/p11-kit-0.23.21/trust/test-token.c:792:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	p11_test_file_write (test.directory, "Test.p11-kit", test_data, strlen (test_data));
data/p11-kit-0.23.21/trust/test-trust.c:74:61:  [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).
		{ label ? CKA_LABEL : CKA_INVALID, (void *)label, label ? strlen (label) : 0 },
data/p11-kit-0.23.21/trust/token.c:134: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).
		{ CKA_X_ORIGIN, (void *)filename, strlen (filename) },
data/p11-kit-0.23.21/trust/token.c:158: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).
		{ CKA_X_ORIGIN, (void *)filename, strlen (filename) },
data/p11-kit-0.23.21/trust/token.c:361: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).
		{ CKA_LABEL, (void *)trust_anchor_roots, strlen (trust_anchor_roots) },
data/p11-kit-0.23.21/trust/token.c:714:57:  [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).
			*attrs = p11_attrs_take (*attrs, CKA_X_ORIGIN, path, strlen (path));
data/p11-kit-0.23.21/trust/utf8.c:268: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 (str);

ANALYSIS SUMMARY:

Hits = 534
Lines analyzed = 88695 in approximately 2.10 seconds (42273 lines/second)
Physical Source Lines of Code (SLOC) = 63158
Hits@level = [0] 195 [1] 146 [2] 339 [3]  19 [4]  20 [5]  10
Hits@level+ = [0+] 729 [1+] 534 [2+] 388 [3+]  49 [4+]  30 [5+]  10
Hits/KSLOC@level+ = [0+] 11.5425 [1+] 8.45499 [2+] 6.14332 [3+] 0.775832 [4+] 0.474999 [5+] 0.158333
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.