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/moonshot-gss-eap-1.0.1/libeap/src/common/defs.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/common/eapol_common.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/common/ieee802_11_common.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/common/ieee802_11_defs.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/common/privsep_commands.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/common/version.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/common/wpa_common.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/common/wpa_ctrl.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/aes-ctr.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/aes-eax.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/aes-encblock.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/aes-omac1.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/milenage.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/ms_funcs.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/sha1-tlsprf.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/sha1-tprf.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/crypto_openssl.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/aes.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/aes_i.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/aes_wrap.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/crypto.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/dh_group5.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/dh_groups.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/md5.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/milenage.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/ms_funcs.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/random.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/random.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/sha1.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/sha256.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/sha384.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/sha256-tlsprf.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls_openssl.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls_openssl.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_peap_common.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_psk_common.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_pax_common.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_sake_common.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_gpsk_common.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/chap.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/chap.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_common.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_defs.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_fast_common.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_gpsk_common.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_ikev2_common.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_pax_common.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_peap_common.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_psk_common.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_pwd_common.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_sake_common.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_sim_common.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_tlv_common.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_ttls.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_wsc_common.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/ikev2_common.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_common.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_tls.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_peap.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_ttls.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_md5.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_mschapv2.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/mschapv2.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_otp.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_gtc.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_leap.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_psk.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_pax.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_sake.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_gpsk.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_methods.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_tls_common.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_config.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_fast_pac.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_i.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_methods.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_tls_common.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/ikev2.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/mschapv2.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/tncc.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/radius/radius.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/tls/libtommath.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/base64.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/common.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/eloop.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/eloop.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/ext_password.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/ip_addr.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/radiotap.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/trace.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/uuid.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpabuf.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/os_unix.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/radius_utils.c
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/radius_utils.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/base64.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/build_config.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/includes.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/ip_addr.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/list.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/os.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/pcsc_funcs.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/platform.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/radiotap.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/radiotap_iter.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/state_machine.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/trace.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/uuid.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpabuf.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.h
Examining data/moonshot-gss-eap-1.0.1/libeap/src/utils/common.h
Examining data/moonshot-gss-eap-1.0.1/mech_eap/gssapi_eap.h
Examining data/moonshot-gss-eap-1.0.1/mech_eap/acquire_cred.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/acquire_cred_with_password.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/add_cred.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/add_cred_with_password.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/authorize_localname.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/canonicalize_name.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/compare_name.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/context_time.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/delete_sec_context.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/display_name.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/display_name_ext.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/duplicate_name.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/eap_mech.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/exchange_meta_data.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/export_name.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/export_sec_context.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/get_mic.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/gsseap_err.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/import_name.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/import_sec_context.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/indicate_mechs.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/inquire_attrs_for_mech.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/inquire_context.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/inquire_cred.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/inquire_cred_by_mech.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/inquire_cred_by_oid.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/inquire_mech_for_saslname.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/inquire_mechs_for_name.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/inquire_names_for_mech.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/inquire_saslname_for_mech.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/inquire_sec_context_by_oid.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/process_context_token.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/pseudo_random.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/query_mechanism_info.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/query_meta_data.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/radsec_err.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/release_cred.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/release_name.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/release_oid.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/set_cred_option.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/set_sec_context_option.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/store_cred.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/unwrap.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/unwrap_iov.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_buffer.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_context.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_cksum.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_crypt.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_krb.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_lucid.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_mech.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_name.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_oid.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_ordering.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_radius.cpp
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_sm.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_tld.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_token.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/verify_mic.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/wrap.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/wrap_iov.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/wrap_iov_length.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/wrap_size_limit.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/gssapi_headerfix.h
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_attr.h
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_base64.h
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util.h
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_json.h
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_radius.h
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_reauth.h
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_saml.h
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_shib.h
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_moonshot.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/accept_sec_context.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/delete_name_attribute.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/export_name_composite.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/get_name_attribute.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/inquire_name.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/map_name_to_any.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/release_any_name_mapping.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/set_name_attribute.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_attr.cpp
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_base64.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_json.cpp
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_reauth.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_adshim.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/authdata_plugin.h
Examining data/moonshot-gss-eap-1.0.1/mech_eap/display_status.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/gssapiP_eap.h
Examining data/moonshot-gss-eap-1.0.1/mech_eap/init_sec_context.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_cred.c
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_saml.cpp
Examining data/moonshot-gss-eap-1.0.1/mech_eap/util_shib.cpp

FINAL RESULTS:

data/moonshot-gss-eap-1.0.1/libeap/src/utils/trace.c:34:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	len = readlink(exe, fname, sizeof(fname) - 1);
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/aes.h:15:50:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/aes.h:18:39:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/aes_wrap.h:54:12:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
			    u8 *crypt, u8 *tag);
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/aes_wrap.h:57:18:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
			    const u8 *crypt, size_t crypt_len,
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/aes_wrap.h:65:43:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
			    const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth);
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/aes_wrap.h:67:28:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
			    size_t M, const u8 *crypt, size_t crypt_len,
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/crypto.h:131:50:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/crypto.h:153:39:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/crypto.h:255:33:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
				       const u8 *plain, u8 *crypt, size_t len);
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/crypto.h:270:22:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
				       const u8 *crypt, u8 *plain, size_t len);
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/crypto.h:419:43:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
	struct crypto_public_key *key, const u8 *crypt, size_t crypt_len,
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/crypto_openssl.c:287:50:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt)
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/crypto_openssl.c:291:27:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
	if (EVP_EncryptUpdate(c, crypt, &clen, plain, 16) != 1) {
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/crypto_openssl.c:339:39:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain)
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/crypto_openssl.c:343:41:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
	if (EVP_DecryptUpdate(c, plain, &plen, crypt, 16) != 1) {
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/crypto_openssl.c:543:12:  [4] (crypto) EVP_des_cbc:
  DES only supports a 56-bit keysize, which is too small given today's
  computers (CWE-327). Use a different patent-free encryption algorithm with
  a larger keysize, such as 3DES or AES.
		cipher = EVP_des_cbc();
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/crypto_openssl.c:584:10:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
			  u8 *crypt, size_t len)
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/crypto_openssl.c:587:35:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
	if (!EVP_EncryptUpdate(ctx->enc, crypt, &outl, plain, len))
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/crypto_openssl.c:593:64:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt,
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/crypto_openssl.c:598:49:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
	if (!EVP_DecryptUpdate(ctx->dec, plain, &outl, crypt, len))
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls_openssl.c:943:18:  [4] (crypto) EVP_rc2_40_cbc:
  These keysizes are too small given today's computers (CWE-327). Use a
  different patent-free encryption algorithm with a larger keysize, such as
  3DES or AES.
		EVP_add_cipher(EVP_rc2_40_cbc());
data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/ikev2_common.h:282:31:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
		       const u8 *plain, u8 *crypt, size_t len);
data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/ikev2_common.h:284:20:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
		       const u8 *crypt, u8 *plain, size_t len);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/common.c:270:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = vsnprintf(buf, size, fmt, ap);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/common.h:77:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#undef vsnprintf
