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/gcr-3.38.0/build/enum-template.c Examining data/gcr-3.38.0/build/enum-template.h Examining data/gcr-3.38.0/build/valgrind/memcheck.h Examining data/gcr-3.38.0/build/valgrind/valgrind.h Examining data/gcr-3.38.0/docs/reference/gcr/gcr-shooter.c Examining data/gcr-3.38.0/docs/reference/gcr/gcr-shooter.h Examining data/gcr-3.38.0/docs/reference/gcr/gcr-widgets.c Examining data/gcr-3.38.0/egg/egg-armor.c Examining data/gcr-3.38.0/egg/egg-armor.h Examining data/gcr-3.38.0/egg/egg-asn1-defs.c Examining data/gcr-3.38.0/egg/egg-asn1-defs.h Examining data/gcr-3.38.0/egg/egg-asn1x.c Examining data/gcr-3.38.0/egg/egg-asn1x.h Examining data/gcr-3.38.0/egg/egg-buffer.c Examining data/gcr-3.38.0/egg/egg-buffer.h Examining data/gcr-3.38.0/egg/egg-decimal.c Examining data/gcr-3.38.0/egg/egg-decimal.h Examining data/gcr-3.38.0/egg/egg-dh.c Examining data/gcr-3.38.0/egg/egg-dh.h Examining data/gcr-3.38.0/egg/egg-dn.c Examining data/gcr-3.38.0/egg/egg-dn.h Examining data/gcr-3.38.0/egg/egg-error.h Examining data/gcr-3.38.0/egg/egg-hex.c Examining data/gcr-3.38.0/egg/egg-hex.h Examining data/gcr-3.38.0/egg/egg-hkdf.c Examining data/gcr-3.38.0/egg/egg-hkdf.h Examining data/gcr-3.38.0/egg/egg-libgcrypt.c Examining data/gcr-3.38.0/egg/egg-libgcrypt.h Examining data/gcr-3.38.0/egg/egg-oid.c Examining data/gcr-3.38.0/egg/egg-oid.h Examining data/gcr-3.38.0/egg/egg-openssl.c Examining data/gcr-3.38.0/egg/egg-openssl.h Examining data/gcr-3.38.0/egg/egg-padding.c Examining data/gcr-3.38.0/egg/egg-padding.h Examining data/gcr-3.38.0/egg/egg-secure-memory.c Examining data/gcr-3.38.0/egg/egg-secure-memory.h Examining data/gcr-3.38.0/egg/egg-symkey.c Examining data/gcr-3.38.0/egg/egg-symkey.h Examining data/gcr-3.38.0/egg/egg-testing.c Examining data/gcr-3.38.0/egg/egg-testing.h Examining data/gcr-3.38.0/egg/egg-timegm.c Examining data/gcr-3.38.0/egg/egg-timegm.h Examining data/gcr-3.38.0/egg/mock-interaction.c Examining data/gcr-3.38.0/egg/mock-interaction.h Examining data/gcr-3.38.0/egg/pk.asn.h Examining data/gcr-3.38.0/egg/pkix.asn.h Examining data/gcr-3.38.0/egg/test-armor.c Examining data/gcr-3.38.0/egg/test-asn1.c Examining data/gcr-3.38.0/egg/test-asn1x.c Examining data/gcr-3.38.0/egg/test-decimal.c Examining data/gcr-3.38.0/egg/test-dh.c Examining data/gcr-3.38.0/egg/test-dn.c Examining data/gcr-3.38.0/egg/test-hex.c Examining data/gcr-3.38.0/egg/test-hkdf.c Examining data/gcr-3.38.0/egg/test-oid.c Examining data/gcr-3.38.0/egg/test-openssl.c Examining data/gcr-3.38.0/egg/test-padding.c Examining data/gcr-3.38.0/egg/test-secmem.c Examining data/gcr-3.38.0/egg/test-symkey.c Examining data/gcr-3.38.0/egg/test.asn.h Examining data/gcr-3.38.0/gck/gck-attributes.c Examining data/gcr-3.38.0/gck/gck-call.c Examining data/gcr-3.38.0/gck/gck-deprecated.h Examining data/gcr-3.38.0/gck/gck-dump.c Examining data/gcr-3.38.0/gck/gck-enumerator.c Examining data/gcr-3.38.0/gck/gck-interaction.c Examining data/gcr-3.38.0/gck/gck-misc.c Examining data/gcr-3.38.0/gck/gck-mock.c Examining data/gcr-3.38.0/gck/gck-mock.h Examining data/gcr-3.38.0/gck/gck-module.c Examining data/gcr-3.38.0/gck/gck-modules.c Examining data/gcr-3.38.0/gck/gck-object-cache.c Examining data/gcr-3.38.0/gck/gck-object.c Examining data/gcr-3.38.0/gck/gck-password.c Examining data/gcr-3.38.0/gck/gck-private.h Examining data/gcr-3.38.0/gck/gck-session.c Examining data/gcr-3.38.0/gck/gck-slot.c Examining data/gcr-3.38.0/gck/gck-test.c Examining data/gcr-3.38.0/gck/gck-test.h Examining data/gcr-3.38.0/gck/gck-uri.c Examining data/gcr-3.38.0/gck/gck.h Examining data/gcr-3.38.0/gck/mock-test-module.c Examining data/gcr-3.38.0/gck/pkcs11-trust-assertions.h Examining data/gcr-3.38.0/gck/pkcs11.h Examining data/gcr-3.38.0/gck/pkcs11i.h Examining data/gcr-3.38.0/gck/pkcs11n.h Examining data/gcr-3.38.0/gck/pkcs11x.h Examining data/gcr-3.38.0/gck/test-gck-attributes.c Examining data/gcr-3.38.0/gck/test-gck-crypto.c Examining data/gcr-3.38.0/gck/test-gck-enumerator.c Examining data/gcr-3.38.0/gck/test-gck-module.c Examining data/gcr-3.38.0/gck/test-gck-modules.c Examining data/gcr-3.38.0/gck/test-gck-object.c Examining data/gcr-3.38.0/gck/test-gck-session.c Examining data/gcr-3.38.0/gck/test-gck-slot.c Examining data/gcr-3.38.0/gck/test-gck-uri.c Examining data/gcr-3.38.0/gcr/console-interaction.c Examining data/gcr-3.38.0/gcr/console-interaction.h Examining data/gcr-3.38.0/gcr/frob-certificate-request.c Examining data/gcr-3.38.0/gcr/frob-openpgp.c Examining data/gcr-3.38.0/gcr/frob-parser.c Examining data/gcr-3.38.0/gcr/gcr-base.h Examining data/gcr-3.38.0/gcr/gcr-callback-output-stream.c Examining data/gcr-3.38.0/gcr/gcr-callback-output-stream.h Examining data/gcr-3.38.0/gcr/gcr-certificate-chain.c Examining data/gcr-3.38.0/gcr/gcr-certificate-chain.h Examining data/gcr-3.38.0/gcr/gcr-certificate-extensions.c Examining data/gcr-3.38.0/gcr/gcr-certificate-extensions.h Examining data/gcr-3.38.0/gcr/gcr-certificate-request.c Examining data/gcr-3.38.0/gcr/gcr-certificate-request.h Examining data/gcr-3.38.0/gcr/gcr-certificate.c Examining data/gcr-3.38.0/gcr/gcr-certificate.h Examining data/gcr-3.38.0/gcr/gcr-collection.c Examining data/gcr-3.38.0/gcr/gcr-collection.h Examining data/gcr-3.38.0/gcr/gcr-column.c Examining data/gcr-3.38.0/gcr/gcr-column.h Examining data/gcr-3.38.0/gcr/gcr-comparable.c Examining data/gcr-3.38.0/gcr/gcr-comparable.h Examining data/gcr-3.38.0/gcr/gcr-dbus-constants.h Examining data/gcr-3.38.0/gcr/gcr-deprecated-base.h Examining data/gcr-3.38.0/gcr/gcr-filter-collection.c Examining data/gcr-3.38.0/gcr/gcr-filter-collection.h Examining data/gcr-3.38.0/gcr/gcr-fingerprint.c Examining data/gcr-3.38.0/gcr/gcr-fingerprint.h Examining data/gcr-3.38.0/gcr/gcr-gnupg-collection.c Examining data/gcr-3.38.0/gcr/gcr-gnupg-collection.h Examining data/gcr-3.38.0/gcr/gcr-gnupg-importer.c Examining data/gcr-3.38.0/gcr/gcr-gnupg-importer.h Examining data/gcr-3.38.0/gcr/gcr-gnupg-key.c Examining data/gcr-3.38.0/gcr/gcr-gnupg-key.h Examining data/gcr-3.38.0/gcr/gcr-gnupg-process.c Examining data/gcr-3.38.0/gcr/gcr-gnupg-process.h Examining data/gcr-3.38.0/gcr/gcr-gnupg-records.c Examining data/gcr-3.38.0/gcr/gcr-gnupg-records.h Examining data/gcr-3.38.0/gcr/gcr-gnupg-util.c Examining data/gcr-3.38.0/gcr/gcr-gnupg-util.h Examining data/gcr-3.38.0/gcr/gcr-icons.c Examining data/gcr-3.38.0/gcr/gcr-icons.h Examining data/gcr-3.38.0/gcr/gcr-import-interaction.c Examining data/gcr-3.38.0/gcr/gcr-import-interaction.h Examining data/gcr-3.38.0/gcr/gcr-importer.c Examining data/gcr-3.38.0/gcr/gcr-importer.h Examining data/gcr-3.38.0/gcr/gcr-internal.h Examining data/gcr-3.38.0/gcr/gcr-key-mechanisms.c Examining data/gcr-3.38.0/gcr/gcr-key-mechanisms.h Examining data/gcr-3.38.0/gcr/gcr-library.c Examining data/gcr-3.38.0/gcr/gcr-library.h Examining data/gcr-3.38.0/gcr/gcr-memory-icon.c Examining data/gcr-3.38.0/gcr/gcr-memory-icon.h Examining data/gcr-3.38.0/gcr/gcr-mock-prompter.c Examining data/gcr-3.38.0/gcr/gcr-mock-prompter.h Examining data/gcr-3.38.0/gcr/gcr-openpgp.c Examining data/gcr-3.38.0/gcr/gcr-openpgp.h Examining data/gcr-3.38.0/gcr/gcr-openssh.c Examining data/gcr-3.38.0/gcr/gcr-openssh.h Examining data/gcr-3.38.0/gcr/gcr-parser.c Examining data/gcr-3.38.0/gcr/gcr-parser.h Examining data/gcr-3.38.0/gcr/gcr-pkcs11-certificate.c Examining data/gcr-3.38.0/gcr/gcr-pkcs11-certificate.h Examining data/gcr-3.38.0/gcr/gcr-pkcs11-importer.c Examining data/gcr-3.38.0/gcr/gcr-pkcs11-importer.h Examining data/gcr-3.38.0/gcr/gcr-prompt.c Examining data/gcr-3.38.0/gcr/gcr-prompt.h Examining data/gcr-3.38.0/gcr/gcr-record.c Examining data/gcr-3.38.0/gcr/gcr-record.h Examining data/gcr-3.38.0/gcr/gcr-secret-exchange.c Examining data/gcr-3.38.0/gcr/gcr-secret-exchange.h Examining data/gcr-3.38.0/gcr/gcr-secure-memory.c Examining data/gcr-3.38.0/gcr/gcr-secure-memory.h Examining data/gcr-3.38.0/gcr/gcr-simple-certificate.c Examining data/gcr-3.38.0/gcr/gcr-simple-certificate.h Examining data/gcr-3.38.0/gcr/gcr-simple-collection.c Examining data/gcr-3.38.0/gcr/gcr-simple-collection.h Examining data/gcr-3.38.0/gcr/gcr-single-collection.c Examining data/gcr-3.38.0/gcr/gcr-single-collection.h Examining data/gcr-3.38.0/gcr/gcr-ssh-askpass.c Examining data/gcr-3.38.0/gcr/gcr-ssh-askpass.h Examining data/gcr-3.38.0/gcr/gcr-subject-public-key.c Examining data/gcr-3.38.0/gcr/gcr-subject-public-key.h Examining data/gcr-3.38.0/gcr/gcr-system-prompt.c Examining data/gcr-3.38.0/gcr/gcr-system-prompt.h Examining data/gcr-3.38.0/gcr/gcr-system-prompter.c Examining data/gcr-3.38.0/gcr/gcr-system-prompter.h Examining data/gcr-3.38.0/gcr/gcr-trust.c Examining data/gcr-3.38.0/gcr/gcr-trust.h Examining data/gcr-3.38.0/gcr/gcr-types.h Examining data/gcr-3.38.0/gcr/gcr-union-collection.c Examining data/gcr-3.38.0/gcr/gcr-union-collection.h Examining data/gcr-3.38.0/gcr/gcr-unlock-options.h Examining data/gcr-3.38.0/gcr/gcr-util.c Examining data/gcr-3.38.0/gcr/gcr-util.h Examining data/gcr-3.38.0/gcr/gcr.h Examining data/gcr-3.38.0/gcr/test-certificate-chain.c Examining data/gcr-3.38.0/gcr/test-certificate.c Examining data/gcr-3.38.0/gcr/test-filter-collection.c Examining data/gcr-3.38.0/gcr/test-fingerprint.c Examining data/gcr-3.38.0/gcr/test-gnupg-key.c Examining data/gcr-3.38.0/gcr/test-gnupg-process.c Examining data/gcr-3.38.0/gcr/test-memory-icon.c Examining data/gcr-3.38.0/gcr/test-openpgp.c Examining data/gcr-3.38.0/gcr/test-openssh.c Examining data/gcr-3.38.0/gcr/test-parser.c Examining data/gcr-3.38.0/gcr/test-pkcs11-certificate.c Examining data/gcr-3.38.0/gcr/test-record.c Examining data/gcr-3.38.0/gcr/test-secret-exchange.c Examining data/gcr-3.38.0/gcr/test-secure-memory.c Examining data/gcr-3.38.0/gcr/test-simple-certificate.c Examining data/gcr-3.38.0/gcr/test-ssh-askpass.c Examining data/gcr-3.38.0/gcr/test-subject-public-key.c Examining data/gcr-3.38.0/gcr/test-system-prompt.c Examining data/gcr-3.38.0/gcr/test-trust.c Examining data/gcr-3.38.0/gcr/test-util.c Examining data/gcr-3.38.0/gcr/test-gnupg-collection.c Examining data/gcr-3.38.0/ui/eggimagemenuitem.c Examining data/gcr-3.38.0/ui/eggimagemenuitem.h Examining data/gcr-3.38.0/ui/frob-certificate.c Examining data/gcr-3.38.0/ui/frob-combo-selector.c Examining data/gcr-3.38.0/ui/frob-gnupg-selector.c Examining data/gcr-3.38.0/ui/frob-import-button.c Examining data/gcr-3.38.0/ui/frob-key.c Examining data/gcr-3.38.0/ui/frob-prompt.c Examining data/gcr-3.38.0/ui/frob-request.c Examining data/gcr-3.38.0/ui/frob-system-prompt.c Examining data/gcr-3.38.0/ui/frob-tree-selector.c Examining data/gcr-3.38.0/ui/frob-unlock-options.c Examining data/gcr-3.38.0/ui/frob-unlock.c Examining data/gcr-3.38.0/ui/gcr-certificate-basics-widget.c Examining data/gcr-3.38.0/ui/gcr-certificate-basics-widget.h Examining data/gcr-3.38.0/ui/gcr-certificate-details-widget.c Examining data/gcr-3.38.0/ui/gcr-certificate-details-widget.h Examining data/gcr-3.38.0/ui/gcr-certificate-exporter.c Examining data/gcr-3.38.0/ui/gcr-certificate-exporter.h Examining data/gcr-3.38.0/ui/gcr-certificate-renderer-private.h Examining data/gcr-3.38.0/ui/gcr-certificate-renderer.c Examining data/gcr-3.38.0/ui/gcr-certificate-renderer.h Examining data/gcr-3.38.0/ui/gcr-certificate-request-renderer.c Examining data/gcr-3.38.0/ui/gcr-certificate-request-renderer.h Examining data/gcr-3.38.0/ui/gcr-certificate-widget.c Examining data/gcr-3.38.0/ui/gcr-certificate-widget.h Examining data/gcr-3.38.0/ui/gcr-collection-model.c Examining data/gcr-3.38.0/ui/gcr-collection-model.h Examining data/gcr-3.38.0/ui/gcr-combo-selector.c Examining data/gcr-3.38.0/ui/gcr-combo-selector.h Examining data/gcr-3.38.0/ui/gcr-deprecated.h Examining data/gcr-3.38.0/ui/gcr-dialog-util.c Examining data/gcr-3.38.0/ui/gcr-dialog-util.h Examining data/gcr-3.38.0/ui/gcr-display-scrolled.c Examining data/gcr-3.38.0/ui/gcr-display-scrolled.h Examining data/gcr-3.38.0/ui/gcr-display-view.c Examining data/gcr-3.38.0/ui/gcr-display-view.h Examining data/gcr-3.38.0/ui/gcr-failure-renderer.c Examining data/gcr-3.38.0/ui/gcr-failure-renderer.h Examining data/gcr-3.38.0/ui/gcr-gnupg-renderer.c Examining data/gcr-3.38.0/ui/gcr-gnupg-renderer.h Examining data/gcr-3.38.0/ui/gcr-import-button.c Examining data/gcr-3.38.0/ui/gcr-import-button.h Examining data/gcr-3.38.0/ui/gcr-key-renderer.c Examining data/gcr-3.38.0/ui/gcr-key-renderer.h Examining data/gcr-3.38.0/ui/gcr-key-widget.c Examining data/gcr-3.38.0/ui/gcr-key-widget.h Examining data/gcr-3.38.0/ui/gcr-list-selector-private.h Examining data/gcr-3.38.0/ui/gcr-list-selector.c Examining data/gcr-3.38.0/ui/gcr-list-selector.h Examining data/gcr-3.38.0/ui/gcr-live-search.c Examining data/gcr-3.38.0/ui/gcr-live-search.h Examining data/gcr-3.38.0/ui/gcr-pkcs11-import-dialog.c Examining data/gcr-3.38.0/ui/gcr-pkcs11-import-dialog.h Examining data/gcr-3.38.0/ui/gcr-pkcs11-import-interaction.c Examining data/gcr-3.38.0/ui/gcr-pkcs11-import-interaction.h Examining data/gcr-3.38.0/ui/gcr-prompt-dialog.c Examining data/gcr-3.38.0/ui/gcr-prompt-dialog.h Examining data/gcr-3.38.0/ui/gcr-prompter-tool.c Examining data/gcr-3.38.0/ui/gcr-renderer.c Examining data/gcr-3.38.0/ui/gcr-renderer.h Examining data/gcr-3.38.0/ui/gcr-secure-entry-buffer.c Examining data/gcr-3.38.0/ui/gcr-secure-entry-buffer.h Examining data/gcr-3.38.0/ui/gcr-tree-selector.c Examining data/gcr-3.38.0/ui/gcr-tree-selector.h Examining data/gcr-3.38.0/ui/gcr-ui.h Examining data/gcr-3.38.0/ui/gcr-unlock-options-widget.c Examining data/gcr-3.38.0/ui/gcr-unlock-options-widget.h Examining data/gcr-3.38.0/ui/gcr-unlock-renderer.c Examining data/gcr-3.38.0/ui/gcr-unlock-renderer.h Examining data/gcr-3.38.0/ui/gcr-viewer-tool.c Examining data/gcr-3.38.0/ui/gcr-viewer-widget.c Examining data/gcr-3.38.0/ui/gcr-viewer-widget.h Examining data/gcr-3.38.0/ui/gcr-viewer-window.c Examining data/gcr-3.38.0/ui/gcr-viewer-window.h Examining data/gcr-3.38.0/ui/gcr-viewer.c Examining data/gcr-3.38.0/ui/gcr-viewer.h FINAL RESULTS: data/gcr-3.38.0/egg/egg-secure-memory.c:1324:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (res, str); data/gcr-3.38.0/egg/test-secmem.c:141:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy ((gchar*)p, str); data/gcr-3.38.0/gck/gck-mock.c:1387:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy ((gchar*)session->sign_prefix, SIGNED_PREFIX); data/gcr-3.38.0/gck/gck-mock.c:1498:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy ((gchar*)session->sign_prefix, SIGNED_PREFIX); data/gcr-3.38.0/gcr/console-interaction.c:68:1: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. getpass (const gchar *prompt) data/gcr-3.38.0/gcr/console-interaction.c:100:11: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. value = getpass (prompt); data/gcr-3.38.0/gcr/test-gnupg-collection.c:93:29: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. g_spawn_check_exit_status (system (cmd), &error); data/gcr-3.38.0/gcr/test-gnupg-collection.c:120:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system (cmd); data/gcr-3.38.0/gcr/test-gnupg-collection.c:123:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system (cmd); data/gcr-3.38.0/gcr/test-gnupg-collection.c:127:29: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. g_spawn_check_exit_status (system (cmd), &error); data/gcr-3.38.0/gcr/test-secure-memory.c:165:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy ((gchar*)p, str); data/gcr-3.38.0/egg/egg-libgcrypt.c:83:3: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand (seed); data/gcr-3.38.0/egg/egg-secure-memory.c:936: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 ("SECMEM_FORCE_FALLBACK")) data/gcr-3.38.0/egg/test-secmem.c:175:14: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. action = g_random_int_range (0, 3); data/gcr-3.38.0/egg/test-secmem.c:182:11: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. size = g_random_int_range (1, 16384); data/gcr-3.38.0/egg/test-secmem.c:189:12: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. index = g_random_int_range (0, memory->len); data/gcr-3.38.0/egg/test-secmem.c:192:11: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. size = g_random_int_range (1, 16384); data/gcr-3.38.0/egg/test-secmem.c:199:12: [3] (random) g_random_int_range: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. index = g_random_int_range (0, memory->len); data/gcr-3.38.0/gcr/gcr-mock-prompter.c:913:6: [3] (random) g_random_boolean: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (g_random_boolean ()) { data/gcr-3.38.0/egg/egg-armor.c:137: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 (stype, pref, suff - pref); data/gcr-3.38.0/egg/egg-asn1x.c:467:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (copy, tlv, sizeof (Atlv)); data/gcr-3.38.0/egg/egg-asn1x.c:1450:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p + 1, buf, len); data/gcr-3.38.0/egg/egg-asn1x.c:1463:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p + 1, buf, len); data/gcr-3.38.0/egg/egg-asn1x.c:1469:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p, buf, len); data/gcr-3.38.0/egg/egg-asn1x.c:2284:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (data, at, bytes); data/gcr-3.38.0/egg/egg-asn1x.c:2353: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 (at, buf, len); data/gcr-3.38.0/egg/egg-asn1x.c:2380: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, buf, len); data/gcr-3.38.0/egg/egg-buffer.c:146: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 (buf, buffer->buf, buffer->allocated_len); data/gcr-3.38.0/egg/egg-buffer.c:226:2: [2] (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->buf + buffer->len, val, len); data/gcr-3.38.0/egg/egg-buffer.c:505:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*str_ret, buffer->buf + offset, len); data/gcr-3.38.0/egg/egg-hkdf.c:93: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, gcry_md_read (md2, algo), n_buffer); data/gcr-3.38.0/egg/egg-hkdf.c:96: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 (at, buffer, step); data/gcr-3.38.0/egg/egg-openssl.c:331: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 (padded, dat + n_batch, n_overflow); data/gcr-3.38.0/egg/egg-padding.c:94: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 (*raw, at, *n_raw); data/gcr-3.38.0/egg/egg-padding.c:134: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 (pad + n_pad, raw, n_raw); data/gcr-3.38.0/egg/egg-padding.c:172: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 (pad + n_pad, raw, n_raw); data/gcr-3.38.0/egg/egg-padding.c:210: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 (pad + n_pad, raw, n_raw); data/gcr-3.38.0/egg/egg-padding.c:252: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 (pad, raw, n_raw); data/gcr-3.38.0/egg/egg-padding.c:295:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*raw, pad, *n_raw); data/gcr-3.38.0/egg/egg-secure-memory.c:654:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dest, src, length); data/gcr-3.38.0/egg/egg-secure-memory.c:1346:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (res, str, len); data/gcr-3.38.0/egg/egg-symkey.c:171: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 (digest, digested, n_digest); data/gcr-3.38.0/egg/egg-symkey.c:179: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 (digest, digested, n_digest); data/gcr-3.38.0/egg/egg-symkey.c:275:2: [2] (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, digested, n_digest); data/gcr-3.38.0/egg/egg-symkey.c:283:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*key, digest, needed_key); data/gcr-3.38.0/egg/egg-symkey.c:289:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (*iv, digest + (16 - needed_iv), needed_iv); data/gcr-3.38.0/egg/egg-symkey.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 (hash, gcry_md_read (mdh, hash_algo), n_hash); data/gcr-3.38.0/egg/egg-symkey.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 (buf, salt, n_salt); data/gcr-3.38.0/egg/egg-symkey.c:583: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 (U, gcry_md_read (mdh, hash_algo), n_hash); data/gcr-3.38.0/egg/egg-symkey.c:589: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 (output + (i - 1) * n_hash, T, i == l ? r : n_hash); data/gcr-3.38.0/gck/gck-attributes.c:115:2: [2] (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, data, length); data/gcr-3.38.0/gck/gck-attributes.c:713:2: [2] (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, buffer + 0, 4); data/gcr-3.38.0/gck/gck-attributes.c:714:2: [2] (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, buffer + 4, 2); data/gcr-3.38.0/gck/gck-attributes.c:715:2: [2] (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, buffer + 6, 2); data/gcr-3.38.0/gck/gck-attributes.c:1499:2: [2] (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, date->year, 4); data/gcr-3.38.0/gck/gck-attributes.c:1504:2: [2] (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, date->month, 2); data/gcr-3.38.0/gck/gck-attributes.c:1509:2: [2] (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, date->day, 2); data/gcr-3.38.0/gck/gck-misc.c:416:2: [2] (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, string, len); data/gcr-3.38.0/gck/gck-misc.c:456: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(result, value, sizeof(CK_ULONG)); data/gcr-3.38.0/gck/gck-misc.c:479: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(&tempval, value, sizeof(CK_BBOOL)); data/gcr-3.38.0/gck/gck-mock.c:484:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (pInfo, &TEST_INFO, sizeof (*pInfo)); data/gcr-3.38.0/gck/gck-mock.c:554: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 (pInfo, &TEST_INFO_ONE, sizeof (*pInfo)); data/gcr-3.38.0/gck/gck-mock.c:557: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 (pInfo, &TEST_INFO_TWO, sizeof (*pInfo)); data/gcr-3.38.0/gck/gck-mock.c:593:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (pInfo, &TEST_TOKEN_ONE, sizeof (*pInfo)); data/gcr-3.38.0/gck/gck-mock.c:651: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 (pInfo, &TEST_MECH_CAPITALIZE, sizeof (*pInfo)); data/gcr-3.38.0/gck/gck-mock.c:654:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (pInfo, &TEST_MECH_PREFIX, sizeof (*pInfo)); data/gcr-3.38.0/gck/gck-mock.c:772:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (pInfo, &session->info, sizeof (*pInfo)); data/gcr-3.38.0/gck/gck-mock.c:1026: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->value, attr->length); data/gcr-3.38.0/gck/gck-mock.c:1383: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 (session->sign_prefix, pMechanism->pParameter, pMechanism->ulParameterLen); data/gcr-3.38.0/gck/gck-mock.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 (pSignature, session->sign_prefix, session->n_sign_prefix); data/gcr-3.38.0/gck/gck-mock.c:1432:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (pSignature + session->n_sign_prefix, pData, ulDataLen); data/gcr-3.38.0/gck/gck-mock.c:1494: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 (session->sign_prefix, pMechanism->pParameter, pMechanism->ulParameterLen); data/gcr-3.38.0/gck/gck-mock.c:1709:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (pWrappedKey, attr->value, attr->length); data/gcr-3.38.0/gck/test-gck-attributes.c:63:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ck_value, attr.value, sizeof (CK_BBOOL)); data/gcr-3.38.0/gck/test-gck-attributes.c:77:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ck_date.year, "1960", 4); data/gcr-3.38.0/gck/test-gck-attributes.c:78:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ck_date.month, "06", 2); data/gcr-3.38.0/gck/test-gck-attributes.c:79:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ck_date.day, "05", 2); data/gcr-3.38.0/gck/test-gck-attributes.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(&ck_value, attr.value, sizeof (CK_ULONG)); data/gcr-3.38.0/gck/test-gck-attributes.c:166:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ck_value, attr->value, sizeof (CK_BBOOL)); data/gcr-3.38.0/gck/test-gck-attributes.c:180:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ck_date.year, "1800", 4); data/gcr-3.38.0/gck/test-gck-attributes.c:181:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ck_date.month, "06", 2); data/gcr-3.38.0/gck/test-gck-attributes.c:182:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ck_date.day, "05", 2); data/gcr-3.38.0/gck/test-gck-attributes.c:201:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ck_value, attr->value, sizeof (CK_ULONG)); data/gcr-3.38.0/gck/test-gck-attributes.c:267:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ck_date.year, "1800", 4); data/gcr-3.38.0/gck/test-gck-attributes.c:268:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ck_date.month, "06", 2); data/gcr-3.38.0/gck/test-gck-attributes.c:269:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ck_date.day, "05", 2); data/gcr-3.38.0/gck/test-gck-attributes.c:561:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ck_value, attr->value, sizeof (CK_BBOOL)); data/gcr-3.38.0/gck/test-gck-attributes.c:570:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ck_value, attr->value, sizeof (CK_BBOOL)); data/gcr-3.38.0/gck/test-gck-attributes.c:586:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ck_value, attr->value, sizeof (CK_BBOOL)); data/gcr-3.38.0/gck/test-gck-attributes.c:611:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ck_date.year, "1960", 4); data/gcr-3.38.0/gck/test-gck-attributes.c:612:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ck_date.month, "08", 2); data/gcr-3.38.0/gck/test-gck-attributes.c:613:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ck_date.day, "08", 2); data/gcr-3.38.0/gck/test-gck-attributes.c:643:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ck_date.year, "1960", 4); data/gcr-3.38.0/gck/test-gck-attributes.c:644:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ck_date.month, "06", 2); data/gcr-3.38.0/gck/test-gck-attributes.c:645:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ck_date.day, "05", 2); data/gcr-3.38.0/gck/test-gck-attributes.c:691:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ck_value, attr->value, sizeof (CK_ULONG)); data/gcr-3.38.0/gck/test-gck-attributes.c:700:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ck_value, attr->value, sizeof (CK_ULONG)); data/gcr-3.38.0/gck/test-gck-attributes.c:715:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ck_value, attr->value, sizeof (CK_ULONG)); data/gcr-3.38.0/gcr/gcr-certificate-request.c:306:2: [2] (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, SHA1_ASN, sizeof (SHA1_ASN)); data/gcr-3.38.0/gcr/gcr-mock-prompter.c:602: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 (¶meter->value, &value, sizeof (value)); data/gcr-3.38.0/gcr/gcr-openpgp.c:108: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, *at, length); data/gcr-3.38.0/gcr/gcr-record.c:61:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (block->value, value, length); data/gcr-3.38.0/gcr/gcr-record.c:111: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 ((gchar *)result->columns[i], record->columns[i], len + 1); data/gcr-3.38.0/gcr/gcr-record.c:272:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dest, source, (p - source)); data/gcr-3.38.0/gcr/gcr-record.c:388:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dest, source, off); data/gcr-3.38.0/ui/gcr-secure-entry-buffer.c:136:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (pv->text + at, chars, n_bytes); data/gcr-3.38.0/egg/egg-armor.c:169: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 (stype); data/gcr-3.38.0/egg/egg-asn1x.c:2529: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). next = p = oid + strlen (oid); data/gcr-3.38.0/egg/egg-asn1x.c:3475: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_data = strlen (data); data/gcr-3.38.0/egg/egg-asn1x.c:3726: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_data = strlen (oid); data/gcr-3.38.0/egg/egg-asn1x.c:4361:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strspn (odef->value, "01234567890") == strlen (odef->value)) { data/gcr-3.38.0/egg/egg-asn1x.c:4736: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). n_time = strlen (time); data/gcr-3.38.0/egg/egg-asn1x.c:4767: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). n_time = strlen (time); data/gcr-3.38.0/egg/egg-buffer.c:461: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). size_t len = strlen (str); data/gcr-3.38.0/egg/egg-decimal.c:48: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). n_data = strlen (data); data/gcr-3.38.0/egg/egg-hex.c:55: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). n_data = strlen (data); data/gcr-3.38.0/egg/egg-hex.c:56: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). n_delim = delim ? strlen (delim) : 0; data/gcr-3.38.0/egg/egg-openssl.c:191: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). *iv = egg_hex_decode (parts[1], strlen(parts[1]), &len); data/gcr-3.38.0/egg/egg-secure-memory.c:1322: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 (str) + 1; data/gcr-3.38.0/egg/egg-secure-memory.c:1371: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). egg_secure_clear ((unsigned char*)str, strlen (str)); data/gcr-3.38.0/egg/egg-symkey.c:124: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). n_password = strlen (password); data/gcr-3.38.0/egg/egg-symkey.c:227: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). n_password = strlen (password); data/gcr-3.38.0/egg/egg-symkey.c:322: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). end_password = utf8_password + strlen (utf8_password); data/gcr-3.38.0/egg/egg-symkey.c:623: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). n_password = strlen (password); data/gcr-3.38.0/egg/test-armor.c:67:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bytes = g_bytes_new_static (pem_data, strlen (pem_data)); data/gcr-3.38.0/egg/test-armor.c:96:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bytes = g_bytes_new_static (pem_data, strlen (pem_data)); data/gcr-3.38.0/egg/test-armor.c:118:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bytes = g_bytes_new_static (data, strlen (data)); data/gcr-3.38.0/egg/test-decimal.c:115: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 (decimal) == 41) { data/gcr-3.38.0/egg/test-secmem.c:135: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 (str) + 1; data/gcr-3.38.0/egg/test-secmem.c:245: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). g_assert_cmpuint (strlen (str), ==, 6); data/gcr-3.38.0/egg/test-secmem.c:249: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). g_assert_cmpuint (strlen (str), ==, 6); data/gcr-3.38.0/egg/test-symkey.c:377:48: [1] (buffer) strlen: Does not handle 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->password, strlen (test->password), data/gcr-3.38.0/egg/test-symkey.c:494:48: [1] (buffer) strlen: Does not handle 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->password, strlen (test->password), data/gcr-3.38.0/egg/test-symkey.c:581: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). test->password, strlen (test->password), data/gcr-3.38.0/gck/gck-attributes.c:782:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (const guchar *)value, value ? strlen (value) : 0); data/gcr-3.38.0/gck/gck-attributes.c:801:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (const guchar *)value, value ? strlen (value) : 0); data/gcr-3.38.0/gck/gck-attributes.c:1714: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). value ? strlen (value) : 0); data/gcr-3.38.0/gck/gck-misc.c:411: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/gcr-3.38.0/gck/gck-mock.c:322: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). n_the_pin = strlen (password); data/gcr-3.38.0/gck/gck-mock.c:349: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). n_the_pin = strlen (the_pin); data/gcr-3.38.0/gck/gck-mock.c:668: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). g_return_val_if_fail (strlen ("TEST PIN") == ulPinLen, CKR_PIN_INVALID); data/gcr-3.38.0/gck/gck-mock.c:854:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (pPinLen != strlen (the_pin)) data/gcr-3.38.0/gck/gck-mock.c:1386: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). g_assert (strlen (SIGNED_PREFIX) + 1 < sizeof (session->sign_prefix)); data/gcr-3.38.0/gck/gck-mock.c:1388: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). session->n_sign_prefix = strlen (SIGNED_PREFIX); data/gcr-3.38.0/gck/gck-mock.c:1497: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). g_assert (strlen (SIGNED_PREFIX) + 1 < sizeof (session->sign_prefix)); data/gcr-3.38.0/gck/gck-mock.c:1499: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). session->n_sign_prefix = strlen (SIGNED_PREFIX); data/gcr-3.38.0/gck/test-gck-attributes.c:111: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). g_assert (attr.length == strlen ("a test string")); data/gcr-3.38.0/gck/test-gck-attributes.c:215: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). g_assert (attr->length == strlen ("a test string")); data/gcr-3.38.0/gck/test-gck-attributes.c:746: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). g_assert (attr->length == strlen ("My my")); data/gcr-3.38.0/gck/test-gck-attributes.c:756: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). g_assert (attr->length == strlen ("a test string")); data/gcr-3.38.0/gck/test-gck-attributes.c:764: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). g_assert (attr->length == strlen ("a test string")); data/gcr-3.38.0/gck/test-gck-crypto.c:174:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). egg_assert_cmpsize (attr->length, ==, strlen (value)); data/gcr-3.38.0/gcr/gcr-gnupg-process.c:579:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = read (fd, block, sizeof (block)); data/gcr-3.38.0/gcr/gcr-gnupg-process.c:647:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). gssize read; data/gcr-3.38.0/gcr/gcr-gnupg-process.c:660:51: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). g_byte_array_set_size (gnupg_source->input_buf, read < 0 ? 0 : read); data/gcr-3.38.0/gcr/gcr-gnupg-process.c:660:66: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). g_byte_array_set_size (gnupg_source->input_buf, read < 0 ? 0 : read); data/gcr-3.38.0/gcr/gcr-gnupg-process.c:661:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read < 0) data/gcr-3.38.0/gcr/gcr-gnupg-records.c:159: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 (keyid); data/gcr-3.38.0/gcr/gcr-mock-prompter.c:477: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). strength = strlen (password) > 0 ? 1 : 0; data/gcr-3.38.0/gcr/gcr-openssh.c:107: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). gsize len = strlen (matches); data/gcr-3.38.0/gcr/gcr-openssh.c:412:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). alg = keytype_to_algo (stype, stype ? strlen (stype) : 0); data/gcr-3.38.0/gcr/gcr-parser.c:1819: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). parsed_attribute (parsed, CKA_VALUE, string, strlen (string)); data/gcr-3.38.0/gcr/gcr-pkcs11-importer.c:363: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). fingerprint, strlen (fingerprint)); data/gcr-3.38.0/gcr/gcr-pkcs11-importer.c:370: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). fingerprint, strlen (fingerprint)); data/gcr-3.38.0/gcr/gcr-record.c:101: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). total += strlen (record->columns[i]) + 1; data/gcr-3.38.0/gcr/gcr-record.c:109: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 (record->columns[i]); data/gcr-3.38.0/gcr/gcr-record.c:223: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). n_line = strlen (line); data/gcr-3.38.0/gcr/gcr-record.c:232: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). n_line = strlen (line); data/gcr-3.38.0/gcr/gcr-record.c:271:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dest = g_malloc (strlen (source) + 1); data/gcr-3.38.0/gcr/gcr-record.c:386: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). dest = g_malloc (strlen (source) * 4 + 1); data/gcr-3.38.0/gcr/gcr-record.c:461:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). block = record_block_take (escaped, strlen (escaped)); data/gcr-3.38.0/gcr/gcr-record.c:463: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). block = record_block_new (string, strlen (string)); data/gcr-3.38.0/gcr/gcr-record.c:539: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). record_block_take (escaped, strlen (escaped))); data/gcr-3.38.0/gcr/gcr-record.c:586: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). record_block_take (escaped, strlen (escaped))); data/gcr-3.38.0/gcr/gcr-record.c:702: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). record_block_new (value, strlen (value))); data/gcr-3.38.0/gcr/gcr-record.c:715:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). record_block_take (value, strlen (value))); data/gcr-3.38.0/gcr/gcr-record.c:841:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). block = record_block_take (lines[i], strlen (lines[i])); data/gcr-3.38.0/gcr/gcr-secret-exchange.c:420: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). if (!g_key_file_load_from_data (input, exchange, strlen (exchange), data/gcr-3.38.0/gcr/gcr-secret-exchange.c:546:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). secret_len = strlen (secret); data/gcr-3.38.0/gcr/gcr-ssh-askpass.c:155:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read (fd, input->str + len, 256); data/gcr-3.38.0/gcr/gcr-ssh-askpass.c:508:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read (fd, buf, 128); data/gcr-3.38.0/gcr/test-openssh.c:124:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bytes = g_bytes_new_static (data, strlen (data)); data/gcr-3.38.0/gcr/test-openssh.c:141:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bytes = g_bytes_new_static (data, strlen (data)); data/gcr-3.38.0/gcr/test-openssh.c:158:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bytes = g_bytes_new_static (data, strlen (data)); data/gcr-3.38.0/gcr/test-openssh.c:175:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bytes = g_bytes_new_static (data, strlen (data)); data/gcr-3.38.0/gcr/test-openssh.c:192:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bytes = g_bytes_new_static (data, strlen (data)); data/gcr-3.38.0/gcr/test-openssh.c:209:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bytes = g_bytes_new_static (data, strlen (data)); data/gcr-3.38.0/gcr/test-secure-memory.c:159: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 (str) + 1; data/gcr-3.38.0/ui/gcr-gnupg-renderer.c:586: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 (klass) >= 2) { data/gcr-3.38.0/ui/gcr-prompt-dialog.c:331: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 (password); ANALYSIS SUMMARY: Hits = 190 Lines analyzed = 106603 in approximately 2.44 seconds (43745 lines/second) Physical Source Lines of Code (SLOC) = 70852 Hits@level = [0] 21 [1] 84 [2] 87 [3] 8 [4] 11 [5] 0 Hits@level+ = [0+] 211 [1+] 190 [2+] 106 [3+] 19 [4+] 11 [5+] 0 Hits/KSLOC@level+ = [0+] 2.97804 [1+] 2.68165 [2+] 1.49608 [3+] 0.268165 [4+] 0.155253 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.