WSAConnectByList reads at most 64 candidates and refuses a negative c… #521
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!521
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-521"
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?
@pug205gti6 on GitHub · 2026-11-25 01:58 UTC · original
pug205gti6:pr/466-wsaconnect→main· +95 −9 · 1 files · 1 commits · open…ount
The count of a SOCKET_ADDRESS_LIST came from the title and became the length of a slice with no upper bound, so a count past the entries present read memory after the list as addresses (#428). A count below zero or above 64 now fails with WSAEINVAL before anything after the count is read and without the host seeing the list; the entries are read one by one with read_unaligned instead of through a slice.
@Revens2 on GitHub · 2026-11-25 07:36 UTC · original
Duplicate of #466: @Frtuchinno opened this patch 41 minutes earlier, and
gh pr diffreturns the same bytes for both (+95/-9 on 1 file(s), same title).Please continue in #466 so the review history and any test data stay in one place.
Thanks.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.