data/moonshot-gss-eap-1.0.1/libeap/src/utils/common.h:78:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf _vsnprintf
data/moonshot-gss-eap-1.0.1/libeap/src/utils/common.h:344:52:  [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.
#define PRINTF_FORMAT(a,b) __attribute__ ((format (printf, (a), (b))))
data/moonshot-gss-eap-1.0.1/libeap/src/utils/common.h:361:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int snprintf(char *str, size_t size, const char *format, ...);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/common.h:364:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int vsnprintf(char *str, size_t size, const char *format, va_list ap);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os.h:550:21:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define os_snprintf _snprintf
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os.h:552:21:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define os_snprintf snprintf
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os.h:650:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#undef snprintf
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os.h:651:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf OS_DO_NOT_USE_snprintf
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os.h:653:9:  [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).
#define strcpy OS_DO_NOT_USE_strcpy
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os_unix.c:438:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	return access(fname, F_OK) == 0;
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os_unix.c:805:3:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execv(program, argv);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:222:4:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			vfprintf(out_file, fmt, ap);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:226:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(fmt, ap);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:241:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(wpa_debug_tracing_file, WPAS_TRACE_PFX, level);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:242:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(wpa_debug_tracing_file, fmt, ap);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:258:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(wpa_debug_tracing_file,
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:399:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(wpa_debug_tracing_file,
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:616:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	buflen = vsnprintf(NULL, 0, fmt, ap) + 1;
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:636:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	len = vsnprintf(buf, buflen, fmt, ap);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:656:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	buflen = vsnprintf(NULL, 0, fmt, ap) + 1;
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:666:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	len = vsnprintf(buf, buflen, fmt, ap);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:681:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	buflen = vsnprintf(NULL, 0, fmt, ap) + 1;
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:691:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	len = vsnprintf(buf, buflen, fmt, ap);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:711:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	buflen = vsnprintf(NULL, 0, fmt, ap) + 1;
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:721:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	len = vsnprintf(buf, buflen, fmt, ap);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:736:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	buflen = vsnprintf(NULL, 0, fmt, ap) + 1;
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:746:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	len = vsnprintf(buf, buflen, fmt, ap);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:763:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	buflen = vsnprintf(NULL, 0, fmt, ap) + 1;
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:773:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	len = vsnprintf(buf, buflen, fmt, ap);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:802:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	buflen = vsnprintf(NULL, 0, fmt, ap) + 1;
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:812:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	len = vsnprintf(buf, buflen, fmt, ap);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpabuf.c:307:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	res = vsnprintf(tmp, buf->size - buf->used, fmt, ap);
data/moonshot-gss-eap-1.0.1/mech_eap/display_status.c:125:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(buf, sizeof(buf), format, ap);
data/moonshot-gss-eap-1.0.1/mech_eap/util.h:82:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/moonshot-gss-eap-1.0.1/mech_eap/util.h:82:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/moonshot-gss-eap-1.0.1/libeap/src/utils/common.c:371:5:  [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.
int getopt(int argc, char *const argv[], const char *optstring)
data/moonshot-gss-eap-1.0.1/libeap/src/utils/common.h:368:5:  [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.
int getopt(int argc, char *const argv[], const char *optstring);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os_unix.c:271:9:  [3] (random) random:
  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.
	return random();
data/moonshot-gss-eap-1.0.1/mech_eap/eap_mech.c:158: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.
    if ((debug_file = getenv("GSSEAP_TRACE")) != NULL) {
data/moonshot-gss-eap-1.0.1/mech_eap/gssapiP_eap.h:464:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#define getenv secure_getenv
data/moonshot-gss-eap-1.0.1/mech_eap/util.h:865:42:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
#define GSSEAP_MUTEX_INIT(m)            (InitializeCriticalSection((m)), 0)
data/moonshot-gss-eap-1.0.1/mech_eap/util.h:867:41:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
#define GSSEAP_MUTEX_LOCK(m)            EnterCriticalSection((m))
data/moonshot-gss-eap-1.0.1/mech_eap/util_cred.c:156:18:  [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.
    ccacheName = getenv("GSSEAP_IDENTITY");
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/crypto_openssl.c:192:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char skip_buf[16];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/ms_funcs.c:85: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.
	const unsigned char *addr[3];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/ms_funcs.c:245: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.
	const unsigned char *addr1[3];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/ms_funcs.c:247: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.
	const unsigned char *addr2[3];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/ms_funcs.c:329: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.
	const unsigned char *addr[3];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/ms_funcs.c:393: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.
	const unsigned char *addr[4];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/random.c:234:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/dev/random", O_RDONLY | O_NONBLOCK);
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/random.c:367:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[RANDOM_ENTROPY_SIZE];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/random.c:378:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(random_entropy_file, "wb");
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/random.c:415:14:  [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).
	random_fd = open("/dev/random", O_RDONLY | O_NONBLOCK);
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/sha1-tlsprf.c:40: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.
	const unsigned char *SHA1_addr[3];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/sha1-tprf.c:37: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.
	const unsigned char *addr[5];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/sha256-tlsprf.c:36: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.
	const unsigned char *addr[3];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls.h:66: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.
		const char *altsubject[TLS_MAX_ALT_SUBJECT];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls_openssl.c:234:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char client_random[SSL3_RANDOM_SIZE];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls_openssl.c:235:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char server_random[SSL3_RANDOM_SIZE];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls_openssl.c:457:3:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
		MultiByteToWideChar(CP_ACP, 0, name + 7, -1, wbuf, 255);
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls_openssl.c:594:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls_openssl.c:1700:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *altsubject[TLS_MAX_ALT_SUBJECT];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls_openssl.c:1784:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls_openssl.c:2478:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls_openssl.c:2609:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(private_key, "rb");
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls_openssl.c:3212:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char client_random[SSL3_RANDOM_SIZE];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls_openssl.c:3213:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char server_random[SSL3_RANDOM_SIZE];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls_openssl.c:3214:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char master_key[64];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls_openssl.c:3543:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[500], *pos, *end;
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls_openssl.c:4201:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char client_random[SSL3_RANDOM_SIZE];
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls_openssl.c:4202:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char server_random[SSL3_RANDOM_SIZE];
data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_peap_common.c:24: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.
	const unsigned char *addr[5];
data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_sake_common.c:217: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.
	const unsigned char *addr[4];
data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap.c:1263:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mcc_str[4];
data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap.c:1268:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	mcc = atoi(mcc_str);
data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap.c:1283:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *pos, mnc[4];
data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap.c:1325:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char imsi[100];
data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap.c:1594:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nai[254];
data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_gpsk.c:114: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).
			data->forced_cipher = atoi(pos + 7);
data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_mschapv2.c:415:22:  [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).
		data->prev_error = atoi(pos);
data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_mschapv2.c:425:11:  [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).
		retry = atoi(pos);
data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_mschapv2.c:463:33:  [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).
		data->passwd_change_version = atoi(pos);
data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_peap.c:80:30:  [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).
		data->force_peap_version = atoi(pos + 8);
data/moonshot-gss-eap-1.0.1/libeap/src/eap_peer/eap_tls_common.c:772:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char version[20], name[128];
data/moonshot-gss-eap-1.0.1/libeap/src/utils/base64.c:14:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 const unsigned char base64_table[65] =
data/moonshot-gss-eap-1.0.1/libeap/src/utils/base64.c:102:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char dtable[256], *out, *pos, block[4], tmp;
data/moonshot-gss-eap-1.0.1/libeap/src/utils/common.c:613:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char ssid_txt[SSID_MAX_LEN * 4 + 1];
data/moonshot-gss-eap-1.0.1/libeap/src/utils/common.c:790:21:  [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).
		freq[count].min = atoi(pos);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/common.c:795:22:  [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).
			freq[count].max = atoi(pos2);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os.h:503:28:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define os_memcpy(d, s, n) memcpy((d), (s), (n))
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os.h:631: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.
#define memcpy OS_DO_NOT_USE_memcpy
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os.h:660:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char wpa_trace_fail_func[256];
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os.h:662:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char wpa_trace_test_fail_func[256];
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os_unix.c:192:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	devnull = open("/dev/null", O_RDWR);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os_unix.c:229:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *f = fopen(pid_file, "w");
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os_unix.c:256:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen("/dev/urandom", "rb");
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os_unix.c:404:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(name, "rb");
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os_unix.c:511: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 wpa_trace_fail_func[256] = { 0 };
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os_unix.c:516:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *func[WPA_TRACE_LEN];
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os_unix.c:595: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 wpa_trace_test_fail_func[256] = { 0 };
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os_unix.c:600:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *func[WPA_TRACE_LEN];
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os_unix.c:783:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *argv[MAX_ARG + 1];
data/moonshot-gss-eap-1.0.1/libeap/src/utils/trace.c:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char exe[50], fname[512];
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:127:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096] = {};
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:131:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	mounts = open("/proc/mounts", O_RDONLY);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:166:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	trace_fd = open(buf, O_WRONLY);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:551:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	out_file = fopen(path, "a");
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:613:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prefix[130];
data/moonshot-gss-eap-1.0.1/mech_eap/display_status.c:119: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 buf[BUFSIZ];
data/moonshot-gss-eap-1.0.1/mech_eap/export_sec_context.c:49: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 serverBuf[MAXHOSTNAMELEN];
data/moonshot-gss-eap-1.0.1/mech_eap/export_sec_context.c:77: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(p, serverBuf, serverLen);
data/moonshot-gss-eap-1.0.1/mech_eap/export_sec_context.c:84: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(p, ctx->acceptorCtx.state.value,
data/moonshot-gss-eap-1.0.1/mech_eap/gssapiP_eap.h:408:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                      unsigned char auth_scheme[16]);
data/moonshot-gss-eap-1.0.1/mech_eap/import_sec_context.c:85: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(ctx->acceptorCtx.radServer, p, serverLen);
data/moonshot-gss-eap-1.0.1/mech_eap/init_sec_context.c:430: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         hash[32];
data/moonshot-gss-eap-1.0.1/mech_eap/init_sec_context.c:513: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(eapPeerConfig->anonymous_identity + 1, realm.value, realm.length);
data/moonshot-gss-eap-1.0.1/mech_eap/init_sec_context.c:1088: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 wireFlags[4];
data/moonshot-gss-eap-1.0.1/mech_eap/inquire_context.c:52:26:  [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/moonshot-gss-eap-1.0.1/mech_eap/inquire_context.c:98: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 != NULL) {
data/moonshot-gss-eap-1.0.1/mech_eap/inquire_sec_context_by_oid.c:45: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 oidBuf[16];
data/moonshot-gss-eap-1.0.1/mech_eap/pseudo_random.c:122: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((unsigned char *)ns.data + 4, prf_in->value, prf_in->length);
data/moonshot-gss-eap-1.0.1/mech_eap/pseudo_random.c:136: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(p, t.data, MIN(t.length, desired_output_len));
data/moonshot-gss-eap-1.0.1/mech_eap/query_mechanism_info.c:42:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                      unsigned char auth_scheme[16])
data/moonshot-gss-eap-1.0.1/mech_eap/query_mechanism_info.c:52: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(auth_scheme,
data/moonshot-gss-eap-1.0.1/mech_eap/query_mechanism_info.c:64:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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 auth_scheme[16])
data/moonshot-gss-eap-1.0.1/mech_eap/set_cred_option.c:211: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 buf[5];
data/moonshot-gss-eap-1.0.1/mech_eap/unwrap_iov.c:305: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(tbuf, ptr, rc);
data/moonshot-gss-eap-1.0.1/mech_eap/unwrap_iov.c:307: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((char *)ptr + bufsiz - rc, tbuf, rc);
data/moonshot-gss-eap-1.0.1/mech_eap/unwrap_iov.c:475: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(tdata->buffer.value,
data/moonshot-gss-eap-1.0.1/mech_eap/util.h:979: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(p, buffer->value, buffer->length);
data/moonshot-gss-eap-1.0.1/mech_eap/util.h:994:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer->value, cvp, length);
data/moonshot-gss-eap-1.0.1/mech_eap/util_adshim.c:134: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(radius_ad->avpdata.data, authdata[0]->contents,
data/moonshot-gss-eap-1.0.1/mech_eap/util_adshim.c:187:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(value->data, radius_ad->avpdata.data, radius_ad->avpdata.length);
data/moonshot-gss-eap-1.0.1/mech_eap/util_adshim.c:210: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(radius_ad_dst->avpdata.data, radius_ad_src->avpdata.data,
data/moonshot-gss-eap-1.0.1/mech_eap/util_buffer.c:51:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer->value, string, len + 1);
data/moonshot-gss-eap-1.0.1/mech_eap/util_buffer.c:70: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(s, buffer->value, buffer->length);
data/moonshot-gss-eap-1.0.1/mech_eap/util_buffer.c:97: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(dst->value, src->value, dst->length);
data/moonshot-gss-eap-1.0.1/mech_eap/util_cksum.c:116:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        kiov[i].data.data = (char *)iov[j].buffer.value;
data/moonshot-gss-eap-1.0.1/mech_eap/util_context.c:170:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, innerToken->value, innerToken->length);
data/moonshot-gss-eap-1.0.1/mech_eap/util_context.c:249: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 wireTokType[2];
data/moonshot-gss-eap-1.0.1/mech_eap/util_cred.c:140: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 buf[BUFSIZ];
data/moonshot-gss-eap-1.0.1/mech_eap/util_cred.c:145: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 pwbuf[BUFSIZ];
data/moonshot-gss-eap-1.0.1/mech_eap/util_cred.c:159:9:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        TCHAR szPath[MAX_PATH];
data/moonshot-gss-eap-1.0.1/mech_eap/util_cred.c:185:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(ccacheName, "r");
data/moonshot-gss-eap-1.0.1/mech_eap/util_cred.c:408: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 serviceName[5 + MAXHOSTNAMELEN];
data/moonshot-gss-eap-1.0.1/mech_eap/util_cred.c:411: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(serviceName, "host@", 5);
data/moonshot-gss-eap-1.0.1/mech_eap/util_crypt.c:170:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        kiov[i].data.data = (char *)iov[j].buffer.value;
data/moonshot-gss-eap-1.0.1/mech_eap/util_crypt.c:193:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    kiov[i].data.data = (char *)kiov[i - 1].data.data + ec + 16; /* E(Header) */
data/moonshot-gss-eap-1.0.1/mech_eap/util_krb.c:137: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 constant[4 + sizeof("rfc4121-gss-eap") - 1], *p;
data/moonshot-gss-eap-1.0.1/mech_eap/util_krb.c:190: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(&constant[4], "rfc4121-gss-eap", sizeof("rfc4121-gss-eap") - 1);
data/moonshot-gss-eap-1.0.1/mech_eap/util_krb.c:238:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p, t.data, MIN(t.length, remain));
data/moonshot-gss-eap-1.0.1/mech_eap/util_krb.c:446: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 enctypeBuf[128];
data/moonshot-gss-eap-1.0.1/mech_eap/util_krb.c:470: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(string->value, prefix, prefixLength);
data/moonshot-gss-eap-1.0.1/mech_eap/util_krb.c:471: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((char *)string->value + prefixLength, enctypeBuf, enctypeLength);
data/moonshot-gss-eap-1.0.1/mech_eap/util_lucid.c:161: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(lkey->data, KRB_KEY_DATA(&ctx->rfc3961Key), lkey->length);
data/moonshot-gss-eap-1.0.1/mech_eap/util_moonshot.c:220: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(cred->caCertificate.value, HASH_PREFIX, HASH_PREFIX_LEN);
data/moonshot-gss-eap-1.0.1/mech_eap/util_moonshot.c:221: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((char *)cred->caCertificate.value + HASH_PREFIX_LEN, serverCertificateHash, len);
data/moonshot-gss-eap-1.0.1/mech_eap/util_name.c:611: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(p, mech->elements, mech->length);
data/moonshot-gss-eap-1.0.1/mech_eap/util_name.c:620: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(p, nameBuf.value, nameBuf.length);
data/moonshot-gss-eap-1.0.1/mech_eap/util_name.c:624: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(p, attrs.value, attrs.length);
data/moonshot-gss-eap-1.0.1/mech_eap/util_oid.c:85: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(p->elements, oid->elements, p->length);
data/moonshot-gss-eap-1.0.1/mech_eap/util_oid.c:114: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(oid->elements, prefix, prefix_len);
data/moonshot-gss-eap-1.0.1/mech_eap/util_ordering.c:270: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(*buf, vqueue, sizeof(queue));
data/moonshot-gss-eap-1.0.1/mech_eap/util_ordering.c:298: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(q, *buf, sizeof(queue));
data/moonshot-gss-eap-1.0.1/mech_eap/util_radius.cpp:256: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 buf[64];
data/moonshot-gss-eap-1.0.1/mech_eap/util_radius.cpp:304: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(s, "Attr-", 5);
data/moonshot-gss-eap-1.0.1/mech_eap/util_radius.cpp:308: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(s, desc->value, desc->length);
data/moonshot-gss-eap-1.0.1/mech_eap/util_radius.cpp:440: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 displayString[RS_MAX_STRING_LEN];
data/moonshot-gss-eap-1.0.1/mech_eap/util_radius.cpp:769: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 buf[RS_MAX_STRING_LEN];
data/moonshot-gss-eap-1.0.1/mech_eap/util_sm.c:104: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 errorData[8];
data/moonshot-gss-eap-1.0.1/mech_eap/util_token.c:102: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(&p[8], tokenBuffer->value, tokenBuffer->length);
data/moonshot-gss-eap-1.0.1/mech_eap/util_token.c:166: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(ntypes, tokens->types, tokens->buffers.count * sizeof(OM_uint32));
data/moonshot-gss-eap-1.0.1/mech_eap/util_token.c:178: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(newTokenBuffers, tokens->buffers.elements,
data/moonshot-gss-eap-1.0.1/mech_eap/util_token.c:340: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(*buf, mech->elements, mech->length);
data/moonshot-gss-eap-1.0.1/mech_eap/wrap.c:128: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(p, input_message_buffer->value, input_message_buffer->length);
data/moonshot-gss-eap-1.0.1/mech_eap/wrap_iov.c:228: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(tbuf + ec, header->buffer.value, 16);
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/random.c:241:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	res = read(fd, dummy_key + dummy_key_avail,
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/random.c:312:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	res = read(sock, dummy_key + dummy_key_avail,
data/moonshot-gss-eap-1.0.1/libeap/src/crypto/tls_openssl.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).
	int length = keystore_get(key, strlen(key), &value);
data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_gpsk_common.c:371: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).
	data_len = strlen(SID_LABEL) + 1 + 6 + seed_len;
data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_gpsk_common.c:376: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).
	os_memcpy(pos, SID_LABEL, strlen(SID_LABEL));
data/moonshot-gss-eap-1.0.1/libeap/src/eap_common/eap_gpsk_common.c:377: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).
	pos += strlen(SID_LABEL);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/common.c:454:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf = os_malloc((strlen(str) + 1) * sizeof(TCHAR));
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os.h:516: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).
#define os_strlen(s) strlen(s)
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os.h:637: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).
#define strlen OS_DO_NOT_USE_strlen
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os.h:646:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#undef strncpy
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os.h:647:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#define strncpy OS_DO_NOT_USE_strncpy
data/moonshot-gss-eap-1.0.1/libeap/src/utils/os_unix.c:55:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(usec);
data/moonshot-gss-eap-1.0.1/libeap/src/utils/wpa_debug.c:137:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	buflen = read(mounts, buf, sizeof(buf) - 1);
data/moonshot-gss-eap-1.0.1/mech_eap/export_sec_context.c:60: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).
        serverLen = strlen(serverBuf);
