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/trousers-0.3.14+fixed1/src/include/auth_mgr.h
Examining data/trousers-0.3.14+fixed1/src/include/authsess.h
Examining data/trousers-0.3.14+fixed1/src/include/biosem.h
Examining data/trousers-0.3.14+fixed1/src/include/capabilities.h
Examining data/trousers-0.3.14+fixed1/src/include/daa/anonymity_revocation.h
Examining data/trousers-0.3.14+fixed1/src/include/daa/bi.h
Examining data/trousers-0.3.14+fixed1/src/include/daa/bi_gmp.h
Examining data/trousers-0.3.14+fixed1/src/include/daa/bi_openssl.h
Examining data/trousers-0.3.14+fixed1/src/include/daa/daa_parameter.h
Examining data/trousers-0.3.14+fixed1/src/include/daa/daa_structs.h
Examining data/trousers-0.3.14+fixed1/src/include/daa/issuer.h
Examining data/trousers-0.3.14+fixed1/src/include/daa/key_correct.h
Examining data/trousers-0.3.14+fixed1/src/include/daa/list.h
Examining data/trousers-0.3.14+fixed1/src/include/daa/platform.h
Examining data/trousers-0.3.14+fixed1/src/include/daa/verifier.h
Examining data/trousers-0.3.14+fixed1/src/include/hosttable.h
Examining data/trousers-0.3.14+fixed1/src/include/imaem.h
Examining data/trousers-0.3.14+fixed1/src/include/linux/tpm.h
Examining data/trousers-0.3.14+fixed1/src/include/memmgr.h
Examining data/trousers-0.3.14+fixed1/src/include/obj.h
Examining data/trousers-0.3.14+fixed1/src/include/obj_context.h
Examining data/trousers-0.3.14+fixed1/src/include/obj_daa.h
Examining data/trousers-0.3.14+fixed1/src/include/obj_daaarakey.h
Examining data/trousers-0.3.14+fixed1/src/include/obj_daacred.h
Examining data/trousers-0.3.14+fixed1/src/include/obj_daaissuerkey.h
Examining data/trousers-0.3.14+fixed1/src/include/obj_delfamily.h
Examining data/trousers-0.3.14+fixed1/src/include/obj_encdata.h
Examining data/trousers-0.3.14+fixed1/src/include/obj_hash.h
Examining data/trousers-0.3.14+fixed1/src/include/obj_migdata.h
Examining data/trousers-0.3.14+fixed1/src/include/obj_nv.h
Examining data/trousers-0.3.14+fixed1/src/include/obj_pcrs.h
Examining data/trousers-0.3.14+fixed1/src/include/obj_policy.h
Examining data/trousers-0.3.14+fixed1/src/include/obj_rsakey.h
Examining data/trousers-0.3.14+fixed1/src/include/obj_tpm.h
Examining data/trousers-0.3.14+fixed1/src/include/portable_endian.h
Examining data/trousers-0.3.14+fixed1/src/include/req_mgr.h
Examining data/trousers-0.3.14+fixed1/src/include/rpc_tcstp.h
Examining data/trousers-0.3.14+fixed1/src/include/rpc_tcstp_tcs.h
Examining data/trousers-0.3.14+fixed1/src/include/rpc_tcstp_tsp.h
Examining data/trousers-0.3.14+fixed1/src/include/spi_utils.h
Examining data/trousers-0.3.14+fixed1/src/include/tcs_aik.h
Examining data/trousers-0.3.14+fixed1/src/include/tcs_context.h
Examining data/trousers-0.3.14+fixed1/src/include/tcs_int_literals.h
Examining data/trousers-0.3.14+fixed1/src/include/tcs_key_ps.h
Examining data/trousers-0.3.14+fixed1/src/include/tcs_tsp.h
Examining data/trousers-0.3.14+fixed1/src/include/tcs_utils.h
Examining data/trousers-0.3.14+fixed1/src/include/tcsd_ops.h
Examining data/trousers-0.3.14+fixed1/src/include/tcsd_wrap.h
Examining data/trousers-0.3.14+fixed1/src/include/tcsem.h
Examining data/trousers-0.3.14+fixed1/src/include/tcslog.h
Examining data/trousers-0.3.14+fixed1/src/include/tcsps.h
Examining data/trousers-0.3.14+fixed1/src/include/tddl.h
Examining data/trousers-0.3.14+fixed1/src/include/threads.h
Examining data/trousers-0.3.14+fixed1/src/include/trousers/trousers.h
Examining data/trousers-0.3.14+fixed1/src/include/trousers/tss.h
Examining data/trousers-0.3.14+fixed1/src/include/trousers_types.h
Examining data/trousers-0.3.14+fixed1/src/include/tsp_audit.h
Examining data/trousers-0.3.14+fixed1/src/include/tsp_delegate.h
Examining data/trousers-0.3.14+fixed1/src/include/tsp_seal.h
Examining data/trousers-0.3.14+fixed1/src/include/tsp_tcsi_param.h
Examining data/trousers-0.3.14+fixed1/src/include/tsplog.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/compat11b.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/platform.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tcpa_defines.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tcpa_error.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tcpa_struct.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tcpa_typedef.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tcs.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tcs_defines.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tcs_error.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tcs_structs.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tcs_typedef.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tddl_error.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tddlapi_error.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tddli.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tpm.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tpm_error.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tpm_ordinal.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tspi.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tss_defines.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tss_error.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tss_error_basics.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tss_structs.h
Examining data/trousers-0.3.14+fixed1/src/include/tss/tss_typedef.h
Examining data/trousers-0.3.14+fixed1/src/include/tspps.h
Examining data/trousers-0.3.14+fixed1/src/include/tcsd.h
Examining data/trousers-0.3.14+fixed1/src/tcs/crypto/openssl/crypto.c
Examining data/trousers-0.3.14+fixed1/src/tcs/log.c
Examining data/trousers-0.3.14+fixed1/src/tcs/ps/ps_utils.c
Examining data/trousers-0.3.14+fixed1/src/tcs/ps/tcsps.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_admin.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_aik.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_audit.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_auth.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_bind.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_caps.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_caps_tpm.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_certify.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_changeauth.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_cmk.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_context.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_counter.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_daa.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_delegate.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_dir.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_ek.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_evlog.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_key.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_maint.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_migration.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_nv.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_oper.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_own.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_pcr_extend.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_ps.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_quote.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_quote2.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_random.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_seal.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_selftest.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_sign.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_tick.c
Examining data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_transport.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_aik.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_auth_mgr.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_caps.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_context.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_context_key.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_counter.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_biosem.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_imaem.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_key.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_key_mem_cache.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_key_ps.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_migration.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_pbg.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_ps.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_quote.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_quote2.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_req_mgr.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_seal.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcs_utils.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_admin.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_aik.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_audit.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_auth.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_bind.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_caps.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_caps_tpm.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_certify.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_changeauth.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_cmk.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_context.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_counter.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_daa.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_delegate.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_dir.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_ek.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_evlog.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_key.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_maint.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_migration.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_nv.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_oper.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_own.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_pcr.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_ps.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_quote.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_quote2.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_random.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_seal.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_selftest.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_sign.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_tick.c
Examining data/trousers-0.3.14+fixed1/src/tcs/tcsi_transport.c
Examining data/trousers-0.3.14+fixed1/src/tcsd/svrside.c
Examining data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c
Examining data/trousers-0.3.14+fixed1/src/tcsd/tcsd_threads.c
Examining data/trousers-0.3.14+fixed1/src/tcsd/platform.c
Examining data/trousers-0.3.14+fixed1/src/tddl/tddl.c
Examining data/trousers-0.3.14+fixed1/src/trspi/crypto/openssl/hash.c
Examining data/trousers-0.3.14+fixed1/src/trspi/crypto/openssl/rsa.c
Examining data/trousers-0.3.14+fixed1/src/trspi/crypto/openssl/symmetric.c
Examining data/trousers-0.3.14+fixed1/src/trspi/trousers.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/bi.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/bi_gmp.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/bi_openssl.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/test/multi_exp.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/test/test.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/daa_anonymityrevocation/csencryption_result.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/daa_debug.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/daa_debug.h
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/issue_credential.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/issuer_init.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/issuer_setup.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/key_correctness_proof.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/key_verification.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/keypair_generator.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/prime_gen.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/daa_parameter.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/platform.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/test.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/test_join.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/daa_verifier/verifier.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/daa_verifier/verifier_transaction.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/test_sign.c
Examining data/trousers-0.3.14+fixed1/src/tspi/daa/utils/list.c
Examining data/trousers-0.3.14+fixed1/src/tspi/gtk/callbacks.c
Examining data/trousers-0.3.14+fixed1/src/tspi/gtk/callbacks.h
Examining data/trousers-0.3.14+fixed1/src/tspi/gtk/interface.c
Examining data/trousers-0.3.14+fixed1/src/tspi/gtk/interface.h
Examining data/trousers-0.3.14+fixed1/src/tspi/gtk/main.c
Examining data/trousers-0.3.14+fixed1/src/tspi/gtk/support.c
Examining data/trousers-0.3.14+fixed1/src/tspi/gtk/support.h
Examining data/trousers-0.3.14+fixed1/src/tspi/log.c
Examining data/trousers-0.3.14+fixed1/src/tspi/obj.c
Examining data/trousers-0.3.14+fixed1/src/tspi/obj_context.c
Examining data/trousers-0.3.14+fixed1/src/tspi/obj_daa.c
Examining data/trousers-0.3.14+fixed1/src/tspi/obj_delfamily.c
Examining data/trousers-0.3.14+fixed1/src/tspi/obj_encdata.c
Examining data/trousers-0.3.14+fixed1/src/tspi/obj_hash.c
Examining data/trousers-0.3.14+fixed1/src/tspi/obj_migdata.c
Examining data/trousers-0.3.14+fixed1/src/tspi/obj_nv.c
Examining data/trousers-0.3.14+fixed1/src/tspi/obj_pcrs.c
Examining data/trousers-0.3.14+fixed1/src/tspi/obj_policy.c
Examining data/trousers-0.3.14+fixed1/src/tspi/obj_rsakey.c
Examining data/trousers-0.3.14+fixed1/src/tspi/obj_tpm.c
Examining data/trousers-0.3.14+fixed1/src/tspi/ps/ps_utils.c
Examining data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/hosttable.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcs_api.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_admin.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_aik.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_audit.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_auth.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_bind.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_caps.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_caps_tpm.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_certify.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_changeauth.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_cmk.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_context.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_counter.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_daa.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_delegate.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_dir.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_ek.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_evlog.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_key.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_maint.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_migration.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_nv.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_oper.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_own.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_pcr_extend.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_ps.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_quote.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_quote2.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_random.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_seal.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_selftest.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_sign.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_tick.c
Examining data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_transport.c
Examining data/trousers-0.3.14+fixed1/src/tspi/spi_utils.c
Examining data/trousers-0.3.14+fixed1/src/tspi/ssl_ui.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_admin.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_aik.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_asym.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_audit.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_auth.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_bind.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_caps.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_caps_tpm.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_certify.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_changeauth.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_context_mem.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_counter.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_daa.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_delegate.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_dir.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_ek.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_get_flags.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_key.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_maint.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_migration.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_nv.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_oper.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_own.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_pcr.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_pcr_extend.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_policy.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_ps.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_quote.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_quote2.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_random.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_seal.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_selftest.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_sign.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_tick.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_transport.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_admin.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_aik.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_asn1.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_audit.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_bind.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_caps.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_caps_tpm.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_certify.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_changeauth.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_cmk.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_context.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_counter.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_daa.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_delegate.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_dir.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_ek.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_getset.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_hash.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_key.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_maint.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_migration.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_nv.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_oper.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_own.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_pcr_comp.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_pcr_comp12.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_pcr_events.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_pcr_extend.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_policy.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_ps.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_quote.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_quote2.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_random.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_seal.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_selftest.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_sign.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_tick.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tspi_transport.c
Examining data/trousers-0.3.14+fixed1/src/tspi/tsp_tcsi_param.c

