Skip to content

Conversation

@iorlov-dev
Copy link

If one of the TPM2 functions called from bench_sym_hash returns an error, the exit path won't unload the hash handle leaving it dangling. This could eventually lead to OOM TPM issues (like TPM2_RC_OBJECT_MEMORY).

Unload the handle on the exit path if rc is non-zero.

If one of the TPM2 functions called from bench_sym_hash returns an
error, the exit path won't unload the hash handle leaving it dangling.
This could eventually lead to OOM TPM issues (like
TPM2_RC_OBJECT_MEMORY).

Unload the handle on the exit path if rc is non-zero.

Signed-off-by: Ivan Orlov <[email protected]>
@dgarske
Copy link
Contributor

dgarske commented May 2, 2025

Thank you @iorlov-dev for this report! As this is a small fix, I've treated this as a bug report and put up a fix here: #412
Can you tell us more about your project and use case for wolfTPM?
Thanks, David Garske, wolfSSL

@dgarske dgarske closed this May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants