Skip to content

Auto-port 5.0: SslHandler: Fix possible buffer leak when an OOME is thrown during allocation - #17077

Merged
normanmaurer merged 1 commit into
5.0from
auto-port-pr-17059-to-5.0
Jul 10, 2026
Merged

normanmaurer merged 1 commit into
5.0from
auto-port-pr-17059-to-5.0

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #17059 to 5.0
Cherry-picked commit: 64ac5ab


Motivation:

When SslHandler throws an OOME during allocating a new out buffer we need to ensure we still release the original buffer to not leak.

Modifications:

  • Catch Throwable and rethrow after releasing

Result:

Fixes #17057

…location (#17059)

Motivation:

When SslHandler throws an OOME during allocating a new out buffer we
need to ensure we still release the original buffer to not leak.

Modifications:

- Catch Throwable and rethrow after releasing

Result:

Fixes #17057

(cherry picked from commit 64ac5ab)
@normanmaurer normanmaurer added this to the 5.0.0.Final milestone Jul 9, 2026
@normanmaurer
normanmaurer merged commit ebe7b7e into 5.0 Jul 10, 2026
12 of 13 checks passed
@normanmaurer
normanmaurer deleted the auto-port-pr-17059-to-5.0 branch July 10, 2026 03:39
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