Skip to content

Validate UDP response headers instead of panicking on bad sequence numbers - #186

Merged
aisk merged 1 commit into
masterfrom
fix-udp-datagram-underflow
Sep 8, 2026
Merged

Validate UDP response headers instead of panicking on bad sequence numbers#186
aisk merged 1 commit into
masterfrom
fix-udp-datagram-underflow

Conversation

@aisk

@aisk aisk commented Sep 8, 2026

Copy link
Copy Markdown
Owner

UdpStream::flush trusted the datagram count and sequence numbers from the server, so a zero count underflowed and an out of range or duplicated sequence number panicked on a missing map key, both now return an InvalidData error.

@aisk
aisk merged commit 2666582 into master Sep 8, 2026
1 check passed
@aisk
aisk deleted the fix-udp-datagram-underflow branch September 8, 2026 15:29
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.

1 participant