Skip to content

IoUring: Add NULL check for GetStringUTFChars(...)#16509

Merged
normanmaurer merged 1 commit into
4.2from
uring_null_check
Mar 18, 2026
Merged

IoUring: Add NULL check for GetStringUTFChars(...)#16509
normanmaurer merged 1 commit into
4.2from
uring_null_check

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

Motivation:

We need to check if NULL is returned by GetStringUTFChars(...) as otherwise we might call open(...) with NULL which is undefined behavior

Modifications:

Add NULL check

Result:

No undefined behavior

Motivation:

We need to check if NULL is returned by GetStringUTFChars(...) as otherwise we might call open(...) with NULL which is undefined behavior

Modifications:

Add NULL check

Result:

No undefined behavior
@normanmaurer normanmaurer added this to the 4.2.11.Final milestone Mar 17, 2026
@normanmaurer normanmaurer added the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Mar 17, 2026
@normanmaurer normanmaurer merged commit 1f7f5c9 into 4.2 Mar 18, 2026
37 of 38 checks passed
@normanmaurer normanmaurer deleted the uring_null_check branch March 18, 2026 07:13
@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port PR for 5.0: #16518

netty-project-bot pushed a commit that referenced this pull request Mar 18, 2026
Motivation:

We need to check if NULL is returned by GetStringUTFChars(...) as
otherwise we might call open(...) with NULL which is undefined behavior

Modifications:

Add NULL check

Result:

No undefined behavior

(cherry picked from commit 1f7f5c9)
@github-actions github-actions Bot removed the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Mar 18, 2026
normanmaurer added a commit that referenced this pull request Mar 18, 2026
…6518)

Auto-port of #16509 to 5.0
Cherry-picked commit: 1f7f5c9

---
Motivation:

We need to check if NULL is returned by GetStringUTFChars(...) as
otherwise we might call open(...) with NULL which is undefined behavior

Modifications:

Add NULL check

Result:

No undefined behavior

Co-authored-by: Norman Maurer <norman_maurer@apple.com>
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