net: bound the title's count in WSAConnectByList (#428) #472
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!472
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/472/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@JamesCicada on GitHub · 2026-11-25 01:20 UTC · original
JamesCicada:fix/428-connect-by-list-bound→main· +81 −9 · 1 files · 1 commits · closed without mergingThe shim built a slice from the SOCKET_ADDRESS_LIST's own count, with no upper bound, before vetting the entries: a list that claimed more entries than it held made the walk read past it.
A count over 64 (our limit; a title passes the few addresses one name resolved to) is now refused with WSAEINVAL before any entry is read. Entries are read one at a time, unaligned, stopping at the first one that is not loopback, and no slice is made over title memory.
Tests: a mixed loopback/off-machine list is still refused with WSAENETUNREACH; a count of 65, and i32::MAX over one real entry, are refused with WSAEINVAL.
@kaayzouee on GitHub · 2026-11-25 01:41 UTC · original
Is this a duplicate of #466?
Both bound the WSAConnectByList count to 64 and read candidates individually.
This is an automated message. If you believe it is incorrect, please reply with the relevant technical differences.
Pull request closed