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/globus-gssapi-gsi-14.11/library/export_name.c Examining data/globus-gssapi-gsi-14.11/library/globus_ssl_locl.h Examining data/globus-gssapi-gsi-14.11/library/module.c Examining data/globus-gssapi-gsi-14.11/library/display_status.c Examining data/globus-gssapi-gsi-14.11/library/import_sec_context.c Examining data/globus-gssapi-gsi-14.11/library/inquire_cred_by_oid.c Examining data/globus-gssapi-gsi-14.11/library/init_sec_context.c Examining data/globus-gssapi-gsi-14.11/library/inquire_cred.c Examining data/globus-gssapi-gsi-14.11/library/acquire_cred.c Examining data/globus-gssapi-gsi-14.11/library/unwrap.c Examining data/globus-gssapi-gsi-14.11/library/import_name.c Examining data/globus-gssapi-gsi-14.11/library/inquire_sec_context_by_oid.c Examining data/globus-gssapi-gsi-14.11/library/get_hash.c Examining data/globus-gssapi-gsi-14.11/library/gssapi_openssl.h Examining data/globus-gssapi-gsi-14.11/library/delete_sec_context.c Examining data/globus-gssapi-gsi-14.11/library/read_vhost_cred_dir.c Examining data/globus-gssapi-gsi-14.11/library/globus_i_gsi_gss_utils.h Examining data/globus-gssapi-gsi-14.11/library/inquire_names_for_mech.c Examining data/globus-gssapi-gsi-14.11/library/init_delegation.c Examining data/globus-gssapi-gsi-14.11/library/globus_gsi_gss_error.c Examining data/globus-gssapi-gsi-14.11/library/gssapi_working.c Examining data/globus-gssapi-gsi-14.11/library/import_cred.c Examining data/globus-gssapi-gsi-14.11/library/globus_gsi_gss_constants.h Examining data/globus-gssapi-gsi-14.11/library/gmac.c Examining data/globus-gssapi-gsi-14.11/library/display_name.c Examining data/globus-gssapi-gsi-14.11/library/export_cred.c Examining data/globus-gssapi-gsi-14.11/library/duplicate_name.c Examining data/globus-gssapi-gsi-14.11/library/oid_functions.c Examining data/globus-gssapi-gsi-14.11/library/wrap.c Examining data/globus-gssapi-gsi-14.11/library/inquire_context.c Examining data/globus-gssapi-gsi-14.11/library/release_cred.c Examining data/globus-gssapi-gsi-14.11/library/globus_i_gsi_gss_utils.c Examining data/globus-gssapi-gsi-14.11/library/get_mic.c Examining data/globus-gssapi-gsi-14.11/library/release_buffer.c Examining data/globus-gssapi-gsi-14.11/library/accept_sec_context.c Examining data/globus-gssapi-gsi-14.11/library/set_sec_context_option.c Examining data/globus-gssapi-gsi-14.11/library/buffer_set.c Examining data/globus-gssapi-gsi-14.11/library/release_name.c Examining data/globus-gssapi-gsi-14.11/library/verify_mic.c Examining data/globus-gssapi-gsi-14.11/library/export_sec_context.c Examining data/globus-gssapi-gsi-14.11/library/gssapi.h Examining data/globus-gssapi-gsi-14.11/library/compare_name.c Examining data/globus-gssapi-gsi-14.11/library/accept_delegation.c Examining data/globus-gssapi-gsi-14.11/test/indicate_mechs_test.c Examining data/globus-gssapi-gsi-14.11/test/release_name_test.c Examining data/globus-gssapi-gsi-14.11/test/gssapi_thread_test.c Examining data/globus-gssapi-gsi-14.11/test/gssapi_delegation_compat_test.c Examining data/globus-gssapi-gsi-14.11/test/alpn-test.c Examining data/globus-gssapi-gsi-14.11/test/mic_test.c Examining data/globus-gssapi-gsi-14.11/test/gssapi_expimp_test.c Examining data/globus-gssapi-gsi-14.11/test/mech_compatibility_test.c Examining data/globus-gssapi-gsi-14.11/test/nonterminated_export_cred_test.c Examining data/globus-gssapi-gsi-14.11/test/duplicate_name_test.c Examining data/globus-gssapi-gsi-14.11/test/compare_name_test.c Examining data/globus-gssapi-gsi-14.11/test/error-test.c Examining data/globus-gssapi-gsi-14.11/test/unwrap-null-test.c Examining data/globus-gssapi-gsi-14.11/test/gssapi_import_name.c Examining data/globus-gssapi-gsi-14.11/test/gssapi_expimp_cred_test.c Examining data/globus-gssapi-gsi-14.11/test/gssapi_import_context_test.c Examining data/globus-gssapi-gsi-14.11/test/gssapi_test_utils.h Examining data/globus-gssapi-gsi-14.11/test/gssapi_module_test.c Examining data/globus-gssapi-gsi-14.11/test/sni-test.c Examining data/globus-gssapi-gsi-14.11/test/import_cred_test.c Examining data/globus-gssapi-gsi-14.11/test/gssapi_delegation_test.c Examining data/globus-gssapi-gsi-14.11/test/gssapi_acquire_test.c Examining data/globus-gssapi-gsi-14.11/test/gssapi_anonymous_test.c Examining data/globus-gssapi-gsi-14.11/test/tls-cipher-test.c Examining data/globus-gssapi-gsi-14.11/test/gssapi_test_utils.c Examining data/globus-gssapi-gsi-14.11/test/tls-version-test.c Examining data/globus-gssapi-gsi-14.11/test/inquire_names_for_mech_test.c Examining data/globus-gssapi-gsi-14.11/test/wrap_test.c Examining data/globus-gssapi-gsi-14.11/test/gssapi_limited_delegation_test.c Examining data/globus-gssapi-gsi-14.11/test/gssapi_inquire_sec_ctx_by_oid_test.c FINAL RESULTS: data/globus-gssapi-gsi-14.11/library/read_vhost_cred_dir.c:95:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(full_path, "%s/%s", dirname, dir_entry->d_name); data/globus-gssapi-gsi-14.11/library/read_vhost_cred_dir.c:107:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(import_name, "p=%s/%s", dirname, dir_entry->d_name); data/globus-gssapi-gsi-14.11/test/indicate_mechs_test.c:196:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(format, i + 1, tests[i].name); data/globus-gssapi-gsi-14.11/library/globus_i_gsi_gss_utils.c:390:20: [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. && getenv("X509_VHOST_CRED_DIR") != NULL) data/globus-gssapi-gsi-14.11/library/globus_i_gsi_gss_utils.c:439:16: [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. && getenv("X509_VHOST_CRED_DIR") != NULL) data/globus-gssapi-gsi-14.11/library/globus_i_gsi_gss_utils.c:2550:21: [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. extra_pem = getenv("GLOBUS_GFS_EXTRA_CA_CERTS"); data/globus-gssapi-gsi-14.11/library/module.c:294:29: [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. && !getenv(conf_keys[i])) data/globus-gssapi-gsi-14.11/library/module.c:303:29: [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(conf_keys[i]) == NULL) data/globus-gssapi-gsi-14.11/test/alpn-test.c:1035:56: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *default_cert = getenv("X509_USER_CERT"); data/globus-gssapi-gsi-14.11/test/alpn-test.c:1036:55: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *default_key = getenv("X509_USER_KEY"); data/globus-gssapi-gsi-14.11/test/alpn-test.c:1043:16: [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. certfile = getenv ("X509_USER_CERT"); data/globus-gssapi-gsi-14.11/test/alpn-test.c:1044:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. keyfile = getenv ("X509_USER_KEY"); data/globus-gssapi-gsi-14.11/test/duplicate_name_test.c:405:57: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char * test_cert_dir = getenv("TEST_CERT_DIR"); data/globus-gssapi-gsi-14.11/test/gssapi_acquire_test.c:35:31: [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. .x509_user_cert = getenv("X509_USER_CERT"), data/globus-gssapi-gsi-14.11/test/gssapi_acquire_test.c:36:30: [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. .x509_user_key = getenv("X509_USER_KEY"), data/globus-gssapi-gsi-14.11/test/gssapi_acquire_test.c:40:31: [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. .x509_user_cert = getenv("X509_USER_CERT2"), data/globus-gssapi-gsi-14.11/test/gssapi_acquire_test.c:41:30: [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. .x509_user_key = getenv("X509_USER_KEY2"), data/globus-gssapi-gsi-14.11/test/gssapi_acquire_test.c:45:31: [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. .x509_user_cert = getenv("X509_USER_CERT"), data/globus-gssapi-gsi-14.11/test/gssapi_acquire_test.c:46:30: [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. .x509_user_key = getenv("X509_USER_KEY2"), data/globus-gssapi-gsi-14.11/test/gssapi_acquire_test.c:50:31: [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. .x509_user_cert = getenv("X509_USER_CERT2"), data/globus-gssapi-gsi-14.11/test/gssapi_acquire_test.c:51:30: [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. .x509_user_key = getenv("X509_USER_KEY"), data/globus-gssapi-gsi-14.11/test/gssapi_import_name.c:487:21: [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. test_cert_dir = getenv("TEST_CERT_DIR"); data/globus-gssapi-gsi-14.11/test/gssapi_import_name.c:601:21: [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. test_cert_dir = getenv("TEST_CERT_DIR"); data/globus-gssapi-gsi-14.11/test/gssapi_thread_test.c:125:29: [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. printf("ok - %s\n", getenv("GLOBUS_THREAD_MODEL")); data/globus-gssapi-gsi-14.11/test/gssapi_thread_test.c:129:33: [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. printf("not ok - %s\n", getenv("GLOBUS_THREAD_MODEL")); data/globus-gssapi-gsi-14.11/test/import_cred_test.c:14:18: [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 ((rc = getopt(argc, argv, "o:i:")) != -1) data/globus-gssapi-gsi-14.11/test/mech_compatibility_test.c:153:18: [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 ((ch = getopt(argc, argv, "n")) != -1) { data/globus-gssapi-gsi-14.11/test/mech_compatibility_test.c:170:35: [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. backward_compatible_mic = getenv( data/globus-gssapi-gsi-14.11/test/mech_compatibility_test.c:173:42: [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. accept_backward_compatible_mic = getenv( data/globus-gssapi-gsi-14.11/test/release_name_test.c:251:57: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char * test_cert_dir = getenv("TEST_CERT_DIR"); data/globus-gssapi-gsi-14.11/test/sni-test.c:1160:21: [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. old_vhost_env = getenv("X509_VHOST_CRED_DIR"); data/globus-gssapi-gsi-14.11/test/sni-test.c:1344:56: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *default_cert = getenv("X509_USER_CERT"); data/globus-gssapi-gsi-14.11/test/sni-test.c:1345:55: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *default_key = getenv("X509_USER_KEY"); data/globus-gssapi-gsi-14.11/test/sni-test.c:1358:24: [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. certfile = getenv(certname); data/globus-gssapi-gsi-14.11/test/sni-test.c:1359:23: [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. keyfile = getenv(keyname); data/globus-gssapi-gsi-14.11/test/sni-test.c:1365:24: [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. certfile = getenv("X509_USER_CERT"); data/globus-gssapi-gsi-14.11/test/sni-test.c:1366:23: [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. keyfile = getenv("X509_USER_KEY"); data/globus-gssapi-gsi-14.11/library/accept_delegation.c:102:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dbuf[1]; data/globus-gssapi-gsi-14.11/library/accept_sec_context.c:70:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dbuf[1]; data/globus-gssapi-gsi-14.11/library/buffer_set.c:166:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_elements, set->elements, data/globus-gssapi-gsi-14.11/library/buffer_set.c:181: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(new_elements[set->count].value, data/globus-gssapi-gsi-14.11/library/compare_name.c:721:48: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ip_as_ints[j] = ((unsigned char *) ns1)[j]; data/globus-gssapi-gsi-14.11/library/export_name.c:91: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(&(ename[i]), data/globus-gssapi-gsi-14.11/library/export_name.c:103: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(&(ename[i]), oneline_name, oneline_name_len); data/globus-gssapi-gsi-14.11/library/export_sec_context.c:72:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char int_buffer[4]; data/globus-gssapi-gsi-14.11/library/get_mic.c:26:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char ssl3_pad_1[48]={ data/globus-gssapi-gsi-14.11/library/get_mic.c:233:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char iv[iv_len]; data/globus-gssapi-gsi-14.11/library/get_mic.c:266: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(iv, message_token->value, 8); data/globus-gssapi-gsi-14.11/library/get_mic.c:267: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(iv+8, context->mac_iv_fixed, iv_len - 8); data/globus-gssapi-gsi-14.11/library/globus_gsi_gss_error.c:28: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 * data/globus-gssapi-gsi-14.11/library/globus_i_gsi_gss_utils.c:726: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. char buff[256]; data/globus-gssapi-gsi-14.11/library/globus_i_gsi_gss_utils.c:1264:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cipher_description[256]; data/globus-gssapi-gsi-14.11/library/globus_i_gsi_gss_utils.c:1851:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char intbuffer[4]; data/globus-gssapi-gsi-14.11/library/globus_i_gsi_gss_utils.c:1964:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char int_buffer[4]; data/globus-gssapi-gsi-14.11/library/gmac.c:54:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char tag[static 16]) data/globus-gssapi-gsi-14.11/library/gmac.c:62:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ciphertext[1] = {0}; data/globus-gssapi-gsi-14.11/library/gssapi_openssl.h:265:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 * iv, data/globus-gssapi-gsi-14.11/library/gssapi_openssl.h:266:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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, data/globus-gssapi-gsi-14.11/library/gssapi_openssl.h:268:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char tag[static 16]); data/globus-gssapi-gsi-14.11/library/import_cred.c:172:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(filename, p + 1, pathlen-1); data/globus-gssapi-gsi-14.11/library/import_cred.c:178:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[256]; data/globus-gssapi-gsi-14.11/library/import_cred.c:198:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cert_path[ data/globus-gssapi-gsi-14.11/library/import_cred.c:230:39: [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). cert_fp = fopen(cert_path, "r"); data/globus-gssapi-gsi-14.11/library/import_cred.c:236:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key_path[ data/globus-gssapi-gsi-14.11/library/import_cred.c:268:38: [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). key_fp = fopen(key_path, "r"); data/globus-gssapi-gsi-14.11/library/import_cred.c:314:27: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(filename,"r")) == NULL) data/globus-gssapi-gsi-14.11/library/import_name.c:153: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(name_buffer, data/globus-gssapi-gsi-14.11/library/import_name.c:291:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(output_name->user_name, data/globus-gssapi-gsi-14.11/library/import_name.c:335: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(name_buffer, data/globus-gssapi-gsi-14.11/library/import_name.c:531:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char realhostname[NI_MAXHOST + 1]; data/globus-gssapi-gsi-14.11/library/import_sec_context.c:58:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char int_buffer[4]; data/globus-gssapi-gsi-14.11/library/init_sec_context.c:57:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cbuf[1]; data/globus-gssapi-gsi-14.11/library/inquire_context.c:54:41: [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 * open) data/globus-gssapi-gsi-14.11/library/inquire_context.c:178:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (open) data/globus-gssapi-gsi-14.11/library/module.c:138:16: [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). gsi_conf = open(gsi_conf_path, O_RDONLY); data/globus-gssapi-gsi-14.11/library/module.c:368:43: [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). globus_i_gsi_gssapi_debug_level = atoi(tmp_string); data/globus-gssapi-gsi-14.11/library/module.c:379:45: [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). globus_i_gsi_gssapi_debug_fstream = fopen(tmp_string, "a"); data/globus-gssapi-gsi-14.11/library/module.c:517: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. char buffer[buflen]; data/globus-gssapi-gsi-14.11/library/oid_functions.c:205: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(new_elements, set->elements, sizeof(gss_OID_desc) * set->count); data/globus-gssapi-gsi-14.11/library/oid_functions.c:209: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(&new_elements[set->count], member_oid, sizeof(gss_OID_desc)); data/globus-gssapi-gsi-14.11/library/read_vhost_cred_dir.c:83: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. char full_path[ data/globus-gssapi-gsi-14.11/library/read_vhost_cred_dir.c:85: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. char import_name[ data/globus-gssapi-gsi-14.11/library/set_sec_context_option.c:241:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(context->sni_credentials, value->value, value->length); data/globus-gssapi-gsi-14.11/library/set_sec_context_option.c:257:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(context->alpn, value->value, value->length); data/globus-gssapi-gsi-14.11/library/unwrap.c:61:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char readarea[SSL3_RT_MAX_PLAIN_LENGTH]; data/globus-gssapi-gsi-14.11/library/unwrap.c:184:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(output_message_buffer->value, data/globus-gssapi-gsi-14.11/library/unwrap.c:258:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((char *) output_message_buffer->value) + data/globus-gssapi-gsi-14.11/library/verify_mic.c:26:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char ssl3_pad_1[48]={ data/globus-gssapi-gsi-14.11/library/verify_mic.c:254:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char md[EVP_MAX_MD_SIZE] = {0}; data/globus-gssapi-gsi-14.11/library/verify_mic.c:407:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char md[EVP_MAX_MD_SIZE] = {0}; data/globus-gssapi-gsi-14.11/library/verify_mic.c:523:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char iv[iv_len]; data/globus-gssapi-gsi-14.11/library/verify_mic.c:525:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char outtag[16] = {0}; data/globus-gssapi-gsi-14.11/library/verify_mic.c:548: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(iv, token_buffer->value, 8); data/globus-gssapi-gsi-14.11/library/verify_mic.c:549: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(iv + 8, context_handle->mac_iv_fixed, iv_len - 8); data/globus-gssapi-gsi-14.11/library/wrap.c:272: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(message_value, mic_buf->value, mic_buf->length); data/globus-gssapi-gsi-14.11/library/wrap.c:274: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(message_value, input_message_buffer->value, data/globus-gssapi-gsi-14.11/test/alpn-test.c:1037:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char certname[strlen("X509_USER_CERT") + 2]; data/globus-gssapi-gsi-14.11/test/alpn-test.c:1038:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char keyname[strlen("X509_USER_KEY") + 2]; data/globus-gssapi-gsi-14.11/test/compare_name_test.c:395: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. static char name_type1[32], name_type2[32]; data/globus-gssapi-gsi-14.11/test/compare_name_test.c:396: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. static char name_token1[128], name_token2[128]; data/globus-gssapi-gsi-14.11/test/compare_name_test.c:397: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. static char expectation[16]; data/globus-gssapi-gsi-14.11/test/compare_name_test.c:412:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(filename, O_RDONLY, 0); data/globus-gssapi-gsi-14.11/test/gssapi_expimp_test.c:43:56: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE * context_file = tmpfile(); data/globus-gssapi-gsi-14.11/test/gssapi_test_utils.c:433:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[128]; data/globus-gssapi-gsi-14.11/test/gssapi_test_utils.c:493:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). dump_file = fopen(filename,"w"); data/globus-gssapi-gsi-14.11/test/gssapi_test_utils.c:556:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char token_length_buffer[4]; data/globus-gssapi-gsi-14.11/test/gssapi_test_utils.c:637:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char token_length_buffer[4]; data/globus-gssapi-gsi-14.11/test/import_cred_test.c:19:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). option_req = atoi(optarg); data/globus-gssapi-gsi-14.11/test/nonterminated_export_cred_test.c:35: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( data/globus-gssapi-gsi-14.11/test/nonterminated_export_cred_test.c:81:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(path, p+1, pathlen-1); data/globus-gssapi-gsi-14.11/test/sni-test.c:1349: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. char certname[strlen("X509_USER_CERT") + 2]; data/globus-gssapi-gsi-14.11/test/sni-test.c:1350: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. char keyname[strlen("X509_USER_KEY") + 2]; data/globus-gssapi-gsi-14.11/library/compare_name.c:1070: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). host_cpy1 = malloc(strlen(host1)+1); data/globus-gssapi-gsi-14.11/library/compare_name.c:1083: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). host_cpy2 = malloc(strlen(host2)+1); data/globus-gssapi-gsi-14.11/library/display_name.c:87: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). output_name->length = strlen(GSS_I_ANON_NAME); data/globus-gssapi-gsi-14.11/library/display_name.c:99: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). output_name->length = strlen(output_name->value); data/globus-gssapi-gsi-14.11/library/display_name.c:114: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). output_name->length = strlen(output_name->value); data/globus-gssapi-gsi-14.11/library/display_name.c:129: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). output_name->length = strlen(output_name->value); data/globus-gssapi-gsi-14.11/library/display_name.c:143: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). output_name->length = strlen(output_name->value); data/globus-gssapi-gsi-14.11/library/display_name.c:168: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). output_name->length = strlen(output_name->value); data/globus-gssapi-gsi-14.11/library/display_status.c:114:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). status_string->length = strlen(status_string->value); data/globus-gssapi-gsi-14.11/library/display_status.c:129:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). status_string->length = strlen(status_string->value); data/globus-gssapi-gsi-14.11/library/export_cred.c:198:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). export_buffer->length = strlen(export_buffer->value)+1; data/globus-gssapi-gsi-14.11/library/export_name.c:73: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). oneline_name_len = strlen(oneline_name); data/globus-gssapi-gsi-14.11/library/globus_i_gsi_gss_utils.c:1184:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("EXPERIMENTAL-GSI-MAC-KEY"), data/globus-gssapi-gsi-14.11/library/globus_i_gsi_gss_utils.c:1203:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("EXPERIMENTAL-GSI-MAC-IV-FIXED"), data/globus-gssapi-gsi-14.11/library/globus_i_gsi_gss_utils.c:1227:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen("EXPERIMENTAL-GSI-MAC-KEY"), data/globus-gssapi-gsi-14.11/library/globus_i_gsi_gss_utils.c:2781:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name->service_name, (char *) data, p-data); data/globus-gssapi-gsi-14.11/library/globus_i_gsi_gss_utils.c:2792:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name->host_name, (char *) p+1, length - (p+1-data)); data/globus-gssapi-gsi-14.11/library/globus_i_gsi_gss_utils.c:2819:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name->host_name, (char *) data, length); data/globus-gssapi-gsi-14.11/library/globus_i_gsi_gss_utils.c:2894: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). .length = strlen(servername), data/globus-gssapi-gsi-14.11/library/import_cred.c:199: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). strlen(filename) + strlen(entry->d_name) + 2]; data/globus-gssapi-gsi-14.11/library/import_cred.c:199: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). strlen(filename) + strlen(entry->d_name) + 2]; data/globus-gssapi-gsi-14.11/library/import_cred.c:237: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). strlen(filename) + strlen(entry->d_name) + 2]; data/globus-gssapi-gsi-14.11/library/import_cred.c:237: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). strlen(filename) + strlen(entry->d_name) + 2]; data/globus-gssapi-gsi-14.11/library/import_name.c:201: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). strlen(name_buffer), data/globus-gssapi-gsi-14.11/library/import_name.c:298: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). strlen(output_name->user_name), data/globus-gssapi-gsi-14.11/library/import_name.c:352: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 (strlen(index+1) > 0) data/globus-gssapi-gsi-14.11/library/import_name.c:388: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). strlen(name_buffer), data/globus-gssapi-gsi-14.11/library/inquire_sec_context_by_oid.c:160: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). .length = strlen(context->sni_servername) + 1, data/globus-gssapi-gsi-14.11/library/inquire_sec_context_by_oid.c:216: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). .length = strlen(tls_version) + 1, data/globus-gssapi-gsi-14.11/library/inquire_sec_context_by_oid.c:245: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). .length = strlen(cipher_name) + 1, data/globus-gssapi-gsi-14.11/library/module.c:166:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc = read(gsi_conf, gsi_conf_data + gsi_conf_size - remain, remain); data/globus-gssapi-gsi-14.11/library/module.c:222: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). memmove(s, t, strlen(t)+1); data/globus-gssapi-gsi-14.11/library/module.c:286: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 (strlen(e+1) > 0) data/globus-gssapi-gsi-14.11/library/read_vhost_cred_dir.c:84: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). strlen(dir_entry->d_name) + strlen(dirname) + 2]; data/globus-gssapi-gsi-14.11/library/read_vhost_cred_dir.c:84: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). strlen(dir_entry->d_name) + strlen(dirname) + 2]; data/globus-gssapi-gsi-14.11/library/read_vhost_cred_dir.c:86: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). strlen(dir_entry->d_name) + strlen(dirname) + 4]; data/globus-gssapi-gsi-14.11/library/read_vhost_cred_dir.c:86: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). strlen(dir_entry->d_name) + strlen(dirname) + 4]; data/globus-gssapi-gsi-14.11/library/read_vhost_cred_dir.c:137: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). .length = strlen(import_name), data/globus-gssapi-gsi-14.11/test/alpn-test.c:1037: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). char certname[strlen("X509_USER_CERT") + 2]; data/globus-gssapi-gsi-14.11/test/alpn-test.c:1038:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char keyname[strlen("X509_USER_KEY") + 2]; data/globus-gssapi-gsi-14.11/test/compare_name_test.c:137: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). buffer.length = strlen(buffer.value); data/globus-gssapi-gsi-14.11/test/compare_name_test.c:149: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). buffer.length = strlen(buffer.value); data/globus-gssapi-gsi-14.11/test/compare_name_test.c:163: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). buffer.length = strlen(buffer.value); data/globus-gssapi-gsi-14.11/test/compare_name_test.c:244: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). buffer.length = strlen(buffer.value); data/globus-gssapi-gsi-14.11/test/compare_name_test.c:256: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). buffer.length = strlen(buffer.value); data/globus-gssapi-gsi-14.11/test/compare_name_test.c:270: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). buffer.length = strlen(buffer.value); data/globus-gssapi-gsi-14.11/test/compare_name_test.c:372:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *name_token_val = malloc(strlen(name_token)+1); data/globus-gssapi-gsi-14.11/test/compare_name_test.c:377:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *name_token_val = malloc(strlen(name_token)+1); data/globus-gssapi-gsi-14.11/test/compare_name_test.c:419:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc = read(fd, buffer, st.st_size); data/globus-gssapi-gsi-14.11/test/compare_name_test.c:434: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). if (strlen(line) != 0) data/globus-gssapi-gsi-14.11/test/duplicate_name_test.c:38: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). name_tok.length = strlen(subject) + 1; data/globus-gssapi-gsi-14.11/test/duplicate_name_test.c:97: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). name_tok.length = strlen(subject) + 1; data/globus-gssapi-gsi-14.11/test/duplicate_name_test.c:254: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). name_tok.length = strlen(subject) + 1; data/globus-gssapi-gsi-14.11/test/duplicate_name_test.c:326: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). name_tok.length = strlen(subject) + 1; data/globus-gssapi-gsi-14.11/test/gssapi_import_name.c:37: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). name_tok.length = strlen(subject) + 1; data/globus-gssapi-gsi-14.11/test/gssapi_import_name.c:102: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). name_tok.length = strlen(subject) + 1; data/globus-gssapi-gsi-14.11/test/gssapi_import_name.c:208: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). name_tok.length = strlen(subject) + 1; data/globus-gssapi-gsi-14.11/test/gssapi_import_name.c:262: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). name_tok.length = strlen(subject) + 1; data/globus-gssapi-gsi-14.11/test/gssapi_import_name.c:316: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). name_tok.length = strlen(subject) + 1; data/globus-gssapi-gsi-14.11/test/gssapi_import_name.c:370: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). name_tok.length = strlen(subject) + 1; data/globus-gssapi-gsi-14.11/test/gssapi_import_name.c:424: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). name_tok.length = strlen(subject); data/globus-gssapi-gsi-14.11/test/gssapi_module_test.c:29:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). answer = fgetc(stdin); data/globus-gssapi-gsi-14.11/test/gssapi_module_test.c:32:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i = fgetc(stdin); data/globus-gssapi-gsi-14.11/test/import_cred_test.c:23: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). input_buffer.length = strlen(optarg); data/globus-gssapi-gsi-14.11/test/release_name_test.c:37: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). name_tok.length = strlen(subject) + 1; data/globus-gssapi-gsi-14.11/test/release_name_test.c:91: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). name_tok.length = strlen(subject) + 1; data/globus-gssapi-gsi-14.11/test/release_name_test.c:167: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). name_tok.length = strlen(subject) + 1; data/globus-gssapi-gsi-14.11/test/release_name_test.c:206: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). name_tok.length = strlen(subject) + 1; data/globus-gssapi-gsi-14.11/test/sni-test.c:234: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). .length = strlen("/CN=test"), data/globus-gssapi-gsi-14.11/test/sni-test.c:431: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). .length = strlen("dns1.example.globus.org"), data/globus-gssapi-gsi-14.11/test/sni-test.c:627: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). .length = strlen("wildcard.example.globus.org"), data/globus-gssapi-gsi-14.11/test/sni-test.c:825: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). .length = strlen(wildcard_name), data/globus-gssapi-gsi-14.11/test/sni-test.c:1027: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). .length = strlen("not-at-example.globus.org"), data/globus-gssapi-gsi-14.11/test/sni-test.c:1168: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). .length = strlen("wildcard.example.globus.org"), data/globus-gssapi-gsi-14.11/test/sni-test.c:1349: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). char certname[strlen("X509_USER_CERT") + 2]; data/globus-gssapi-gsi-14.11/test/sni-test.c:1350: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). char keyname[strlen("X509_USER_KEY") + 2]; ANALYSIS SUMMARY: Hits = 188 Lines analyzed = 28016 in approximately 0.57 seconds (49017 lines/second) Physical Source Lines of Code (SLOC) = 21113 Hits@level = [0] 191 [1] 76 [2] 75 [3] 34 [4] 3 [5] 0 Hits@level+ = [0+] 379 [1+] 188 [2+] 112 [3+] 37 [4+] 3 [5+] 0 Hits/KSLOC@level+ = [0+] 17.951 [1+] 8.90447 [2+] 5.30479 [3+] 1.75247 [4+] 0.142093 [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.