Skip to content

fix(udp/unix): don't panic on unknown address family - #2387

Merged
gretchenfrage merged 1 commit into
quinn-rs:mainfrom
mxinden:ipvx
Sep 14, 2025
Merged

fix(udp/unix): don't panic on unknown address family#2387
gretchenfrage merged 1 commit into
quinn-rs:mainfrom
mxinden:ipvx

Conversation

@mxinden

@mxinden mxinden commented Sep 14, 2025

Copy link
Copy Markdown
Collaborator

We have reports that on some MacOS 10.15 systems, recvmsg can return a non IPv4 or IPv4 RecvMeta, potentially due to uninitialized memory. Instead of panicking on an unknown address family, simply return an IO error.

Fixes #2383.

We have reports that on some MacOS 10.15 systems, recvmsg can return a non IPv4
or IPv4 `RecvMeta`, potentially due to uninitialized memory. Instead of
panicking on an unknown address family, simply return an IO error.

Fixes quinn-rs#2383.
@mxinden
mxinden marked this pull request as ready for review September 14, 2025 14:30
@gretchenfrage
gretchenfrage added this pull request to the merge queue Sep 14, 2025
Merged via the queue into quinn-rs:main with commit c1c5686 Sep 14, 2025
20 checks passed
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.

udp: OSX10.15 crash in decode_recv expecting IPv4 or v6

3 participants