Skip to content

Auto-port 5.0: Epoll: Add null checks for safety reasons#16462

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

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

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #16454 to 5.0
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 5.0.0.Final milestone Mar 13, 2026
@chrisvest chrisvest enabled auto-merge (squash) March 13, 2026 20:39
@chrisvest chrisvest merged commit 4e6807c into 5.0 Mar 14, 2026
21 of 23 checks passed
@chrisvest chrisvest deleted the auto-port-pr-16454-to-5.0 branch March 14, 2026 01:28
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