FINAL RESULTS:

data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:879:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		if (chmod(tcsd_options.system_ps_dir, mode) == -1) {
data/trousers-0.3.14+fixed1/src/trspi/crypto/openssl/symmetric.c:172:29:  [4] (crypto) EVP_des_cbc:
  DES only supports a 56-bit keysize, which is too small given today's
  computers (CWE-327). Use a different patent-free encryption algorithm with
  a larger keysize, such as 3DES or AES.
					cipher = (EVP_CIPHER *)EVP_des_cbc();
data/trousers-0.3.14+fixed1/src/trspi/crypto/openssl/symmetric.c:175:29:  [4] (crypto) EVP_des_ofb:
  DES only supports a 56-bit keysize, which is too small given today's
  computers (CWE-327). Use a different patent-free encryption algorithm with
  a larger keysize, such as 3DES or AES.
					cipher = (EVP_CIPHER *)EVP_des_ofb();
data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/bi.c:216:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( new_name, "%s[%d]", name, i);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/issuer_setup.c:133: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("malloc of %d bytes failed", sizeof(KEY_PAIR_WITH_PROOF_internal));
data/trousers-0.3.14+fixed1/src/tspi/ssl_ui.c:27:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(popup_nl, "%s\n", (char *)popup);
data/trousers-0.3.14+fixed1/src/include/tcs_utils.h:629:21:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
						      BYTE ** random,	/* out */
data/trousers-0.3.14+fixed1/src/include/tcs_utils.h:639:21:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
						       BYTE * random,	/* in */
data/trousers-0.3.14+fixed1/src/include/tcs_utils.h:835:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
							   BYTE ** random,	/* out */
data/trousers-0.3.14+fixed1/src/include/tcs_utils.h:1158:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
						BYTE**			random,			/* out */
data/trousers-0.3.14+fixed1/src/include/tcs_utils.h:1172:21:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
						      BYTE*			random,		/* in */
data/trousers-0.3.14+fixed1/src/include/tcslog.h:27:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if (getenv("TCSD_FOREGROUND") != NULL) { \
data/trousers-0.3.14+fixed1/src/include/tsplog.h:24:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if (getenv("TSS_DEBUG_OFF") == NULL) { \
data/trousers-0.3.14+fixed1/src/include/tss/tcs.h:475:27:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    BYTE**                random,                      // out
data/trousers-0.3.14+fixed1/src/include/tss/tcs.h:486:27:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    BYTE*                 random,                      // in
data/trousers-0.3.14+fixed1/src/include/tss/tcs.h:848:27:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    BYTE**                random,                      // out
data/trousers-0.3.14+fixed1/src/include/tss/tcs.h:1047:27:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    BYTE**                random,                      // out
data/trousers-0.3.14+fixed1/src/include/tss/tcs.h:1062:27:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    BYTE*                 random,                      // in
data/trousers-0.3.14+fixed1/src/tcs/log.c:39:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("TCSD_FOREGROUND") == NULL)
data/trousers-0.3.14+fixed1/src/tcs/log.c:45:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			if (getenv("TCSD_FOREGROUND") != NULL)
data/trousers-0.3.14+fixed1/src/tcs/log.c:55:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if (getenv("TCSD_FOREGROUND") != NULL)
data/trousers-0.3.14+fixed1/src/tcs/log.c:65:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("TSS_DEBUG_OFF") == NULL)
data/trousers-0.3.14+fixed1/src/tcs/log.c:72:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("TSS_DEBUG_OFF") == NULL)
data/trousers-0.3.14+fixed1/src/tcs/log.c:81:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("TSS_DEBUG_OFF") == NULL)
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_cmk.c:305:8:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	BYTE *random, *outData;
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_cmk.c:449:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			&randomSize, &random, &outDataSize, &outData);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_cmk.c:463:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_cmk.c:470:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_cmk.c:475:44:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		if (setData(TCSD_PACKET_TYPE_PBYTE, i++, random, randomSize, &data->comm)) {
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_cmk.c:476:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_cmk.c:480:8:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_cmk.c:508:28:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	BYTE *keyData, *msaList, *random;
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_cmk.c:578:41:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	if (getData(TCSD_PACKET_TYPE_PBYTE, 9, random, randomSize, &data->comm)) {
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_cmk.c:581:8:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_cmk.c:588:8:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_cmk.c:600:60:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			keyDataSize, keyData, msaListSize, msaList, randomSize, random,
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_cmk.c:606:7:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_maint.c:75:8:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	BYTE *random, *archive;
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_maint.c:94:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
							&randomSize, &random, &archiveSize,
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_maint.c:102:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_maint.c:108:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_maint.c:112:42:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		if (setData(TCSD_PACKET_TYPE_PBYTE, 2, random, randomSize, &data->comm)) {
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_maint.c:113:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_maint.c:119:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_maint.c:124:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_maint.c:129:8:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_migration.c:38:37:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	BYTE *MigrationKeyAuth, *encData, *random, *outData;
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_migration.c:106:24:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
						   &randomSize, &random, &outDataSize, &outData);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_migration.c:117:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_migration.c:124:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_migration.c:130:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_migration.c:135:45:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			if (setData(TCSD_PACKET_TYPE_PBYTE, i++, random, randomSize, &data->comm)) {
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_migration.c:136:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_migration.c:143:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_migration.c:148:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_migration.c:153:8:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_migration.c:170:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	BYTE *outData, *random, *inData;
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_migration.c:209:41:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	if (getData(TCSD_PACKET_TYPE_PBYTE, 5, random, randomSize, &data->comm)) {
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_migration.c:211:8:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		free(random);
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_migration.c:224:23:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
						    randomSize, random, pParentAuth, &outDataSize,
data/trousers-0.3.14+fixed1/src/tcs/rpc/tcstp/rpc_migration.c:230:7:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	free(random);
data/trousers-0.3.14+fixed1/src/tcs/tcs_context.c:49:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		srand(currentTime);
data/trousers-0.3.14+fixed1/src/tcs/tcs_context.c:57:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(currentTime + 1);
data/trousers-0.3.14+fixed1/src/tcs/tcsi_cmk.c:223:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			     BYTE**		random,			/* out */
data/trousers-0.3.14+fixed1/src/tcs/tcsi_cmk.c:259:24:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				       randomSize, random, outDataSize, outData, parentAuth, NULL);
data/trousers-0.3.14+fixed1/src/tcs/tcsi_cmk.c:280:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				   BYTE*		random,		/* in */
data/trousers-0.3.14+fixed1/src/tcs/tcsi_cmk.c:307:21:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				    randomSize, random, parentAuth)))
data/trousers-0.3.14+fixed1/src/tcs/tcsi_maint.c:34:20:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				       BYTE ** random,	/* out */
data/trousers-0.3.14+fixed1/src/tcs/tcsi_maint.c:61:24:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				       randomSize, random, archiveSize, archive, ownerAuth);
data/trousers-0.3.14+fixed1/src/tcs/tcsi_migration.c:40:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				  BYTE ** random,	/* out */
data/trousers-0.3.14+fixed1/src/tcs/tcsi_migration.c:92:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				       random, outDataSize, outData, parentAuth, entityAuth);
data/trousers-0.3.14+fixed1/src/tcs/tcsi_migration.c:107:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				   BYTE * random,	/* in */
data/trousers-0.3.14+fixed1/src/tcs/tcsi_migration.c:133:41:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				    inDataSize, inData, randomSize, random, parentAuth)))
data/trousers-0.3.14+fixed1/src/tcsd/svrside.c:435:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, "fhec:", long_options, &option_index)) != -1) {
data/trousers-0.3.14+fixed1/src/tcsd/svrside.c:485:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("TCSD_FOREGROUND") == NULL) {
data/trousers-0.3.14+fixed1/src/tddl/tddl.c:54:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("TCSD_USE_TCP_DEVICE")) {
data/trousers-0.3.14+fixed1/src/tddl/tddl.c:55:30:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((tcp_device_hostname = getenv("TCSD_TCP_DEVICE_HOSTNAME")) == NULL)
data/trousers-0.3.14+fixed1/src/tddl/tddl.c:57:32:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((un_socket_device_path = getenv("TCSD_UN_SOCKET_DEVICE_PATH")) == NULL)
data/trousers-0.3.14+fixed1/src/tddl/tddl.c:59:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((tcp_device_port_string = getenv("TCSD_TCP_DEVICE_PORT")) != NULL)
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/issuer_init.c:61:7:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	bi_t random;
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/issuer_init.c:74:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	bi_new( random);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/issuer_init.c:75:14:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	bi_urandom( random, DAA_PARAM_LENGTH_MESSAGE_DIGEST * 8);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/issuer_init.c:76:41:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	buffer = bi_2_nbin( nonceIssuerLength, random);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/issuer_init.c:93:14:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	bi_urandom( random, DAA_PARAM_LENGTH_MESSAGE_DIGEST * 8);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/issuer_init.c:94:68:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	ne = convert_alloc( tcsContext, length_ne, bi_2_nbin( &length_ne, random));
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/issuer_init.c:102:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	bi_free( random);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/prime_gen.c:231:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if (getenv("TSS_DEBUG_OFF") == NULL) {
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/test_join.c:324:7:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	bi_t random;
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/test_join.c:397:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	bi_new( random);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/test_join.c:399:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		bi_urandom( random, DAA_PARAM_SIZE_F_I);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/test_join.c:400:47:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		attributesPlatform[i] = bi_2_nbin( &length, random);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/test_join.c:410:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		bi_urandom( random, DAA_PARAM_SIZE_F_I);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/test_join.c:411:46:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		attributesIssuer[i]  = bi_2_nbin( &length, random);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/test_join.c:418:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	bi_free(random);
data/trousers-0.3.14+fixed1/src/tspi/daa/test_sign.c:233:6:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	if( random != NULL) bi_free_ptr( random);
data/trousers-0.3.14+fixed1/src/tspi/daa/test_sign.c:233:35:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	if( random != NULL) bi_free_ptr( random);
data/trousers-0.3.14+fixed1/src/tspi/log.c:39:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("TSS_DEBUG_OFF"))
data/trousers-0.3.14+fixed1/src/tspi/log.c:57:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("TSS_DEBUG_OFF") == NULL)
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:77:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((file_name = getenv("TSS_USER_PS_FILE"))) {
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcs_api.c:1204:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				   BYTE ** random,	/* out */
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcs_api.c:1220:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
							    random, outDataSize, outData);
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcs_api.c:1236:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				    BYTE * random,	/* in */
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcs_api.c:1251:13:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
							     random, parentAuth, outDataSize,
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcs_api.c:2094:14:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
					BYTE ** random,	/* out */
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcs_api.c:2107:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
								 randomSize, random, archiveSize,
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcs_api.c:3252:13:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		   BYTE **random,			/* out */
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcs_api.c:3268:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
					randomSize, random, outDataSize, outData);
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcs_api.c:3289:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			 BYTE *random,			/* in */
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcs_api.c:3304:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
					randomSize, random, pAuth, outDataSize, outData);
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_cmk.c:225:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		      BYTE **random,			/* out */
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_cmk.c:293:45:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		if (getData(TCSD_PACKET_TYPE_PBYTE, i++, *random, *randomSize, &hte->comm)) {
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_cmk.c:294:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			free(*random);
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_cmk.c:302:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			free(*random);
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_cmk.c:306:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			free(*random);
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_cmk.c:325:14:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			    BYTE *random,			/* in */
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_cmk.c:355:41:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	if (setData(TCSD_PACKET_TYPE_PBYTE, 9, random, randomSize, &hte->comm))
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_maint.c:33:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
					     BYTE ** random,	/* out */
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_maint.c:69:44:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			if (getData(TCSD_PACKET_TYPE_PBYTE, 2, *random, *randomSize, &hte->comm)) {
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_maint.c:70:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				free(*random);
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_maint.c:85:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				free(*random);
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_maint.c:92:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				free(*random);
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_migration.c:39:14:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
					BYTE ** random,	/* out */
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_migration.c:107:46:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			if (getData(TCSD_PACKET_TYPE_PBYTE, i++, *random, *randomSize, &hte->comm)) {
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_migration.c:108:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				free(*random);
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_migration.c:116:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				free(*random);
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_migration.c:124:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				free(*random);
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_migration.c:131:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				free(*random);
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_migration.c:148:14:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
					 BYTE * random,	/* in */
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc_migration.c:170:41:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	if (setData(TCSD_PACKET_TYPE_PBYTE, 5, random, randomSize, &hte->comm))
data/trousers-0.3.14+fixed1/src/tspi/tsp_maint.c:30:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				   BYTE ** random,	/* out */
data/trousers-0.3.14+fixed1/src/tspi/tsp_maint.c:59:48:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		Trspi_UnloadBlob(&offset, *randomSize, dec, *random);
data/trousers-0.3.14+fixed1/src/tspi/tsp_maint.c:64:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		free(*random);
data/trousers-0.3.14+fixed1/src/tspi/tsp_migration.c:36:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			      BYTE ** random,	/* out */
data/trousers-0.3.14+fixed1/src/tspi/tsp_migration.c:99:47:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	Trspi_UnloadBlob(&offset, *randomSize, dec, *random);
data/trousers-0.3.14+fixed1/src/tspi/tsp_migration.c:104:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		free(*random);
data/trousers-0.3.14+fixed1/src/tspi/tsp_migration.c:124:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			       BYTE * random,	/* in */
data/trousers-0.3.14+fixed1/src/tspi/tsp_migration.c:165:44:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	Trspi_LoadBlob(&offset, randomSize, data, random);
data/trousers-0.3.14+fixed1/src/tspi/tsp_pcr.c:46:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((resp = (BYTE *)getenv("TSS_DEFAULT_NUM_PCRS")) == NULL)
data/trousers-0.3.14+fixed1/src/tspi/tsp_tcsi_param.c:42:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env_port = getenv(PORT_ENV_VAR);
data/trousers-0.3.14+fixed1/src/tspi/tsp_tcsi_param.c:106:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env_host = getenv(HOSTNAME_ENV_VAR);
data/trousers-0.3.14+fixed1/src/tspi/tspi_migration.c:247:29:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
							       &randomSize, &random,
data/trousers-0.3.14+fixed1/src/tspi/tspi_migration.c:255:51:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	result |= Trspi_HashUpdate(&hashCtx, randomSize, random);
data/trousers-0.3.14+fixed1/src/tspi/tspi_migration.c:289:50:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		if ((result = __tspi_add_mem_entry(tspContext, random)))
data/trousers-0.3.14+fixed1/src/tspi/tspi_migration.c:293:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	*prgbRandom = random;
data/trousers-0.3.14+fixed1/src/tspi/tspi_migration.c:297:8:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		free(random);
data/trousers-0.3.14+fixed1/src/include/tcsem.h:15:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        int (*open)(void *, FILE **);
data/trousers-0.3.14+fixed1/src/include/tsp_tcsi_param.h:24: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.
get_tcsd_port(char port_str[TCP_PORT_STR_MAX_LEN]);
data/trousers-0.3.14+fixed1/src/tcs/log.c:35:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[64];
data/trousers-0.3.14+fixed1/src/tcs/ps/ps_utils.c:258: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(&tmp->uuid, uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/ps/ps_utils.c:259: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(&tmp->parent_uuid, parent_uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/ps/tcsps.c:75:17:  [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).
	system_ps_fd = open(tcsd_options.system_ps_file, O_CREAT|O_RDWR, 0600);
data/trousers-0.3.14+fixed1/src/tcs/ps/tcsps.c:312: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 tmp_buffer[2048];
data/trousers-0.3.14+fixed1/src/tcs/ps/tcsps.c:371: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 tmp_buffer[2048];
data/trousers-0.3.14+fixed1/src/tcs/ps/tcsps.c:425: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(*ret_uuid, &tmp->uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/ps/tcsps.c:519: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(*ret_key, tmp_buffer, tmp->blob_size);
data/trousers-0.3.14+fixed1/src/tcs/tcs_aik.c:110:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(path, O_RDONLY)) < 0) {
data/trousers-0.3.14+fixed1/src/tcs/tcs_aik.c:139: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(*cred, file, file_size);
data/trousers-0.3.14+fixed1/src/tcs/tcs_auth_mgr.c:175: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(auth_mgr.overflow, tmp, auth_mgr.sleeping_threads * sizeof(COND_VAR *));
data/trousers-0.3.14+fixed1/src/tcs/tcs_auth_mgr.c:399: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(auth_mgr.auth_mapper, tmp,
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog.c:92:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dest, source, sizeof(TSS_PCR_EVENT));
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog.c:188: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(&ret[list_size], addition, addition_size * sizeof(TSS_PCR_EVENT));
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_biosem.c:52:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = fopen((char *)source, "r")) == NULL ) {
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_biosem.c:67: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 page[BIOS_READ_SIZE];
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_biosem.c:110: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(cur->event.rgbPcrValue, event->digest, 20);
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_biosem.c:173: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(&((*events)[i]), &(cur->event), sizeof(TSS_PCR_EVENT));
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_biosem.c:200: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 page[BIOS_READ_SIZE];
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_biosem.c:238: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(e->rgbPcrValue, event->digest, 20);
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_imaem.c:67:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = fopen((char *)source, "r")) == NULL) {
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_imaem.c:82: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 page[IMA_READ_SIZE];
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_imaem.c:89: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 name[EVLOG_FILENAME_MAXSIZE];
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_imaem.c:111:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&pcr_value, &page[ptr], sizeof(int));
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_imaem.c:125: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(cur->event.rgbPcrValue, &page[ptr],
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_imaem.c:130: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 digest[20];
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_imaem.c:204: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(&((*events)[i]), &(cur->event), sizeof(TSS_PCR_EVENT));
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_imaem.c:233: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 page[IMA_READ_SIZE];
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_imaem.c:238: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 name[EVLOG_FILENAME_MAXSIZE];
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_imaem.c:244: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(&pcr_value, &page[ptr], sizeof(int));
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_imaem.c:267: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(event->rgbPcrValue, &page[ptr],
data/trousers-0.3.14+fixed1/src/tcs/tcs_evlog_imaem.c:272:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 digest[20];
data/trousers-0.3.14+fixed1/src/tcs/tcs_key_mem_cache.c:275:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tmp_enc_data, newEncData, tmp->blob->encSize);
data/trousers-0.3.14+fixed1/src/tcs/tcs_key_mem_cache.c:329: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(entry->blob, key_blob, sizeof(TSS_KEY));
data/trousers-0.3.14+fixed1/src/tcs/tcs_key_mem_cache.c:340: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(tmp_parms, key_blob->algorithmParms.parms, key_blob->algorithmParms.parmSize);
data/trousers-0.3.14+fixed1/src/tcs/tcs_key_mem_cache.c:355: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(entry->blob->pubKey.key, key_blob->pubKey.key, key_blob->pubKey.keyLength);
data/trousers-0.3.14+fixed1/src/tcs/tcs_key_mem_cache.c:370: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(entry->blob->PCRInfo, key_blob->PCRInfo, key_blob->PCRInfoSize);
data/trousers-0.3.14+fixed1/src/tcs/tcs_key_mem_cache.c:386: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(entry->blob->encData, key_blob->encData, key_blob->encSize);
data/trousers-0.3.14+fixed1/src/tcs/tcs_key_mem_cache.c:478: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(entry->blob, key_blob, sizeof(TSS_KEY));
data/trousers-0.3.14+fixed1/src/tcs/tcs_key_mem_cache.c:490:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tmp_parms, key_blob->algorithmParms.parms,
data/trousers-0.3.14+fixed1/src/tcs/tcs_key_mem_cache.c:503: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(entry->blob->pubKey.key, key_blob->pubKey.key, key_blob->pubKey.keyLength);
data/trousers-0.3.14+fixed1/src/tcs/tcs_key_mem_cache.c:515:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(entry->blob->encData, key_blob->encData, key_blob->encSize);
data/trousers-0.3.14+fixed1/src/tcs/tcs_key_mem_cache.c:520: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(&entry->uuid, uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/tcs_key_mem_cache.c:1147: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(uuid, &tmpUuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/tcs_key_mem_cache.c:1170:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&tmp->uuid, uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/tcs_key_ps.c:104:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ret_uuid, &disk_tmp->parent_uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/tcs_pbg.c:715:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(*data, &b[offset1], offset2);
data/trousers-0.3.14+fixed1/src/tcs/tcs_pbg.c:735:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(digest1, &b[offset2], TPM_DIGEST_SIZE);
data/trousers-0.3.14+fixed1/src/tcs/tcs_pbg.c:777: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(digest2, &b[offset2], TPM_DIGEST_SIZE);
data/trousers-0.3.14+fixed1/src/tcs/tcs_pbg.c:780: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(digest1, &b[offset2], TPM_DIGEST_SIZE);
data/trousers-0.3.14+fixed1/src/tcs/tcs_ps.c:71:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&key_info->versionInfo, &tmp_key.hdr.key11.ver, sizeof(TSS_VERSION));
data/trousers-0.3.14+fixed1/src/tcs/tcs_ps.c:72:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&key_info->bAuthDataUsage, &tmp_key.authDataUsage,
data/trousers-0.3.14+fixed1/src/tcs/tcs_ps.c:87:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&key_info->versionInfo, &m->blob->hdr.key11.ver, sizeof(TSS_VERSION));
data/trousers-0.3.14+fixed1/src/tcs/tcs_ps.c:88:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&key_info->bAuthDataUsage, &m->blob->authDataUsage,
data/trousers-0.3.14+fixed1/src/tcs/tcs_ps.c:92:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_info->keyUUID, &d->uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/tcs_ps.c:93:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_info->parentKeyUUID, &d->parent_uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/tcs_ps.c:125:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&key_info->versionInfo, &tmp_key.hdr.key11.ver, sizeof(TSS_VERSION));
data/trousers-0.3.14+fixed1/src/tcs/tcs_ps.c:126:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&key_info->bAuthDataUsage, &tmp_key.authDataUsage,
data/trousers-0.3.14+fixed1/src/tcs/tcs_ps.c:141:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&key_info->versionInfo, &m->blob->hdr.key11.ver, sizeof(TSS_VERSION));
data/trousers-0.3.14+fixed1/src/tcs/tcs_ps.c:142:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&key_info->bAuthDataUsage, &m->blob->authDataUsage,
data/trousers-0.3.14+fixed1/src/tcs/tcs_ps.c:146:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_info->keyUUID, &d->uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/tcs_ps.c:147:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&key_info->parentKeyUUID, &d->parent_uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/tcs_req_mgr.c:52: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(blob, loc_buf, Decode_UINT32(&loc_buf[2]));
data/trousers-0.3.14+fixed1/src/tcs/tcs_utils.c:207: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(&container[*offset], object, size);
data/trousers-0.3.14+fixed1/src/tcs/tcs_utils.c:215: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(object, &container[*offset], size);
data/trousers-0.3.14+fixed1/src/tcs/tcsi_caps.c:153:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(*resp, str, INTERNAL_CAP_MANUFACTURER_STR_LEN);
data/trousers-0.3.14+fixed1/src/tcs/tcsi_caps.c:198:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&(*resp)[offset], platClass->classURI, platClass->classURISize);
data/trousers-0.3.14+fixed1/src/tcs/tcsi_caps.c:224:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&(*resp)[offset], platClass->classURI,
data/trousers-0.3.14+fixed1/src/tcs/tcsi_changeauth.c:234: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(*CertifyInfo, &txBlob[offset - *CertifyInfoSize],
data/trousers-0.3.14+fixed1/src/tcs/tcsi_changeauth.c:254: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(*KeyDataOut, &txBlob[offset - *KeySizeOut], *KeySizeOut);
data/trousers-0.3.14+fixed1/src/tcs/tcsi_evlog.c:74:38:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if (tcs_event_log->kernel_source->open((void *)source,
data/trousers-0.3.14+fixed1/src/tcs/tcsi_evlog.c:95:40:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if (tcs_event_log->firmware_source->open((void *)source, &log_handle))
data/trousers-0.3.14+fixed1/src/tcs/tcsi_evlog.c:190:38:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if (tcs_event_log->kernel_source->open((void *)source, &log_handle))
data/trousers-0.3.14+fixed1/src/tcs/tcsi_evlog.c:210:40:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if (tcs_event_log->firmware_source->open((void *)source, &log_handle))
data/trousers-0.3.14+fixed1/src/tcs/tcsi_ps.c:168: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(&tmp_uuid, pKeyUUID, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/tcsi_ps.c:183: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(&tmp_uuid, &disk_ptr->parent_uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/tcsi_ps.c:335: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(&tmp_uuid, pKeyUUID, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/tcsi_ps.c:350: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(&tmp_uuid, &disk_ptr->parent_uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/tcsi_ps.c:459: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(&((*ppKeyInfo)->keyUUID), KeyUUID, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/tcsi_ps.c:464:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&((*ppKeyInfo)->parentKeyUUID), &parentUUID, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/tcsi_ps.c:490: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(*prgbKey, buffer, keySize);
data/trousers-0.3.14+fixed1/src/tcs/tcsi_ps.c:584:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&pLoadKeyInfo->parentKeyUUID, &parentUuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/tcsi_ps.c:585:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&pLoadKeyInfo->keyUUID, KeyUUID, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tcs/tcsi_ps.c:627: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(pubKey.key, rgbPublicInfo, pubKey.keyLength);
data/trousers-0.3.14+fixed1/src/tcs/tcsi_random.c:91:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(*randomBytes + totalReturned, rnd_tmp, bytesReturned);
data/trousers-0.3.14+fixed1/src/tcsd/platform.c:60:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&save, next, sizeof(*next));
data/trousers-0.3.14+fixed1/src/tcsd/platform.c:64: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(&save, next, sizeof(*next));
data/trousers-0.3.14+fixed1/src/tcsd/svrside.c:379: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[NI_MAXHOST];
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:117:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(new_class->classURI, tcg_platform_specs[i].specURI,
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:204: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 tmp_buf[1024];
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:297:13:  [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).
		tmp_int = atoi(arg);
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:308:13:  [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).
		tmp_int = atoi(arg);
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:328:15:  [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).
				tmp_int = atoi(comma);
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:339:14:  [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).
			tmp_int = atoi(comma);
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:357:15:  [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).
				tmp_int = atoi(comma);
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:368:14:  [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).
			tmp_int = atoi(comma);
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:577:13:  [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).
		tmp_int = atoi(arg);
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:641:13:  [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).
		tmp_int = atoi(arg);
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:653:13:  [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).
		tmp_int = atoi(arg);
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:676:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:815:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((f = fopen(tcsd_config_file, "r")) == NULL) {
data/trousers-0.3.14+fixed1/src/tddl/tddl.c:60:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			tcp_device_port = atoi(tcp_device_port_string);
data/trousers-0.3.14+fixed1/src/tddl/tddl.c:73: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(&addr.sin_addr,
data/trousers-0.3.14+fixed1/src/tddl/tddl.c:108:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((fd = open(tpm_device_nodes[i].path, O_RDWR)) >= 0)
data/trousers-0.3.14+fixed1/src/tddl/tddl.c:170: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(txBuffer, pTransmitBuf, TransmitBufLen);
data/trousers-0.3.14+fixed1/src/tddl/tddl.c:232:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pReceiveBuf, txBuffer, *pReceiveBufLen);
data/trousers-0.3.14+fixed1/src/trspi/crypto/openssl/rsa.c:152:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[256];
data/trousers-0.3.14+fixed1/src/trspi/crypto/openssl/symmetric.c:283:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(out, def_iv, iv_len);
data/trousers-0.3.14+fixed1/src/trspi/crypto/openssl/symmetric.c:354: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(def_iv, in, iv_len);
data/trousers-0.3.14+fixed1/src/trspi/trousers.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(&to[(*offset)], from, size);
data/trousers-0.3.14+fixed1/src/trspi/trousers.c:119: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(to, &from[*offset], size);
data/trousers-0.3.14+fixed1/src/trspi/trousers.c:1519: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 *ret, *outbuf, tmpbuf[MAX_BUF_SIZE] = { 0, };
data/trousers-0.3.14+fixed1/src/trspi/trousers.c:1564: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(ret, &tmpbuf, len);
data/trousers-0.3.14+fixed1/src/trspi/trousers.c:1578: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 *ret, *outbuf, tmpbuf[MAX_BUF_SIZE] = { 0, };
data/trousers-0.3.14+fixed1/src/trspi/trousers.c:1626: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(ret, &tmpbuf, len);
data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/bi.c:33: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 buffer[BUFFER_SIZE]; // used for loading bi
data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/bi.c:48: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 c, str[3];
data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/bi.c:52:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf( str, "%02X", (int)(c & 0xFF));
data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/bi.c:65: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 read_buffer[3];
data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/bi.c:212: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 new_name[100];
data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/bi_gmp.c:190:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen("/dev/random", "r");
data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/bi_gmp.c:192:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if( f== NULL) f = fopen("/dev/urandom", "r");
data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/bi_openssl.c:130: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 str[2] = "a";
data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/test/test.c:53:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char result1[5];
data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/test/test.c:156:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen("/tmp/test.todel", "w");
data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/test/test.c:163:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen("/tmp/test.todel", "r");
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_anonymityrevocation/csencryption_result.c:82:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( &buffer[index], condition, conditionLength);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_debug.c:50: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, pk_internal->issuerBaseName, pk_internal->issuerBaseNameLength);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_debug.c:92: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( pk_internal->issuerBaseName, read_buffer, pk_internal->issuerBaseNameLength);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_debug.c:250: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( &(credential->issuerPK), pk, sizeof(TSS_DAA_PK));
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/issue_credential.c:741: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( credIssuer->attributesIssuer[i], attributesIssuer[i], DAA_PARAM_SIZE_F_I / 8);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/issuer_init.c:133: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( &(joinSession->identityProof), &identityProof, sizeof(TSS_DAA_IDENTITY_PROOF));
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/issuer_setup.c:75:23:  [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).
			nb_platform_attr = atoi( argv[i]);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/issuer_setup.c:79:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			nb_issuer_attr = atoi(argv[i]);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/issuer_setup.c:141:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *file = fopen( filename, "w");
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/key_correctness_proof.c:189:4:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f=fopen("/tmp/commits", "r");
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/key_correctness_proof.c:465:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f=fopen("/tmp/commits", "w");
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/key_correctness_proof.c:510: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( challenge_param, challenge, length_challenge);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/key_verification.c:88:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen( filename, "r");
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/keypair_generator.c:295:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buffer, base_name, base_nameLength);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/platform.c:294:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1000], buffer1[1000];
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/platform.c:1025: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( authentication_proof, outputData, outputSize);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/platform.c:1266: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( c_byte, outputData, outputSize);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/platform.c:1394: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( joinSession->attributesPlatform[i],
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/platform.c:1816: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( daaCredential->vBar0, v0, v0Length);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/platform.c:1827: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( daaCredential->vBar1, v1, v1Length);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/platform.c:1854: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( daaCredential->attributes[i],
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/platform.c:1866: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( daaCredential->attributes[i+joinSession.attributesPlatformLength],
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/platform.c:1869: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( &(daaCredential->issuerPK), daa_pk_extern, sizeof( TSS_DAA_PK));
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/platform.c:1877: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( daaCredential->tpmSpecificEnc, tpm_specific, tpm_specificLength);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/platform.c:2545: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( daaSignature->challenge, c_bytes, c_bytesLength);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/platform.c:2553: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( daaSignature->nonceTpm, nonce_tpm, nonce_tpmLength);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/test_join.c:188:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen( filename, "r");
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/test_join.c:244: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( sign_data, digest_n0, EVP_MD_CTX_size(mdctx));
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/test_join.c:245: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( &sign_data[EVP_MD_CTX_size(mdctx)],
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/test_join.c:342:17:  [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).
			daaCounter = atoi(argv[i]);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/test_join.c:487:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen( credential_filename, "w");
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:58: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 buffer[1000];
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:64:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( result, source, length);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:73:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( result, source, length);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:193:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( &result[index], &length, sizeof(UINT32));
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:195:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( &result[index], selected_attrib->indicesList,
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:503:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( buffer, pk_internal->issuerBaseName, pk_internal->issuerBaseNameLength);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:545: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( pk_internal->issuerBaseName, read_buffer, pk_internal->issuerBaseNameLength);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:596:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&result[index], &big_indian_length, sizeof(int));
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:600:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&result[index], &big_indian_length, sizeof(int));
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:604:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&result[index], &big_indian_length, sizeof(int));
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:608:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&result[index], &big_indian_length, sizeof(int));
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:612:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&result[index], &big_indian_length, sizeof(int));
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:619:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&result[index], &big_indian_length, sizeof(int));
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:623:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&result[index], &big_indian_length, sizeof(int));
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:630:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&result[index], &big_indian_length, sizeof(int));
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:639:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( &result[index], &big_indian_length, sizeof(int));
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:645:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( &result[index], pk->issuerBaseName, length_issuer_base_name);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:710: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( pk->issuerBaseName,
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:765: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( pk_internal->issuerBaseName, pk->issuerBaseName, issuer_length);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:893:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( &result[i], &(tpm_daa_issuer->tag), sizeof(UINT16));
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:895:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( &result[i], &(tpm_daa_issuer->DAA_digest_R0), TPM_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:897:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( &result[i], &(tpm_daa_issuer->DAA_digest_R1), TPM_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:899:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( &result[i], &(tpm_daa_issuer->DAA_digest_S0), TPM_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:901:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( &result[i], &(tpm_daa_issuer->DAA_digest_S1), TPM_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:903:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( &result[i], &(tpm_daa_issuer->DAA_digest_n),   TPM_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:905:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( &result[i], &(tpm_daa_issuer->DAA_digest_gamma), TPM_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:907:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( &result[i], &(tpm_daa_issuer->DAA_generic_q), 26);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:1004: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( pk_proof->challenge, pk_internal_proof->challenge,
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:1043: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( pk_proof_internal->challenge,
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:1112:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( signature_intern->challenge,
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:1117:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( signature_intern->nonce_tpm, signature->nonceTpm, signature->nonceTpmLength);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_structs.c:1264: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( &(credential->issuerPK), pk, sizeof(TSS_DAA_PK));
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_verifier/verifier_transaction.c:91:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( &result[ i * len_hash], hash, length - N * len_hash);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_verifier/verifier_transaction.c:163:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( hash, &big_indian_k, sizeof(int));
data/trousers-0.3.14+fixed1/src/tspi/daa/test_sign.c:96:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen( credential_filename, "r");
data/trousers-0.3.14+fixed1/src/tspi/daa/test_sign.c:202:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy( attributes[i],
data/trousers-0.3.14+fixed1/src/tspi/gtk/main.c:67:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(string, ud.string, ud.string_len);
data/trousers-0.3.14+fixed1/src/tspi/gtk/main.c:109:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(string, ud.string, ud.string_len);
data/trousers-0.3.14+fixed1/src/tspi/log.c:36:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[64];
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:203:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(*data, context->machineName, *size);
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:251:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(*data, utf_string, utf_size);
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:281: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(context->machineName, name, len);
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:881: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(context->transLogOut.parameters.digest, digest.digest, sizeof(TPM_DIGEST));
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:932: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(seed, pTransAuth->NonceEven.nonce, sizeof(TPM_NONCE));
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:933: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(&seed[sizeof(TPM_NONCE)], pTransAuth->NonceOdd.nonce, sizeof(TPM_NONCE));
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:934:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&seed[2 * sizeof(TPM_NONCE)], "out", strlen("out"));
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:943: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(&seed[2 * sizeof(TPM_NONCE) + strlen("out")], secret, TPM_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:1012: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(seed, pTransAuth->NonceEven.nonce, sizeof(TPM_NONCE));
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:1013: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(&seed[sizeof(TPM_NONCE)], pTransAuth->NonceOdd.nonce, sizeof(TPM_NONCE));
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:1014: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(&seed[2 * sizeof(TPM_NONCE)], "in", strlen("in"));
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:1023: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(&seed[2 * sizeof(TPM_NONCE) + strlen("in")], secret, TPM_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:1118: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(context->transLogIn.parameters.digest, wDigest.digest, sizeof(TPM_DIGEST));
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:1121:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(context->transLogIn.pubKeyHash.digest, pubKeyHash->digest,
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:1183:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pEnc, rgbData, offset);
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:1184:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&pEnc[offset], tmpEnc, tmpLen);
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:1290: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(context->transLogOut.parameters.digest, wDigest.digest, sizeof(TPM_DIGEST));
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:1427: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(signInfo->data, context->transLogDigest.digest, sizeof(TPM_DIGEST));
data/trousers-0.3.14+fixed1/src/tspi/obj_encdata.c:160:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(*data, encdata->encryptedData, *size);
data/trousers-0.3.14+fixed1/src/tspi/obj_encdata.c:387: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(encdata->encryptedData, data, size);
data/trousers-0.3.14+fixed1/src/tspi/obj_hash.c:108:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(hash->hashData, value, size);
data/trousers-0.3.14+fixed1/src/tspi/obj_hash.c:139: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(*value, hash->hashData, *size);
data/trousers-0.3.14+fixed1/src/tspi/obj_hash.c:183:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&hash->hashUpdateBuffer[hash->hashUpdateSize], data, size);
data/trousers-0.3.14+fixed1/src/tspi/obj_migdata.c:281: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(migdata->migTicket, migTicket, migTicketSize);
data/trousers-0.3.14+fixed1/src/tspi/obj_migdata.c:307: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(*migTicket, migdata->migTicket, migdata->migTicketSize);
data/trousers-0.3.14+fixed1/src/tspi/obj_migdata.c:380: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(tmpMsaList, digest->digest, sizeof(digest->digest));
data/trousers-0.3.14+fixed1/src/tspi/obj_migdata.c:468:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*digest, migdata->msaDigest.digest, sizeof(migdata->msaDigest.digest));
data/trousers-0.3.14+fixed1/src/tspi/obj_migdata.c:549: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(*hmac, migdata->msaHmac.digest, sizeof(migdata->msaHmac.digest));
data/trousers-0.3.14+fixed1/src/tspi/obj_migdata.c:627:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*digest, migdata->maDigest.digest, sizeof(migdata->maDigest.digest));
data/trousers-0.3.14+fixed1/src/tspi/obj_migdata.c:705:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*digest, migdata->destDigest.digest, sizeof(migdata->destDigest.digest));
data/trousers-0.3.14+fixed1/src/tspi/obj_migdata.c:783:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*digest, migdata->srcDigest.digest, sizeof(migdata->srcDigest.digest));
data/trousers-0.3.14+fixed1/src/tspi/obj_migdata.c:917: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(*sigData, migdata->sigData.digest, sizeof(migdata->sigData.digest));
data/trousers-0.3.14+fixed1/src/tspi/obj_migdata.c:945: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(migdata->sigValue, sigValue, sigValueSize);
data/trousers-0.3.14+fixed1/src/tspi/obj_migdata.c:971: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(*sigValue, migdata->sigValue, migdata->sigValueSize);
data/trousers-0.3.14+fixed1/src/tspi/obj_migdata.c:1021: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(*sigTicket, migdata->sigTicket.digest, sizeof(migdata->sigTicket.digest));
data/trousers-0.3.14+fixed1/src/tspi/obj_migdata.c:1049: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(migdata->blob, blob, blobSize);
data/trousers-0.3.14+fixed1/src/tspi/obj_migdata.c:1075: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(*blob, migdata->blob, migdata->blobSize);
data/trousers-0.3.14+fixed1/src/tspi/obj_nv.c:352: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(nv_data_public, pResult, uiResultLen);
data/trousers-0.3.14+fixed1/src/tspi/obj_nv.c:387:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*data, nv_data_public + offset, sizeof(TPM_COMPOSITE_HASH));
data/trousers-0.3.14+fixed1/src/tspi/obj_nv.c:419:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*data, nv_data_public + offset, *size);
data/trousers-0.3.14+fixed1/src/tspi/obj_nv.c:456:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*data, nv_data_public + offset, sizeof(TPM_COMPOSITE_HASH));
data/trousers-0.3.14+fixed1/src/tspi/obj_nv.c:493:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*data, nv_data_public + offset, *size);
data/trousers-0.3.14+fixed1/src/tspi/obj_nv.c:694:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(digAtRelease, ppbHashData, dataLen);
data/trousers-0.3.14+fixed1/src/tspi/obj_pcrs.c:288: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(&(pcrs->pcrs[idx]), value, size);
data/trousers-0.3.14+fixed1/src/tspi/obj_pcrs.c:340: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(*value, &pcrs->pcrs[idx], TCPA_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/obj_pcrs.c:388: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(*out, digest, sizeof(TPM_COMPOSITE_HASH));
data/trousers-0.3.14+fixed1/src/tspi/obj_pcrs.c:901: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(dig->digest,&digest.digest,TPM_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/obj_policy.c:219:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(secret, policy->Secret, sizeof(TCPA_SECRET));
data/trousers-0.3.14+fixed1/src/tspi/obj_policy.c:222:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(secret, &null_secret, sizeof(TCPA_SECRET));
data/trousers-0.3.14+fixed1/src/tspi/obj_policy.c:294: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(policy->Secret, digest, size);
data/trousers-0.3.14+fixed1/src/tspi/obj_policy.c:344:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&digest.digest, data, size);
data/trousers-0.3.14+fixed1/src/tspi/obj_policy.c:769:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(*data, utf_string, utf_size);
data/trousers-0.3.14+fixed1/src/tspi/obj_policy.c:936:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(*entity_value, policy->delegationBlob, policy->delegationBlobLength);
data/trousers-0.3.14+fixed1/src/tspi/obj_policy.c:989: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(secret, policy->Secret, TPM_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/obj_policy.c:1361: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(policy->delegationBlob, blob, blobLength);
data/trousers-0.3.14+fixed1/src/tspi/obj_policy.c:1397: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(*blob, policy->delegationBlob, policy->delegationBlobLength);
data/trousers-0.3.14+fixed1/src/tspi/obj_policy.c:1536:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(*digest, &public.pcrInfo.digestAtRelease.digest, TPM_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/obj_rsakey.c:202: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(&rsakey->uuid, uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tspi/obj_rsakey.c:310: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(&rsakey->key.algorithmParms, parms, sizeof(TCPA_KEY_PARMS));
data/trousers-0.3.14+fixed1/src/tspi/obj_rsakey.c:320: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(rsakey->key.algorithmParms.parms, parms->parms,
data/trousers-0.3.14+fixed1/src/tspi/obj_rsakey.c:1113:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*data, rsakey->key.encData, rsakey->key.encSize);
data/trousers-0.3.14+fixed1/src/tspi/obj_rsakey.c:1153:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*data, rsakey->key.pubKey.key, rsakey->key.pubKey.keyLength);
data/trousers-0.3.14+fixed1/src/tspi/obj_rsakey.c:1189: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(rsakey->key.pubKey.key, data, size);
data/trousers-0.3.14+fixed1/src/tspi/obj_rsakey.c:1312:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(*data, default_exp, offset);
data/trousers-0.3.14+fixed1/src/tspi/obj_rsakey.c:1321:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(*data, parms->exponent, offset);
data/trousers-0.3.14+fixed1/src/tspi/obj_rsakey.c:1360: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(parms->exponent, data, size);
data/trousers-0.3.14+fixed1/src/tspi/obj_rsakey.c:1410: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(&rsakey->uuid, uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tspi/obj_rsakey.c:1691: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(&rsakey->key.pubKey, &pub.pubKey, sizeof(TPM_STORE_PUBKEY));
data/trousers-0.3.14+fixed1/src/tspi/obj_rsakey.c:1692: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(&rsakey->key.algorithmParms, &pub.algorithmParms, sizeof(TPM_KEY_PARMS));
data/trousers-0.3.14+fixed1/src/tspi/obj_rsakey.c:1778: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(rsakey->key.encData, data, size);
data/trousers-0.3.14+fixed1/src/tspi/obj_rsakey.c:2040: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(*blob, rsakey->msaApproval.digest, sizeof(rsakey->msaApproval.digest));
data/trousers-0.3.14+fixed1/src/tspi/obj_rsakey.c:2090: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(*blob, rsakey->msaDigest.digest, sizeof(rsakey->msaDigest.digest));
data/trousers-0.3.14+fixed1/src/tspi/obj_tpm.c:257:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tpm->EndorsementCred, CredData, CredSize);
data/trousers-0.3.14+fixed1/src/tspi/obj_tpm.c:266:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tpm->ConformanceCred, CredData, CredSize);
data/trousers-0.3.14+fixed1/src/tspi/obj_tpm.c:275:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tpm->PlatformCred, CredData, CredSize);
data/trousers-0.3.14+fixed1/src/tspi/obj_tpm.c:284:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tpm->PlatformConfCred, CredData, CredSize);
data/trousers-0.3.14+fixed1/src/tspi/obj_tpm.c:342:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(*CredData, tpm->EndorsementCred, *CredSize);
data/trousers-0.3.14+fixed1/src/tspi/obj_tpm.c:345:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(*CredData, tpm->ConformanceCred, *CredSize);
data/trousers-0.3.14+fixed1/src/tspi/obj_tpm.c:348:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(*CredData, tpm->PlatformCred, *CredSize);
data/trousers-0.3.14+fixed1/src/tspi/obj_tpm.c:351:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(*CredData, tpm->PlatformConfCred, *CredSize);
data/trousers-0.3.14+fixed1/src/tspi/obj_tpm.c:517: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(&tpm->ctr_id, resp, respLen);
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:73: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[PASSWD_BUFSIZE];
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:201:15:  [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).
	user_ps_fd = open(file_name, O_CREAT|O_RDWR, 0600);
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:274:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ret_uuid, &tmp.parent_uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:330:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key, buf, tmp.blob_size);
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:369:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key, buf, tmp.blob_size);
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:370: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(uuid, &tmp.uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:384: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(uuid, &tmp.uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:824: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(&ki->versionInfo, &key.hdr.key11.ver, sizeof(TSS_VERSION));
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:825: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(&ki->keyUUID, &c->uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:826: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(&ki->parentKeyUUID, &c->parent_uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:867: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(&ki->versionInfo, &key.hdr.key11.ver, sizeof(TSS_VERSION));
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:868: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(&ki->keyUUID, &c->uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:869: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(&ki->parentKeyUUID, &c->parent_uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:942: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(tcs_uuid, find_uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:1032: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(tcs_uuid, find_uuid, sizeof(TSS_UUID));
data/trousers-0.3.14+fixed1/src/tspi/rpc/hosttable.c:103:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(entry->hostname, host, hostlen);
data/trousers-0.3.14+fixed1/src/tspi/rpc/tcstp/rpc.c:464: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 port_str[TCP_PORT_STR_MAX_LEN]; // To accomodate string 65535
data/trousers-0.3.14+fixed1/src/tspi/spi_utils.c:432:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(TSS_LOCAL_RANDOM_DEVICE, "r");
data/trousers-0.3.14+fixed1/src/tspi/ssl_ui.c:12: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 pin_buf[UI_MAX_SECRET_STRING_LENGTH + 1];
data/trousers-0.3.14+fixed1/src/tspi/ssl_ui.c:13: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 verify_buf[UI_MAX_SECRET_STRING_LENGTH + 1];
data/trousers-0.3.14+fixed1/src/tspi/ssl_ui.c:53: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(string, unicode, *string_len);
data/trousers-0.3.14+fixed1/src/tspi/tsp_auth.c:359:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(digest, &auth->HMAC, 20);
data/trousers-0.3.14+fixed1/src/tspi/tsp_caps.c:166:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(*respData, str, INTERNAL_CAP_MANUFACTURER_STR_LEN);
data/trousers-0.3.14+fixed1/src/tspi/tsp_changeauth.c:247: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(storedData.encData, newEncData, newEncSize);
data/trousers-0.3.14+fixed1/src/tspi/tsp_changeauth.c:349: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(keyToChange.encData, newEncData, newEncSize);
data/trousers-0.3.14+fixed1/src/tspi/tsp_pcr.c:50:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		return atoi((char *)resp);
data/trousers-0.3.14+fixed1/src/tspi/tsp_pcr.c:77:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(&hashBlob[(numPCRs * TPM_SHA1_160_HASH_LEN) + offset],
data/trousers-0.3.14+fixed1/src/tspi/tsp_ps.c:255: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(&((*merged_hier)[i]), &tsp_hier[i], sizeof(TSS_KM_KEYINFO));
data/trousers-0.3.14+fixed1/src/tspi/tsp_ps.c:258: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(&((*merged_hier)[i + j]), &tcs_hier[j], sizeof(TSS_KM_KEYINFO));
data/trousers-0.3.14+fixed1/src/tspi/tsp_ps.c:281: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(&((*merged_hier)[i]), &tsp_hier[i], sizeof(TSS_KM_KEYINFO2));
data/trousers-0.3.14+fixed1/src/tspi/tsp_ps.c:284: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(&((*merged_hier)[i + j]), &tcs_hier[j], sizeof(TSS_KM_KEYINFO2));
data/trousers-0.3.14+fixed1/src/tspi/tsp_seal.c:52: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(mgf1Buffer, rgbNonceEven, ulSizeNonces);
data/trousers-0.3.14+fixed1/src/tspi/tsp_seal.c:54: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(mgf1Buffer, rgbNonceOdd, ulSizeNonces);
data/trousers-0.3.14+fixed1/src/tspi/tsp_seal.c:56: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(mgf1Buffer, "XOR", strlen("XOR"));
data/trousers-0.3.14+fixed1/src/tspi/tsp_seal.c:58: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(mgf1Buffer, sess->sharedSecret.digest, sharedSecretLen);
data/trousers-0.3.14+fixed1/src/tspi/tsp_tcsi_param.c:52:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	*port = atoi(raw_port_str);
data/trousers-0.3.14+fixed1/src/tspi/tsp_tcsi_param.c:63: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.
convert_port_to_str(int port, char port_str[TCP_PORT_STR_MAX_LEN])
data/trousers-0.3.14+fixed1/src/tspi/tsp_tcsi_param.c:72: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.
get_tcsd_port(char port_str[TCP_PORT_STR_MAX_LEN])
data/trousers-0.3.14+fixed1/src/tspi/tspi_aik.c:392: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(*prgbTcpaIdentityReq, idReqBlob, offset);
data/trousers-0.3.14+fixed1/src/tspi/tspi_aik.c:547: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(*prgbCredential, credCallback, credLen);
data/trousers-0.3.14+fixed1/src/tspi/tspi_aik.c:578: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(*prgbCredential, credBlob, credLen);
data/trousers-0.3.14+fixed1/src/tspi/tspi_asn1.c:122:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(derBlob, encBlob, encBlobLen);
data/trousers-0.3.14+fixed1/src/tspi/tspi_asn1.c:177:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(encBlob, rawBlob, rawBlobSize);
data/trousers-0.3.14+fixed1/src/tspi/tspi_asn1.c:240:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(rawBlob, tssBlob->blob->data, decBlobSize);
data/trousers-0.3.14+fixed1/src/tspi/tspi_audit.c:82: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(pulTemp, *ordList, *ordSize * sizeof(UINT32));
data/trousers-0.3.14+fixed1/src/tspi/tspi_audit.c:83:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pulTemp + *ordSize, tcsOrdList, tcsOrdSize * sizeof(UINT32));
data/trousers-0.3.14+fixed1/src/tspi/tspi_audit.c:203: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(signInfo.fixed, "ADIG", strlen("ADIG"));
data/trousers-0.3.14+fixed1/src/tspi/tspi_audit.c:263:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pValidationData->rgbData, signInfoBlob, signInfoBlobSize);
data/trousers-0.3.14+fixed1/src/tspi/tspi_audit.c:272:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(pValidationData->rgbValidationData, sig, sigSize);
data/trousers-0.3.14+fixed1/src/tspi/tspi_bind.c:83: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(&boundData.ver, &VERSION_1_1, sizeof(TCPA_VERSION));
data/trousers-0.3.14+fixed1/src/tspi/tspi_bind.c:90: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(boundData.payloadData, rgbDataToBind, ulDataLength);
data/trousers-0.3.14+fixed1/src/tspi/tspi_bind.c:105: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(&boundData.ver, &VERSION_1_1, sizeof(TCPA_VERSION));
data/trousers-0.3.14+fixed1/src/tspi/tspi_bind.c:113: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(boundData.payloadData, rgbDataToBind, ulDataLength);
data/trousers-0.3.14+fixed1/src/tspi/tspi_certify.c:156: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(pValidationData->rgbData, CertifyInfo, CertifyInfoSize);
data/trousers-0.3.14+fixed1/src/tspi/tspi_certify.c:164: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(pValidationData->rgbValidationData, outData, outDataSize);
data/trousers-0.3.14+fixed1/src/tspi/tspi_changeauth.c:184:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(keyParms.parms, ephParms, 12);
data/trousers-0.3.14+fixed1/src/tspi/tspi_changeauth.c:268:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(caValidate.newAuthSecret.authdata, newSecret.authdata, 20);
data/trousers-0.3.14+fixed1/src/tspi/tspi_changeauth.c:309: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(encObject, keyContainer.encData,
data/trousers-0.3.14+fixed1/src/tspi/tspi_changeauth.c:331: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(encObject, dataContainer.encData,
data/trousers-0.3.14+fixed1/src/tspi/tspi_changeauth.c:397: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(keyContainer.encData, encDataOut, encDataSizeOut);
data/trousers-0.3.14+fixed1/src/tspi/tspi_changeauth.c:411: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(dataContainer.encData, encDataOut,
data/trousers-0.3.14+fixed1/src/tspi/tspi_cmk.c:356: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(*prgbRandom, randomData, randomDataSize);
data/trousers-0.3.14+fixed1/src/tspi/tspi_dir.c:51: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((BYTE *)&dirValue, rgbDirData, ulDirDataLength);
data/trousers-0.3.14+fixed1/src/tspi/tspi_dir.c:103: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(*prgbDirData, dirValue.digest, *pulDirDataLength);
data/trousers-0.3.14+fixed1/src/tspi/tspi_ek.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(pValidationData->rgbData, newEK, newEKSize);
data/trousers-0.3.14+fixed1/src/tspi/tspi_ek.c:102: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(&pValidationData->rgbData[ekSize], antiReplay.nonce,
data/trousers-0.3.14+fixed1/src/tspi/tspi_ek.c:116: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(pValidationData->rgbValidationData, digest.digest, TCPA_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/tspi_ek.c:227: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(pValidationData->rgbData, pubEK, pubEKSize);
data/trousers-0.3.14+fixed1/src/tspi/tspi_ek.c:228: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(&pValidationData->rgbData[pubEKSize], antiReplay.nonce,
data/trousers-0.3.14+fixed1/src/tspi/tspi_ek.c:243: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(pValidationData->rgbValidationData, checkSum.digest,
data/trousers-0.3.14+fixed1/src/tspi/tspi_ek.c:361: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(pValidationData->rgbData, newEK, newEKSize);
data/trousers-0.3.14+fixed1/src/tspi/tspi_ek.c:362: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(&pValidationData->rgbData[ekSize], antiReplay.nonce,
data/trousers-0.3.14+fixed1/src/tspi/tspi_ek.c:376: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(pValidationData->rgbValidationData, digest.digest, TPM_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/tspi_ek.c:405: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(*prgbEkResetData, eKResetAuth.digest, sizeof(eKResetAuth.digest));
data/trousers-0.3.14+fixed1/src/tspi/tspi_key.c:297: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(newKey, keyBlob, keySize);
data/trousers-0.3.14+fixed1/src/tspi/tspi_maint.c:188: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(pValidationData->rgbData, hashBlob, offset);
data/trousers-0.3.14+fixed1/src/tspi/tspi_maint.c:200: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(pValidationData->rgbValidationData, checkSum.digest, TCPA_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/tspi_maint.c:263: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(pValidationData->rgbValidationData, checkSum.digest, TCPA_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/tspi_pcr_events.c:44: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(pPcrEvent, event, sizeof(TSS_PCR_EVENT));
data/trousers-0.3.14+fixed1/src/tspi/tspi_pcr_extend.c:86: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(pPcrEvent->rgbPcrValue, (BYTE *)&digest.digest, TPM_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/tspi_pcr_extend.c:90: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(&pPcrEvent->versionInfo, &VERSION_1_1, sizeof(TCPA_VERSION));
data/trousers-0.3.14+fixed1/src/tspi/tspi_pcr_extend.c:102: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(*prgbPcrValue, &outDigest, sizeof(TPM_PCRVALUE));
data/trousers-0.3.14+fixed1/src/tspi/tspi_pcr_extend.c:132: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(*prgbPcrValue, outDigest.digest, sizeof(TCPA_PCRVALUE));
data/trousers-0.3.14+fixed1/src/tspi/tspi_quote.c:209: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(pValidationData->rgbValidationData, validationData, validationLength);
data/trousers-0.3.14+fixed1/src/tspi/tspi_quote.c:221: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(pValidationData->rgbData, quoteinfo, offset);
data/trousers-0.3.14+fixed1/src/tspi/tspi_quote2.c:249: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(pValidationData->rgbValidationData, sig, sigSize);
data/trousers-0.3.14+fixed1/src/tspi/tspi_quote2.c:263: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(pValidationData->rgbData, quoteinfo, offset);
data/trousers-0.3.14+fixed1/src/tspi/tspi_seal.c:255:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		   memcpy(authLastNonceEven.nonce, xsap->auth.NonceEven.nonce, sizeof(TPM_NONCE));
data/trousers-0.3.14+fixed1/src/tspi/tspi_selftest.c:173: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(pValidationData->rgbValidationData, outData, outDataSize);
data/trousers-0.3.14+fixed1/src/tspi/tspi_transport.c:61:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(signInfo.replay.nonce, pValidationData->rgbExternalData, sizeof(TPM_NONCE));
data/trousers-0.3.14+fixed1/src/tcs/ps/ps_utils.c:56:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(fd, data, size);
data/trousers-0.3.14+fixed1/src/tcs/ps/ps_utils.c:144:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(fd, &num_keys, sizeof(UINT32));
data/trousers-0.3.14+fixed1/src/tcs/ps/ps_utils.c:281:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(fd, &num_keys, sizeof(UINT32));
data/trousers-0.3.14+fixed1/src/tcs/ps/tcsps.c:704:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((rc = read(fd, buf, sizeof(buf))) > 0) {
data/trousers-0.3.14+fixed1/src/tcs/ps/tcsps.c:767:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(fd, &num_keys, sizeof(UINT32));
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:101:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				 strlen(tcg_platform_specs[i].name))) {
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:110: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).
			new_class->classURISize = strlen(tcg_platform_specs[i].specURI) + 1;
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:183: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).
		if (!strncasecmp(ptr, options_list[i].name, strlen(options_list[i].name))) {
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:185: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).
			ptr += strlen(options_list[i].name);
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:232: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).
		LogError("malloc of %zd bytes failed", strlen(tmp_buf));
data/trousers-0.3.14+fixed1/src/tcsd/tcsd_conf.c:404:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(tmp_ptr) == 0)
data/trousers-0.3.14+fixed1/src/tddl/tddl.c:94:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(addr.sun_path, un_socket_device_path,
data/trousers-0.3.14+fixed1/src/tddl/tddl.c:196:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				sizeResult = read(opened_device->fd, txBuffer,
data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/bi.c:64: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).
	int str_len = strlen( strings);
data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/bi_gmp.c:203:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while( (c = fgetc(stdin)) != 10) {
data/trousers-0.3.14+fixed1/src/tspi/daa/big_integer/bi_openssl.c:132:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = fgetc(stdin);
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_issuer/issuer_setup.c:117:3:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strlen( issuer),	// in
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/test.c:106:74:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( (result = Tspi_Policy_SetSecret( hPolicy, TSS_SECRET_MODE_PLAIN, strlen( szTpmPasswd), szTpmPasswd)) != TSS_SUCCESS)
data/trousers-0.3.14+fixed1/src/tspi/daa/daa_platform/test_join.c:377:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						strlen( szTpmPasswd),
data/trousers-0.3.14+fixed1/src/tspi/daa/test_sign.c:127:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						strlen( szTpmPasswd),
data/trousers-0.3.14+fixed1/src/tspi/daa/test_sign.c:165:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		EVP_DigestUpdate(mdctx,  (BYTE *)message, strlen( message));
data/trousers-0.3.14+fixed1/src/tspi/gtk/callbacks.c:92: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).
	int len = strlen(entryConf_text);
data/trousers-0.3.14+fixed1/src/tspi/gtk/callbacks.c:94:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(entryConf_text) == strlen(entryPass_text)) {
data/trousers-0.3.14+fixed1/src/tspi/gtk/callbacks.c:94:32:  [1] (buffer) strlen:
  Does not handle 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(entryConf_text) == strlen(entryPass_text)) {
data/trousers-0.3.14+fixed1/src/tspi/gtk/callbacks.c:115: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).
	unsigned len = strlen(entryConf_text);
data/trousers-0.3.14+fixed1/src/tspi/gtk/callbacks.c:117:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(entryConf_text) == strlen(entryPass_text)) {
data/trousers-0.3.14+fixed1/src/tspi/gtk/callbacks.c:117:32:  [1] (buffer) strlen:
  Does not handle 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(entryConf_text) == strlen(entryPass_text)) {
data/trousers-0.3.14+fixed1/src/tspi/gtk/callbacks.c:147: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).
	unsigned len = strlen(entryConf_text);
data/trousers-0.3.14+fixed1/src/tspi/gtk/callbacks.c:149:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(entryConf_text) == strlen(entryPass_text)) {
data/trousers-0.3.14+fixed1/src/tspi/gtk/callbacks.c:149:32:  [1] (buffer) strlen:
  Does not handle 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(entryConf_text) == strlen(entryPass_text)) {
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:921: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).
	BYTE seed[(2 * sizeof(TPM_NONCE)) + strlen("out") + TPM_SHA1_160_HASH_LEN];
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:934:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(&seed[2 * sizeof(TPM_NONCE)], "out", strlen("out"));
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:943: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).
		memcpy(&seed[2 * sizeof(TPM_NONCE) + strlen("out")], secret, TPM_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:959: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).
		seedLen = (2 * sizeof(TPM_NONCE)) + strlen("out");
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:1001: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).
	BYTE seed[(2 * sizeof(TPM_NONCE)) + strlen("in") + TPM_SHA1_160_HASH_LEN];
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:1014:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(&seed[2 * sizeof(TPM_NONCE)], "in", strlen("in"));
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:1023: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).
		memcpy(&seed[2 * sizeof(TPM_NONCE) + strlen("in")], secret, TPM_SHA1_160_HASH_LEN);
data/trousers-0.3.14+fixed1/src/tspi/obj_context.c:1039: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).
		seedLen = (2 * sizeof(TPM_NONCE)) + strlen("in");
data/trousers-0.3.14+fixed1/src/tspi/ps/ps_utils.c:30:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(fd, data, size);
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:402:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(fd, &num_keys, sizeof(UINT32));
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:618:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((rc = read(fd, buf, sizeof(buf))) > 0) {
data/trousers-0.3.14+fixed1/src/tspi/ps/tspps.c:1077:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(fd, &num_keys, sizeof(UINT32));
data/trousers-0.3.14+fixed1/src/tspi/rpc/hosttable.c:96: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).
    hostlen = strlen((char *)host)+1;
data/trousers-0.3.14+fixed1/src/tspi/ssl_ui.c:19: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).
	popup_nl = malloc(strlen((char *)popup) + 2);
data/trousers-0.3.14+fixed1/src/tspi/tsp_seal.c:46: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).
	mgf1SeedLen = (ulSizeNonces * 2) + strlen("XOR") + sharedSecretLen;
data/trousers-0.3.14+fixed1/src/tspi/tsp_seal.c:56: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).
	memcpy(mgf1Buffer, "XOR", strlen("XOR"));
data/trousers-0.3.14+fixed1/src/tspi/tsp_seal.c:57: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).
	mgf1Buffer += strlen("XOR");
data/trousers-0.3.14+fixed1/src/tspi/tsp_tcsi_param.c:119: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).
	env_len = strlen(tmp_str);
data/trousers-0.3.14+fixed1/src/tspi/tsp_tcsi_param.c:133:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(*host_str, tmp_str, *len);
data/trousers-0.3.14+fixed1/src/tspi/tspi_audit.c:203: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).
		memcpy(signInfo.fixed, "ADIG", strlen("ADIG"));
data/trousers-0.3.14+fixed1/src/tspi/tspi_context.c:101:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						strlen((char *)machine_name)+1))) {
data/trousers-0.3.14+fixed1/src/tspi/tspi_ps.c:185: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(PACKAGE_STRING) + 1,
data/trousers-0.3.14+fixed1/src/tspi/tspi_selftest.c:133: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).
		result |= Trspi_HashUpdate(&hashCtx, strlen("Test Passed"), (BYTE *)"Test Passed");
data/trousers-0.3.14+fixed1/src/tspi/tspi_selftest.c:149:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						strlen("Test Passed");
data/trousers-0.3.14+fixed1/src/tspi/tspi_selftest.c:157: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).
		Trspi_LoadBlob(&offset, strlen("Test Passed"), pValidationData->rgbData,

ANALYSIS SUMMARY:

Hits = 569
Lines analyzed = 101178 in approximately 2.02 seconds (50037 lines/second)
Physical Source Lines of Code (SLOC) = 77315
Hits@level = [0] 278 [1]  55 [2] 369 [3] 139 [4]   5 [5]   1
Hits@level+ = [0+] 847 [1+] 569 [2+] 514 [3+] 145 [4+]   6 [5+]   1
Hits/KSLOC@level+ = [0+] 10.9552 [1+] 7.3595 [2+] 6.64813 [3+] 1.87544 [4+] 0.0776046 [5+] 0.0129341
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.