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/freeipa-4.8.10/asn1/ipa_asn1.h
Examining data/freeipa-4.8.10/asn1/ipa_asn1.c
Examining data/freeipa-4.8.10/asn1/asn1c/asn_application.h
Examining data/freeipa-4.8.10/asn1/asn1c/asn_codecs.h
Examining data/freeipa-4.8.10/asn1/asn1c/asn_codecs_prim.c
Examining data/freeipa-4.8.10/asn1/asn1c/asn_codecs_prim.h
Examining data/freeipa-4.8.10/asn1/asn1c/asn_internal.h
Examining data/freeipa-4.8.10/asn1/asn1c/asn_SEQUENCE_OF.c
Examining data/freeipa-4.8.10/asn1/asn1c/asn_SEQUENCE_OF.h
Examining data/freeipa-4.8.10/asn1/asn1c/asn_SET_OF.c
Examining data/freeipa-4.8.10/asn1/asn1c/asn_SET_OF.h
Examining data/freeipa-4.8.10/asn1/asn1c/asn_system.h
Examining data/freeipa-4.8.10/asn1/asn1c/ber_decoder.c
Examining data/freeipa-4.8.10/asn1/asn1c/ber_decoder.h
Examining data/freeipa-4.8.10/asn1/asn1c/ber_tlv_length.c
Examining data/freeipa-4.8.10/asn1/asn1c/ber_tlv_length.h
Examining data/freeipa-4.8.10/asn1/asn1c/ber_tlv_tag.c
Examining data/freeipa-4.8.10/asn1/asn1c/ber_tlv_tag.h
Examining data/freeipa-4.8.10/asn1/asn1c/BIT_STRING.c
Examining data/freeipa-4.8.10/asn1/asn1c/BIT_STRING.h
Examining data/freeipa-4.8.10/asn1/asn1c/constraints.c
Examining data/freeipa-4.8.10/asn1/asn1c/constraints.h
Examining data/freeipa-4.8.10/asn1/asn1c/constr_CHOICE.c
Examining data/freeipa-4.8.10/asn1/asn1c/constr_CHOICE.h
Examining data/freeipa-4.8.10/asn1/asn1c/constr_SEQUENCE.c
Examining data/freeipa-4.8.10/asn1/asn1c/constr_SEQUENCE.h
Examining data/freeipa-4.8.10/asn1/asn1c/constr_SEQUENCE_OF.c
Examining data/freeipa-4.8.10/asn1/asn1c/constr_SEQUENCE_OF.h
Examining data/freeipa-4.8.10/asn1/asn1c/constr_SET_OF.c
Examining data/freeipa-4.8.10/asn1/asn1c/constr_SET_OF.h
Examining data/freeipa-4.8.10/asn1/asn1c/constr_TYPE.c
Examining data/freeipa-4.8.10/asn1/asn1c/constr_TYPE.h
Examining data/freeipa-4.8.10/asn1/asn1c/der_encoder.c
Examining data/freeipa-4.8.10/asn1/asn1c/der_encoder.h
Examining data/freeipa-4.8.10/asn1/asn1c/GetKeytabControl.c
Examining data/freeipa-4.8.10/asn1/asn1c/GetKeytabControl.h
Examining data/freeipa-4.8.10/asn1/asn1c/GKCurrentKeys.c
Examining data/freeipa-4.8.10/asn1/asn1c/GKCurrentKeys.h
Examining data/freeipa-4.8.10/asn1/asn1c/GKNewKeys.c
Examining data/freeipa-4.8.10/asn1/asn1c/GKNewKeys.h
Examining data/freeipa-4.8.10/asn1/asn1c/GKReply.c
Examining data/freeipa-4.8.10/asn1/asn1c/GKReply.h
Examining data/freeipa-4.8.10/asn1/asn1c/Int32.c
Examining data/freeipa-4.8.10/asn1/asn1c/Int32.h
Examining data/freeipa-4.8.10/asn1/asn1c/INTEGER.c
Examining data/freeipa-4.8.10/asn1/asn1c/INTEGER.h
Examining data/freeipa-4.8.10/asn1/asn1c/KrbKey.c
Examining data/freeipa-4.8.10/asn1/asn1c/KrbKey.h
Examining data/freeipa-4.8.10/asn1/asn1c/NativeEnumerated.c
Examining data/freeipa-4.8.10/asn1/asn1c/NativeEnumerated.h
Examining data/freeipa-4.8.10/asn1/asn1c/NativeInteger.c
Examining data/freeipa-4.8.10/asn1/asn1c/NativeInteger.h
Examining data/freeipa-4.8.10/asn1/asn1c/OCTET_STRING.c
Examining data/freeipa-4.8.10/asn1/asn1c/OCTET_STRING.h
Examining data/freeipa-4.8.10/asn1/asn1c/per_decoder.c
Examining data/freeipa-4.8.10/asn1/asn1c/per_decoder.h
Examining data/freeipa-4.8.10/asn1/asn1c/per_encoder.c
Examining data/freeipa-4.8.10/asn1/asn1c/per_encoder.h
Examining data/freeipa-4.8.10/asn1/asn1c/per_opentype.c
Examining data/freeipa-4.8.10/asn1/asn1c/per_opentype.h
Examining data/freeipa-4.8.10/asn1/asn1c/per_support.c
Examining data/freeipa-4.8.10/asn1/asn1c/per_support.h
Examining data/freeipa-4.8.10/asn1/asn1c/TypeValuePair.c
Examining data/freeipa-4.8.10/asn1/asn1c/TypeValuePair.h
Examining data/freeipa-4.8.10/asn1/asn1c/xer_decoder.c
Examining data/freeipa-4.8.10/asn1/asn1c/xer_decoder.h
Examining data/freeipa-4.8.10/asn1/asn1c/xer_encoder.c
Examining data/freeipa-4.8.10/asn1/asn1c/xer_encoder.h
Examining data/freeipa-4.8.10/asn1/asn1c/xer_support.c
Examining data/freeipa-4.8.10/asn1/asn1c/xer_support.h
Examining data/freeipa-4.8.10/util/ipa_krb5.c
Examining data/freeipa-4.8.10/util/ipa_krb5.h
Examining data/freeipa-4.8.10/util/ipa_mspac.h
Examining data/freeipa-4.8.10/util/ipa_ldap.c
Examining data/freeipa-4.8.10/util/ipa_ldap.h
Examining data/freeipa-4.8.10/util/ipa_pwd.c
Examining data/freeipa-4.8.10/util/ipa_pwd.h
Examining data/freeipa-4.8.10/util/ipa_pwd_ntlm.c
Examining data/freeipa-4.8.10/util/t_pwd.c
Examining data/freeipa-4.8.10/client/ipa-client-common.h
Examining data/freeipa-4.8.10/client/ipa-getkeytab.c
Examining data/freeipa-4.8.10/client/ipa-client-common.c
Examining data/freeipa-4.8.10/client/config.c
Examining data/freeipa-4.8.10/client/ipa-join.c
Examining data/freeipa-4.8.10/client/ipa-rmkeytab.c
Examining data/freeipa-4.8.10/daemons/ipa-kdb/tests/ipa_kdb_tests.c
Examining data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb.c
Examining data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb.h
Examining data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_common.c
Examining data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_mkey.c
Examining data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_passwords.c
Examining data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c
Examining data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_pwdpolicy.c
Examining data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_mspac.c
Examining data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_mspac_private.h
Examining data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_delegation.c
Examining data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_audit_as.c
Examining data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_certauth.c
Examining data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_kdcpolicy.c
Examining data/freeipa-4.8.10/daemons/ipa-kdb/ipa-print-pac.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/common/util.h
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/libotp/hotp.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/libotp/hotp.h
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/libotp/otp_config.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/libotp/otp_config.h
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/libotp/otp_token.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/libotp/otp_token.h
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/libotp/t_hotp.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_netlogon.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_worker.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap.h
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_tests.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-dns/ipa_dns.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-enrollment/ipa_enrollment.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-lockout/ipa_lockout.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-modrdn/ipa_modrdn.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-otp-counter/berval.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-otp-counter/berval.h
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-otp-counter/ldapmod.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-otp-counter/ldapmod.h
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-otp-counter/ipa_otp_counter.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-otp-lasttoken/ipa_otp_lasttoken.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/common.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/encoding.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/otpctrl.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/otpctrl.h
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom.h
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_extop.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_common.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-extdom-extop/back_extdom.h
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-extdom-extop/back_extdom_sss_idmap.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-extdom-extop/back_extdom_nss_sss.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_cmocka_tests.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-uuid/ipa_uuid.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-version/ipa_repl_version.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-winsync/ipa-winsync.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-winsync/ipa-winsync.h
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-winsync/ipa-winsync-config.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-sidgen/ipa_sidgen.h
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-sidgen/ipa_sidgen.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-sidgen/ipa_sidgen_common.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-sidgen/ipa_sidgen_task.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-range-check/ipa_range_check.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/topology/topology.h
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/topology/topology_agmt.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/topology/topology_init.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/topology/topology_cfg.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/topology/topology_post.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/topology/topology_pre.c
Examining data/freeipa-4.8.10/daemons/ipa-slapi-plugins/topology/topology_util.c
Examining data/freeipa-4.8.10/daemons/ipa-sam/ipa_sam.c
Examining data/freeipa-4.8.10/daemons/ipa-sam/ipa_sam.h
Examining data/freeipa-4.8.10/daemons/ipa-otpd/internal.h
Examining data/freeipa-4.8.10/daemons/ipa-otpd/bind.c
Examining data/freeipa-4.8.10/daemons/ipa-otpd/forward.c
Examining data/freeipa-4.8.10/daemons/ipa-otpd/main.c
Examining data/freeipa-4.8.10/daemons/ipa-otpd/parse.c
Examining data/freeipa-4.8.10/daemons/ipa-otpd/query.c
Examining data/freeipa-4.8.10/daemons/ipa-otpd/queue.c
Examining data/freeipa-4.8.10/daemons/ipa-otpd/stdio.c
Examining data/freeipa-4.8.10/daemons/ipa-otpd/ipa_otpd_queue_cmocka_tests.c

