WSAConnectByList reads at most 64 candidates and refuses a negative c… #521
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by pug205gti6 on 2026-11-25T01:58:25Z.
…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.
Imported from fxceless/victory-fork. Originally posted by Revens2 on 2026-11-25T07:36:33Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.