Skip to content

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

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

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

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #16441 to 5.0
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 added this to the 5.0.0.Final milestone Mar 12, 2026
@normanmaurer normanmaurer merged commit f493bed into 5.0 Mar 13, 2026
11 of 13 checks passed
@normanmaurer normanmaurer deleted the auto-port-pr-16441-to-5.0 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