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/tpm2-tss-3.0.2/include/tss2/tss2_common.h
Examining data/tpm2-tss-3.0.2/include/tss2/tss2_esys.h
Examining data/tpm2-tss-3.0.2/include/tss2/tss2_fapi.h
Examining data/tpm2-tss-3.0.2/include/tss2/tss2_mu.h
Examining data/tpm2-tss-3.0.2/include/tss2/tss2_rc.h
Examining data/tpm2-tss-3.0.2/include/tss2/tss2_sys.h
Examining data/tpm2-tss-3.0.2/include/tss2/tss2_tcti.h
Examining data/tpm2-tss-3.0.2/include/tss2/tss2_tcti_cmd.h
Examining data/tpm2-tss-3.0.2/include/tss2/tss2_tcti_device.h
Examining data/tpm2-tss-3.0.2/include/tss2/tss2_tcti_mssim.h
Examining data/tpm2-tss-3.0.2/include/tss2/tss2_tcti_swtpm.h
Examining data/tpm2-tss-3.0.2/include/tss2/tss2_tcti_tbs.h
Examining data/tpm2-tss-3.0.2/include/tss2/tss2_tctildr.h
Examining data/tpm2-tss-3.0.2/include/tss2/tss2_tpm2_types.h
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_ActivateCredential.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_Certify.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_CertifyCreation.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_ChangeEPS.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_ChangePPS.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_Clear.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_ClearControl.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_ClockRateAdjust.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_ClockSet.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_Commit.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_ContextLoad.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_ContextSave.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_Create.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_CreateLoaded.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_CreatePrimary.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_DictionaryAttackLockReset.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_DictionaryAttackParameters.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_Duplicate.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_ECC_Parameters.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_ECDH_KeyGen.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_ECDH_ZGen.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_EC_Ephemeral.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_EncryptDecrypt.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_EncryptDecrypt2.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_EventSequenceComplete.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_EvictControl.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_FieldUpgradeData.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_FieldUpgradeStart.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_FirmwareRead.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_FlushContext.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_GetCapability.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_GetCommandAuditDigest.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_GetRandom.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_GetSessionAuditDigest.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_GetTestResult.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_GetTime.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_HMAC.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_HMAC_Start.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_Hash.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_HashSequenceStart.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_HierarchyChangeAuth.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_HierarchyControl.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_Import.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_IncrementalSelfTest.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_Load.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_LoadExternal.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_MakeCredential.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_NV_Certify.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_NV_ChangeAuth.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_NV_DefineSpace.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_NV_Extend.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_NV_GlobalWriteLock.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_NV_Increment.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_NV_Read.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_NV_ReadLock.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_NV_ReadPublic.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_NV_SetBits.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_NV_UndefineSpace.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_NV_UndefineSpaceSpecial.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_NV_Write.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_NV_WriteLock.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_ObjectChangeAuth.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PCR_Allocate.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PCR_Event.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PCR_Extend.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PCR_Read.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PCR_Reset.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PCR_SetAuthPolicy.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PCR_SetAuthValue.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PP_Commands.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyAuthValue.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyAuthorize.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyAuthorizeNV.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyCommandCode.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyCounterTimer.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyCpHash.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyDuplicationSelect.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyGetDigest.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyLocality.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyNV.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyNameHash.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyNvWritten.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyOR.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyPCR.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyPassword.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyPhysicalPresence.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyRestart.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicySecret.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicySigned.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyTemplate.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_PolicyTicket.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_Quote.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_RSA_Decrypt.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_RSA_Encrypt.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_ReadClock.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_ReadPublic.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_Rewrap.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_SelfTest.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_SequenceComplete.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_SequenceUpdate.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_SetAlgorithmSet.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_SetCommandCodeAuditStatus.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_SetPrimaryPolicy.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_Shutdown.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_Sign.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_StartAuthSession.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_Startup.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_StirRandom.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_TestParms.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_Unseal.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_Vendor_TCG_Test.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_VerifySignature.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_ZGen_2Phase.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/esys_context.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/esys_crypto.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/esys_crypto.h
Examining data/tpm2-tss-3.0.2/src/tss2-esys/esys_crypto_mbed.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/esys_crypto_mbed.h
Examining data/tpm2-tss-3.0.2/src/tss2-esys/esys_crypto_ossl.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/esys_crypto_ossl.h
Examining data/tpm2-tss-3.0.2/src/tss2-esys/esys_free.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/esys_int.h
Examining data/tpm2-tss-3.0.2/src/tss2-esys/esys_iutil.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/esys_iutil.h
Examining data/tpm2-tss-3.0.2/src/tss2-esys/esys_mu.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/esys_mu.h
Examining data/tpm2-tss-3.0.2/src/tss2-esys/esys_tr.c
Examining data/tpm2-tss-3.0.2/src/tss2-esys/esys_types.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_AuthorizePolicy.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_ChangeAuth.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_CreateKey.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_CreateNv.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_CreateSeal.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Decrypt.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Delete.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Encrypt.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_ExportKey.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_ExportPolicy.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Finalize.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Free.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_GetAppData.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_GetCertificate.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_GetDescription.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_GetEsysBlob.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_GetInfo.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_GetPlatformCertificates.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_GetPollHandles.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_GetRandom.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_GetTcti.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_GetTpmBlobs.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Import.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Initialize.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_List.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_NvExtend.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_NvIncrement.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_NvRead.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_NvSetBits.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_NvWrite.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_PcrExtend.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_PcrRead.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Provision.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Quote.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_SetAppData.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_SetCertificate.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_SetDescription.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Sign.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Unseal.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_VerifyQuote.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_VerifySignature.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_WriteAuthorizeNV.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/api/fapi_callback.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_certificates.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_crypto.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_crypto.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_int.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_policy.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_types.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_config.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_config.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_eventlog.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_eventlog.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_get_intl_cert.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_get_intl_cert.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_io.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_io.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_json_deserialize.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_json_deserialize.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_json_serialize.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_json_serialize.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_macros.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_calculate.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_calculate.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_callbacks.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_callbacks.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_execute.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_execute.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_instantiate.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_instantiate.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_json_deserialize.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_json_deserialize.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_json_serialize.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_json_serialize.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_store.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_store.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_types.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policyutil_execute.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policyutil_execute.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_profiles.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_profiles.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_deserialize.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_deserialize.h
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c
Examining data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.h
Examining data/tpm2-tss-3.0.2/src/tss2-mu/base-types.c
Examining data/tpm2-tss-3.0.2/src/tss2-mu/tpm2b-types.c
Examining data/tpm2-tss-3.0.2/src/tss2-mu/tpma-types.c
Examining data/tpm2-tss-3.0.2/src/tss2-mu/tpml-types.c
Examining data/tpm2-tss-3.0.2/src/tss2-mu/tpms-types.c
Examining data/tpm2-tss-3.0.2/src/tss2-mu/tpmt-types.c
Examining data/tpm2-tss-3.0.2/src/tss2-mu/tpmu-types.c
Examining data/tpm2-tss-3.0.2/src/tss2-rc/tss2_rc.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_AC_GetCapability.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_AC_Send.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_ActivateCredential.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Certify.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_CertifyCreation.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_ChangeEPS.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_ChangePPS.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Clear.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_ClearControl.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_ClockRateAdjust.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_ClockSet.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Commit.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_ContextLoad.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_ContextSave.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Create.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_CreateLoaded.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_CreatePrimary.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_DictionaryAttackLockReset.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_DictionaryAttackParameters.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Duplicate.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_ECC_Parameters.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_ECDH_KeyGen.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_ECDH_ZGen.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_EC_Ephemeral.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_EncryptDecrypt.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_EncryptDecrypt2.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_EventSequenceComplete.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_EvictControl.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Execute.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_FieldUpgradeData.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_FieldUpgradeStart.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Finalize.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_FirmwareRead.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_FlushContext.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_GetCapability.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_GetCommandAuditDigest.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_GetCommandCode.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_GetContextSize.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_GetCpBuffer.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_GetDecryptParam.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_GetEncryptParam.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_GetRandom.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_GetRpBuffer.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_GetRspAuths.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_GetSessionAuditDigest.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_GetTctiContext.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_GetTestResult.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_GetTime.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_HMAC.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_HMAC_Start.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Hash.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_HashSequenceStart.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_HierarchyChangeAuth.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_HierarchyControl.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Import.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_IncrementalSelfTest.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Initialize.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Load.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_LoadExternal.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_MakeCredential.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_NV_Certify.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_NV_ChangeAuth.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_NV_DefineSpace.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_NV_Extend.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_NV_GlobalWriteLock.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_NV_Increment.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_NV_Read.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_NV_ReadLock.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_NV_ReadPublic.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_NV_SetBits.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_NV_UndefineSpace.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_NV_UndefineSpaceSpecial.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_NV_Write.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_NV_WriteLock.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_ObjectChangeAuth.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PCR_Allocate.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PCR_Event.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PCR_Extend.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PCR_Read.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PCR_Reset.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PCR_SetAuthPolicy.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PCR_SetAuthValue.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PP_Commands.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyAuthValue.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyAuthorize.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyAuthorizeNV.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyCommandCode.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyCounterTimer.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyCpHash.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyDuplicationSelect.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyGetDigest.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyLocality.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyNV.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyNameHash.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyNvWritten.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyOR.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyPCR.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyPassword.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyPhysicalPresence.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyRestart.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicySecret.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicySigned.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyTemplate.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_PolicyTicket.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Policy_AC_SendSelect.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Quote.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_RSA_Decrypt.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_RSA_Encrypt.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_ReadClock.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_ReadPublic.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Rewrap.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_SelfTest.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_SequenceComplete.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_SequenceUpdate.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_SetAlgorithmSet.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_SetCmdAuths.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_SetCommandCodeAuditStatus.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_SetDecryptParam.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_SetEncryptParam.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_SetPrimaryPolicy.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Shutdown.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Sign.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_StartAuthSession.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Startup.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_StirRandom.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_TestParms.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Unseal.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Vendor_TCG_Test.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_VerifySignature.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_ZGen_2Phase.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/sysapi_util.c
Examining data/tpm2-tss-3.0.2/src/tss2-sys/sysapi_util.h
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-cmd.c
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-cmd.h
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-common.c
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-common.h
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-device.c
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-device.h
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-mssim.c
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-mssim.h
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-swtpm.c
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-swtpm.h
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-tbs.c
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-tbs.h
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tctildr-dl.c
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tctildr-dl.h
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tctildr-interface.h
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tctildr-nodl.c
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tctildr-nodl.h
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tctildr.c
Examining data/tpm2-tss-3.0.2/src/tss2-tcti/tctildr.h
Examining data/tpm2-tss-3.0.2/src/util/aux_util.h
Examining data/tpm2-tss-3.0.2/src/util/io.c
Examining data/tpm2-tss-3.0.2/src/util/io.h
Examining data/tpm2-tss-3.0.2/src/util/key-value-parse.c
Examining data/tpm2-tss-3.0.2/src/util/key-value-parse.h
Examining data/tpm2-tss-3.0.2/src/util/log.c
Examining data/tpm2-tss-3.0.2/src/util/log.h
Examining data/tpm2-tss-3.0.2/src/util/tpm2b.h
Examining data/tpm2-tss-3.0.2/src/util/tss2_endian.h
Examining data/tpm2-tss-3.0.2/test/fuzz/main-sys.cpp
Examining data/tpm2-tss-3.0.2/test/fuzz/tcti/tcti-fuzzing.c
Examining data/tpm2-tss-3.0.2/test/fuzz/tcti/tcti-fuzzing.h
Examining data/tpm2-tss-3.0.2/test/fuzz/tcti/tss2_tcti_fuzzing.h
Examining data/tpm2-tss-3.0.2/test/helper/tpm_cmd_tcti_dummy.c
Examining data/tpm2-tss-3.0.2/test/helper/tpm_dumpstate.c
Examining data/tpm2-tss-3.0.2/test/helper/tpm_getek.c
Examining data/tpm2-tss-3.0.2/test/helper/tpm_getek_ecc.c
Examining data/tpm2-tss-3.0.2/test/helper/tpm_startup.c
Examining data/tpm2-tss-3.0.2/test/helper/tpm_transientempty.c
Examining data/tpm2-tss-3.0.2/test/helper/tpm_writeekcert.c
Examining data/tpm2-tss-3.0.2/test/integration/context-util.h
Examining data/tpm2-tss-3.0.2/test/integration/esys-audit.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-auto-session-flags.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-certify-creation.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-certify.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-change-eps.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-clear-control.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-clear.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-clockset.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-commit.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-create-fail.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-create-password-auth.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-create-policy-auth.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-create-primary-hmac.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-create-session-auth.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-createloaded.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-duplicate.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-ecc-parameters.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-ecdh-keygen.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-ecdh-zgen.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-encrypt-decrypt.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-event-sequence-complete.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-evict-control-serialization.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-field-upgrade.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-firmware-read.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-get-capability.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-get-random.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-get-time.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-hash.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-hashsequencestart.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-hierarchy-control.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-hierarchychangeauth.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-hmac.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-hmacsequencestart.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-import.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-lock.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-make-credential.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-nv-certify.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-nv-ram-counter.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-nv-ram-extend-index.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-nv-ram-ordinary-index.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-nv-ram-set-bits.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-object-changeauth.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-pcr-auth-value.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-pcr-basic.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-policy-authorize-nv-opt.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-policy-authorize.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-policy-nv-changeauth.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-policy-nv-undefine-special.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-policy-password.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-policy-physical-presence-opt.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-policy-regression.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-policy-template-opt.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-policy-ticket.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-pp-commands.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-quote.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-rsa-encrypt-decrypt.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-save-and-load-context.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-session-attributes.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-set-algorithm-set.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-stir-random.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-testparms.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-tpm-clear-auth.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-tpm-tests.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-tr-fromTpmPublic-key.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-tr-fromTpmPublic-nv.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-tr-fromTpmPublic-session.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-tr-getName-hierarchy.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-tr-getTpmHandle-key.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-tr-getTpmHandle-nv.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-unseal-password-auth.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-verify-signature.int.c
Examining data/tpm2-tss-3.0.2/test/integration/esys-zgen-2phase.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-check-wrong-paths.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-data-crypt.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-duplicate.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-ext-public-key.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-get-esys-blobs.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-get-random.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-info.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-key-change-auth.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-key-create-ckda-sign.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-key-create-null-key-sign.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policies-sign.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-nv-sign.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-nv-sign.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-or-sign.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-pcr-sign.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-secret-nv-sign.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-signed.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign-password-provision.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign-policy-provision.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-nv-authorizenv-cphash.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-nv-extend.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-nv-increment.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-nv-ordinary.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-nv-set-bits.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-nv-written-policy.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-pcr-test.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-platform-certificates.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-provisioning-error.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-quote-destructive.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-quote.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-second-provisioning.int.c
Examining data/tpm2-tss-3.0.2/test/integration/fapi-unseal.int.c
Examining data/tpm2-tss-3.0.2/test/integration/main-esys.c
Examining data/tpm2-tss-3.0.2/test/integration/main-fapi.c
Examining data/tpm2-tss-3.0.2/test/integration/main-sys.c
Examining data/tpm2-tss-3.0.2/test/integration/session-util.h
Examining data/tpm2-tss-3.0.2/test/integration/sys-abi-version.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-asymmetric-encrypt-decrypt.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-context-util.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-create-keyedhash-sha1-hmac.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-create-loaded.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-encrypt-decrypt-2.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-encrypt-decrypt.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-entity-util.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-evict-ctrl.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-get-random.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-hierarchy-change-auth.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-hmac-auth.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-nv-policy-locality.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-nv-readwrite.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-param-encrypt-decrypt.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-pcr-extension.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-policy-authorizeNV.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-policy-template.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-primary-rsa-2K-aes128cfb.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-read-clock.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-self-test.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-session-util.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-start-auth-session.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-stir-random.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-sys-initialize.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-system-api.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-test-options.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-tpm-properties.int.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-util.c
Examining data/tpm2-tss-3.0.2/test/integration/sys-util.h
Examining data/tpm2-tss-3.0.2/test/integration/test-esys.h
Examining data/tpm2-tss-3.0.2/test/integration/test-fapi.h
Examining data/tpm2-tss-3.0.2/test/integration/test-options.h
Examining data/tpm2-tss-3.0.2/test/integration/test.h
Examining data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c
Examining data/tpm2-tss-3.0.2/test/unit/CommonPreparePrologue.c
Examining data/tpm2-tss-3.0.2/test/unit/CopyCommandHeader.c
Examining data/tpm2-tss-3.0.2/test/unit/TPM2B-marshal.c
Examining data/tpm2-tss-3.0.2/test/unit/TPMA-marshal.c
Examining data/tpm2-tss-3.0.2/test/unit/TPML-marshal.c
Examining data/tpm2-tss-3.0.2/test/unit/TPMS-marshal.c
Examining data/tpm2-tss-3.0.2/test/unit/TPMT-marshal.c
Examining data/tpm2-tss-3.0.2/test/unit/TPMU-marshal.c
Examining data/tpm2-tss-3.0.2/test/unit/UINT16-marshal.c
Examining data/tpm2-tss-3.0.2/test/unit/UINT32-marshal.c
Examining data/tpm2-tss-3.0.2/test/unit/UINT64-marshal.c
Examining data/tpm2-tss-3.0.2/test/unit/UINT8-marshal.c
Examining data/tpm2-tss-3.0.2/test/unit/esys-context-null.c
Examining data/tpm2-tss-3.0.2/test/unit/esys-crypto.c
Examining data/tpm2-tss-3.0.2/test/unit/esys-dummy-defs.h
Examining data/tpm2-tss-3.0.2/test/unit/esys-getpollhandles.c
Examining data/tpm2-tss-3.0.2/test/unit/esys-nulltcti.c
Examining data/tpm2-tss-3.0.2/test/unit/esys-resubmissions.c
Examining data/tpm2-tss-3.0.2/test/unit/esys-sequence-finish.c
Examining data/tpm2-tss-3.0.2/test/unit/esys-tcti-rcs.c
Examining data/tpm2-tss-3.0.2/test/unit/esys-tpm-rcs.c
Examining data/tpm2-tss-3.0.2/test/unit/fapi-json.c
Examining data/tpm2-tss-3.0.2/test/unit/io.c
Examining data/tpm2-tss-3.0.2/test/unit/key-value-parse.c
Examining data/tpm2-tss-3.0.2/test/unit/log.c
Examining data/tpm2-tss-3.0.2/test/unit/sys-execute.c
Examining data/tpm2-tss-3.0.2/test/unit/tcti-cmd-test.h
Examining data/tpm2-tss-3.0.2/test/unit/tcti-cmd.c
Examining data/tpm2-tss-3.0.2/test/unit/tcti-device.c
Examining data/tpm2-tss-3.0.2/test/unit/tcti-mssim.c
Examining data/tpm2-tss-3.0.2/test/unit/tcti-swtpm.c
Examining data/tpm2-tss-3.0.2/test/unit/tctildr-dl.c
Examining data/tpm2-tss-3.0.2/test/unit/tctildr-getinfo.c
Examining data/tpm2-tss-3.0.2/test/unit/tctildr-nodl.c
Examining data/tpm2-tss-3.0.2/test/unit/tctildr-tcti.c
Examining data/tpm2-tss-3.0.2/test/unit/tctildr.c
Examining data/tpm2-tss-3.0.2/test/unit/test_tss2_rc.c

FINAL RESULTS:

data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_List.c:207:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(*pathList, pathArray[i]);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_List.c:209:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(*pathList, IFAPI_LIST_DELIM);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Provision.c:829:56:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            pkeyObject->system = command->public_templ.system;
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Provision.c:977:56:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            pkeyObject->system = command->public_templ.system;
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_int.h:164:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    TPMI_YES_NO                                  system;    /**< Store the object in the system wide
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_int.h:174:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    TPMI_YES_NO                                  system;    /**< Store the object in the system wide
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:3368:63:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        object->system = context->cmd.Key_Create.public_templ.system;
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:4597:63:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        object->system = context->cmd.Key_Create.public_templ.system;
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:532:12:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    size = vsnprintf(dmy, size, fmt, tmpa);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:541:12:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    size = vsprintf(*str, fmt, args);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:763:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(*dest, supdir);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:764:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(*dest, IFAPI_FILE_DELIM);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:767:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(*dest, node->str);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:769:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(*dest, IFAPI_FILE_DELIM);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:773:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(*dest, IFAPI_FILE_DELIM);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:774:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(*dest, name);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:806:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(*dest, supdir);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:807:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(*dest, IFAPI_FILE_DELIM);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:810:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(*dest, node->str);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:812:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(*dest, IFAPI_FILE_DELIM);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:816:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(*dest, IFAPI_FILE_DELIM);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:817:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(*dest, name);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_io.c:258:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(file, FAPI_WRITE)) {
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_io.c:291:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(dirname, mode)) {
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_json_deserialize.c:679:60:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        r = ifapi_json_TPMI_YES_NO_deserialize(jso2, &out->system);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_json_serialize.c:494:46:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    r = ifapi_json_TPMI_YES_NO_serialize(in->system, &jso2);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:722:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (object->system) {
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:798:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (object->system) {
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:1698:25:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    dest->system = src->system;
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:1744:25:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    dest->system = src->system;
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.h:145:50:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    TPMI_YES_NO                                  system;    /**< Store the object in the system wide
data/tpm2-tss-3.0.2/src/tss2-rc/tss2_rc.c:63:35:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
static void COMPILER_ATTR(format (printf, 3, 4))
data/tpm2-tss-3.0.2/src/tss2-rc/tss2_rc.c:69:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(&buf[offset], len - offset, fmt, argptr);
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-cmd.c:255:5:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    execlp ("/bin/sh", "sh", "-c", cmd, NULL);
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-mssim.c:448:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if (sscanf (port_str, "%" SCNu32, &port) == EOF || port > UINT16_MAX) {
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-swtpm.c:473:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if (sscanf (port_str, "%" SCNu32, &port) == EOF || port > UINT16_MAX) {
data/tpm2-tss-3.0.2/src/tss2-tcti/tctildr-dl.c:95:12:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    size = snprintf(file_xfrm,
data/tpm2-tss-3.0.2/src/tss2-tcti/tctildr-dl.c:110:12:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    size = snprintf(file_xfrm,
data/tpm2-tss-3.0.2/src/tss2-tcti/tctildr.c:153:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (name, name_conf);
data/tpm2-tss-3.0.2/src/tss2-tcti/tctildr.c:169:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (conf, &split [1]);
data/tpm2-tss-3.0.2/src/util/log.c:96:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(msg, sizeof(msg), fmt, vaargs);
data/tpm2-tss-3.0.2/src/util/log.c:170:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stderr, fmt,
data/tpm2-tss-3.0.2/src/util/log.h:159:35:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    COMPILER_ATTR(unused, format (printf, 8, 9));
data/tpm2-tss-3.0.2/src/util/log.h:166:35:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    COMPILER_ATTR(unused, format (printf, 10, 11));
data/tpm2-tss-3.0.2/test/helper/tpm_dumpstate.c:83:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf("%02"PRIx8, buffer[j]);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-nv-sign.int.c:76:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    if (snprintf(&policy_file[0], 1023, TOP_SOURCEDIR "/test/data/fapi/%s.json", policy_name) < 0)
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-secret-nv-sign.int.c:59:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    if (snprintf(&policy_file[0], 1023, TOP_SOURCEDIR "/test/data/fapi/%s.json", policy_name) < 0)
data/tpm2-tss-3.0.2/test/integration/fapi-nv-ordinary.int.c:82:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    if (snprintf(&policy_file[0], 1023, TOP_SOURCEDIR "/test/data/fapi/%s.json", policy_name) < 0)
data/tpm2-tss-3.0.2/test/integration/main-fapi.c:309:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (system(remove_cmd) != 0) {
data/tpm2-tss-3.0.2/test/integration/sys-context-util.c:78:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(conf_str, TCTI_MSSIM_CONF_MAX, "host=%s,port=%" PRIu16, host, port);
data/tpm2-tss-3.0.2/test/integration/sys-context-util.c:116:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(conf_str, TCTI_SWTPM_CONF_MAX, "host=%s,port=%" PRIu16, host, port);
data/tpm2-tss-3.0.2/test/integration/sys-encrypt-decrypt-2.int.c:36:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy ((char*)data_in.buffer, ENC_STR);
data/tpm2-tss-3.0.2/test/integration/sys-encrypt-decrypt.int.c:40:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy ((char*)data_in.buffer, ENC_STR);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Provision.c:800:28:  [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.
            root_ca_file = getenv("FAPI_TEST_ROOT_CERT");
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_config.c:151: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.
    const char *configFile = getenv(ENV_FAPI_CONFIG);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_config.c:230: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.
        homeDir = getenv("HOME");
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:447:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        home_dir = getenv("HOME");
data/tpm2-tss-3.0.2/src/util/log.c:192:28:  [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.
    const char *envlevel = getenv("TSS2_LOG");
data/tpm2-tss-3.0.2/test/integration/main-fapi.c:110:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                    getenv("TPM20TEST_TCTI"),
data/tpm2-tss-3.0.2/test/integration/main-fapi.c:111:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                    getenv("FAPI_TEST_FINGERPRINT"));
data/tpm2-tss-3.0.2/test/integration/main-fapi.c:128:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                    getenv("TPM20TEST_TCTI"),
data/tpm2-tss-3.0.2/test/integration/main-fapi.c:129:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                    getenv("FAPI_TEST_CERTIFICATE"));
data/tpm2-tss-3.0.2/test/integration/main-fapi.c:146:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                    getenv("TPM20TEST_TCTI"),
data/tpm2-tss-3.0.2/test/integration/main-fapi.c:147:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                    getenv("FAPI_TEST_FINGERPRINT_ECC"));
data/tpm2-tss-3.0.2/test/integration/main-fapi.c:164:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                    getenv("TPM20TEST_TCTI"),
data/tpm2-tss-3.0.2/test/integration/main-fapi.c:165:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                    getenv("FAPI_TEST_CERTIFICATE_ECC"));
data/tpm2-tss-3.0.2/test/integration/main-fapi.c:180:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                    getenv("TPM20TEST_TCTI"));
data/tpm2-tss-3.0.2/test/integration/sys-test-options.c:129:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    env_str = getenv(ENV_TCTI_NAME);
data/tpm2-tss-3.0.2/test/integration/sys-test-options.c:132:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    env_str = getenv(ENV_DEVICE_FILE);
data/tpm2-tss-3.0.2/test/integration/sys-test-options.c:135:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    env_str = getenv(ENV_SOCKET_ADDRESS);
data/tpm2-tss-3.0.2/test/integration/sys-test-options.c:138:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    env_str = getenv(ENV_SOCKET_PORT);
data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_ContextSave.c:266: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(&esyscontextData.tpmContext.buffer[0], &(lcontext)->contextBlob.buffer[0],
data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_StartAuthSession.c:465:14:  [2] (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[0], &bindNode->auth.buffer[0], bindNode->auth.size);
data/tpm2-tss-3.0.2/src/tss2-esys/api/Esys_StartAuthSession.c:467:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&secret[(bind == ESYS_TR_NONE || bindNode == NULL) ? 0
data/tpm2-tss-3.0.2/src/tss2-esys/esys_iutil.c:712:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&encrypt_buffer[0], paramBuffer, paramSize);
data/tpm2-tss-3.0.2/src/tss2-esys/esys_iutil.c:804: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(&plaintext[0], ciphertext, p2BSize);
data/tpm2-tss-3.0.2/src/tss2-esys/esys_iutil.c:1009: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(&session->rsrc.misc.rsrc_session.sessionValue[0],
data/tpm2-tss-3.0.2/src/tss2-esys/esys_iutil.c:1024: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(&session->rsrc.misc.rsrc_session.
data/tpm2-tss-3.0.2/src/tss2-esys/esys_mu.c:54: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[offset_loc], src, count);
data/tpm2-tss-3.0.2/src/tss2-esys/esys_mu.c:96: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(dst, &buffer[offset_loc], count);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_ChangeAuth.c:205:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&command->newAuthValue.buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_ChangeAuth.c:368:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(object->misc.key.private.buffer,
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_CreateNv.c:205:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&auth->buffer[0], authValue, auth->size);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_CreateNv.c:366:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&authPolicy->buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Decrypt.c:186: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(inData, cipherText, cipherTextSize);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Decrypt.c:312:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&aux_data->buffer[0], context->cmd.Data_EncryptDecrypt.in_data,
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Decrypt.c:339:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(command->plainText, &tpmPlainText->buffer[0], tpmPlainText->size);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Delete.c:234:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&profile_name[0], &current_file[1], prof_size);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Encrypt.c:191: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(inData, plainText, plainTextSize);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Encrypt.c:313:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&rsa_message->buffer[0], context->cmd.Data_EncryptDecrypt.in_data,
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Encrypt.c:359:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(command->cipherText, &tpmCipherText->buffer[0], tpmCipherText->size);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_GetAppData.c:209:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(*appData, &objAppData->buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_GetPlatformCertificates.c:244:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&*(certificates)[size], cert->object, cert->size);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_GetTpmBlobs.c:237:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(*tpm2bPrivate + offset, &object.misc.key.private.buffer[0], private_size);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Import.c:412:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&private.buffer[0], object->misc.key.private.buffer, private.size);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_NvExtend.c:192:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(in_data, data, dataSize);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_NvExtend.c:337: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(&auxData->buffer[0], &data[0], auxData->size);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_NvExtend.c:389: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(&event->sub_event.tss_event.data.buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_NvWrite.c:188: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(commandData, data, size);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_PcrExtend.c:182: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(&command->event.buffer[0], data, dataSize);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_PcrRead.c:238:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(command->pcrValue, &command->pcrValues->digests[0].buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Provision.c:1039:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&command->hierarchy_auth.buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Provision.c:1153:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&command->hierarchy_auth.buffer[0], command->authValueEh,
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Provision.c:1222:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&command->hierarchy_auth.buffer[0], command->authValueSh,
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Quote.c:236: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(command->pcrList, pcrList, pcrListSize * sizeof(TPM2_HANDLE));
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_SetAppData.c:165: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(&command->appData.buffer[0], appData, appDataSize);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Unseal.c:287:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(*data, &command->unseal_data->buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_VerifyQuote.c:198: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(signatureBuffer, signature, signatureSize);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_VerifySignature.c:180: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(signatureBuffer, signature, signatureSize);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_VerifySignature.c:181:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(digestBuffer, digest, digestSize);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_WriteAuthorizeNV.c:284:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&nvBuffer[offset], currentDigest, command->hash_size);
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_crypto.c:189: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(public, &templateRsaSign, sizeof(TPM2B_PUBLIC));
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_crypto.c:192: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(public, &templateEccSign, sizeof(TPM2B_PUBLIC));
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_crypto.c:729:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&tpmSignature->signature.rsapss.sig.buffer[0], signature,
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_crypto.c:735:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&tpmSignature->signature.rsassa.sig.buffer[0], signature,
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_int.h:101:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dest_buffer, (src), (src_size));  \
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:398:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&authValue.buffer[0], auth, authValue.size);
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:600:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&context->cmd.Provision.public_templ.public.publicArea.authPolicy.buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:1438:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&template->public.publicArea.parameters.rsaDetail.scheme.details,
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:1447:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&template->public.publicArea.parameters.eccDetail.scheme.details,
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:1851: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(&private.buffer[0], key->private.buffer, key->private.size);
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:2152:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(context->nv_cmd.write_data, data, size);
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:2153: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(&aux_data->buffer[0], &context->nv_cmd.data[0], aux_data->size);
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:2275:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&aux_data->buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:2449: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(*data + context->nv_cmd.data_idx, &aux_data->buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:2544:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(context->get_random.data + context->get_random.idx, &aux_data->buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:3040:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&context->cmd.Key_Create.inSensitive.sensitive.userAuth.buffer,
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:3100:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&context->cmd.Key_Create.inSensitive.sensitive.data.buffer,
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:3111:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&context->cmd.Key_Create.inSensitive.sensitive.userAuth.buffer,
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:3304:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&context->cmd.Key_Create.public_templ.public.publicArea.authPolicy.buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:3331:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&context->cmd.Key_Create.inSensitive.sensitive.data.buffer,
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:3376:43:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        object->misc.key.private.buffer = memcpy(&object->misc.key.private.buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:3410:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&private.buffer[0], &object->misc.key.private.buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:3817:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&context->cmd.Provision.policy_digest.buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_eventlog.c:85:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&eventlog->pcrList, pcrList, pcrListSize * sizeof(TPM2_HANDLE));
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:1723:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(*signature,
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:1731:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(*signature,
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:2511: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(&(curl_buf->buffer[curl_buf->size]), contents, realsize);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_io.c:51:18:  [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).
    io->stream = fopen(filename, "rt");
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_io.c:67:18:  [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).
    io->stream = fopen(filename, "rt");
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_io.c:177: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(io->char_rbuffer, buffer, length);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_io.c:179:18:  [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).
    io->stream = fopen(filename, "wt");
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_json_deserialize.c:293: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(out->private.buffer, &private.buffer[0], private.size);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_json_serialize.c:69:13:  [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(&hex_string[off], "%02x", buffer[i]);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:353: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(&aux_str[1], &(*file_name)[0], strlen(*file_name)+1);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:1474:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dest->buffer, src->buffer, dest->size);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_calculate.c:41:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&dest->digests[digest_idx].digest, &src->digests[digest_idx].digest,
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_callbacks.c:385:21:  [2] (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_values)->pcrs[i_pcr].digest,
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_callbacks.c:585:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *names[8];
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_callbacks.c:1005:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&digest->buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_callbacks.c:1368:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&cb_ctx->policy_digest.buffer[0], &nv_policy.digest, digest_size);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_execute.c:70: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(&digest_list->digests[i].buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_execute.c:436: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(&current_policy->buffer[offset], &current_policy->nonceTPM->buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_execute.c:441: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(&current_policy->buffer[offset], &policy->cpHashA.buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_execute.c:444: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(&current_policy->buffer[offset], &policy->policyRef.buffer[0],
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_types.h:110:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                                    *namePaths[3];    /**< Paths of objects used for retrieving the names */
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_deserialize.c:204:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char name2[strlen(name) + 1];
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:1163:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hex_string[(size) * 2 + 1];
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:1165:9:  [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(&hex_string[off], "%02x", buffer[i]);
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:1225:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hex_string[((size_t)in->size)*2+1];
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:1228:9:  [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(&hex_string[off], "%02x", in->buffer[i]);
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:1255:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hex_string[sizeof(TPMT_HA)*2+1];
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:1258:9:  [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(&hex_string[off], "%02x", in->buffer[i]);
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:1315:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hex_string[((size_t)in->size)*2+1];
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:1318:9:  [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(&hex_string[off], "%02x", in->buffer[i]);
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:1345:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hex_string[((size_t)in->size)*2+1];
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:1348:9:  [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(&hex_string[off], "%02x", in->buffer[i]);
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:1375:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hex_string[((size_t)in->size)*2+1];
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:1378:9:  [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(&hex_string[off], "%02x", in->name[i]);
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:3012:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hex_string[((size_t)in->size)*2+1];
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:3015:9:  [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(&hex_string[off], "%02x", in->buffer[i]);
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:3058:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hex_string[((size_t)in->size)*2+1];
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:3061:9:  [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(&hex_string[off], "%02x", in->buffer[i]);
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:3409:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hex_string[((size_t)in->size)*2+1];
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:3412:9:  [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(&hex_string[off], "%02x", in->secret[i]);
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:3707:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hex_string[((size_t)in->size)*2+1];
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_serialize.c:3710:9:  [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(&hex_string[off], "%02x", in->buffer[i]);
data/tpm2-tss-3.0.2/src/tss2-mu/base-types.c:77:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (&buffer [local_offset], &src, sizeof (src)); \
data/tpm2-tss-3.0.2/src/tss2-mu/tpm2b-types.c:77:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&buffer[local_offset], ((TPM2B *)src)->buffer, src->size); \
data/tpm2-tss-3.0.2/src/tss2-mu/tpm2b-types.c:147: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(((TPM2B *)dest)->buffer, &buffer[local_offset], size); \
data/tpm2-tss-3.0.2/src/tss2-mu/tpma-types.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 (&buffer [local_offset], &src, sizeof(src)); \
data/tpm2-tss-3.0.2/src/tss2-mu/tpmu-types.c:57:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buffer[local_offset], src, size);
data/tpm2-tss-3.0.2/src/tss2-mu/tpmu-types.c:160:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dest, &buffer[local_offset], size);
data/tpm2-tss-3.0.2/src/tss2-rc/tss2_rc.c:298:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static __thread char buf[TSS2_ERR_LAYER_ERROR_STR_MAX + 1];
data/tpm2-tss-3.0.2/src/tss2-rc/tss2_rc.c:633:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static __thread char buf[TSS2_ERR_LAYER_ERROR_STR_MAX + 1];
data/tpm2-tss-3.0.2/src/tss2-rc/tss2_rc.c:840:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[TSS2_ERR_LAYER_NAME_MAX];
data/tpm2-tss-3.0.2/src/tss2-rc/tss2_rc.c:874:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static __thread char buf[32];
data/tpm2-tss-3.0.2/src/tss2-rc/tss2_rc.c:959:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static __thread char buf[TSS2_ERR_LAYER_NAME_MAX + TSS2_ERR_LAYER_ERROR_STR_MAX + 1];
data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_Execute.c:153:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ctx->cmdBuffer, ctx->cmd_header, sizeof(ctx->cmd_header));
data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_GetCommandCode.c:30: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(commandCode, (void *)&tmp, sizeof(tmp));
data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_GetRspAuths.c:53:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&tmp, ctx->cmdBuffer + offset_tmp, sizeof(UINT16));
data/tpm2-tss-3.0.2/src/tss2-sys/api/Tss2_Sys_GetRspAuths.c:65:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&tmp, ctx->cmdBuffer + offset_tmp, sizeof(UINT16));
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-device.c:219:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&tcti_common->header, header, TPM_HEADER_SIZE);
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-device.c:230: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(response_buffer, &tcti_common->header, TPM_HEADER_SIZE);
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-device.c:254:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(response_buffer, &tcti_common->header, TPM_HEADER_SIZE);
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-device.c:376:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        return open (pathname, O_RDWR | O_NONBLOCK, (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP));
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-device.c:378:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        return open (pathname, O_RDWR | O_NONBLOCK);
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-mssim.c:444:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
string_to_port (char port_str[6])
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-swtpm.c:159: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(req_buf + req_buf_len, cmd_sdu, cmd_sdu_len);
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-swtpm.c:213: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(resp_sdu, resp_buf +  sizeof(uint32_t),
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-swtpm.c:469:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
string_to_port (char port_str[6])
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-tbs.c:78: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 (tcti_tbs->commandBuffer, command_buffer, command_size);
data/tpm2-tss-3.0.2/src/tss2-tcti/tctildr-dl.c:82:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file_xfrm [PATH_MAX] = { 0, };
data/tpm2-tss-3.0.2/src/tss2-tcti/tctildr-nodl.c:56:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *names [NAME_ARRAY_SIZE];
data/tpm2-tss-3.0.2/src/tss2-tcti/tctildr.c:34:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dst, s, n);
data/tpm2-tss-3.0.2/src/tss2-tcti/tctildr.c:163:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (name, name_conf, name_length);
data/tpm2-tss-3.0.2/src/tss2-tcti/tctildr.c:339:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name_buf [PATH_MAX] = { 0, }, *name_ptr = NULL;
data/tpm2-tss-3.0.2/src/tss2-tcti/tctildr.c:451:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name [PATH_MAX] = { 0, }, conf [PATH_MAX] = { 0, };
data/tpm2-tss-3.0.2/src/util/io.c:189:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char port_str[MAX_PORT_STR_LEN];
data/tpm2-tss-3.0.2/src/util/io.c:192:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char host_buff[_HOST_NAME_MAX];
data/tpm2-tss-3.0.2/src/util/io.c:202:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char host_buff[_HOST_NAME_MAX] __attribute__((unused));
data/tpm2-tss-3.0.2/src/util/log.c:95:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[msg_len+1];
data/tpm2-tss-3.0.2/src/util/log.c:105:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[LINE_LEN];
data/tpm2-tss-3.0.2/src/util/log.c:109:13:  [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(&buffer[off], "%04x: ", i - 1);
data/tpm2-tss-3.0.2/src/util/log.c:114:9:  [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(&buffer[off], "%02x", blob[i-1]);
data/tpm2-tss-3.0.2/src/util/log.c:119:13:  [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(&buffer[off], "  ");
data/tpm2-tss-3.0.2/src/util/log.c:134:21:  [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(&buffer[y + off], "%c", blob[off2 + y]);
data/tpm2-tss-3.0.2/src/util/log.c:136:21:  [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(&buffer[y + off], "%c", '.');
data/tpm2-tss-3.0.2/src/util/log.c:144:13:  [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(&buffer[off], "%04x: ", i);
data/tpm2-tss-3.0.2/src/util/log.c:164:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fmt[size+1];
data/tpm2-tss-3.0.2/test/fuzz/tcti/tcti-fuzzing.c:89:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (copy_into_type, pointer_into_data, copy_into_length);
data/tpm2-tss-3.0.2/test/fuzz/tcti/tcti-fuzzing.c:215: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(response_buffer, tcti_fuzzing->data, *response_size);
data/tpm2-tss-3.0.2/test/helper/tpm_getek.c:117:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	out = fopen(argv[1], "w");
data/tpm2-tss-3.0.2/test/helper/tpm_getek_ecc.c:146: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).
        out = fopen(argv[1], "w");
data/tpm2-tss-3.0.2/test/helper/tpm_writeekcert.c:108: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(&buf2.buffer[0], &buf1.buffer[buf1.size], buf2.size);
data/tpm2-tss-3.0.2/test/integration/fapi-data-crypt.int.c:221:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-data-crypt.int.c:233:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-duplicate.int.c:60:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-duplicate.int.c:72:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-get-esys-blobs.int.c:35:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hex_string[size * 2 + 1];
data/tpm2-tss-3.0.2/test/integration/fapi-get-esys-blobs.int.c:38:9:  [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(&hex_string[off], "%02x", buffer[i]);
data/tpm2-tss-3.0.2/test/integration/fapi-get-esys-blobs.int.c:164: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(&authValue.buffer[0], PASSWORD, sizeof(PASSWORD));
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-null-key-sign.int.c:32:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hex_string[size * 2 + 1];
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-null-key-sign.int.c:35:9:  [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(&hex_string[off], "%02x", buffer[i]);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policies-sign.int.c:117:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policies-sign.int.c:129:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-nv-sign.int.c:74:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char policy_file[1024];
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-nv-sign.int.c:79:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-nv-sign.int.c:88:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:143:14:  [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).
    stream = fopen(policy_file_name_hash, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:155:14:  [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).
    stream = fopen(policy_file_name_hash, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:168:14:  [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).
    stream = fopen(policy_file_cphash, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:180:14:  [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).
    stream = fopen(policy_file_cphash, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:193:14:  [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).
    stream = fopen(policy_file_authorize, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:205:14:  [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).
    stream = fopen(policy_file_authorize, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:218:14:  [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).
    stream = fopen(policy_file_authorize_outer, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:230:14:  [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).
    stream = fopen(policy_file_authorize_outer, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-nv-sign.int.c:72:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-nv-sign.int.c:84:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-or-sign.int.c:106:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-or-sign.int.c:118:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-pcr-sign.int.c:73:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-pcr-sign.int.c:85:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-pcr-sign.int.c:145:14:  [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).
    stream = fopen(policy_pcr_read_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-pcr-sign.int.c:165:14:  [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).
    stream = fopen(policy_pcr_read_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-secret-nv-sign.int.c:57:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char policy_file[1024];
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-secret-nv-sign.int.c:62:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-secret-nv-sign.int.c:74:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-signed.int.c:238:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-signed.int.c:250:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign-password-provision.int.c:120:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign-password-provision.int.c:132:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign.int.c:34:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hex_string[size * 2 + 1];
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign.int.c:37:9:  [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(&hex_string[off], "%02x", buffer[i]);
data/tpm2-tss-3.0.2/test/integration/fapi-nv-authorizenv-cphash.int.c:87:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char json[1024];
data/tpm2-tss-3.0.2/test/integration/fapi-nv-authorizenv-cphash.int.c:98:14:  [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).
    stream = fopen(policy1_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-nv-authorizenv-cphash.int.c:110:14:  [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).
    stream = fopen(policy2_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-nv-increment.int.c:80:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-nv-increment.int.c:92:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-nv-ordinary.int.c:80:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char policy_file[1024];
data/tpm2-tss-3.0.2/test/integration/fapi-nv-ordinary.int.c:85:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-nv-ordinary.int.c:97:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-nv-written-policy.int.c:71:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/fapi-nv-written-policy.int.c:84:14:  [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).
    stream = fopen(policy_file, "r");
data/tpm2-tss-3.0.2/test/integration/main-esys.c:118:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(response_buffer, &yielded_response[0], sizeof(yielded_response));
data/tpm2-tss-3.0.2/test/integration/main-fapi.c:220:19:  [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).
    config_file = fopen(config_path, "w");
data/tpm2-tss-3.0.2/test/integration/sys-asymmetric-encrypt-decrypt.int.c:136: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(input_message.buffer, message, input_message.size);
data/tpm2-tss-3.0.2/test/integration/sys-context-util.c:76:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char conf_str[TCTI_MSSIM_CONF_MAX] = { 0 };
data/tpm2-tss-3.0.2/test/integration/sys-context-util.c:114:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char conf_str[TCTI_SWTPM_CONF_MAX] = { 0 };
data/tpm2-tss-3.0.2/test/integration/sys-create-loaded.int.c:69: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(public_template.buffer, public_buf, offset);
data/tpm2-tss-3.0.2/test/integration/sys-nv-policy-locality.int.c:123: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 (public_info.nvPublic.authPolicy.buffer,
data/tpm2-tss-3.0.2/test/integration/sys-param-encrypt-decrypt.int.c:95:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data_to_write.buffer, TEST_DATA, TEST_DATA_LEN);
data/tpm2-tss-3.0.2/test/integration/sys-param-encrypt-decrypt.int.c:111: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(req_auth.auths[0].hmac.buffer, nv_auth.buffer,
data/tpm2-tss-3.0.2/test/integration/sys-param-encrypt-decrypt.int.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(encrypted_param.buffer, encrypt_param_ptr, encrypt_param_size);
data/tpm2-tss-3.0.2/test/integration/sys-pcr-extension.int.c:80: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(&(pcr_before_extend[0]), &(pcr_values.digests[0].buffer[0]), pcr_values.digests[0].size);
data/tpm2-tss-3.0.2/test/integration/sys-pcr-extension.int.c:92: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(&(pcr_after_extend[0]), &(pcr_values.digests[0].buffer[0]), pcr_values.digests[0].size);
data/tpm2-tss-3.0.2/test/integration/sys-policy-authorizeNV.int.c:162:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(in_public.authPolicy.buffer, auth, TPM2_SHA256_DIGEST_SIZE);
data/tpm2-tss-3.0.2/test/integration/sys-policy-authorizeNV.int.c:186: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(public_template.buffer, public_buf, offset);
data/tpm2-tss-3.0.2/test/integration/sys-policy-template.int.c:96:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(in_public.publicArea.authPolicy.buffer, auth, sizeof(auth));
data/tpm2-tss-3.0.2/test/integration/sys-policy-template.int.c:101: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(cmd_auth.auths[0].hmac.buffer, auth, sizeof(auth));
data/tpm2-tss-3.0.2/test/integration/sys-session-util.c:512: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(tpm2bbits.buffer, &counter, 4);
data/tpm2-tss-3.0.2/test/integration/sys-session-util.c:514: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(tpm2blabel.buffer, label, tpm2blabel.size);
data/tpm2-tss-3.0.2/test/integration/sys-session-util.c:524: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(tpm2bctr.buffer, &counter, 4);
data/tpm2-tss-3.0.2/test/integration/sys-session-util.c:589: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 (iv->buffer, &key.buffer[session_key->size], iv->size);
data/tpm2-tss-3.0.2/test/integration/sys-session-util.c:590: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 (session_key->buffer, key.buffer, session_key->size);
data/tpm2-tss-3.0.2/test/integration/sys-util.c:561: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(out->buffer, buf, out->size);
data/tpm2-tss-3.0.2/test/integration/sys-util.c:614:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dest->buffer + dest->size, src->buffer, src->size);
data/tpm2-tss-3.0.2/test/integration/sys-util.c:631:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dest->buffer, src->buffer, src->size);
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:74:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char levelString[32];
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:79:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(levelString, "TPM");
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:82:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(levelString, "System API");
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:85:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(levelString, "System API TPM encoded");
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:88:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(levelString, "TCTI");
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:91:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(levelString, "Resource Mgr TPM encoded");
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:94:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(levelString, "Resource Mgr");
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:97:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(levelString, "Unknown Level");
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:128:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char error_string[ERROR_STR_LEN];         \
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:141:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char error_string[ERROR_STR_LEN];             \
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:263:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char manuID[5] = "    ";
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:598: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( &( pcrBeforeExtend[0] ), &( pcrValues.digests[0].buffer[0] ), pcrValues.digests[0].size );
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:613: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( &( pcrAfterExtend[0] ), &( pcrValues.digests[0].buffer[0] ), pcrValues.digests[0].size );
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:889:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[50];
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:1132: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( &blobAuth.buffer, passwordPCRTestPassword, sizeof( passwordPCRTestPassword ) );
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:1135:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( &data.buffer, dataBlob, sizeof( dataBlob ) );
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:1192: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( &cmdAuthArray.auths[0].hmac.buffer, passwordPCRTestPassword, sizeof( passwordPCRTestPassword ) );
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:1388: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( &dataToHash.buffer[0], &memoryToHash[0], dataToHash.size );
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:1393: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( &dataToHash.buffer[0], &memoryToHash[TPM2_MAX_DIGEST_BUFFER], dataToHash.size );
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:1429: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( &( qualifyingData.buffer[0] ), qualDataString, sizeof( qualDataString ) );
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:1549: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( &( inSensitive.sensitive.userAuth.buffer[0] ), authStr, sizeof( authStr ) - 1 );
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:1551: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( &( inSensitive.sensitive.data.buffer[0] ), sensitiveData, sizeof( sensitiveData ) - 1 );
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:1601: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( &( sessionsData.auths[0].hmac.buffer[0] ), authStr, sizeof( authStr ) - 1 );
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:1683: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( &( sessionsData.auths[0].hmac.buffer[0] ),
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:1851: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(testBuffer, nvWriteData.buffer, nvWriteData.size);
data/tpm2-tss-3.0.2/test/unit/TPM2B-marshal.c:35:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dgst.buffer, &value, sizeof(value));
data/tpm2-tss-3.0.2/test/unit/TPM2B-marshal.c:36: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(point.point.x.buffer, &value, sizeof(value));
data/tpm2-tss-3.0.2/test/unit/TPM2B-marshal.c:38: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(point.point.y.buffer, &value2, sizeof(value2));
data/tpm2-tss-3.0.2/test/unit/TPM2B-marshal.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(dgst.buffer, &value, sizeof(value));
data/tpm2-tss-3.0.2/test/unit/TPM2B-marshal.c:83: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(point.point.x.buffer, &value, sizeof(value));
data/tpm2-tss-3.0.2/test/unit/TPM2B-marshal.c:85:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(point.point.y.buffer, &value2, sizeof(value2));
data/tpm2-tss-3.0.2/test/unit/TPM2B-marshal.c:132: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(dgst.buffer, &value, sizeof(value));
data/tpm2-tss-3.0.2/test/unit/TPM2B-marshal.c:133: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(point.point.x.buffer, &value, sizeof(value));
data/tpm2-tss-3.0.2/test/unit/TPM2B-marshal.c:135: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(point.point.y.buffer, &value2, sizeof(value2));
data/tpm2-tss-3.0.2/test/unit/TPM2B-marshal.c:201: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(dgst.buffer, &value, sizeof(value));
data/tpm2-tss-3.0.2/test/unit/TPM2B-marshal.c:202: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(point.point.x.buffer, &value, sizeof(value));
data/tpm2-tss-3.0.2/test/unit/TPM2B-marshal.c:204: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(point.point.y.buffer, &value2, sizeof(value2));
data/tpm2-tss-3.0.2/test/unit/TPML-marshal.c:311:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer + 4 + 4 + 4, &data[0], sizeof(data));
data/tpm2-tss-3.0.2/test/unit/TPML-marshal.c:394:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer + 4 + 4 + 4, &data[0], sizeof(data));
data/tpm2-tss-3.0.2/test/unit/TPML-marshal.c:430:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer + 2, &data[0], sizeof(data));
data/tpm2-tss-3.0.2/test/unit/TPMU-marshal.c:396: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(&ha.digest, digest, TPM2_SHA1_DIGEST_SIZE);
data/tpm2-tss-3.0.2/test/unit/TPMU-marshal.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(&name.digest, &ha, sizeof(ha));
data/tpm2-tss-3.0.2/test/unit/esys-getpollhandles.c:57: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(&handles[0], &rev[0], sizeof(rev));
data/tpm2-tss-3.0.2/test/unit/esys-resubmissions.c:80: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(&tcti_yielder->cmd[0], buffer, size);
data/tpm2-tss-3.0.2/test/unit/esys-resubmissions.c:98: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(response_buffer, &yielded_response[0], sizeof(yielded_response));
data/tpm2-tss-3.0.2/test/unit/esys-sequence-finish.c:55: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(response_buffer, &failure_response[0], sizeof(failure_response));
data/tpm2-tss-3.0.2/test/unit/esys-tpm-rcs.c:79: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(response_buffer, &response[0], sizeof(response));
data/tpm2-tss-3.0.2/test/unit/fapi-json.c:611: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(&or_branch_list->authorizations[0], &branch0, sizeof(TPMS_POLICYBRANCH));
data/tpm2-tss-3.0.2/test/unit/fapi-json.c:612: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(&or_branch_list->authorizations[1], &branch1, sizeof(TPMS_POLICYBRANCH));
data/tpm2-tss-3.0.2/test/unit/sys-execute.c:97: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(response, retry_response, sizeof(retry_response));
data/tpm2-tss-3.0.2/test/unit/sys-execute.c:101: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(response, ok_response, sizeof(ok_response));
data/tpm2-tss-3.0.2/test/unit/tcti-device.c:156:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (buf, buf_in, ret);
data/tpm2-tss-3.0.2/test/unit/tcti-device.c:165:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (buf_out, buffer, ret);
data/tpm2-tss-3.0.2/test/unit/tcti-mssim.c:188:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (buf, buf_in, ret);
data/tpm2-tss-3.0.2/test/unit/tcti-swtpm.c:188:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (buf, buf_in, ret);
data/tpm2-tss-3.0.2/test/unit/tctildr.c:179:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name_buf[0], conf_buf[0];
data/tpm2-tss-3.0.2/test/unit/tctildr.c:180:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[PATH_MAX+1];
data/tpm2-tss-3.0.2/test/unit/tctildr.c:189:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name_buf[0], conf_buf[0];
data/tpm2-tss-3.0.2/test/unit/tctildr.c:196:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name_buf[50] = { 0, }, conf_buf[50] = { 0, };
data/tpm2-tss-3.0.2/test/unit/tctildr.c:203:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name_buf[50] = { 0, }, conf_buf[50] = { 0, };
data/tpm2-tss-3.0.2/test/unit/tctildr.c:211:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name_buf[50] = { 0, }, conf_buf[50] = { 0, };
data/tpm2-tss-3.0.2/test/unit/tctildr.c:238:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[PATH_MAX+1];
data/tpm2-tss-3.0.2/test/unit/test_tss2_rc.c:27:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char *known_layers[TPM2_ERROR_TSS2_RC_LAYER_COUNT] = {
data/tpm2-tss-3.0.2/test/unit/test_tss2_rc.c:50:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[256];
data/tpm2-tss-3.0.2/test/unit/test_tss2_rc.c:176:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[256];
data/tpm2-tss-3.0.2/include/tss2/tss2_mu.h:16:16:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
#error Version mismatch among TSS2 header files.
data/tpm2-tss-3.0.2/include/tss2/tss2_sys.h:18:16:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
#error Version mismatch among TSS2 header files.
data/tpm2-tss-3.0.2/include/tss2/tss2_tcti.h:43:16:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
#error Version mismatch among TSS2 header files.
data/tpm2-tss-3.0.2/include/tss2/tss2_tpm2_types.h:13:16:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
#error Version mismatch among TSS2 header files.
data/tpm2-tss-3.0.2/src/tss2-esys/esys_crypto.c:276:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t lsize = strlen(label) + 1;
data/tpm2-tss-3.0.2/src/tss2-esys/esys_crypto.c:443: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).
                size_t lsize = strlen(label) + 1;
data/tpm2-tss-3.0.2/src/tss2-esys/esys_crypto_mbed.c:608:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                               strlen(label) + 1,
data/tpm2-tss-3.0.2/src/tss2-esys/esys_crypto_ossl.c:681:64:  [1] (buffer) strlen:
  Does not handle 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 (1 != EVP_PKEY_CTX_set0_rsa_oaep_label(ctx, label_copy, strlen(label_copy)+1)) {
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_ChangeAuth.c:197:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(command->authValue) > sizeof(TPMU_HA)) {
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_ChangeAuth.c:204: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(command->authValue);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_ChangeAuth.c:405:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(command->authValue) > 0)
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_ChangeAuth.c:489:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(command->authValue) > 0)
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_CreateNv.c:200:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(authValue) > sizeof(TPMU_HA)) {
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_CreateNv.c:204:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        auth->size = strlen(authValue);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Delete.c:49:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t prof_size = strlen(profile_name);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Delete.c:52:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_path = strlen(path);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Delete.c:53:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_file = strlen(file_ary[i]);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Delete.c:91: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).
    size_t size_profile = strlen(profile_name);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Import.c:190:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strncmp(&path[pos], IFAPI_PUB_KEY_DIR, strlen(IFAPI_PUB_KEY_DIR)) != 0) {
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_List.c:196:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sizePathList += strlen(pathArray[i]);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Provision.c:1034:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(command->authValueLockout) > sizeof(TPMU_HA)) {
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Provision.c:1040: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).
                   command->authValueLockout, strlen(command->authValueLockout));
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Provision.c:1041:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            command->hierarchy_auth.size = strlen(command->authValueLockout);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Provision.c:1154:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       strlen(command->authValueEh));
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Provision.c:1155:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                command->hierarchy_auth.size = strlen(command->authValueEh);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Provision.c:1223:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       strlen(command->authValueSh));
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_Provision.c:1224:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                command->hierarchy_auth.size = strlen(command->authValueSh);
data/tpm2-tss-3.0.2/src/tss2-fapi/api/Fapi_SetDescription.c:131:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (description && strlen(description) + 1 > 1024) {
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_crypto.c:1077: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).
    bufio = BIO_new_mem_buf((void *)pemKey, strlen(pemKey));
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_crypto.c:1239:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            strlen(public_pem_key));
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_crypto.c:1349:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                strlen(public_pem_key));
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_crypto.c:1818:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t pem_length = strlen(pem_cert);
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:397: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).
            authValue.size = strlen(auth);
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:1475: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).
    const unsigned int path_length = strlen(path);
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:1476: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).
    size_t keystore_length = strlen(keystore->userdir);
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:1483:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        start_pos = strlen(keystore->userdir);
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:1485: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).
        keystore_length = strlen(keystore->systemdir);
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:1487:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            start_pos = strlen(keystore->systemdir);
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:1496:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t lp = strlen(path);
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:3037:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(authValue) > sizeof(TPMU_HA)) {
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:3041: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).
               authValue, strlen(authValue));
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:3042:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        context->cmd.Key_Create.inSensitive.sensitive.userAuth.size = strlen(authValue);
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:3108:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(authValue) > sizeof(TPMU_HA)) {
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:3112: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).
               authValue, strlen(authValue));
data/tpm2-tss-3.0.2/src/tss2-fapi/fapi_util.c:3113:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        context->cmd.Key_Create.inSensitive.sensitive.userAuth.size = strlen(authValue);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_eventlog.c:328:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        r = ifapi_io_write_async(io, event_log_file, (uint8_t *) logstr2, strlen(logstr2));
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_get_intl_cert.c:269:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = 1 + strlen(b64h) + strlen(ctx.ek_server_addr);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_get_intl_cert.c:269:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = 1 + strlen(b64h) + strlen(ctx.ek_server_addr);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_get_intl_cert.c:352:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    *cert_size = strlen(cert_start);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:86: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 ((size_t)pos != strlen(flag) - 2) {
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:183: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 ((size_t)pos != strlen(flag) - 2) {
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:208:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (policy && strlen(policy) > 0) {
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:257:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(path) - pos > 3 &&
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:258:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strncasecmp(type, &path[pos], strlen(type)) == 0 && end &&
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:363: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(path) == pos1 + pos2 + 2 ||
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:364:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            (strlen(path) == pos1 + pos2 + 3 &&
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:368: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).
               && (strlen(path) == pos1 + pos2 + 7 ||
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:369:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   (strlen(path) == pos1 + pos2 + 8 &&
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:732:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size += strlen(node->str);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:754:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        1) + ((supdir == NULL) ? 0 : strlen(supdir) + 1)
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:755: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).
                    + ((name == NULL) ? 0 : strlen(name) + 1);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:796:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        1) + ((supdir == NULL) ? 0 : strlen(supdir) + 1)
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:797: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).
                    + ((name == NULL) ? 0 : strlen(name) + 1);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:1629:63:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
ifapi_object_cmp_name(IFAPI_OBJECT *object, void *name, bool *equal)
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.c:1667:73:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
ifapi_object_cmp_nv_public(IFAPI_OBJECT *object, void *nv_public, bool *equal)
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.h:110:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    bool *equal);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_helpers.h:116:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    bool *equal);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_io.c:114:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = read(fileno(io->stream),
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_io.c:384:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len_kstore_path = strlen(keystore_path);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_io.c:385: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).
    len_dir_path = strlen(dirname);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_io.c:388: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).
        pos = strlen(keystore_path);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_json_deserialize.c:43: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).
        if (strncasecmp(token, entry, strlen(entry)) == 0) {
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_json_deserialize.c:44:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            itoken += strlen(entry);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_json_deserialize.c:72:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((size_t)pos == strlen(token) - itoken)
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_json_deserialize.c:755:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t size = strlen(token) - itoken;
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:35: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).
    for (size_t i = 0; i < strlen(path); i++) {
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:233: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).
    const unsigned int path_length = strlen(path);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:234: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).
    size_t keystore_length = strlen(keystore->userdir);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:241:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        start_pos = strlen(keystore->userdir);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:243:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        keystore_length = strlen(keystore->systemdir);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:245:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            start_pos = strlen(keystore->systemdir);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:256:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t lp = strlen(path);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:345:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(&(*file_name)[strlen(*file_name) - 1], "/", 1) == 0)
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:346:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        (*file_name)[strlen(*file_name) - 1] = '\0';
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:349:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        aux_str = malloc(strlen(*file_name) + 2);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:353: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).
        memcpy(&aux_str[1], &(*file_name)[0], strlen(*file_name)+1);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:747:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    r = ifapi_io_write_async(io, file, (uint8_t *) jso_string, strlen(jso_string));
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:1042: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(&path[start_pos]) <= 3) {
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:1089: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).
    if (keystore->userdir[strlen(keystore->userdir) - 1] == '/')
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:1104:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (keystore->systemdir[strlen(keystore->systemdir) - 1] == '/')
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_keystore.c:1137:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    bool *equal);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_callbacks.c:751:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    bool *equal)
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_callbacks.c:789:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    bool *equal)
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_instantiate.c:119:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!keyPEM || strlen(keyPEM) == 0) {
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_instantiate.c:196:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strlen(pol_element->element.PolicySigned.keyPEM) > 0) {
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_instantiate.c:354:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strlen(pol_element->element.PolicyAuthorize.keyPEM) > 0) {
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_json_deserialize.c:41: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).
        if (strncasecmp(token, entry, strlen(entry)) == 0) {
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_json_deserialize.c:42:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            itoken += strlen(entry);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_json_deserialize.c:70:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((size_t)pos == strlen(token) - itoken)
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_json_deserialize.c:144:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t size = strlen(token) - itoken;
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_json_serialize.c:147:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (in->keyPath && strlen(in->keyPath) > 0) {
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_store.c:108:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       (strcmp(&config_policydir[strlen(config_policydir) - 1],
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_policy_store.c:262:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    r = ifapi_io_write_async(io, abs_path, (uint8_t *) jso_string, strlen(jso_string));
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_profiles.c:86: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).
        if (ext != NULL && strlen(ext) == strlen(PROFILES_EXTENSION) &&
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_profiles.c:86:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (ext != NULL && strlen(ext) == strlen(PROFILES_EXTENSION) &&
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_profiles.c:87:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strncmp(profiles->filenames[i], PROFILES_PREFIX, strlen(PROFILES_PREFIX)) == 0)
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_profiles.c:256:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(name);
data/tpm2-tss-3.0.2/src/tss2-fapi/ifapi_profiles.c:261:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (len == strlen(profiles->profiles[i].name) &&
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_deserialize.c:40: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).
        if (strncasecmp(in, prefix, strlen(prefix)) == 0) {
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_deserialize.c:41:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            in = &in[strlen(prefix)];
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_deserialize.c:94:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    hexlen = strlen(hex);
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_deserialize.c:97:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        LOG_ERROR("Hex string too long. (%zu > %"PRIu32")", strlen(hex) / 2, vlen);
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_deserialize.c:150:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        *out_size = (strlen(token) - itoken) / 2;
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_deserialize.c:179:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((size_t)pos == strlen(token) - itoken)
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_deserialize.c:204: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).
        char name2[strlen(name) + 1];
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_deserialize.c:207: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).
        name2[strlen(name)] = '\0';
data/tpm2-tss-3.0.2/src/tss2-fapi/tpm_json_deserialize.c:315: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).
    out->size = strlen(hex_string) / 2;
data/tpm2-tss-3.0.2/src/tss2-rc/tss2_rc.c:68:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t offset = strlen(buf);
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-device.c:196:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                TEMP_RETRY (size, read (tcti_dev->fd, header, TPM_HEADER_SIZE));
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-device.c:255:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            TEMP_RETRY (size, read (tcti_dev->fd, response_buffer +
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-device.c:258:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            TEMP_RETRY (size, read (tcti_dev->fd, response_buffer,
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-device.c:470:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        TEMP_RETRY (sz, read (tcti_dev->fd, rsp, TPM_HEADER_SIZE));
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-device.c:489:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        TEMP_RETRY (sz, read (tcti_dev->fd, rsp + TPM_HEADER_SIZE,
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-mssim.c:104:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read_ret = read(tcti_mssim->platform_sock, buf, sizeof (buf));
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-mssim.c:537:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen (conf) > TCTI_MSSIM_CONF_MAX) {
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-swtpm.c:185:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    resp_buf_len = read(tcti_swtpm->ctrl_sock, resp_buf, sizeof(resp_buf));
data/tpm2-tss-3.0.2/src/tss2-tcti/tcti-swtpm.c:561:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen (conf) > TCTI_SWTPM_CONF_MAX) {
data/tpm2-tss-3.0.2/src/tss2-tcti/tctildr.c:141:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    combined_length = strlen (name_conf);
data/tpm2-tss-3.0.2/src/util/io.c:57:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        TEMP_RETRY (recvd, read (fd, &data [recvd_total], size));
data/tpm2-tss-3.0.2/src/util/log.c:123:17:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
                sprintf(&buffer[off], " ");
data/tpm2-tss-3.0.2/src/util/log.c:181:57:  [1] (buffer) strlen:
  Does not handle 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 (case_insensitive_strncmp(log_strings[i], n, strlen(log_strings[i])) == 0) {
data/tpm2-tss-3.0.2/src/util/log.c:197: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).
        if ((envlevel <= i - strlen("all") &&
data/tpm2-tss-3.0.2/src/util/log.c:199: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).
            (envlevel <= i - strlen(module) &&
data/tpm2-tss-3.0.2/src/util/log.c:200:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             case_insensitive_strncmp(i - strlen(module), module, strlen(module)) == 0)) {
data/tpm2-tss-3.0.2/src/util/log.c:200:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             case_insensitive_strncmp(i - strlen(module), module, strlen(module)) == 0)) {
data/tpm2-tss-3.0.2/test/integration/fapi-data-crypt.int.c:125: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).
    bufio = BIO_new_mem_buf((void *)priv_pem, strlen(priv_pem));
data/tpm2-tss-3.0.2/test/integration/fapi-data-crypt.int.c:234:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = read(fileno(stream), json_policy, policy_size);
data/tpm2-tss-3.0.2/test/integration/fapi-duplicate.int.c:73:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = read(fileno(stream), json_policy, policy_size);
data/tpm2-tss-3.0.2/test/integration/fapi-duplicate.int.c:90: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).
    assert(strlen(json_string_pub_key) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-duplicate.int.c:103: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).
    assert(strlen(json_duplicate) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-ext-public-key.int.c:187: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).
    bufio = BIO_new_mem_buf((void *)priv_pem, strlen(priv_pem));
data/tpm2-tss-3.0.2/test/integration/fapi-ext-public-key.int.c:219: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).
    assert(strlen(cert2) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-ext-public-key.int.c:228: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).
    assert(strlen(path_list) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-info.int.c:43: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).
    assert(strlen(info) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-change-auth.int.c:52: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).
    assert(strlen(objectPath) == strlen(profile_path));
data/tpm2-tss-3.0.2/test/integration/fapi-key-change-auth.int.c:52: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).
    assert(strlen(objectPath) == strlen(profile_path));
data/tpm2-tss-3.0.2/test/integration/fapi-key-change-auth.int.c:54: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).
    assert(strlen(userData) == strlen((char*)USER_DATA));
data/tpm2-tss-3.0.2/test/integration/fapi-key-change-auth.int.c:54: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).
    assert(strlen(userData) == strlen((char*)USER_DATA));
data/tpm2-tss-3.0.2/test/integration/fapi-key-change-auth.int.c:55:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(strlen(description) == strlen(DESCRIPTION));
data/tpm2-tss-3.0.2/test/integration/fapi-key-change-auth.int.c:55:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(strlen(description) == strlen(DESCRIPTION));
data/tpm2-tss-3.0.2/test/integration/fapi-key-change-auth.int.c:125: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).
    assert(strlen(publicKey) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-change-auth.int.c:126: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).
    assert(strlen(certificate) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-ckda-sign.int.c:108: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).
    assert(strlen(publicKey) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-ckda-sign.int.c:109: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).
    assert(strlen(certificate) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policies-sign.int.c:130:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = read(fileno(stream), json_policy, policy_size);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policies-sign.int.c:178: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).
    assert(strlen(publicKey) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policies-sign.int.c:179: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).
    assert(strlen(certificate) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-nv-sign.int.c:89:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = read(fileno(stream), json_policy, policy_size);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-nv-sign.int.c:194: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).
    assert(strlen(publicKey) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-nv-sign.int.c:195: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).
    assert(strlen(certificate) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:60: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).
    assert(strlen(objectPath) == strlen(profile_path));
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:60: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).
    assert(strlen(objectPath) == strlen(profile_path));
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:62: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).
    assert(strlen(userData) == strlen((char*)USER_DATA));
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:62: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).
    assert(strlen(userData) == strlen((char*)USER_DATA));
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:63: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).
    assert(strlen(description) == strlen(DESCRIPTION));
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:63:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(strlen(description) == strlen(DESCRIPTION));
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:156:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = read(fileno(stream), json_policy, policy_size);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:181:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read(fileno(stream), json_policy, policy_size);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:206:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read(fileno(stream), json_policy, policy_size);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:231:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read(fileno(stream), json_policy, policy_size);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:300: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).
    assert(strlen(publicKey) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:301: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).
    assert(strlen(certificate) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:306: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).
    assert(strlen(pathList) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:314: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).
    assert(strlen(pathList) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:322: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).
    assert(strlen(pathList) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-authorize-sign.int.c:340: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).
    assert(strlen(pathList) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-nv-sign.int.c:85:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = read(fileno(stream), json_policy, policy_size);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-nv-sign.int.c:120: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).
    assert(strlen(publicKey) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-nv-sign.int.c:121: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).
    assert(strlen(certificate) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-or-sign.int.c:119:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = read(fileno(stream), json_policy, policy_size);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-or-sign.int.c:161: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).
    assert(strlen(publicKey) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-or-sign.int.c:162: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).
    assert(strlen(certificate) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-pcr-sign.int.c:86:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = read(fileno(stream), json_policy, policy_size);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-pcr-sign.int.c:121: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).
    assert(strlen(publicKey) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-pcr-sign.int.c:122: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).
    assert(strlen(certificate) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-pcr-sign.int.c:127: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).
    assert(strlen(policy) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-pcr-sign.int.c:136: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).
    assert(strlen(policy) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-pcr-sign.int.c:166:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read(fileno(stream), json_policy, policy_size);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-pcr-sign.int.c:195: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).
    assert(strlen(publicKey) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-pcr-sign.int.c:196: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).
    assert(strlen(certificate) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-pcr-sign.int.c:202: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).
    assert(strlen(policy) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-pcr-sign.int.c:212: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).
    assert(strlen(policy) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-pcr-sign.int.c:218: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).
    assert(strlen(path_list) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-secret-nv-sign.int.c:75:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = read(fileno(stream), json_policy, policy_size);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-secret-nv-sign.int.c:187: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).
    assert(strlen(publicKey) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-secret-nv-sign.int.c:188: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).
    assert(strlen(certificate) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-signed.int.c:140: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).
    bufio = BIO_new_mem_buf((void *)priv_pem, strlen(priv_pem));
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-signed.int.c:251:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = read(fileno(stream), json_policy, policy_size);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-signed.int.c:289: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).
    assert(strlen(publicKey) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-signed.int.c:290: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).
    assert(strlen(certificate) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-policy-signed.int.c:295: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).
    assert(strlen(pathList) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign-password-provision.int.c:133:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = read(fileno(stream), json_policy, policy_size);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign-password-provision.int.c:164: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).
    assert(strlen(policy) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign-password-provision.int.c:176: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).
    assert(strlen(publicKey) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign-password-provision.int.c:177: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).
    assert(strlen(certificate) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign-password-provision.int.c:182: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).
    assert(strlen(path_list) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign-policy-provision.int.c:131: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).
    assert(strlen(policy) == 0);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign-policy-provision.int.c:144: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).
    assert(strlen(publicKey) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign-policy-provision.int.c:145: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).
    assert(strlen(certificate) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign-policy-provision.int.c:150: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).
    assert(strlen(path_list) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign.int.c:159: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).
    assert(strlen(policy) == 0);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign.int.c:171: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).
    assert(strlen(publicKey) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign.int.c:172: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).
    assert(strlen(certificate) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-key-create-sign.int.c:204: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).
    assert(strlen(path_list) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-nv-authorizenv-cphash.int.c:99:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read(fileno(stream), &json[0], sizeof(json));
data/tpm2-tss-3.0.2/test/integration/fapi-nv-authorizenv-cphash.int.c:111:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read(fileno(stream), &json[0], sizeof(json));
data/tpm2-tss-3.0.2/test/integration/fapi-nv-extend.int.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).
    assert(strlen(log) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-nv-extend.int.c:107: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).
    assert(strlen(log) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-nv-increment.int.c:93:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = read(fileno(stream), json_policy, policy_size);
data/tpm2-tss-3.0.2/test/integration/fapi-nv-ordinary.int.c:61: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).
    assert(strlen(userData) == strlen((char*)USER_DATA));
data/tpm2-tss-3.0.2/test/integration/fapi-nv-ordinary.int.c:61: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).
    assert(strlen(userData) == strlen((char*)USER_DATA));
data/tpm2-tss-3.0.2/test/integration/fapi-nv-ordinary.int.c:98:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = read(fileno(stream), json_policy, policy_size);
data/tpm2-tss-3.0.2/test/integration/fapi-nv-ordinary.int.c:174: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).
    assert(strlen(logData) == 0);
data/tpm2-tss-3.0.2/test/integration/fapi-nv-ordinary.int.c:228: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).
        assert(strlen(logData) == 0);
data/tpm2-tss-3.0.2/test/integration/fapi-nv-ordinary.int.c:255: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).
    assert(strlen(logData) == 0);
data/tpm2-tss-3.0.2/test/integration/fapi-nv-ordinary.int.c:288: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).
    assert(strlen(logData) == 0);
data/tpm2-tss-3.0.2/test/integration/fapi-nv-ordinary.int.c:326: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).
    assert(strlen(logData) == 0);
data/tpm2-tss-3.0.2/test/integration/fapi-nv-ordinary.int.c:356: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).
    assert(strlen(logData) == 0);
data/tpm2-tss-3.0.2/test/integration/fapi-nv-written-policy.int.c:85:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = read(fileno(stream), json_policy, policy_size);
data/tpm2-tss-3.0.2/test/integration/fapi-pcr-test.int.c:185: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).
    assert(strlen(log) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-pcr-test.int.c:209: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).
    assert(strlen(log) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-quote-destructive.int.c:99: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).
    assert(strlen(quoteInfo) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-quote-destructive.int.c:100: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).
    assert(strlen(pcrEventLog) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-quote-destructive.int.c:101:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(strlen(certificate) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-quote-destructive.int.c:113: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).
    assert(strlen(pathlist) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-quote.int.c:102: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).
    assert(strlen(quoteInfo) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-quote.int.c:103: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).
    assert(strlen(pcrEventLog) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-quote.int.c:104: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).
    assert(strlen(certificate) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-quote.int.c:112: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).
    assert(strlen(export_data) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-quote.int.c:136: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).
    assert(strlen(log) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/fapi-quote.int.c:149: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).
    assert(strlen(pathlist) > ASSERT_SIZE);
data/tpm2-tss-3.0.2/test/integration/sys-asymmetric-encrypt-decrypt.int.c:135:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    input_message.size = strlen(message);
data/tpm2-tss-3.0.2/test/integration/sys-encrypt-decrypt-2.int.c:35: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).
    data_in.size = strlen (ENC_STR);
data/tpm2-tss-3.0.2/test/integration/sys-encrypt-decrypt.int.c:39: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).
    data_in.size = strlen (ENC_STR);
data/tpm2-tss-3.0.2/test/integration/sys-session-util.c:513:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    tpm2blabel.size = strlen(label) + 1;
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:1630:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    nvAuth.size = strlen( password );
data/tpm2-tss-3.0.2/test/tpmclient/tpmclient.int.c:1682: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).
    sessionsData.auths[0].hmac.size = strlen( password );
data/tpm2-tss-3.0.2/test/unit/fapi-json.c:178: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).
    char *string2 = malloc(strlen(string)+1);
data/tpm2-tss-3.0.2/test/unit/tcti-device.c:49:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(pathname, pathname_prefix_dev, strlen(pathname_prefix_dev)) == 0) {
data/tpm2-tss-3.0.2/test/unit/test_tss2_rc.c:20: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).
    assert_memory_equal(str, prefix, strlen(prefix))

ANALYSIS SUMMARY:

Hits = 613
Lines analyzed = 189544 in approximately 4.85 seconds (39049 lines/second)
Physical Source Lines of Code (SLOC) = 126471
Hits@level = [0] 108 [1] 250 [2] 292 [3]  18 [4]  53 [5]   0
Hits@level+ = [0+] 721 [1+] 613 [2+] 363 [3+]  71 [4+]  53 [5+]   0
Hits/KSLOC@level+ = [0+] 5.70091 [1+] 4.84696 [2+] 2.87022 [3+] 0.561394 [4+] 0.419068 [5+]   0
Dot directories skipped = 2 (--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.