Skip to content

Auto-port 4.1: Kqueue: Fix undefined behaviour when GetStringUTFChars fails and SO_ACCEPTFILTER is supported#16448

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

Auto-port 4.1: Kqueue: Fix undefined behaviour when GetStringUTFChars fails and SO_ACCEPTFILTER is supported#16448
normanmaurer merged 1 commit into
4.1from
auto-port-pr-16441-to-4.1

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #16441 to 4.1
Cherry-picked commit: 38eee8d


Motivation:

We did miss some NULL checks which could cause undefined behaviour which most likely would cause a crash. As this only happens when SO_ACCEPTFILTER is supported and when GetStringUTFChars fails it was not possible to reach this on MacOS.

Modifications:

Add missing NULL checks

Result:

No more undef behaviour

…CCEPTFILTER is supported (#16441)

Motivation:

We did miss some NULL checks which could cause undefined behaviour which
most likely would cause a crash. As this only happens when
SO_ACCEPTFILTER is supported and when GetStringUTFChars fails it was not
possible to reach this on MacOS.

Modifications:

Add missing NULL checks

Result:

No more undef behaviour

(cherry picked from commit 38eee8d)
@normanmaurer normanmaurer merged commit 2fd4d28 into 4.1 Mar 13, 2026
17 of 19 checks passed
@normanmaurer normanmaurer deleted the auto-port-pr-16441-to-4.1 branch March 13, 2026 08:22
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