Skip to content

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

Merged
normanmaurer merged 3 commits into
4.1from
auto-port-pr-17059-to-4.1
Jul 10, 2026
Merged

normanmaurer merged 3 commits into
4.1from
auto-port-pr-17059-to-4.1

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #17059 to 4.1
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 merged commit 63e69df into 4.1 Jul 10, 2026
18 of 19 checks passed
@normanmaurer
normanmaurer deleted the auto-port-pr-17059-to-4.1 branch July 10, 2026 03:38
@normanmaurer normanmaurer added this to the 4.1.137.Final milestone Jul 10, 2026
lltopk pushed a commit to lltopk/netty that referenced this pull request Oct 24, 2026
…hrown during allocation (netty#17078)

Auto-port of netty#17059 to 4.1
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 netty#17057

---------

Co-authored-by: Norman Maurer <[email protected]>
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