Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close HPKERecipientContext when OHttpCryptoReceiver.Builder.build() t… #34

Merged
merged 1 commit into from Dec 27, 2023

Conversation

normanmaurer
Copy link
Member

…hrows

Motivation:

It was possible to leak the HPKERecipientContext when the OHttpCryptoReceiver.Builder.build() method did throw.

Modifications:

Catch Throwable and only rethrow after HPKERecipientContext.close() was called.

Result:

Fix possible leak in case of error

…hrows

Motivation:

It was possible to leak the HPKERecipientContext when the OHttpCryptoReceiver.Builder.build() method did throw.

Modifications:

Catch Throwable and only rethrow after HPKERecipientContext.close() was called.

Result:

Fix possible leak in case of error
@normanmaurer normanmaurer added this to the 0.0.4.Final milestone Dec 27, 2023
@normanmaurer normanmaurer merged commit a4175f0 into main Dec 27, 2023
9 checks passed
@normanmaurer normanmaurer deleted the ctx_leak branch January 12, 2024 14:43
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.

None yet

1 participant