Skip to content

Fix memory leak in SoftHSM::UnwrapKeySym.#677

Merged
halderen merged 1 commit into
softhsm:developfrom
dcoombs:develop
Aug 2, 2023
Merged

Fix memory leak in SoftHSM::UnwrapKeySym.#677
halderen merged 1 commit into
softhsm:developfrom
dcoombs:develop

Conversation

@dcoombs
Copy link
Copy Markdown
Contributor

@dcoombs dcoombs commented May 30, 2022

When using C_UnwrapKey with CKM_xxx_CBC_PAD, the unwrapping key and
cipher objects were not being recycled on success.

When using C_UnwrapKey with CKM_xxx_CBC_PAD, the unwrapping key and
cipher objects were not being recycled on success.
@dcoombs
Copy link
Copy Markdown
Contributor Author

dcoombs commented May 30, 2022

(The appveyor failures seem to be about downloading openssl, not my fault :) )

@rijswijk
Copy link
Copy Markdown
Contributor

Thanks for the fix, I checked the code, there is indeed a missing recycle code path. @halderen I think this is good to merge, but please check.

@halderen halderen merged commit f4661af into softhsm:develop Aug 2, 2023
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.

3 participants