FINAL RESULTS:

data/freeipa-4.8.10/client/ipa-getkeytab.c:718:19:  [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.
            ret = readlink(keytab, keytab_resolved, PATH_MAX + 1);
data/freeipa-4.8.10/asn1/asn1c/INTEGER.c:149:10:  [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.
			ret = snprintf(scr, scrsize,
data/freeipa-4.8.10/asn1/asn1c/NativeInteger.c:224:15:  [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.
	er.encoded = snprintf(scratch, sizeof(scratch),
data/freeipa-4.8.10/asn1/asn1c/NativeInteger.c:309: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.
		ret = snprintf(scratch, sizeof(scratch),
data/freeipa-4.8.10/asn1/asn1c/asn_internal.h:53: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(stderr, fmt, ##args);		\
data/freeipa-4.8.10/asn1/asn1c/asn_system.h:35:10:  [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/freeipa-4.8.10/asn1/asn1c/asn_system.h:35:19:  [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/freeipa-4.8.10/asn1/asn1c/asn_system.h:36:10:  [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/freeipa-4.8.10/asn1/asn1c/asn_system.h:105:55:  [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	GCC_PRINTFLIKE(fmt,var)	__attribute__((format(printf,fmt,var)))
data/freeipa-4.8.10/asn1/asn1c/constr_TYPE.c:74:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/freeipa-4.8.10/asn1/asn1c/constraints.c:52: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.
	vlen = vsnprintf(arg->errbuf, maxlen, fmt, ap);
data/freeipa-4.8.10/client/ipa-join.c:88:11:  [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.
    ret = access(keytab, W_OK);
data/freeipa-4.8.10/client/ipa-join.c:728:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(tgs, KRB5_TGS_NAME);
data/freeipa-4.8.10/client/ipa-join.c:951:15:  [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.
        err = execv(path, argv);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa-print-pac.c:569:5:  [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(stderr, help, name);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_certauth.c:83: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.
    vsnprintf(str, sizeof(str)-1, format, ap);
data/freeipa-4.8.10/daemons/ipa-otpd/main.c:61:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, tmpl, ap);
data/freeipa-4.8.10/daemons/ipa-otpd/main.c:84:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, tmpl, ap);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_cmocka_tests.c:53:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 3, 4)))
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c:787:43:  [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.
                                      int access)
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c:813:39:  [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.
                               value, access);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h:117:41:  [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.
                        char *attr, int access);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/libotp/otp_token.c:427: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.
    if (snprintf(actfilt, sizeof(actfilt), template,
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_cmocka_tests.c:436:9:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
    if (chroot("test_data") != 0) {
data/freeipa-4.8.10/asn1/asn1c/BIT_STRING.c:70:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *_bit_pattern[16] = {
data/freeipa-4.8.10/asn1/asn1c/BIT_STRING.c:80: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 scratch[128];
data/freeipa-4.8.10/asn1/asn1c/BIT_STRING.c:108:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p + 0, _bit_pattern[v >> 4], 4);
data/freeipa-4.8.10/asn1/asn1c/BIT_STRING.c:109:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p + 4, _bit_pattern[v & 0x0f], 4);
data/freeipa-4.8.10/asn1/asn1c/BIT_STRING.c:144: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 scratch[64];
data/freeipa-4.8.10/asn1/asn1c/INTEGER.c:111: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 scratch[32];	/* Enough for 64-bit integer */
data/freeipa-4.8.10/asn1/asn1c/NativeInteger.c:215: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 scratch[32];	/* Enough for 64-bit int */
data/freeipa-4.8.10/asn1/asn1c/NativeInteger.c:302: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 scratch[32];	/* Enough for 64-bit int */
data/freeipa-4.8.10/asn1/asn1c/OCTET_STRING.c:101:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(st->buf + st->size, bufptr, _bs);		\
data/freeipa-4.8.10/asn1/asn1c/OCTET_STRING.c:355:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[2][32];
data/freeipa-4.8.10/asn1/asn1c/OCTET_STRING.c:586: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 scratch[16 * 3 + 4];
data/freeipa-4.8.10/asn1/asn1c/OCTET_STRING.c:1660: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 scratch[16 * 3 + 4];
data/freeipa-4.8.10/asn1/asn1c/OCTET_STRING.c:1783:2:  [2] (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, str, len);
data/freeipa-4.8.10/asn1/asn1c/asn_codecs_prim.c:67:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(st->buf, buf_ptr, length);
data/freeipa-4.8.10/asn1/asn1c/asn_codecs_prim.c:159:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	assert(chunk_size && ((const char *)chunk_buf)[0] == 0x3c);
data/freeipa-4.8.10/asn1/asn1c/ber_tlv_tag.c:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[sizeof("[APPLICATION ]") + 32];
data/freeipa-4.8.10/asn1/asn1c/ber_tlv_tag.c:95: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 buf[sizeof("[APPLICATION ]") + 32];
data/freeipa-4.8.10/asn1/asn1c/constr_SEQUENCE.c:839:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			size>0?((const char *)buf_ptr)[0]:'.',
data/freeipa-4.8.10/asn1/asn1c/constr_SEQUENCE.c:840:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			size>1?((const char *)buf_ptr)[1]:'.',
data/freeipa-4.8.10/asn1/asn1c/constr_SEQUENCE.c:841:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			size>2?((const char *)buf_ptr)[2]:'.',
data/freeipa-4.8.10/asn1/asn1c/constr_SEQUENCE.c:842:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			size>3?((const char *)buf_ptr)[3]:'.',
data/freeipa-4.8.10/asn1/asn1c/constr_SEQUENCE.c:843:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			size>4?((const char *)buf_ptr)[4]:'.',
data/freeipa-4.8.10/asn1/asn1c/constr_SEQUENCE.c:844:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			size>5?((const char *)buf_ptr)[5]:'.');
data/freeipa-4.8.10/asn1/asn1c/constr_SET_OF.c:245:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				if(LEFT > 0 && ((const char *)ptr)[0] != 0) {
data/freeipa-4.8.10/asn1/asn1c/constr_SET_OF.c:252:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			if(((const char *)ptr)[0] == 0
data/freeipa-4.8.10/asn1/asn1c/constr_SET_OF.c:253:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *)ptr)[1] == 0) {
data/freeipa-4.8.10/asn1/asn1c/constr_SET_OF.c:282:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(el_buf->buf + el_buf->length, buffer, size);
data/freeipa-4.8.10/asn1/asn1c/constr_SET_OF.c:631:2:  [2] (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 *)t->buffer + t->offset, buffer, size);
data/freeipa-4.8.10/asn1/asn1c/constraints.c:68:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(arg->errbuf, "<broken vsnprintf>", arg->errlen);
data/freeipa-4.8.10/asn1/asn1c/der_encoder.c:43:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(arg->buffer, buffer, size);
data/freeipa-4.8.10/asn1/asn1c/per_encoder.c:25:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(arg->buffer, buffer, size);
data/freeipa-4.8.10/asn1/asn1c/per_encoder.c:63:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(((char *)arg->buffer) + arg->length, buffer, size);
data/freeipa-4.8.10/asn1/asn1c/per_support.c:12: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 buf[2][32];
data/freeipa-4.8.10/asn1/ipa_asn1.c:91: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(KK->key.value.buf,
data/freeipa-4.8.10/asn1/ipa_asn1.c:101: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(KK->salt->value.buf,
data/freeipa-4.8.10/asn1/ipa_asn1.c:216: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(keys->ksdata[i].key.contents,
data/freeipa-4.8.10/asn1/ipa_asn1.c:224: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(keys->ksdata[i].salt.data,
data/freeipa-4.8.10/client/config.c:54:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(filename, O_RDONLY);
data/freeipa-4.8.10/client/ipa-getkeytab.c:404:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char enc[79]; /* fit std terminal or truncate */
data/freeipa-4.8.10/client/ipa-getkeytab.c:579: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 pw0[PWD_BUFFER_SIZE];
data/freeipa-4.8.10/client/ipa-getkeytab.c:580: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 pw1[PWD_BUFFER_SIZE];
data/freeipa-4.8.10/client/ipa-getkeytab.c:614: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(password, pw0, k5d_pw0.length);
data/freeipa-4.8.10/client/ipa-getkeytab.c:697: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 keytab_resolved[PATH_MAX + 1];
data/freeipa-4.8.10/client/ipa-getkeytab.c:831: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 enc[79]; /* fit std terminal or truncate */
data/freeipa-4.8.10/client/ipa-join.c:98:22:  [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(keytab, O_WRONLY | O_CREAT, 0600);
data/freeipa-4.8.10/client/ipa-join.c:633: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 tgs[LINE_MAX];
data/freeipa-4.8.10/client/ipa-join.c:932: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 *argv[12];
data/freeipa-4.8.10/daemons/ipa-kdb/ipa-print-pac.c:581: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 pw0[PWD_BUFFER_SIZE];
data/freeipa-4.8.10/daemons/ipa-kdb/ipa-print-pac.c:582: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 pw1[PWD_BUFFER_SIZE];
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb.c:115: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, "%2f", 3);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb.c:163:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(base, "dc=");
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb.c:176:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(&base[bi], ",dc=");
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_certauth.c:80: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 str[255] = { 0 };
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_common.c:385:19:  [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).
        *result = atoi(vals[0]->bv_val);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_common.c:402:13:  [2] (integer) atol:
  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).
        r = atol(vals[0]->bv_val);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_mkey.c:107: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(k.contents, mkey->bv_val, k.length);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_mspac.c:1200:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy(&sids[sid_index], &sid, sizeof(struct dom_sid));
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_mspac.c:1298: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(pac_blob->data, pac_data.data, pac_data.length);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_mspac.c:1692: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(pac_blob->data, pac_data.data, pac_data.length);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_mspac.c:2354: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 hostname[MAXHOSTNAMELEN + 1]; /* NOTE: this is 64, too little ? */
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:138: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(&be_type, vals[i]->bv_val, 2);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:146: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(next->tl_data_contents,
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:213: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(td->tl_data_contents, data, td->tl_data_length);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:259: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 datetime[16] = {};
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:415: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[cur], &tmp, 4);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:420: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[cur], &tmp, 4);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:421: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[cur + 4], policy_name, slen);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:1611:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, td->tl_data_contents, length);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:1781: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 v[20];
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:1898: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(bvs[i]->bv_val, &be_type, 2);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:1899: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(&(bvs[i]->bv_val[2]), data->tl_data_contents, data->tl_data_length);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:1939: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(&tmp, data->tl_data_contents, 2);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_pwdpolicy.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 *bases[3] = { NULL };
data/freeipa-4.8.10/daemons/ipa-kdb/tests/ipa_kdb_tests.c:235:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *sids[3];
data/freeipa-4.8.10/daemons/ipa-kdb/tests/ipa_kdb_tests.c:237:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *exp_sids[3];
data/freeipa-4.8.10/daemons/ipa-otpd/main.c:215: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 hostname[HOST_NAME_MAX + 1];
data/freeipa-4.8.10/daemons/ipa-otpd/parse.c:73:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[32];
data/freeipa-4.8.10/daemons/ipa-otpd/parse.c:84: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, vals[0]->bv_val, vals[0]->bv_len);
data/freeipa-4.8.10/daemons/ipa-otpd/stdio.c:44:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char _buffer[KRAD_PACKET_SIZE_MAX];
data/freeipa-4.8.10/daemons/ipa-sam/ipa_sam.c:110:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
bool E_md4hash(const char *passwd, uint8_t p16[16]); /* available in libcliauth-samba4.so */
data/freeipa-4.8.10/daemons/ipa-sam/ipa_sam.c:241:2:  [2] (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->id_auth[0], &src->id_auth[0], sizeof(src->id_auth));
data/freeipa-4.8.10/daemons/ipa-sam/ipa_sam.c:3859: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 sid_buf[24];
data/freeipa-4.8.10/daemons/ipa-sam/ipa_sam.c:4443: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 hostname[255];
data/freeipa-4.8.10/daemons/ipa-sam/ipa_sam.c:4727: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 hostname[255];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap.h:93: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 dgram[MAX_DG_SIZE];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_netlogon.c:226:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(reply->bv_val, blob.data, blob.length);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_netlogon.c:239: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 hostname[MAXHOSTNAMELEN + 1]; /* NOTE: lenght hardcoded in kernel */
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_netlogon.c:311: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(&t, req->kvps.pairs[i].value.bv_val, 4);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-extdom-extop/back_extdom_nss_sss.c:280:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void) memcpy(groups, newgroups,
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-lockout/ipa_lockout.c:437: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 failedcountstr[32];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-lockout/ipa_lockout.c:444: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 timestr[GENERALIZED_TIME_LENGTH+1];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-modrdn/ipa_modrdn.c:656: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 *val[2] = { NULL };
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-otp-counter/berval.c:71: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[bv->bv_len + 1];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-otp-counter/berval.c:72: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, bv->bv_val, bv->bv_len);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-otp-counter/ipa_otp_counter.c:338:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dbuf[32];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-otp-counter/ipa_otp_counter.c:339: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 abuf[32];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/common.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(kmkey->contents, mkey->bv_val, mkey->bv_len);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/common.c:754: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 timestr[GENERALIZED_TIME_LENGTH+1];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/common.c:1041: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(&xdata[6], principal, p_len);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/encoding.c:241: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 nt[33];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c:826: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 tstr[GENERALIZED_TIME_LENGTH + 1];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c:1055: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(kdata, &le_len, 2);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c:1107: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(kset->keys[i].key_data_contents[1],
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c:1467: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(&plen, keys[i].key_data_contents[0], 2);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c:1468: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.
        cipher.ciphertext.data = (char *)keys[i].key_data_contents[0] + 2;
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c:579: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(unhashedpw, bv->bv_val, bv->bv_len);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c:679: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(userpw, bv->bv_val, bv->bv_len);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c:1012: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 nthash[16];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c:1021: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(&t, keys[i].key_data_contents[0], 2);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c:1031:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        cipher.ciphertext.data = ((char *)keys[i].key_data_contents[0]) + 2;
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-winsync/ipa-winsync-config.c:110: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 returntext[SLAPI_DSE_RETURNTEXT_SIZE];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-winsync/ipa-winsync-config.c:758: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.
    const char *attrs[2] = {attrname, NULL};
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-winsync/ipa-winsync.c:790: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.
    const char *val[2];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-winsync/ipa-winsync.c:910:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char acctvalstr[32];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/libotp/hotp.c:53: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[EVP_MAX_MD_SIZE];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/libotp/hotp.c:71: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 in[sizeof(uint64_t)];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/libotp/hotp.c:75: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(in, &counter, sizeof(uint64_t));
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/libotp/hotp.c:97: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 counter_buf[sizeof(uint64_t)];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/libotp/hotp.c:107: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(counter_buf, &counter, sizeof(uint64_t));
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/libotp/otp_token.c:118: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 value[32];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/libotp/otp_token.c:282: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(token->token.key.bytes, tmp->bv_val, token->token.key.len);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/libotp/otp_token.c:413: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 actfilt[sizeof(template)];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/topology/topology_cfg.c:220:24:  [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).
    ipa_domain_level = atoi(level);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/topology/topology_cfg.c:234:42:  [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).
        topo_plugin_conf.startup_delay = atoi(delay);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/topology/topology_cfg.c:254:42:  [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).
        topo_plugin_conf.version_minor = atoi(++minor);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/topology/topology_cfg.c:258:38:  [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).
    topo_plugin_conf.version_major = atoi(version);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/topology/topology_util.c:1881:27:  [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).
                    rid = atoi(ruv_ele[i]+strlen("{replica "));
data/freeipa-4.8.10/util/ipa_krb5.c:107: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(&ret->data[offset], krb5_princ_component(context, pr, i)->data,
data/freeipa-4.8.10/util/ipa_krb5.c:176: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(salt.data, principal->realm.data, salt.length);
data/freeipa-4.8.10/util/ipa_krb5.c:262: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(ptr, &t, 2);
data/freeipa-4.8.10/util/ipa_krb5.c:296: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(keys[i].key_data_contents[0], ptr, len + 2);
data/freeipa-4.8.10/util/ipa_krb5.c:738:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                 (char *)ksdata[i].key.contents, (ber_len_t)ksdata[i].key.length);
data/freeipa-4.8.10/util/ipa_krb5.c:760:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                 (char *)ksdata[i].salt.data, (ber_len_t)ksdata[i].salt.length);
data/freeipa-4.8.10/util/ipa_krb5.c:1027: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(ksdata[i].salt.data, salt->data, salt->length);
data/freeipa-4.8.10/util/ipa_krb5.c:1061:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy((char *)ksdata[i].salt.data,
data/freeipa-4.8.10/util/ipa_krb5.c:1061:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            memcpy((char *)ksdata[i].salt.data,
data/freeipa-4.8.10/util/ipa_krb5.c:1123: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 testbuf[100];
data/freeipa-4.8.10/util/ipa_krb5.c:1150: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(buffer, fallback_map[i].name, len + 1);
data/freeipa-4.8.10/util/ipa_pwd.c:206: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 saltbuf[SHA_SALT_LENGTH];
data/freeipa-4.8.10/util/ipa_pwd.c:207: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[EVP_MAX_MD_SIZE] = { 0 };
data/freeipa-4.8.10/util/ipa_pwd.c:264: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(fh, hash, hash_len);
data/freeipa-4.8.10/util/ipa_pwd.c:265: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(fh + hash_len, salt, SHA_SALT_LENGTH);
data/freeipa-4.8.10/util/ipa_pwd.c:363: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 timestr[GENERALIZED_TIME_LENGTH+1];
data/freeipa-4.8.10/util/ipa_pwd.c:669: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[8];
data/freeipa-4.8.10/util/ipa_pwd.c:671:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(PROC_SYS_FIPS, O_RDONLY);
data/freeipa-4.8.10/asn1/asn1c/OCTET_STRING.c:1776:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(str);
data/freeipa-4.8.10/asn1/asn1c/constr_CHOICE.c:798: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).
		unsigned int mlen = strlen(mname);
data/freeipa-4.8.10/asn1/asn1c/constr_CHOICE.c:1022: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).
			if(cb(elm->name, strlen(elm->name), app_key) < 0
data/freeipa-4.8.10/asn1/asn1c/constr_SEQUENCE.c:870: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).
		unsigned int mlen = strlen(mname);
data/freeipa-4.8.10/asn1/asn1c/constr_SEQUENCE.c:912:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(cb(td->name, strlen(td->name), app_key) < 0
data/freeipa-4.8.10/asn1/asn1c/constr_SEQUENCE.c:935:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(cb(elm->name, strlen(elm->name), app_key) < 0
data/freeipa-4.8.10/asn1/asn1c/constr_SEQUENCE_OF.c:100:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	unsigned int mlen = mname ? strlen(mname) : 0;
data/freeipa-4.8.10/asn1/asn1c/constr_SEQUENCE_OF.c:123: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).
			size_t len = strlen(name);
data/freeipa-4.8.10/asn1/asn1c/constr_SET_OF.c:663: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).
	size_t mlen = mname ? strlen(mname) : 0;
data/freeipa-4.8.10/asn1/asn1c/constr_SET_OF.c:710: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).
			size_t len = strlen(name);
data/freeipa-4.8.10/asn1/asn1c/constr_SET_OF.c:769:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(cb(td->name, strlen(td->name), app_key) < 0
data/freeipa-4.8.10/asn1/asn1c/xer_encoder.c:24: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).
	mlen = strlen(mname);
data/freeipa-4.8.10/client/config.c:76:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        res = read(fd, dest, left);
data/freeipa-4.8.10/client/ipa-getkeytab.c:104:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			in->len = strlen(outname);
data/freeipa-4.8.10/client/ipa-getkeytab.c:202: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).
        bv.bv_len = strlen(bind_pw);
data/freeipa-4.8.10/client/ipa-join.c:233: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).
        bindpw_bv.bv_len = strlen(bindpw);
data/freeipa-4.8.10/client/ipa-join.c:447: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).
    valrequest.bv_len = strlen(hostname);
data/freeipa-4.8.10/client/ipa-join.c:729:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    snprintf(tgs + strlen(tgs), sizeof(tgs) - strlen(tgs), "/%.*s",
data/freeipa-4.8.10/client/ipa-join.c:729:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    snprintf(tgs + strlen(tgs), sizeof(tgs) - strlen(tgs), "/%.*s",
data/freeipa-4.8.10/client/ipa-join.c:732:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    snprintf(tgs + strlen(tgs), sizeof(tgs) - strlen(tgs), "@%.*s",
data/freeipa-4.8.10/client/ipa-join.c:732:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    snprintf(tgs + strlen(tgs), sizeof(tgs) - strlen(tgs), "@%.*s",
data/freeipa-4.8.10/daemons/ipa-kdb/ipa-print-pac.c:119: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).
    buff.length = strlen(name);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa-print-pac.c:158:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    whole_pac = attribute->length == strlen("urn:mspac:");
data/freeipa-4.8.10/daemons/ipa-kdb/ipa-print-pac.c:467: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).
        pwd_buf.length = strlen(password);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa-print-pac.c:669:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncasecmp("ticket", args[1], strlen("ticket")) == 0) {
data/freeipa-4.8.10/daemons/ipa-kdb/ipa-print-pac.c:695:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if (strncasecmp("impersonate", args[1], strlen("impersonate")) == 0) {
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb.c:86: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).
        int partlen = strlen(part); \
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb.c:87:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(pos, part, partlen + 1); \
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb.c:99:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(LDAPI_URI_PREFIX) + strlen(LDAPIDIR) * 3
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb.c:99:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(LDAPI_URI_PREFIX) + strlen(LDAPIDIR) * 3
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb.c:100:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          + strlen(LDAPI_PATH_PREFIX) + strlen(realm)
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb.c:100:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          + strlen(LDAPI_PATH_PREFIX) + strlen(realm)
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb.c:101:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          + strlen(SOCKET_SUFFIX) + 1;
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb.c:157:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(realm) + 3 + 1;
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb.c:503: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).
    unsigned int length = strlen(ipactx->realm);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_common.c:39: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).
    output = malloc(strlen(input) * 3 + 1);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_common.c:561:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            value, strlen(value),
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_mspac.c:1322: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(domain->domain_name) != realm.length) {
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_mspac.c:2271:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                         ipactx->kdc_hostname, strlen(ipactx->kdc_hostname),
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_mspac.c:2357:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(hostname, ipactx->kdc_hostname, MAXHOSTNAMELEN);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_mspac.c:2986:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				length = strlen(name) + 1;
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_passwords.c:83: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(passwd) > IPAPWD_PASSWORD_MAX_LEN) {
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_passwords.c:166: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).
    pwd.length = strlen(passwd);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:399: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).
    slen = strlen(policy_name) + 1;
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:475:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len += strlen(authinds[count]) + 1;
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:987:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(esc_original_princ);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:1065: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).
    princ_len = strlen(*principal);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:1106: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).
            princ_len = strlen(*principal);
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:1126:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            found = ((vals[0]->bv_len == strlen(*principal)) &&
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:1491: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).
                                    strlen(ipactx->realm),
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:1495: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).
                                    strlen(trusted_realm),
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:2025: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).
        bvs[i]->bv_len = strlen(strlist[i]) + 1;
data/freeipa-4.8.10/daemons/ipa-kdb/ipa_kdb_principals.c:2092:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ai_size = strlen(ais) + 1;
data/freeipa-4.8.10/daemons/ipa-otpd/forward.c:88: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).
    data.length = strlen(data.data);
data/freeipa-4.8.10/daemons/ipa-otpd/main.c:256: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).
    hndata.length = strlen(hndata.data);
data/freeipa-4.8.10/daemons/ipa-otpd/stdio.c:63:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    i = read(verto_get_fd(ev), buffer.data + buffer.length, pktlen);
data/freeipa-4.8.10/daemons/ipa-sam/ipa_sam.c:489: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).
				   utf8_dn, strlen(utf8_dn) + 1,
data/freeipa-4.8.10/daemons/ipa-sam/ipa_sam.c:2777: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 plen = strlen(trustpw_incoming);
data/freeipa-4.8.10/daemons/ipa-sam/ipa_sam.c:2778: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 qlen = strlen(trustpw_outgoing);
data/freeipa-4.8.10/daemons/ipa-sam/ipa_sam.c:3136:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memset(trustpw, 0, strlen(trustpw));
data/freeipa-4.8.10/daemons/ipa-sam/ipa_sam.c:3713: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).
	lastidx = strlen(sname);
data/freeipa-4.8.10/daemons/ipa-sam/ipa_sam.c:3817:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memset(trustpw, 0, strlen(trustpw));
data/freeipa-4.8.10/daemons/ipa-sam/ipa_sam.c:4619: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).
	data.name_len = strlen(data.name);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-enrollment/ipa_enrollment.c:311: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).
    retbval.bv_len = strlen(principal);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_cmocka_tests.c:188: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).
    assert_int_equal(strlen(pwd.pw_gecos), 4000 * strlen("gecos"));
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_cmocka_tests.c:188:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert_int_equal(strlen(pwd.pw_gecos), 4000 * strlen("gecos"));
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_cmocka_tests.c:244: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).
    assert_int_equal(strlen(pwd.pw_gecos), 4000 * strlen("gecos"));
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_cmocka_tests.c:244:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert_int_equal(strlen(pwd.pw_gecos), 4000 * strlen("gecos"));
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_common.c:758:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(fq_name_list[c]);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-modrdn/ipa_modrdn.c:289:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (NULL == plugindn || 0 == strlen(plugindn)) {
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-otp-counter/berval.c:53: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).
    bv->bv_len = strlen(bv->bv_val);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-otp-counter/ldapmod.c:96: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).
        bv->bv_len = strlen(bv->bv_val);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/common.c:1021: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).
    p_len = strlen(principal);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/encoding.c:157: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).
        pwd.length = strlen(data->password);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c:337: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).
        rc = ipapwd_check_max_pwd_len(strlen(newPasswd), &errMesg);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipa_pwd_extop.c:1694:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            rc = ipapwd_check_max_pwd_len(strlen(password), &err_msg);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c:254: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).
        if (0 == strncasecmp(userpw, "{CLEAR}", strlen("{CLEAR}"))) {
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c:255:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            char *tmp = slapi_ch_strdup(&userpw[strlen("{CLEAR}")]);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c:281:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                rc = ipapwd_check_max_pwd_len(strlen(userpw_clear), &errMesg);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c:794:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (0 == strncasecmp(userpw, "{CLEAR}", strlen("{CLEAR}"))) {
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c:795:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                const char *userpw_clear = &userpw[strlen("{CLEAR}")];
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c:796:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                rc = ipapwd_check_max_pwd_len(strlen(userpw_clear), &errMesg);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-uuid/ipa_uuid.c:342:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (NULL == plugindn || 0 == strlen(plugindn)) {
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-version/ipa_repl_version.c:85: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).
    (*data)->bv_len = strlen((*data)->bv_val) + 1;
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/ipa-winsync/ipa-winsync.c:960:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                mod_bval->bv_len = strlen(acctvalstr);
data/freeipa-4.8.10/daemons/ipa-slapi-plugins/topology/topology_util.c:1881:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    rid = atoi(ruv_ele[i]+strlen("{replica "));
data/freeipa-4.8.10/util/ipa_krb5.c:243: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).
            salt.length = strlen(salt.data);
data/freeipa-4.8.10/util/ipa_krb5.c:986: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).
        key_password.length = strlen(password);
data/freeipa-4.8.10/util/ipa_krb5.c:1147:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(fallback_map[i].name);
data/freeipa-4.8.10/util/ipa_krb5.c:1206:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len += strlen(&buf[buf_cur + len]);
data/freeipa-4.8.10/util/ipa_krb5.c:1219:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len += strlen(&buf[buf_cur + len]);
data/freeipa-4.8.10/util/ipa_pwd.c:205: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).
    unsigned int pwdlen = strlen(password);
data/freeipa-4.8.10/util/ipa_pwd.c:302:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    b64_len = strlen(b64part);
data/freeipa-4.8.10/util/ipa_pwd.c:624:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(pwd_history[i]);
data/freeipa-4.8.10/util/ipa_pwd.c:673:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        len = read(fd, buf, sizeof(buf));
data/freeipa-4.8.10/util/ipa_pwd_ntlm.c:59:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    il = strlen(newPasswd);

ANALYSIS SUMMARY:

Hits = 265
Lines analyzed = 62203 in approximately 1.62 seconds (38303 lines/second)
Physical Source Lines of Code (SLOC) = 45372
Hits@level = [0] 178 [1]  96 [2] 145 [3]   1 [4]  22 [5]   1
Hits@level+ = [0+] 443 [1+] 265 [2+] 169 [3+]  24 [4+]  23 [5+]   1
Hits/KSLOC@level+ = [0+] 9.76373 [1+] 5.84061 [2+] 3.72476 [3+] 0.528961 [4+] 0.506921 [5+] 0.02204
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.