data/moonshot-gss-eap-1.0.1/mech_eap/init_sec_context.c:881:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        int equal;
data/moonshot-gss-eap-1.0.1/mech_eap/init_sec_context.c:897:40:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                                      &equal);
data/moonshot-gss-eap-1.0.1/mech_eap/init_sec_context.c:905:18:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            if (!equal) {
data/moonshot-gss-eap-1.0.1/mech_eap/util.h:141: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).
    b2.length = strlen(s);
data/moonshot-gss-eap-1.0.1/mech_eap/util.h:1031:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        buffer->length = strlen((char *)buffer->value);
data/moonshot-gss-eap-1.0.1/mech_eap/util.h:1058: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).
        nameBuf->length = strlen(ssi);
data/moonshot-gss-eap-1.0.1/mech_eap/util.h:1084: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).
    buffer->length = strlen((char *)buffer->value);
data/moonshot-gss-eap-1.0.1/mech_eap/util_attr.cpp:196: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(pprefix) == prefix->length &&
data/moonshot-gss-eap-1.0.1/mech_eap/util_attr.cpp:220: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).
        prefix.length = strlen((char *)prefix.value);
data/moonshot-gss-eap-1.0.1/mech_eap/util_base64.c:91: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).
    return strlen(s);
data/moonshot-gss-eap-1.0.1/mech_eap/util_base64.c:102: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).
    if (strlen(token) < 4)
