libtpms-0.10.2-2.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
libtpms-0.10.2/src/tpm12/tpm_counter.c:421:44: warning[-Wanalyzer-null-dereference]: dereference of NULL 'tpm_counter_value'
libtpms-0.10.2/src/tpm12/tpm_counter.c:507:12: enter_function: entry to 'TPM_Process_CreateCounter'
libtpms-0.10.2/src/tpm12/tpm_counter.c:546:26: release_memory: 'counterValue' is NULL
libtpms-0.10.2/src/tpm12/tpm_counter.c:686:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_counter.c:687:12: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_counter.c:687:12: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_counter.c:689:29: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_counter.c:693:12: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_counter.c:695:26: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_counter.c:695:26: release_memory: 'counterValue' is NULL
libtpms-0.10.2/src/tpm12/tpm_counter.c:695:26: call_function: calling 'TPM_CounterValue_StorePublic' from 'TPM_Process_CreateCounter'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def2]
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:919:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1353:12: enter_function: entry to 'TPM_MGF1_GenerateArray'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1370:5: acquire_resource: 'va_start' called here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1405:8: branch_true: following 'true' branch (when 'rc == 0')...
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1406:14: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1409:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1410:14: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1410:14: call_function: calling 'TPM_MGF1' from 'TPM_MGF1_GenerateArray'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def3]
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:966:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:929:12: enter_function: entry to 'TPM_SHA1_Check'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:937:9: acquire_resource: 'va_start' called here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:938:14: call_function: calling 'TPM_SHA1_valist' from 'TPM_SHA1_Check'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def4]
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:968:14: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:929:12: enter_function: entry to 'TPM_SHA1_Check'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:937:9: acquire_resource: 'va_start' called here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:938:14: call_function: calling 'TPM_SHA1_valist' from 'TPM_SHA1_Check'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def5]
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:972:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1163:12: enter_function: entry to 'TPM_HMAC_Check'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1174:5: acquire_resource: 'va_start' called here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1176:14: call_function: calling 'TPM_HMAC_Generatevalist' from 'TPM_HMAC_Check'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def6]
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:973:18: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1163:12: enter_function: entry to 'TPM_HMAC_Check'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1174:5: acquire_resource: 'va_start' called here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1176:14: call_function: calling 'TPM_HMAC_Generatevalist' from 'TPM_HMAC_Check'
Error: GCC_ANALYZER_WARNING (CWE-686): [#def7]
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:977:9: warning[-Wanalyzer-va-arg-type-mismatch]: 'va_arg' expected 'uint32_t' {{aka 'unsigned int'}} but received 'long unsigned int' for variadic argument 1 of 'ap'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:2307:12: enter_function: entry to 'TPM_CryptoTest'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:2376:14: call_function: calling 'TPM_SHA1' from 'TPM_CryptoTest' with 4 variadic arguments
Error: GCC_ANALYZER_WARNING (CWE-404): [#def8]
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:980:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:929:12: enter_function: entry to 'TPM_SHA1_Check'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:937:9: acquire_resource: 'va_start' called here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:938:14: call_function: calling 'TPM_SHA1_valist' from 'TPM_SHA1_Check'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def9]
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:981:18: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:929:12: enter_function: entry to 'TPM_SHA1_Check'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:937:9: acquire_resource: 'va_start' called here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:938:14: call_function: calling 'TPM_SHA1_valist' from 'TPM_SHA1_Check'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def10]
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:988:14: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:929:12: enter_function: entry to 'TPM_SHA1_Check'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:937:9: acquire_resource: 'va_start' called here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:938:14: call_function: calling 'TPM_SHA1_valist' from 'TPM_SHA1_Check'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def11]
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:991:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:929:12: enter_function: entry to 'TPM_SHA1_Check'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:937:9: acquire_resource: 'va_start' called here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:938:14: call_function: calling 'TPM_SHA1_valist' from 'TPM_SHA1_Check'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def12]
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:994:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:929:12: enter_function: entry to 'TPM_SHA1_Check'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:937:9: acquire_resource: 'va_start' called here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:938:14: call_function: calling 'TPM_SHA1_valist' from 'TPM_SHA1_Check'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def13]
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1096:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1163:12: enter_function: entry to 'TPM_HMAC_Check'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1174:5: acquire_resource: 'va_start' called here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1176:14: call_function: calling 'TPM_HMAC_Generatevalist' from 'TPM_HMAC_Check'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def14]
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1302:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1353:12: enter_function: entry to 'TPM_MGF1_GenerateArray'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1370:5: acquire_resource: 'va_start' called here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1405:8: branch_true: following 'true' branch (when 'rc == 0')...
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1406:14: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1409:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1410:14: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1410:14: call_function: calling 'TPM_MGF1' from 'TPM_MGF1_GenerateArray'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def15]
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1373:14: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1370:5: acquire_resource: 'va_start' called here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1373:14: throw: if 'TPM_Malloc' throws an exception...
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1373:14: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def16]
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1382:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1370:5: acquire_resource: 'va_start' called here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1378:12: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1379:28: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1380:12: branch_true: following 'true' branch (when 'vaLength != 0')...
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1382:17: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1382:17: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1382:17: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def17]
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1384:21: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1370:5: acquire_resource: 'va_start' called here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1378:12: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1379:28: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1380:12: branch_true: following 'true' branch (when 'vaLength != 0')...
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1382:17: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1383:20: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1384:21: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1384:21: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1384:21: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def18]
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1398:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1370:5: acquire_resource: 'va_start' called here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1378:12: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1379:28: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1398:17: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1398:17: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def19]
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1406:14: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1370:5: acquire_resource: 'va_start' called here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1405:8: branch_true: following 'true' branch (when 'rc == 0')...
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1406:14: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1406:14: throw: if 'TPM_Malloc' throws an exception...
libtpms-0.10.2/src/tpm12/tpm_cryptoh.c:1406:14: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def20]
libtpms-0.10.2/src/tpm12/tpm_key.c:3763: error[legacyUninitvar]: Uninitialized variable: keyCount
Error: GCC_ANALYZER_WARNING (CWE-457): [#def21]
libtpms-0.10.2/src/tpm12/tpm_migration.c:3389:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'continueAuthSession'
libtpms-0.10.2/src/tpm12/tpm_migration.c:3342:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_migration.c:3343:12: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_migration.c:3387:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm12/tpm_migration.c:3388:11: branch_false: ...to here
libtpms-0.10.2/src/tpm12/tpm_migration.c:3387:10: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm12/tpm_migration.c:3389:10: branch_false: ...to here
libtpms-0.10.2/src/tpm12/tpm_migration.c:3389:10: danger: use of uninitialized value 'continueAuthSession' here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
libtpms-0.10.2/src/tpm12/tpm_session.c:187:44: warning[-Wanalyzer-null-dereference]: dereference of NULL 'tpm_auth_session_data'
libtpms-0.10.2/src/tpm12/tpm_session.c:3026:12: enter_function: entry to 'TPM_Process_SaveContext'
libtpms-0.10.2/src/tpm12/tpm_session.c:3051:34: release_memory: 'tpm_auth_session_data' is NULL
libtpms-0.10.2/src/tpm12/tpm_session.c:3090:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3091:9: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3094:8: branch_true: following 'true' branch (when 'returnCode == 0')...
libtpms-0.10.2/src/tpm12/tpm_session.c:3095:9: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3112:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3113:22: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3116:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3117:22: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3119:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3120:13: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3120:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3131:9: branch_false: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3173:12: branch_false: following 'false' branch (when 'returnCode == 0')...
libtpms-0.10.2/src/tpm12/tpm_session.c:3180:9: branch_false: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3182:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3207:43: branch_false: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3214:16: branch_true: following 'true' branch (when 'returnCode == 0')...
libtpms-0.10.2/src/tpm12/tpm_session.c:3220:9: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3233:26: release_memory: 'tpm_auth_session_data' is NULL
libtpms-0.10.2/src/tpm12/tpm_session.c:3233:26: call_function: calling 'TPM_AuthSessionData_Store' from 'TPM_Process_SaveContext'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def23]
libtpms-0.10.2/src/tpm12/tpm_session.c:3197:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'tpm_key_handle_entry'
libtpms-0.10.2/src/tpm12/tpm_session.c:3026:12: enter_function: entry to 'TPM_Process_SaveContext'
libtpms-0.10.2/src/tpm12/tpm_session.c:3090:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3091:9: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3094:8: branch_true: following 'true' branch (when 'returnCode == 0')...
libtpms-0.10.2/src/tpm12/tpm_session.c:3095:9: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3112:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3113:22: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3116:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3117:22: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3119:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3120:13: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3120:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3131:9: branch_false: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3150:26: call_function: calling 'TPM_AuthSessions_GetEntry' from 'TPM_Process_SaveContext'
libtpms-0.10.2/src/tpm12/tpm_session.c:3150:26: return_function: returning to 'TPM_Process_SaveContext' from 'TPM_AuthSessions_GetEntry'
libtpms-0.10.2/src/tpm12/tpm_session.c:3173:12: branch_false: following 'false' branch (when 'returnCode == 0')...
libtpms-0.10.2/src/tpm12/tpm_session.c:3180:9: branch_false: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3182:12: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3185:43: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3192:16: branch_true: following 'true' branch (when 'returnCode == 0')...
libtpms-0.10.2/src/tpm12/tpm_session.c:3197:41: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3197:41: danger: use of uninitialized value 'tpm_key_handle_entry' here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def24]
libtpms-0.10.2/src/tpm12/tpm_session.c:3230:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'tpm_key_handle_entry'
libtpms-0.10.2/src/tpm12/tpm_session.c:3026:12: enter_function: entry to 'TPM_Process_SaveContext'
libtpms-0.10.2/src/tpm12/tpm_session.c:3090:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3091:9: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3094:8: branch_true: following 'true' branch (when 'returnCode == 0')...
libtpms-0.10.2/src/tpm12/tpm_session.c:3095:9: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3112:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3113:22: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3116:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3117:22: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3119:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3120:13: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3120:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3131:9: branch_false: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3150:26: call_function: calling 'TPM_AuthSessions_GetEntry' from 'TPM_Process_SaveContext'
libtpms-0.10.2/src/tpm12/tpm_session.c:3150:26: return_function: returning to 'TPM_Process_SaveContext' from 'TPM_AuthSessions_GetEntry'
libtpms-0.10.2/src/tpm12/tpm_session.c:3173:12: branch_false: following 'false' branch (when 'returnCode == 0')...
libtpms-0.10.2/src/tpm12/tpm_session.c:3180:9: branch_false: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3182:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3207:43: branch_false: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3214:16: branch_true: following 'true' branch (when 'returnCode == 0')...
libtpms-0.10.2/src/tpm12/tpm_session.c:3220:9: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3230:26: danger: use of uninitialized value 'tpm_key_handle_entry' here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def25]
libtpms-0.10.2/src/tpm12/tpm_session.c:3236:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'tpm_transport_internal'
libtpms-0.10.2/src/tpm12/tpm_session.c:3026:12: enter_function: entry to 'TPM_Process_SaveContext'
libtpms-0.10.2/src/tpm12/tpm_session.c:3090:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3091:9: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3094:8: branch_true: following 'true' branch (when 'returnCode == 0')...
libtpms-0.10.2/src/tpm12/tpm_session.c:3095:9: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3112:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3113:22: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3116:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3117:22: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3119:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3120:13: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3120:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3131:9: branch_false: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3150:26: call_function: calling 'TPM_AuthSessions_GetEntry' from 'TPM_Process_SaveContext'
libtpms-0.10.2/src/tpm12/tpm_session.c:3150:26: return_function: returning to 'TPM_Process_SaveContext' from 'TPM_AuthSessions_GetEntry'
libtpms-0.10.2/src/tpm12/tpm_session.c:3173:12: branch_false: following 'false' branch (when 'returnCode == 0')...
libtpms-0.10.2/src/tpm12/tpm_session.c:3180:9: branch_false: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3182:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3207:43: branch_false: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3214:16: branch_true: following 'true' branch (when 'returnCode == 0')...
libtpms-0.10.2/src/tpm12/tpm_session.c:3220:9: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3236:26: danger: use of uninitialized value 'tpm_transport_internal' here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def26]
libtpms-0.10.2/src/tpm12/tpm_session.c:3239:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'tpm_daa_session_data'
libtpms-0.10.2/src/tpm12/tpm_session.c:3026:12: enter_function: entry to 'TPM_Process_SaveContext'
libtpms-0.10.2/src/tpm12/tpm_session.c:3090:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3091:9: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3094:8: branch_true: following 'true' branch (when 'returnCode == 0')...
libtpms-0.10.2/src/tpm12/tpm_session.c:3095:9: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3112:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3113:22: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3116:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3117:22: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3119:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3120:13: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3120:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3131:9: branch_false: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3150:26: call_function: calling 'TPM_AuthSessions_GetEntry' from 'TPM_Process_SaveContext'
libtpms-0.10.2/src/tpm12/tpm_session.c:3150:26: return_function: returning to 'TPM_Process_SaveContext' from 'TPM_AuthSessions_GetEntry'
libtpms-0.10.2/src/tpm12/tpm_session.c:3173:12: branch_false: following 'false' branch (when 'returnCode == 0')...
libtpms-0.10.2/src/tpm12/tpm_session.c:3180:9: branch_false: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3182:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm12/tpm_session.c:3207:43: branch_false: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3214:16: branch_true: following 'true' branch (when 'returnCode == 0')...
libtpms-0.10.2/src/tpm12/tpm_session.c:3220:9: branch_true: ...to here
libtpms-0.10.2/src/tpm12/tpm_session.c:3239:26: danger: use of uninitialized value 'tpm_daa_session_data' here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
libtpms-0.10.2/src/tpm2/Object.c:229:12: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libtpms-0.10.2/src/tpm2/Object.c:226:1: enter_function: entry to 'GetHierarchy'
libtpms-0.10.2/src/tpm2/Object.c:229:12: call_function: calling 'HandleToObject' from 'GetHierarchy'
libtpms-0.10.2/src/tpm2/Object.c:229:12: return_function: returning to 'GetHierarchy' from 'HandleToObject'
libtpms-0.10.2/src/tpm2/Object.c:229:12: danger: dereference of NULL 'HandleToObject(handle)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:409:5: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:468:1: enter_function: entry to 'RuntimeCommandsPrint'
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:476:14: acquire_memory: allocated here
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:477:8: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:477:8: branch_false: ...to here
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:480:28: branch_true: following 'true' branch (when 'commandIndex != 129')...
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:482:14: branch_true: ...to here
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:482:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:485:9: branch_false: ...to here
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:495:23: call_function: calling 'RuntimeCommandsCheckEnabled' from 'RuntimeCommandsPrint'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:413:10: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:468:1: enter_function: entry to 'RuntimeCommandsPrint'
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:476:14: acquire_memory: allocated here
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:477:8: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:477:8: branch_false: ...to here
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:480:28: branch_true: following 'true' branch (when 'commandIndex != 129')...
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:482:14: branch_true: ...to here
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:482:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:485:9: branch_false: ...to here
libtpms-0.10.2/src/tpm2/RuntimeCommands.c:495:23: call_function: calling 'RuntimeCommandsCheckEnabled' from 'RuntimeCommandsPrint'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def30]
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:257:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'pos' where non-null expected
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:462:1: enter_function: entry to 'GetParametersFromJSON'
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:486:14: call_function: calling 'RuntimeProfileGetNameFromJSON' from 'GetParametersFromJSON'
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:486:14: return_function: returning to 'GetParametersFromJSON' from 'RuntimeProfileGetNameFromJSON'
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:487:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:490:8: branch_false: ...to here
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:490:8: branch_true: following 'true' branch (when 'jsonProfileIsFromUser != 0')...
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:492:18: branch_true: ...to here
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:492:18: call_function: calling 'GetStateFormatLevelFromJSON' from 'GetParametersFromJSON'
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:492:18: return_function: returning to 'GetParametersFromJSON' from 'GetStateFormatLevelFromJSON'
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:507:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:514:14: branch_false: ...to here
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:514:14: call_function: calling 'GetAlgorithmsProfileFromJSON' from 'GetParametersFromJSON'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:339:5: warning[-Wanalyzer-malloc-leak]: leak of 'profileName'
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:696:1: enter_function: entry to 'RuntimeProfileSet'
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:711:14: call_function: calling 'GetParametersFromJSON' from 'RuntimeProfileSet'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:339:5: warning[-Wanalyzer-malloc-leak]: leak of 'str'
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:462:1: enter_function: entry to 'GetParametersFromJSON'
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:486:14: call_function: calling 'RuntimeProfileGetNameFromJSON' from 'GetParametersFromJSON'
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:486:14: return_function: returning to 'GetParametersFromJSON' from 'RuntimeProfileGetNameFromJSON'
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:487:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:490:8: branch_false: ...to here
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:490:8: branch_true: following 'true' branch (when 'jsonProfileIsFromUser != 0')...
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:492:18: branch_true: ...to here
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:492:18: call_function: calling 'GetStateFormatLevelFromJSON' from 'GetParametersFromJSON'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def33]
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:397:9: warning[-Wanalyzer-null-argument]: use of NULL 'str' where non-null expected
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:462:1: enter_function: entry to 'GetParametersFromJSON'
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:486:14: call_function: calling 'RuntimeProfileGetNameFromJSON' from 'GetParametersFromJSON'
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:486:14: return_function: returning to 'GetParametersFromJSON' from 'RuntimeProfileGetNameFromJSON'
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:487:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:490:8: branch_false: ...to here
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:490:8: branch_true: following 'true' branch (when 'jsonProfileIsFromUser != 0')...
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:492:18: branch_true: ...to here
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:492:18: call_function: calling 'GetStateFormatLevelFromJSON' from 'GetParametersFromJSON'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:399:9: warning[-Wanalyzer-malloc-leak]: leak of 'str'
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:462:1: enter_function: entry to 'GetParametersFromJSON'
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:486:14: call_function: calling 'RuntimeProfileGetNameFromJSON' from 'GetParametersFromJSON'
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:486:14: return_function: returning to 'GetParametersFromJSON' from 'RuntimeProfileGetNameFromJSON'
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:487:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:490:8: branch_false: ...to here
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:490:8: branch_true: following 'true' branch (when 'jsonProfileIsFromUser != 0')...
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:492:18: branch_true: ...to here
libtpms-0.10.2/src/tpm2/RuntimeProfile.c:492:18: call_function: calling 'GetStateFormatLevelFromJSON' from 'GetParametersFromJSON'
Error: GCC_ANALYZER_WARNING (CWE-835): [#def35]
libtpms-0.10.2/src/tpm2/crypto/openssl/CryptCmac.c:130:11: warning[-Wanalyzer-infinite-loop]: infinite loop
libtpms-0.10.2/src/tpm2/crypto/openssl/CryptCmac.c:130:11: danger: infinite loop here
libtpms-0.10.2/src/tpm2/crypto/openssl/CryptCmac.c:130:11: branch_true: when 'size != 0': always following 'true' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/CryptCmac.c:132:16: branch_true: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/CryptCmac.c:132:15: branch_false: if it ever follows 'false' branch, it will always do so...
libtpms-0.10.2/src/tpm2/crypto/openssl/CryptCmac.c:132:15: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/CryptCmac.c:137:19: branch_true: when 'size != 0': always following 'true' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/CryptCmac.c:137:34: branch_true: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/CryptCmac.c:137:19: branch_false: if it ever follows 'false' branch, it will always do so...
libtpms-0.10.2/src/tpm2/crypto/openssl/CryptCmac.c:137:19: branch_false: ...to here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1164:11: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1119:8: enter_function: entry to 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1140:5: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1143:7: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: call_function: calling 'GetDigestNameByHashAlg' from 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: return_function: returning to 'OSSLCryptKDFe' from 'GetDigestNameByHashAlg'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1147:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1149:9: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1149:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1151:5: call_function: inlined call to 'strcpy' from 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1160:14: acquire_memory: allocated here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1161:8: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1164:11: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1164:11: throw: if 'EVP_KDF_fetch' throws an exception...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1164:11: danger: 'buffer' leaks here; was allocated at [(16)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1168:11: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1119:8: enter_function: entry to 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1140:5: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1143:7: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: call_function: calling 'GetDigestNameByHashAlg' from 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: return_function: returning to 'OSSLCryptKDFe' from 'GetDigestNameByHashAlg'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1147:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1149:9: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1149:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1151:5: call_function: inlined call to 'strcpy' from 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1160:14: acquire_memory: allocated here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1161:8: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1164:11: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1165:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1168:11: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1168:11: throw: if 'EVP_KDF_CTX_new' throws an exception...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1168:11: danger: 'buffer' leaks here; was allocated at [(16)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1183:12: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1119:8: enter_function: entry to 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1140:5: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1143:7: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: call_function: calling 'GetDigestNameByHashAlg' from 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: return_function: returning to 'OSSLCryptKDFe' from 'GetDigestNameByHashAlg'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1147:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1149:9: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1149:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1151:5: call_function: inlined call to 'strcpy' from 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1160:14: acquire_memory: allocated here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1161:8: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1164:11: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1165:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1168:11: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1169:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1172:8: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1172:8: branch_false: following 'false' branch (when 'label' is NULL)...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1176:8: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1176:8: branch_false: following 'false' branch (when 'partyUInfo' is NULL)...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1180:8: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1180:8: branch_false: following 'false' branch (when 'partyVInfo' is NULL)...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1183:12: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1183:12: throw: if 'OSSL_PARAM_construct_utf8_string' throws an exception...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1183:12: danger: 'buffer' leaks here; was allocated at [(16)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1185:12: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1119:8: enter_function: entry to 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1140:5: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1143:7: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: call_function: calling 'GetDigestNameByHashAlg' from 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: return_function: returning to 'OSSLCryptKDFe' from 'GetDigestNameByHashAlg'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1147:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1149:9: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1149:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1151:5: call_function: inlined call to 'strcpy' from 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1160:14: acquire_memory: allocated here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1161:8: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1164:11: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1165:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1168:11: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1169:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1172:8: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1172:8: branch_false: following 'false' branch (when 'label' is NULL)...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1176:8: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1176:8: branch_false: following 'false' branch (when 'partyUInfo' is NULL)...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1180:8: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1180:8: branch_false: following 'false' branch (when 'partyVInfo' is NULL)...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1183:12: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1185:12: throw: if 'OSSL_PARAM_construct_octet_string' throws an exception...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1185:12: danger: 'buffer' leaks here; was allocated at [(16)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1187:12: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1119:8: enter_function: entry to 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1140:5: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1143:7: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: call_function: calling 'GetDigestNameByHashAlg' from 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: return_function: returning to 'OSSLCryptKDFe' from 'GetDigestNameByHashAlg'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1147:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1149:9: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1149:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1151:5: call_function: inlined call to 'strcpy' from 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1160:14: acquire_memory: allocated here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1161:8: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1164:11: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1165:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1168:11: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1169:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1172:8: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1172:8: branch_false: following 'false' branch (when 'label' is NULL)...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1176:8: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1176:8: branch_false: following 'false' branch (when 'partyUInfo' is NULL)...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1180:8: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1180:8: branch_false: following 'false' branch (when 'partyVInfo' is NULL)...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1183:12: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1187:12: throw: if 'OSSL_PARAM_construct_octet_string' throws an exception...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1187:12: danger: 'buffer' leaks here; was allocated at [(16)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1200:5: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1119:8: enter_function: entry to 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1140:5: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1143:7: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: call_function: calling 'GetDigestNameByHashAlg' from 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: return_function: returning to 'OSSLCryptKDFe' from 'GetDigestNameByHashAlg'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1147:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1149:9: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1149:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1151:5: call_function: inlined call to 'strcpy' from 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1160:14: acquire_memory: allocated here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1161:8: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1164:11: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1200:5: throw: if 'EVP_KDF_CTX_free' throws an exception...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1200:5: danger: 'buffer' leaks here; was allocated at [(16)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1201:5: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1119:8: enter_function: entry to 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1140:5: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1143:7: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: call_function: calling 'GetDigestNameByHashAlg' from 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: return_function: returning to 'OSSLCryptKDFe' from 'GetDigestNameByHashAlg'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1147:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1149:9: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1149:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1151:5: call_function: inlined call to 'strcpy' from 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1160:14: acquire_memory: allocated here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1161:8: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1164:11: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1201:5: throw: if 'EVP_KDF_free' throws an exception...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1201:5: danger: 'buffer' leaks here; was allocated at [(16)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
libtpms-0.10.2/src/tpm_library.c:342:9: warning[-Wanalyzer-malloc-leak]: leak of 'res'
libtpms-0.10.2/src/tpm_library.c:324:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_library.c:328:35: branch_false: ...to here
libtpms-0.10.2/src/tpm_library.c:329:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_library.c:333:12: branch_false: ...to here
libtpms-0.10.2/src/tpm_library.c:336:11: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_library.c:337:8: branch_false: following 'false' branch (when 'res' is non-NULL)...
libtpms-0.10.2/src/tpm_library.c:342:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_library.c:342:9: throw: if 'BIO_read' throws an exception...
libtpms-0.10.2/src/tpm_library.c:342:9: danger: 'res' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def44]
libtpms-0.10.2/src/tpm_nvfile.c:214:15: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&filename, "rb")'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_resource: opened here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:214:15: throw: if 'fseek' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: danger: 'fopen(&filename, "rb")' leaks here; was opened at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
libtpms-0.10.2/src/tpm_nvfile.c:214:15: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&filename, "rb")'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:214:15: throw: if 'fseek' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: danger: 'fopen(&filename, "rb")' leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
libtpms-0.10.2/src/tpm_nvfile.c:216:13: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&filename, "rb")'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_resource: opened here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:215:12: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:216:13: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:216:13: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:216:13: danger: 'fopen(&filename, "rb")' leaks here; was opened at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
libtpms-0.10.2/src/tpm_nvfile.c:216:13: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&filename, "rb")'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:215:12: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:216:13: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:216:13: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:216:13: danger: 'fopen(&filename, "rb")' leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def48]
libtpms-0.10.2/src/tpm_nvfile.c:222:15: warning[-Wanalyzer-file-leak]: leak of FILE 'file'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_resource: opened here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:215:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:222:15: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:222:15: throw: if 'ftell' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:222:15: danger: 'file' leaks here; was opened at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
libtpms-0.10.2/src/tpm_nvfile.c:222:15: warning[-Wanalyzer-malloc-leak]: leak of 'file'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:215:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:222:15: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:222:15: throw: if 'ftell' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:222:15: danger: 'file' leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def50]
libtpms-0.10.2/src/tpm_nvfile.c:224:13: warning[-Wanalyzer-file-leak]: leak of FILE 'file'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_resource: opened here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:215:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:222:15: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:223:12: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:224:13: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:224:13: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:224:13: danger: 'file' leaks here; was opened at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
libtpms-0.10.2/src/tpm_nvfile.c:224:13: warning[-Wanalyzer-malloc-leak]: leak of 'file'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:215:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:222:15: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:223:12: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:224:13: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:224:13: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:224:13: danger: 'file' leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def52]
libtpms-0.10.2/src/tpm_nvfile.c:233:15: warning[-Wanalyzer-file-leak]: leak of FILE 'file'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_resource: opened here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:215:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:222:15: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:223:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:229:23: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:233:15: throw: if 'fseek' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:233:15: danger: 'file' leaks here; was opened at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
libtpms-0.10.2/src/tpm_nvfile.c:233:15: warning[-Wanalyzer-malloc-leak]: leak of 'file'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:215:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:222:15: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:223:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:229:23: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:233:15: throw: if 'fseek' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:233:15: danger: 'file' leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def54]
libtpms-0.10.2/src/tpm_nvfile.c:235:13: warning[-Wanalyzer-file-leak]: leak of FILE 'file'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_resource: opened here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:215:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:222:15: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:223:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:229:23: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:234:12: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:235:13: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:235:13: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:235:13: danger: 'file' leaks here; was opened at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
libtpms-0.10.2/src/tpm_nvfile.c:235:13: warning[-Wanalyzer-malloc-leak]: leak of 'file'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:215:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:222:15: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:223:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:229:23: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:234:12: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:235:13: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:235:13: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:235:13: danger: 'file' leaks here; was allocated at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def56]
libtpms-0.10.2/src/tpm_nvfile.c:242:9: warning[-Wanalyzer-file-leak]: leak of FILE 'file'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_resource: opened here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:215:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:222:15: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:223:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:229:23: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:234:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:241:22: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:241:9: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:242:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:242:9: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:242:9: danger: 'file' leaks here; was opened at [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
libtpms-0.10.2/src/tpm_nvfile.c:242:9: warning[-Wanalyzer-malloc-leak]: leak of 'file'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:215:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:222:15: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:223:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:229:23: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:234:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:241:22: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:241:9: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:242:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:242:9: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:242:9: danger: 'file' leaks here; was allocated at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
libtpms-0.10.2/src/tpm_nvfile.c:243:14: warning[-Wanalyzer-file-leak]: leak of FILE 'file'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_resource: opened here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:215:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:222:15: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:223:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:229:23: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:234:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:241:22: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:241:9: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:242:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:243:14: throw: if 'TPM_Malloc' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:243:14: danger: 'file' leaks here; was opened at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
libtpms-0.10.2/src/tpm_nvfile.c:243:14: warning[-Wanalyzer-malloc-leak]: leak of 'file'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:215:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:222:15: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:223:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:229:23: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:234:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:241:22: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:241:9: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:242:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:243:14: throw: if 'TPM_Malloc' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:243:14: danger: 'file' leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def60]
libtpms-0.10.2/src/tpm_nvfile.c:245:13: warning[-Wanalyzer-file-leak]: leak of FILE 'file'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_resource: opened here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:215:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:222:15: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:223:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:229:23: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:234:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:241:22: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:241:9: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:242:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:244:12: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:245:13: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:245:13: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:245:13: danger: 'file' leaks here; was opened at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
libtpms-0.10.2/src/tpm_nvfile.c:245:13: warning[-Wanalyzer-malloc-leak]: leak of 'file'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:215:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:221:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:222:15: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:223:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:229:23: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:234:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:241:22: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:241:9: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:242:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:244:12: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:245:13: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:245:13: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:245:13: danger: 'file' leaks here; was allocated at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
libtpms-0.10.2/src/tpm_nvfile.c:260:9: warning[-Wanalyzer-file-leak]: leak of FILE 'file'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_resource: opened here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:259:8: branch_true: following 'true' branch (when 'file' is non-NULL)...
libtpms-0.10.2/src/tpm_nvfile.c:260:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:260:9: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:260:9: danger: 'file' leaks here; was opened at [(9)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
libtpms-0.10.2/src/tpm_nvfile.c:260:9: warning[-Wanalyzer-malloc-leak]: leak of 'file'
libtpms-0.10.2/src/tpm_nvfile.c:173:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:175:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:175:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:178:11: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:182:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:188:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:197:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:198:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:199:16: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_nvfile.c:200:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:214:15: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:259:8: branch_true: following 'true' branch (when 'file' is non-NULL)...
libtpms-0.10.2/src/tpm_nvfile.c:260:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:260:9: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:260:9: danger: 'file' leaks here; was allocated at [(9)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def64]
libtpms-0.10.2/src/tpm_nvfile.c:325:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&filename, "wb")'
libtpms-0.10.2/src/tpm_nvfile.c:301:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:307:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:313:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:315:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:316:16: acquire_resource: opened here
libtpms-0.10.2/src/tpm_nvfile.c:317:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:325:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:325:9: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:325:9: danger: 'fopen(&filename, "wb")' leaks here; was opened at [(5)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
libtpms-0.10.2/src/tpm_nvfile.c:325:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&filename, "wb")'
libtpms-0.10.2/src/tpm_nvfile.c:301:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:307:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:313:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:315:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:316:16: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_nvfile.c:317:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:325:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:325:9: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:325:9: danger: 'fopen(&filename, "wb")' leaks here; was allocated at [(5)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def66]
libtpms-0.10.2/src/tpm_nvfile.c:326:15: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&filename, "wb")'
libtpms-0.10.2/src/tpm_nvfile.c:301:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:307:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:313:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:315:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:316:16: acquire_resource: opened here
libtpms-0.10.2/src/tpm_nvfile.c:317:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:325:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:327:12: branch_true: following 'true' branch (when 'length != lrc')...
libtpms-0.10.2/src/tpm_nvfile.c:328:13: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:328:13: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:326:15: danger: 'fopen(&filename, "wb")' leaks here; was opened at [(5)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
libtpms-0.10.2/src/tpm_nvfile.c:326:15: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&filename, "wb")'
libtpms-0.10.2/src/tpm_nvfile.c:301:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:307:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:313:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:315:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:316:16: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_nvfile.c:317:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:325:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:327:12: branch_true: following 'true' branch (when 'length != lrc')...
libtpms-0.10.2/src/tpm_nvfile.c:328:13: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:328:13: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:326:15: danger: 'fopen(&filename, "wb")' leaks here; was allocated at [(5)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def68]
libtpms-0.10.2/src/tpm_nvfile.c:334:9: warning[-Wanalyzer-file-leak]: leak of FILE 'file'
libtpms-0.10.2/src/tpm_nvfile.c:301:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:307:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:313:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:315:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:316:16: acquire_resource: opened here
libtpms-0.10.2/src/tpm_nvfile.c:317:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:325:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:333:8: branch_true: following 'true' branch (when 'file' is non-NULL)...
libtpms-0.10.2/src/tpm_nvfile.c:334:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:334:9: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:334:9: danger: 'file' leaks here; was opened at [(5)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
libtpms-0.10.2/src/tpm_nvfile.c:334:9: warning[-Wanalyzer-malloc-leak]: leak of 'file'
libtpms-0.10.2/src/tpm_nvfile.c:301:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:307:5: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:313:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_nvfile.c:315:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:316:16: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_nvfile.c:317:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_nvfile.c:325:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:333:8: branch_true: following 'true' branch (when 'file' is non-NULL)...
libtpms-0.10.2/src/tpm_nvfile.c:334:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_nvfile.c:334:9: throw: if 'TPMLIB_LogPrintf' throws an exception...
libtpms-0.10.2/src/tpm_nvfile.c:334:9: danger: 'file' leaks here; was allocated at [(5)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
libtpms-0.10.2/src/tpm_tpm12_interface.c:473:15: warning[-Wanalyzer-malloc-leak]: leak of 'tpm_state'
libtpms-0.10.2/src/tpm_tpm12_interface.c:436:19: enter_function: entry to 'TPM12_SetState'
libtpms-0.10.2/src/tpm_tpm12_interface.c:444:8: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
libtpms-0.10.2/src/tpm_tpm12_interface.c:449:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm12_interface.c:449:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm12_interface.c:453:18: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm12_interface.c:454:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm12_interface.c:462:9: call_function: inlined call to 'memcpy' from 'TPM12_SetState'
libtpms-0.10.2/src/tpm_tpm12_interface.c:464:21: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_tpm12_interface.c:465:12: branch_false: following 'false' branch (when 'tpm_state' is non-NULL)...
libtpms-0.10.2/src/tpm_tpm12_interface.c:472:8: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm12_interface.c:472:8: branch_true: following 'true' branch (when 'ret == 0')...
libtpms-0.10.2/src/tpm_tpm12_interface.c:473:15: branch_true: ...to here
libtpms-0.10.2/src/tpm_tpm12_interface.c:473:15: throw: if 'TPM_Global_Init' throws an exception...
libtpms-0.10.2/src/tpm_tpm12_interface.c:473:15: danger: 'tpm_state' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
libtpms-0.10.2/src/tpm_tpm2_interface.c:276:19: warning[-Wanalyzer-malloc-leak]: leak of 'permanent'
libtpms-0.10.2/src/tpm_tpm2_interface.c:777:19: enter_function: entry to 'TPM2_SetState'
libtpms-0.10.2/src/tpm_tpm2_interface.c:787:8: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
libtpms-0.10.2/src/tpm_tpm2_interface.c:792:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:792:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:796:18: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:797:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:803:9: call_function: inlined call to 'memcpy' from 'TPM2_SetState'
libtpms-0.10.2/src/tpm_tpm2_interface.c:807:8: branch_true: following 'true' branch (when 'ret == 0')...
libtpms-0.10.2/src/tpm_tpm2_interface.c:808:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:814:18: call_function: calling 'TPM2_GetState' from 'TPM2_SetState'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
libtpms-0.10.2/src/tpm_tpm2_interface.c:433:9: warning[-Wanalyzer-malloc-leak]: leak of 'strdup("{{%s%s%s}}")'
libtpms-0.10.2/src/tpm_tpm2_interface.c:430:20: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_tpm2_interface.c:430:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:433:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:433:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:435:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:436:13: throw: if 'TPMLIB_asprintf' throws an exception...
libtpms-0.10.2/src/tpm_tpm2_interface.c:433:9: danger: 'strdup("{{%s%s%s}}")' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
libtpms-0.10.2/src/tpm_tpm2_interface.c:443:32: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
libtpms-0.10.2/src/tpm_tpm2_interface.c:430:20: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_tpm2_interface.c:430:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:433:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:433:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:442:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:442:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:443:32: branch_true: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:443:32: throw: if '_plat__GetTpmFirmwareVersionHigh' throws an exception...
libtpms-0.10.2/src/tpm_tpm2_interface.c:443:32: danger: 'buffer' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
libtpms-0.10.2/src/tpm_tpm2_interface.c:447:13: warning[-Wanalyzer-malloc-leak]: leak of 'fmt'
libtpms-0.10.2/src/tpm_tpm2_interface.c:430:20: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_tpm2_interface.c:430:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:433:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:433:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:442:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:442:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:443:32: branch_true: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:447:13: throw: if 'TPMLIB_asprintf' throws an exception...
libtpms-0.10.2/src/tpm_tpm2_interface.c:447:13: danger: 'fmt' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
libtpms-0.10.2/src/tpm_tpm2_interface.c:449:13: warning[-Wanalyzer-malloc-leak]: leak of 'fmt'
libtpms-0.10.2/src/tpm_tpm2_interface.c:430:20: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_tpm2_interface.c:430:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:433:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:433:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:442:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:442:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:443:32: branch_true: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:447:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:449:13: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:449:13: branch_false: following 'false' branch (when 'printed == 0')...
libtpms-0.10.2/src/tpm_tpm2_interface.c:449:13: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:449:13: throw: if 'TPMLIB_asprintf' throws an exception...
libtpms-0.10.2/src/tpm_tpm2_interface.c:449:13: danger: 'fmt' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
libtpms-0.10.2/src/tpm_tpm2_interface.c:471:13: warning[-Wanalyzer-malloc-leak]: leak of 'fmt'
libtpms-0.10.2/src/tpm_tpm2_interface.c:361:14: enter_function: entry to 'TPM2_GetInfo'
libtpms-0.10.2/src/tpm_tpm2_interface.c:430:20: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_tpm2_interface.c:430:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:433:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:433:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:442:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:442:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:456:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:456:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:457:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:463:12: branch_false: following 'false' branch (when 'n <= 31')...
libtpms-0.10.2/src/tpm_tpm2_interface.c:465:13: call_function: inlined call to 'snprintf' from 'TPM2_GetInfo'
libtpms-0.10.2/src/tpm_tpm2_interface.c:469:12: branch_false: following 'false' branch (when 'n <= 15')...
libtpms-0.10.2/src/tpm_tpm2_interface.c:471:13: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:471:13: throw: if 'TPMLIB_asprintf' throws an exception...
libtpms-0.10.2/src/tpm_tpm2_interface.c:471:13: danger: 'fmt' leaks here; was allocated at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
libtpms-0.10.2/src/tpm_tpm2_interface.c:474:13: warning[-Wanalyzer-malloc-leak]: leak of 'fmt'
libtpms-0.10.2/src/tpm_tpm2_interface.c:361:14: enter_function: entry to 'TPM2_GetInfo'
libtpms-0.10.2/src/tpm_tpm2_interface.c:430:20: acquire_memory: allocated here
libtpms-0.10.2/src/tpm_tpm2_interface.c:430:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:433:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:433:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:442:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:442:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:456:9: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:456:8: branch_true: following 'true' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:457:9: branch_true: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:463:12: branch_false: following 'false' branch (when 'n <= 31')...
libtpms-0.10.2/src/tpm_tpm2_interface.c:465:13: call_function: inlined call to 'snprintf' from 'TPM2_GetInfo'
libtpms-0.10.2/src/tpm_tpm2_interface.c:469:12: branch_false: following 'false' branch (when 'n <= 15')...
libtpms-0.10.2/src/tpm_tpm2_interface.c:471:13: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:471:12: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm_tpm2_interface.c:474:13: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:474:13: branch_false: following 'false' branch (when 'printed == 0')...
libtpms-0.10.2/src/tpm_tpm2_interface.c:474:13: branch_false: ...to here
libtpms-0.10.2/src/tpm_tpm2_interface.c:474:13: throw: if 'TPMLIB_asprintf' throws an exception...
libtpms-0.10.2/src/tpm_tpm2_interface.c:474:13: danger: 'fmt' leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-123.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.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libtpms-0.10.2-2.fc44 |
| store-results-to | /tmp/tmpn5e_ftes/libtpms-0.10.2-2.fc44.tar.xz |
| time-created | 2026-01-08 19:13:59 |
| time-finished | 2026-01-08 19:16:21 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpn5e_ftes/libtpms-0.10.2-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpn5e_ftes/libtpms-0.10.2-2.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |