net: bound the title's count in WSAConnectByList (#428) #472
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/472"
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?
Imported from fxceless/victory-fork. Originally posted by JamesCicada on 2026-11-25T01:20:17Z.
The 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.
Imported from fxceless/victory-fork. Originally posted by kaayzouee on 2026-11-25T01:41:19Z.
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