data/moonshot-gss-eap-1.0.1/mech_eap/util_buffer.c:44:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(string);
data/moonshot-gss-eap-1.0.1/mech_eap/util_cred.c:195: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).
        src.length = strlen(buf);
data/moonshot-gss-eap-1.0.1/mech_eap/util_cred.c:418:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        nameBuf.length = strlen((char *)nameBuf.value);
data/moonshot-gss-eap-1.0.1/mech_eap/util_krb.c:458: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).
    prefixLength = (prefix != NULL) ? strlen(prefix) : 0;
data/moonshot-gss-eap-1.0.1/mech_eap/util_krb.c:459: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).
    enctypeLength = strlen(enctypeBuf);
data/moonshot-gss-eap-1.0.1/mech_eap/util_moonshot.c:110: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).
    tmpBuffer.length = strlen(nai);
data/moonshot-gss-eap-1.0.1/mech_eap/util_moonshot.c:136: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).
    if (strlen(s) > 0)
data/moonshot-gss-eap-1.0.1/mech_eap/util_moonshot.c:188: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).
    tmpBuffer.length = strlen(nai);
data/moonshot-gss-eap-1.0.1/mech_eap/util_moonshot.c:196: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).
    tmpBuffer.length = strlen(password);
data/moonshot-gss-eap-1.0.1/mech_eap/util_moonshot.c:208: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).
        size_t len = strlen(serverCertificateHash);
