Skip to content

Auto-port 4.1: Native transports: Fix undefined behaviour when GetStringUTFChars fails while open FD#16456

Merged
normanmaurer merged 1 commit into
4.1from
auto-port-pr-16450-to-4.1
Mar 13, 2026
Merged

Auto-port 4.1: Native transports: Fix undefined behaviour when GetStringUTFChars fails while open FD#16456
normanmaurer merged 1 commit into
4.1from
auto-port-pr-16450-to-4.1

Conversation

@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port of #16450 to 4.1
Cherry-picked commit: 8996631


Motivation:

We need to handle the case of GetStringUTFChars returning NULL as otherwise we run into undefined behavior which will most likely cause a crash

Modifications:

Return -ENOMEM in case of failure

Result:

No more undef behavior

…ls while open FD (#16450)

Motivation:

We need to handle the case of GetStringUTFChars returning NULL as
otherwise we run into undefined behavior which will most likely cause a
crash

Modifications:

Return -ENOMEM in case of failure

Result:

No more undef behavior

(cherry picked from commit 8996631)
@normanmaurer normanmaurer added this to the 4.1.132.Final milestone Mar 13, 2026
@normanmaurer normanmaurer merged commit cbd7bb4 into 4.1 Mar 13, 2026
19 checks passed
@normanmaurer normanmaurer deleted the auto-port-pr-16450-to-4.1 branch March 13, 2026 15:04
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