Skip to content

Auto-port 4.1: Epoll: Add null checks for safety reasons#16463

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

Auto-port 4.1: Epoll: Add null checks for safety reasons#16463
chrisvest merged 1 commit into
4.1from
auto-port-pr-16454-to-4.1

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #16454 to 4.1
Cherry-picked commit: 342c1c0


Motivation:

We did not check for NULL when calling GetObjectArrayElement which could be returned if we try to access an element that is out of bounds. While this should never happen we should better still guard against it to make the code less error-prone.

Modifications:

Add NULL check

Result:

More correct code

Motivation:

We did not check for NULL when calling GetObjectArrayElement which could
be returned if we try to access an element that is out of bounds. While
this should never happen we should better still guard against it to make
the code less error-prone.

Modifications:

Add NULL check

Result:

More correct code

(cherry picked from commit 342c1c0)
@chrisvest chrisvest added this to the 4.1.132.Final milestone Mar 13, 2026
@chrisvest chrisvest enabled auto-merge (squash) March 13, 2026 20:39
@chrisvest chrisvest merged commit 19935c3 into 4.1 Mar 13, 2026
18 checks passed
@chrisvest chrisvest deleted the auto-port-pr-16454-to-4.1 branch March 13, 2026 23:06
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.

3 participants