data/moonshot-gss-eap-1.0.1/mech_eap/util_moonshot.c:229: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).
        ssize_t maxLength = ((strlen(caCertificate) + 3) / 4) * 3;
data/moonshot-gss-eap-1.0.1/mech_eap/util_name.c:192: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).
                                realm != NULL ? strlen(realm) : 0,
data/moonshot-gss-eap-1.0.1/mech_eap/util_radius.cpp:273: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).
        desc.length = strlen((char *)desc.value);
data/moonshot-gss-eap-1.0.1/mech_eap/util_radius.cpp:775: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).
        ssize_t len = strlen(str);
data/moonshot-gss-eap-1.0.1/mech_eap/util_saml.cpp:447: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).
            utf8.length = strlen((char *)utf8.value);
data/moonshot-gss-eap-1.0.1/mech_eap/util_saml.cpp:677: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).
            size_t stringValueLen = strlen(stringValue);
data/moonshot-gss-eap-1.0.1/mech_eap/util_saml.cpp:704: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).
            display_value->length = strlen((char *)display_value->value);
data/moonshot-gss-eap-1.0.1/mech_eap/util_shib.cpp:332: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).
        attribute.length = strlen((char *)attribute.value);

ANALYSIS SUMMARY:

Hits = 245
Lines analyzed = 67674 in approximately 1.48 seconds (45760 lines/second)
Physical Source Lines of Code (SLOC) = 45360
Hits@level = [0]  64 [1]  43 [2] 133 [3]   8 [4]  60 [5]   1
Hits@level+ = [0+] 309 [1+] 245 [2+] 202 [3+]  69 [4+]  61 [5+]   1
Hits/KSLOC@level+ = [0+] 6.81217 [1+] 5.40123 [2+] 4.45326 [3+] 1.52116 [4+] 1.3448 [5+] 0.0220459
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.