tpm2-tss-4.1.3-7.fc43
List of Findings
Error: COMPILER_WARNING: [#def1]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_AC_GetCapability.c: scope_hint: In function ‘Esys_AC_GetCapability_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_AC_GetCapability.c:255:41: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_AC_GetCapability.c:255:41: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def2]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_AC_Send.c: scope_hint: In function ‘Esys_AC_Send_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_AC_Send.c:264:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_AC_Send.c:264:36: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def3]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ActivateCredential.c: scope_hint: In function ‘Esys_ActivateCredential_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ActivateCredential.c:284:35: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ActivateCredential.c:284:35: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def4]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Certify.c: scope_hint: In function ‘Esys_Certify_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Certify.c:288:38: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Certify.c:288:38: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def5]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Certify.c:294:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Certify.c:294:36: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def6]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CertifyCreation.c: scope_hint: In function ‘Esys_CertifyCreation_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CertifyCreation.c:298:38: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CertifyCreation.c:298:38: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def7]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CertifyCreation.c:304:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CertifyCreation.c:304:36: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def8]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CertifyX509.c: scope_hint: In function ‘Esys_CertifyX509_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CertifyX509.c:296:45: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CertifyX509.c:296:45: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def9]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CertifyX509.c:302:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CertifyX509.c:302:36: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def10]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CertifyX509.c:308:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CertifyX509.c:308:36: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def11]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Commit.c: scope_hint: In function ‘Esys_Commit_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Commit.c:289:28: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Commit.c:289:28: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def12]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Commit.c:295:28: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Commit.c:295:28: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def13]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Commit.c:301:28: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Commit.c:301:28: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def14]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ContextSave.c: scope_hint: In function ‘Esys_ContextSave_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ContextSave.c:211:30: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ContextSave.c:211:30: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def15]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Create.c: scope_hint: In function ‘Esys_Create_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Create.c:338:37: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Create.c:338:37: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def16]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Create.c:344:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Create.c:344:36: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def17]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Create.c:350:39: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Create.c:350:39: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def18]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Create.c:356:39: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Create.c:356:39: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def19]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Create.c:362:41: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Create.c:362:41: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def20]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CreateLoaded.c: scope_hint: In function ‘Esys_CreateLoaded_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CreateLoaded.c:328:37: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CreateLoaded.c:328:37: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def21]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CreateLoaded.c:333:32: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CreateLoaded.c:333:32: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def22]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CreatePrimary.c: scope_hint: In function ‘Esys_CreatePrimary_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CreatePrimary.c:347:32: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CreatePrimary.c:347:32: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def23]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CreatePrimary.c:352:39: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CreatePrimary.c:352:39: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def24]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CreatePrimary.c:358:39: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CreatePrimary.c:358:39: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def25]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CreatePrimary.c:364:41: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_CreatePrimary.c:364:41: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def26]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Duplicate.c: scope_hint: In function ‘Esys_Duplicate_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Duplicate.c:305:43: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Duplicate.c:305:43: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def27]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Duplicate.c:311:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Duplicate.c:311:36: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def28]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Duplicate.c:317:37: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Duplicate.c:317:37: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def29]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ECC_Parameters.c: scope_hint: In function ‘Esys_ECC_Parameters_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ECC_Parameters.c:246:37: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ECC_Parameters.c:246:37: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def30]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ECDH_KeyGen.c: scope_hint: In function ‘Esys_ECDH_KeyGen_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ECDH_KeyGen.c:259:33: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ECDH_KeyGen.c:259:33: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def31]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ECDH_KeyGen.c:265:35: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ECDH_KeyGen.c:265:35: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def32]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ECDH_ZGen.c: scope_hint: In function ‘Esys_ECDH_ZGen_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ECDH_ZGen.c:258:35: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ECDH_ZGen.c:258:35: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def33]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_EC_Ephemeral.c: scope_hint: In function ‘Esys_EC_Ephemeral_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_EC_Ephemeral.c:244:28: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_EC_Ephemeral.c:244:28: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def34]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_EncryptDecrypt.c: scope_hint: In function ‘Esys_EncryptDecrypt_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_EncryptDecrypt.c:285:34: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_EncryptDecrypt.c:285:34: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def35]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_EncryptDecrypt.c:291:32: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_EncryptDecrypt.c:291:32: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def36]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_EncryptDecrypt2.c: scope_hint: In function ‘Esys_EncryptDecrypt2_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_EncryptDecrypt2.c:279:34: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_EncryptDecrypt2.c:279:34: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def37]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_EncryptDecrypt2.c:285:32: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_EncryptDecrypt2.c:285:32: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def38]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_EventSequenceComplete.c: scope_hint: In function ‘Esys_EventSequenceComplete_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_EventSequenceComplete.c:280:34: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_EventSequenceComplete.c:280:34: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def39]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_FieldUpgradeData.c: scope_hint: In function ‘Esys_FieldUpgradeData_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_FieldUpgradeData.c:246:37: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_FieldUpgradeData.c:246:37: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def40]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_FieldUpgradeData.c:252:38: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_FieldUpgradeData.c:252:38: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def41]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_FirmwareRead.c: scope_hint: In function ‘Esys_FirmwareRead_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_FirmwareRead.c:242:33: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_FirmwareRead.c:242:33: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def42]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetCapability.c: scope_hint: In function ‘Esys_GetCapability_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetCapability.c:264:41: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetCapability.c:264:41: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def43]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetCommandAuditDigest.c: scope_hint: In function ‘Esys_GetCommandAuditDigest_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetCommandAuditDigest.c:286:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetCommandAuditDigest.c:286:36: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def44]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetCommandAuditDigest.c:292:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetCommandAuditDigest.c:292:36: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def45]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetRandom.c: scope_hint: In function ‘Esys_GetRandom_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetRandom.c:240:38: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetRandom.c:240:38: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def46]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetSessionAuditDigest.c: scope_hint: In function ‘Esys_GetSessionAuditDigest_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetSessionAuditDigest.c:300:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetSessionAuditDigest.c:300:36: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def47]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetSessionAuditDigest.c:306:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetSessionAuditDigest.c:306:36: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def48]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetTestResult.c: scope_hint: In function ‘Esys_GetTestResult_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetTestResult.c:239:34: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetTestResult.c:239:34: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def49]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetTime.c: scope_hint: In function ‘Esys_GetTime_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetTime.c:284:35: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetTime.c:284:35: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def50]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetTime.c:290:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_GetTime.c:290:36: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def51]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_HMAC.c: scope_hint: In function ‘Esys_HMAC_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_HMAC.c:263:34: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_HMAC.c:263:34: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def52]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Hash.c: scope_hint: In function ‘Esys_Hash_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Hash.c:263:34: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Hash.c:263:34: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def53]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Hash.c:269:37: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Hash.c:269:37: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def54]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Import.c: scope_hint: In function ‘Esys_Import_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Import.c:286:37: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Import.c:286:37: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def55]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_IncrementalSelfTest.c: scope_hint: In function ‘Esys_IncrementalSelfTest_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_IncrementalSelfTest.c:246:35: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_IncrementalSelfTest.c:246:35: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def56]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_MAC.c: scope_hint: In function ‘Esys_MAC_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_MAC.c:265:33: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_MAC.c:265:33: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def57]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_MakeCredential.c: scope_hint: In function ‘Esys_MakeCredential_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_MakeCredential.c:267:41: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_MakeCredential.c:267:41: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def58]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_MakeCredential.c:273:33: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_MakeCredential.c:273:33: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def59]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_NV_Certify.c: scope_hint: In function ‘Esys_NV_Certify_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_NV_Certify.c:310:38: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_NV_Certify.c:310:38: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def60]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_NV_Certify.c:316:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_NV_Certify.c:316:36: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def61]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_NV_Read.c: scope_hint: In function ‘Esys_NV_Read_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_NV_Read.c:278:31: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_NV_Read.c:278:31: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def62]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_NV_ReadPublic.c: scope_hint: In function ‘Esys_NV_ReadPublic_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_NV_ReadPublic.c:269:31: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_NV_ReadPublic.c:269:31: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def63]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_NV_ReadPublic.c:273:29: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_NV_ReadPublic.c:273:29: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def64]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ObjectChangeAuth.c: scope_hint: In function ‘Esys_ObjectChangeAuth_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ObjectChangeAuth.c:287:37: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ObjectChangeAuth.c:287:37: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def65]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PCR_Event.c: scope_hint: In function ‘Esys_PCR_Event_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PCR_Event.c:262:34: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PCR_Event.c:262:34: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def66]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PCR_Read.c: scope_hint: In function ‘Esys_PCR_Read_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PCR_Read.c:261:42: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PCR_Read.c:261:42: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def67]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PCR_Read.c:267:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PCR_Read.c:267:36: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def68]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PolicyGetDigest.c: scope_hint: In function ‘Esys_PolicyGetDigest_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PolicyGetDigest.c:256:39: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PolicyGetDigest.c:256:39: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def69]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PolicySecret.c: scope_hint: In function ‘Esys_PolicySecret_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PolicySecret.c:300:34: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PolicySecret.c:300:34: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def70]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PolicySecret.c:306:39: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PolicySecret.c:306:39: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def71]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PolicySigned.c: scope_hint: In function ‘Esys_PolicySigned_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PolicySigned.c:300:34: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PolicySigned.c:300:34: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def72]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PolicySigned.c:306:39: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_PolicySigned.c:306:39: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def73]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Quote.c: scope_hint: In function ‘Esys_Quote_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Quote.c:274:33: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Quote.c:274:33: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def74]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Quote.c:280:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Quote.c:280:36: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def75]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_RSA_Decrypt.c: scope_hint: In function ‘Esys_RSA_Decrypt_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_RSA_Decrypt.c:268:34: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_RSA_Decrypt.c:268:34: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def76]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_RSA_Encrypt.c: scope_hint: In function ‘Esys_RSA_Encrypt_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_RSA_Encrypt.c:265:34: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_RSA_Encrypt.c:265:34: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def77]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ReadClock.c: scope_hint: In function ‘Esys_ReadClock_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ReadClock.c:241:38: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ReadClock.c:241:38: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def78]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ReadPublic.c: scope_hint: In function ‘Esys_ReadPublic_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ReadPublic.c:271:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ReadPublic.c:271:36: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def79]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ReadPublic.c:277:31: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ReadPublic.c:277:31: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def80]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ReadPublic.c:283:40: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ReadPublic.c:283:40: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def81]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Rewrap.c: scope_hint: In function ‘Esys_Rewrap_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Rewrap.c:288:39: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Rewrap.c:288:39: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def82]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Rewrap.c:294:37: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Rewrap.c:294:37: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def83]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_SequenceComplete.c: scope_hint: In function ‘Esys_SequenceComplete_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_SequenceComplete.c:290:33: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_SequenceComplete.c:290:33: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def84]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_SequenceComplete.c:296:37: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_SequenceComplete.c:296:37: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def85]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Sign.c: scope_hint: In function ‘Esys_Sign_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Sign.c:274:36: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Sign.c:274:36: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def86]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Unseal.c: scope_hint: In function ‘Esys_Unseal_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Unseal.c:258:34: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Unseal.c:258:34: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def87]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Vendor_TCG_Test.c: scope_hint: In function ‘Esys_Vendor_TCG_Test_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Vendor_TCG_Test.c:234:37: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_Vendor_TCG_Test.c:234:37: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def88]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_VerifySignature.c: scope_hint: In function ‘Esys_VerifySignature_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_VerifySignature.c:265:37: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_VerifySignature.c:265:37: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def89]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ZGen_2Phase.c: scope_hint: In function ‘Esys_ZGen_2Phase_Finish’
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ZGen_2Phase.c:281:32: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ZGen_2Phase.c:281:32: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def90]
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ZGen_2Phase.c:287:32: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-esys/api/Esys_ZGen_2Phase.c:287:32: note: earlier argument should specify number of elements, later size of each element
Error: GCC_ANALYZER_WARNING (CWE-465): [#def91]
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_AuthorizePolicy.c:338:13: warning[-Wanalyzer-deref-before-check]: check of ‘signature’ for NULL after already dereferencing it
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_AuthorizePolicy.c:258:5: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_AuthorizePolicy.c:263:31: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_AuthorizePolicy.c:327:13: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_AuthorizePolicy.c:328:13: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_AuthorizePolicy.c:328:13: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_AuthorizePolicy.c:330:13: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_AuthorizePolicy.c:330:13: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_AuthorizePolicy.c:333:40: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_AuthorizePolicy.c:335:13: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_AuthorizePolicy.c:337:17: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_AuthorizePolicy.c:338:13: danger: pointer ‘signature’ is checked for NULL here but it was already dereferenced at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_Delete.c:401:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*context.cmd.Provision.hierarchy_he.misc.ext_pub_key.certificate’
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_Delete.c:374:5: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_Delete.c:375:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_Delete.c:375:5: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_Delete.c:378:12: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_Delete.c:389:5: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_Delete.c:393:9: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_Delete.c:395:5: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_Delete.c:398:9: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_Delete.c:398:8: branch_true: following ‘true’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_Delete.c:400:29: acquire_memory: this call could return NULL
tpm2-tss-4.1.3/src/tss2-fapi/api/Fapi_Delete.c:401:9: danger: ‘calloc(1, 8)’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def93]
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_get_web_cert.c:358:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘hash_str’ where non-null expected
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_get_web_cert.c:352:8: branch_false: following ‘false’ branch (when ‘vendor != 1229870147’)...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_get_web_cert.c:355:26: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_get_web_cert.c:355:26: acquire_memory: this call could return NULL
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_get_web_cert.c:356:28: branch_true: following ‘true’ branch (when ‘i != 16’)...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_get_web_cert.c:358:64: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_get_web_cert.c:358:17: danger: argument 1 (‘hash_str + i * 2’) from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def94]
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_helpers.c:1404: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: to_policy
Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_helpers.c:1404:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘to_policy’
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_helpers.c:1435:1: enter_function: entry to ‘ifapi_copy_policy’
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_helpers.c:1438:8: branch_false: following ‘false’ branch (when ‘from_policy’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_helpers.c:1441:30: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_helpers.c:1442:8: branch_false: following ‘false’ branch (when ‘to_policy’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_helpers.c:1446:17: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_helpers.c:1446:17: call_function: calling ‘copy_policy’ from ‘ifapi_copy_policy’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def96]
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:659:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:719:1: enter_function: entry to ‘ifapi_read_ima_event_log’
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:732:5: branch_false: following ‘false’ branch (when ‘jso_list’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:735:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:736:10: acquire_resource: opened here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:737:5: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:738:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:741:5: branch_false: following ‘false’ branch...
branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:744:12: call_function: calling ‘read_ima_header’ from ‘ifapi_read_ima_event_log’
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:744:12: return_function: returning to ‘ifapi_read_ima_event_log’ from ‘read_ima_header’
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:744:12: branch_true: following ‘true’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:745:13: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:659:18: danger: ‘fopen(filename, "r")’ leaks here; was opened at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:659:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:719:1: enter_function: entry to ‘ifapi_read_ima_event_log’
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:732:5: branch_false: following ‘false’ branch (when ‘jso_list’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:735:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:736:10: acquire_memory: allocated here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:737:5: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:738:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:741:5: branch_false: following ‘false’ branch...
branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:744:12: call_function: calling ‘read_ima_header’ from ‘ifapi_read_ima_event_log’
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:744:12: return_function: returning to ‘ifapi_read_ima_event_log’ from ‘read_ima_header’
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:744:12: branch_true: following ‘true’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:745:13: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_ima_eventlog.c:659:18: danger: ‘fopen(filename, "r")’ leaks here; was allocated at [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3)
Error: COMPILER_WARNING: [#def98]
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_io.c: scope_hint: In function ‘dirfiles_all’
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_io.c:584:53: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_io.c:584:53: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def99]
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policy_callbacks.c: scope_hint: In function ‘search_policy’
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policy_callbacks.c:1135:39: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policy_callbacks.c:1135:39: note: earlier argument should specify number of elements, later size of each element
Error: CPPCHECK_WARNING (CWE-476): [#def100]
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policy_execute.c:108: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: policy->policyAuthorizations
Error: CPPCHECK_WARNING (CWE-476): [#def101]
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policy_execute.c:121: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: policy->policyAuthorizations
Error: CPPCHECK_WARNING (CWE-476): [#def102]
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policy_execute.c:124: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: policy->policyAuthorizations
Error: COMPILER_WARNING: [#def103]
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policyutil_execute.c: scope_hint: In function ‘new_policy’
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policyutil_execute.c:45:37: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policyutil_execute.c:45:37: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def104]
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policyutil_execute.c:50:34: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policyutil_execute.c:50:34: note: earlier argument should specify number of elements, later size of each element
Error: COMPILER_WARNING: [#def105]
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policyutil_execute.c:76:37: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policyutil_execute.c:76:37: note: earlier argument should specify number of elements, later size of each element
Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policyutil_execute.c:79:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pol_exec_ctx’
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policyutil_execute.c:46:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policyutil_execute.c:50:20: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policyutil_execute.c:50:20: acquire_memory: allocated here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policyutil_execute.c:51:8: branch_false: following ‘false’ branch (when ‘pol_exec_ctx’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policyutil_execute.c:55:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policyutil_execute.c:77:8: branch_true: following ‘true’ branch (when ‘pol_exec_cb_ctx’ is NULL)...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policyutil_execute.c:78:9: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_policyutil_execute.c:79:9: danger: ‘pol_exec_ctx’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:94:13: warning[-Wanalyzer-malloc-leak]: leak of ‘strndup(*<unknown>, (long unsigned int)(ext - *_17))’
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:67:5: branch_false: following ‘false’ branch (when ‘profiles’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:68:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:68:5: branch_false: following ‘false’ branch (when ‘profilesdir’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:70:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:73:5: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:75:9: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:76:5: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:78:26: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:79:5: branch_false: following ‘false’ branch...
branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:84:17: branch_true: following ‘true’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:85:28: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:87:12: branch_true: following ‘true’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:92:42: acquire_memory: allocated here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:94:13: danger: ‘strndup(*<unknown>, (long unsigned int)(ext - *_17))’ leaks here; was allocated at [(16)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-762): [#def108]
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:122:26: warning[-Wanalyzer-mismatching-deallocation]: ‘*profiles.profiles’ should have been deallocated with ‘free’ but was deallocated with ‘reallocarray’
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:67:5: branch_false: following ‘false’ branch (when ‘profiles’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:68:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:68:5: branch_false: following ‘false’ branch (when ‘profilesdir’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:70:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:73:5: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:75:9: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:76:5: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:78:26: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:78:26: acquire_memory: allocated here (expects deallocation with ‘free’)
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:79:5: branch_false: following ‘false’ branch...
branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:84:17: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:116:8: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:116:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:122:39: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/ifapi_profiles.c:122:26: danger: deallocated with ‘reallocarray’ here; allocation at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8) expects deallocation with ‘free’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def109]
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:1272:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4705:1: enter_function: entry to ‘ifapi_json_TPMS_CREATION_DATA_deserialize’
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4711:5: branch_false: following ‘false’ branch (when ‘out’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4713:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4715:8: branch_true: following ‘true’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4719:9: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4719:9: call_function: calling ‘ifapi_json_TPML_PCR_SELECTION_deserialize’ from ‘ifapi_json_TPMS_CREATION_DATA_deserialize’
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4719:9: return_function: returning to ‘ifapi_json_TPMS_CREATION_DATA_deserialize’ from ‘ifapi_json_TPML_PCR_SELECTION_deserialize’
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4720:5: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4722:10: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4722:8: branch_true: following ‘true’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4726:9: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4726:9: call_function: calling ‘ifapi_json_TPM2B_DIGEST_deserialize’ from ‘ifapi_json_TPMS_CREATION_DATA_deserialize’
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4726:9: return_function: returning to ‘ifapi_json_TPMS_CREATION_DATA_deserialize’ from ‘ifapi_json_TPM2B_DIGEST_deserialize’
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4727:5: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4729:10: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4729:8: branch_true: following ‘true’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4733:9: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4733:9: call_function: calling ‘ifapi_json_TPMA_LOCALITY_deserialize’ from ‘ifapi_json_TPMS_CREATION_DATA_deserialize’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def110]
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4531:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4455:1: enter_function: entry to ‘ifapi_json_TPMA_NV_deserialize’
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4495:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4528:15: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4528:15: branch_true: following ‘true’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4529:9: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4529:9: branch_true: following ‘true’ branch (when ‘entrykey’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4529:9: call_function: inlined call to ‘lh_entry_k’ from ‘ifapi_json_TPMA_NV_deserialize’
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4530:33: call_function: calling ‘strip_prefix’ from ‘ifapi_json_TPMA_NV_deserialize’
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4530:33: return_function: returning to ‘ifapi_json_TPMA_NV_deserialize’ from ‘strip_prefix’
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4531:17: danger: argument 1 (‘strip_prefix(*entrykey.k, "TPM_", "TPM2_", "TPMA_", "NV_", "TPM2_", 0)’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def111]
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4542:21: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4455:1: enter_function: entry to ‘ifapi_json_TPMA_NV_deserialize’
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4495:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4528:15: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4528:15: branch_true: following ‘true’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4529:9: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4529:9: branch_true: following ‘true’ branch (when ‘entrykey’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4529:9: call_function: inlined call to ‘lh_entry_k’ from ‘ifapi_json_TPMA_NV_deserialize’
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4530:33: call_function: calling ‘strip_prefix’ from ‘ifapi_json_TPMA_NV_deserialize’
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4530:33: return_function: returning to ‘ifapi_json_TPMA_NV_deserialize’ from ‘strip_prefix’
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4531:16: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4538:21: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4538:21: call_function: calling ‘strip_prefix’ from ‘ifapi_json_TPMA_NV_deserialize’
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4538:21: return_function: returning to ‘ifapi_json_TPMA_NV_deserialize’ from ‘strip_prefix’
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4539:17: call_function: calling ‘get_boolean_from_json’ from ‘ifapi_json_TPMA_NV_deserialize’
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4539:17: return_function: returning to ‘ifapi_json_TPMA_NV_deserialize’ from ‘get_boolean_from_json’
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4540:13: branch_false: following ‘false’ branch...
branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4541:25: branch_true: following ‘true’ branch (when ‘j != 27’)...
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4542:32: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-fapi/tpm_json_deserialize.c:4542:21: danger: argument 2 (‘strip_prefix(strip_prefix(*entrykey.k, "TPM_", "TPM2_", "TPMA_", "NV_", "TPM2_", 0), "NT_", 0)’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def112]
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:184:5: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘*pipefd’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:272:12: enter_function: entry to ‘popen_w_pipes’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:280:14: call_function: inlined call to ‘tcti_cmd_pipe’ from ‘popen_w_pipes’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:281:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:287:10: call_function: inlined call to ‘tcti_cmd_pipe’ from ‘popen_w_pipes’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:288:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:294:10: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:295:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:300:12: call_function: inlined call to ‘tcti_cmd_fork’ from ‘popen_w_pipes’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:301:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:304:15: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:304:15: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:318:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:318:5: release_resource: first ‘close’ here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:318:5: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:319:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:319:5: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:325:13: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:326:8: branch_true: following ‘true’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:327:14: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:360:5: call_function: calling ‘pipe_close’ from ‘popen_w_pipes’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def113]
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:185:5: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘pipefd[1]’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:272:12: enter_function: entry to ‘popen_w_pipes’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:280:14: call_function: inlined call to ‘tcti_cmd_pipe’ from ‘popen_w_pipes’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:281:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:287:10: call_function: inlined call to ‘tcti_cmd_pipe’ from ‘popen_w_pipes’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:288:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:294:10: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:295:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:300:12: call_function: inlined call to ‘tcti_cmd_fork’ from ‘popen_w_pipes’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:301:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:304:15: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:304:15: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:318:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:318:5: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:319:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:319:5: release_resource: first ‘close’ here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:319:5: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:325:13: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:326:8: branch_true: following ‘true’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:327:14: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:358:5: call_function: calling ‘pipe_close’ from ‘popen_w_pipes’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def114]
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:411:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tcti_ctx’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:399:9: enter_function: entry to ‘tcti_cmd_transmit’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:403:45: call_function: calling ‘tcti_cmd_down_cast’ from ‘tcti_cmd_transmit’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:403:45: return_function: returning to ‘tcti_cmd_transmit’ from ‘tcti_cmd_down_cast’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:407:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:411:20: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:411:20: danger: dereference of NULL ‘tcti_cmd_context_cast(tcti_ctx)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def115]
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:502:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tctiContext’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:465:9: enter_function: entry to ‘tcti_cmd_receive’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:473:45: call_function: calling ‘tcti_cmd_down_cast’ from ‘tcti_cmd_receive’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:473:45: return_function: returning to ‘tcti_cmd_receive’ from ‘tcti_cmd_down_cast’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:478:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:482:8: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:496:8: branch_false: following ‘false’ branch (when ‘response_buffer’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:502:19: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-cmd.c:502:19: danger: dereference of NULL ‘tcti_cmd_context_cast(tctiContext)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def116]
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:118:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tctiContext’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:98:1: enter_function: entry to ‘tcti_device_transmit’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:104:45: call_function: calling ‘tcti_device_down_cast’ from ‘tcti_device_transmit’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:104:45: return_function: returning to ‘tcti_device_transmit’ from ‘tcti_device_down_cast’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:111:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:114:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:118:12: danger: dereference of NULL ‘tcti_device_context_cast(tctiContext)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def117]
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:177:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:153:1: enter_function: entry to ‘tcti_device_receive’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:160:45: call_function: calling ‘tcti_device_down_cast’ from ‘tcti_device_receive’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:160:45: return_function: returning to ‘tcti_device_receive’ from ‘tcti_device_down_cast’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:172:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:176:8: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:176:8: branch_true: following ‘true’ branch (when ‘response_buffer’ is NULL)...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:177:14: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:177:14: danger: dereference of NULL ‘tcti_device_down_cast(tcti_device_context_cast(tctiContext))’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def118]
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:232:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:153:1: enter_function: entry to ‘tcti_device_receive’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:160:45: call_function: calling ‘tcti_device_down_cast’ from ‘tcti_device_receive’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:160:45: return_function: returning to ‘tcti_device_receive’ from ‘tcti_device_down_cast’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:172:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:176:8: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:176:8: branch_false: following ‘false’ branch (when ‘response_buffer’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:232:9: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:232:9: danger: dereference of NULL ‘tcti_device_down_cast(tcti_device_context_cast(tctiContext))’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def119]
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:392:16: warning[-Wanalyzer-null-argument]: use of NULL ‘used_conf’ where non-null expected
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:397:1: enter_function: entry to ‘Tss2_Tcti_Device_Init’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:406:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:408:15: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:408:15: branch_false: following ‘false’ branch (when ‘tctiContext’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:414:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:424:19: call_function: calling ‘tcti_device_down_cast’ from ‘Tss2_Tcti_Device_Init’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:424:19: return_function: returning to ‘Tss2_Tcti_Device_Init’ from ‘tcti_device_down_cast’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:430:8: branch_true: following ‘true’ branch (when ‘conf’ is NULL)...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:431:9: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:433:28: branch_true: following ‘true’ branch (when ‘i != 3’)...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:434:13: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:437:16: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:443:17: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:447:12: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:464:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:471:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:476:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:481:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:486:16: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:500:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:505:19: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:517:9: call_function: calling ‘close_tpm’ from ‘Tss2_Tcti_Device_Init’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:517:9: return_function: returning to ‘Tss2_Tcti_Device_Init’ from ‘close_tpm’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:518:24: call_function: inlined call to ‘open_tpm’ from ‘Tss2_Tcti_Device_Init’
Error: COMPILER_WARNING: [#def120]
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c: scope_hint: In function ‘Tss2_Tcti_Device_Init’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-device.c:465:23: warning[-Wunterminated-string-initialization]: initializer-string for array of ‘unsigned char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (13 chars into 12 available)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def121]
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:170:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:153:1: enter_function: entry to ‘send_sim_cmd_setup’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:157:45: call_function: calling ‘tcti_mssim_down_cast’ from ‘send_sim_cmd_setup’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:157:45: return_function: returning to ‘send_sim_cmd_setup’ from ‘tcti_mssim_down_cast’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:166:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:170:33: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:170:33: danger: dereference of NULL ‘tcti_mssim_down_cast(tcti_mssim)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def122]
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:264:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:251:1: enter_function: entry to ‘tcti_mssim_set_locality’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:256:45: call_function: calling ‘tcti_mssim_down_cast’ from ‘tcti_mssim_set_locality’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:256:45: return_function: returning to ‘tcti_mssim_set_locality’ from ‘tcti_mssim_down_cast’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:260:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:264:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:264:5: danger: dereference of NULL ‘tcti_mssim_down_cast(tcti_mssim_context_cast(tctiContext))’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def123]
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:358:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tctiContext’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:318:1: enter_function: entry to ‘tcti_mssim_receive’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:329:45: call_function: calling ‘tcti_mssim_down_cast’ from ‘tcti_mssim_receive’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:329:45: return_function: returning to ‘tcti_mssim_receive’ from ‘tcti_mssim_down_cast’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:337:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:354:9: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:354:8: branch_true: following ‘true’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:358:15: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:358:15: danger: dereference of NULL ‘tcti_mssim_context_cast(tctiContext)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def124]
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:398:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tctiContext’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:318:1: enter_function: entry to ‘tcti_mssim_receive’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:329:45: call_function: calling ‘tcti_mssim_down_cast’ from ‘tcti_mssim_receive’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:329:45: return_function: returning to ‘tcti_mssim_receive’ from ‘tcti_mssim_down_cast’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:337:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:354:9: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:354:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:384:8: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:384:8: branch_false: following ‘false’ branch (when ‘response_buffer’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:389:9: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:389:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:394:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-mssim.c:398:11: danger: dereference of NULL ‘tcti_mssim_context_cast(tctiContext)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def125]
tpm2-tss-4.1.3/src/tss2-tcti/tcti-spidev.c:184:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor
tpm2-tss-4.1.3/src/tss2-tcti/tcti-spidev.c:171:8: branch_false: following ‘false’ branch (when ‘tcti_context’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-spidev.c:176:40: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-spidev.c:177:8: branch_false: following ‘false’ branch (when ‘platform_data’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-spidev.c:181:25: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-spidev.c:181:25: acquire_resource: opened here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-spidev.c:182:8: branch_true: following ‘true’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-spidev.c:183:9: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-spidev.c:184:9: danger: leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def126]
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:299:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tcti_ctx’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:259:1: enter_function: entry to ‘tcti_swtpm_transmit’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:265:45: call_function: calling ‘tcti_swtpm_down_cast’ from ‘tcti_swtpm_transmit’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:265:45: return_function: returning to ‘tcti_swtpm_transmit’ from ‘tcti_swtpm_down_cast’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:270:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:273:10: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:274:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:277:9: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:277:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:283:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:295:8: branch_false: following ‘false’ branch (when ‘rc == 0’)...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:299:10: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:299:10: danger: dereference of NULL ‘tcti_swtpm_context_cast(tcti_ctx)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def127]
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:418:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tctiContext’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:380:1: enter_function: entry to ‘tcti_swtpm_receive’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:392:45: call_function: calling ‘tcti_swtpm_down_cast’ from ‘tcti_swtpm_receive’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:392:45: return_function: returning to ‘tcti_swtpm_receive’ from ‘tcti_swtpm_down_cast’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:397:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:401:8: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:415:8: branch_true: following ‘true’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:416:9: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:418:15: danger: dereference of NULL ‘tcti_swtpm_context_cast(tctiContext)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def128]
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:446:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tctiContext’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:380:1: enter_function: entry to ‘tcti_swtpm_receive’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:392:45: call_function: calling ‘tcti_swtpm_down_cast’ from ‘tcti_swtpm_receive’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:392:45: return_function: returning to ‘tcti_swtpm_receive’ from ‘tcti_swtpm_down_cast’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:397:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:401:8: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:415:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:433:8: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:433:8: branch_false: following ‘false’ branch (when ‘response_buffer’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:438:9: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:438:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:442:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:444:8: branch_true: following ‘true’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:445:9: branch_true: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:446:15: danger: dereference of NULL ‘tcti_swtpm_context_cast(tctiContext)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def129]
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:472:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:380:1: enter_function: entry to ‘tcti_swtpm_receive’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:392:45: call_function: calling ‘tcti_swtpm_down_cast’ from ‘tcti_swtpm_receive’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:392:45: return_function: returning to ‘tcti_swtpm_receive’ from ‘tcti_swtpm_down_cast’
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:397:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:401:8: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:415:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:433:8: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:433:8: branch_false: following ‘false’ branch (when ‘response_buffer’ is non-NULL)...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:438:9: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:438:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:442:5: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:444:8: branch_false: following ‘false’ branch...
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:455:26: branch_false: ...to here
tpm2-tss-4.1.3/src/tss2-tcti/tcti-swtpm.c:472:5: danger: dereference of NULL ‘tcti_swtpm_down_cast(tcti_swtpm_context_cast(tctiContext))’
Scan Properties
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-88.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | tpm2-tss-4.1.3-7.fc43 |
store-results-to | /tmp/tmpve9u3ju6/tpm2-tss-4.1.3-7.fc43.tar.xz |
time-created | 2025-04-25 15:51:36 |
time-finished | 2025-04-25 15:54:39 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpve9u3ju6/tpm2-tss-4.1.3-7.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpve9u3ju6/tpm2-tss-4.1.3-7.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |