Skip to content

ffi: don't unecessarily use a slice when constructing SockAddr#2475

Merged
LPardue merged 1 commit into
masterfrom
fix-sockaddr-soundness
May 13, 2026
Merged

ffi: don't unecessarily use a slice when constructing SockAddr#2475
LPardue merged 1 commit into
masterfrom
fix-sockaddr-soundness

Conversation

@LPardue
Copy link
Copy Markdown
Contributor

@LPardue LPardue commented May 13, 2026

The optional_std_addr_from_c function only accepts a single sockaddr.
We can avoid potential UB caused by using a slice (as in the prior version)
by constructing directly.

@LPardue LPardue requested a review from a team as a code owner May 13, 2026 13:54
The optional_std_addr_from_c function only accepts a single sockaddr.
We can avoid potential UB caused by using a slice (as in the prior version)
by constructing directly.
@LPardue LPardue force-pushed the fix-sockaddr-soundness branch from 83dbdd1 to 46513a5 Compare May 13, 2026 14:43
@LPardue LPardue merged commit 1f338f4 into master May 13, 2026
38 checks passed
@LPardue LPardue deleted the fix-sockaddr-soundness branch May 13, 2026 15:36
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