Refuse a WSAConnectByList count the list cannot back #527

Open
github-bot wants to merge 1 commit from github-bot/gh-527 into main AGit
Owner

@⁠pug205gti6 on GitHub · 2026-11-25 01:59 UTC · original
pug205gti6:pr/476-hle-net → main · +42 −0 · 1 files · 1 commits · open

The count became a &[SocketAddress] of that length before any address was vetted, so one real 16-byte entry with iAddressCount = 0x7FFFFFFF made a ~34 GB slice and read past the allocation as pointers and lengths. A SOCKET_ADDRESS_LIST carries no size to check the count against, so more candidates than any title offers (64) are now refused with WSAEINVAL instead of walked: the call fails closed like every other vetted path in this module, and honest lists still reach the host unchanged.

Fixes #428.

**@⁠pug205gti6** on GitHub · 2026-11-25 01:59 UTC · [original](https://github.com/fxceless/victory-fork/pull/527) `pug205gti6:pr/476-hle-net` → `main` · +42 −0 · 1 files · 1 commits · open The count became a &[SocketAddress] of that length before any address was vetted, so one real 16-byte entry with iAddressCount = 0x7FFFFFFF made a ~34 GB slice and read past the allocation as pointers and lengths. A SOCKET_ADDRESS_LIST carries no size to check the count against, so more candidates than any title offers (64) are now refused with WSAEINVAL instead of walked: the call fails closed like every other vetted path in this module, and honest lists still reach the host unchanged. Fixes #428.
The count became a &[SocketAddress] of that length before any address
was vetted, so one real 16-byte entry with iAddressCount = 0x7FFFFFFF
made a ~34 GB slice and read past the allocation as pointers and
lengths. A SOCKET_ADDRESS_LIST carries no size to check the count
against, so more candidates than any title offers (64) are now refused
with WSAEINVAL instead of walked: the call fails closed like every
other vetted path in this module, and honest lists still reach the
host unchanged.

Fixes #428.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:45:28 +00:00
Author
Owner

@⁠Headache3318 on GitHub · 2026-11-25 09:10 UTC · original

Independent verification: PR #527 merges cleanly onto main (310c6eb → 2cd6cd2), no conflicts. Build: success (10.06s). Tests: fail due to pre-existing Linux build issues in victory-loader (windows_sys/console_insn not cfg-gated) and victory-gpu — unrelated to PR #527. PR contains 200+ stacked commits from multiple forks; new content is net.rs (+42 lines). PR introduces no new failures. Machine: Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04, Proton, AI-assisted.

**@⁠Headache3318** on GitHub · 2026-11-25 09:10 UTC · [original](https://github.com/fxceless/victory-fork/pull/527#issuecomment-7157971669) Independent verification: PR #527 merges cleanly onto main (310c6eb → 2cd6cd2), no conflicts. Build: success (10.06s). Tests: fail due to pre-existing Linux build issues in victory-loader (windows_sys/console_insn not cfg-gated) and victory-gpu — unrelated to PR #527. PR contains 200+ stacked commits from multiple forks; new content is net.rs (+42 lines). PR introduces no new failures. Machine: Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04, Proton, AI-assisted.
Author
Owner

@⁠Headache3318 on GitHub · 2026-11-25 09:23 UTC · original

Independent verification: PR #527 merges cleanly onto main (310c6eb), no conflicts. Build: success (10.06s). Tests: fail due to pre-existing Linux build issues in victory-loader (windows_sys/console_insn not cfg-gated) and victory-gpu — unrelated to PR #527. PR contains 200+ stacked commits from multiple forks; new content is net.rs (+42 lines). PR introduces no new failures. Machine: Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04, Proton, AI-assisted.

**@⁠Headache3318** on GitHub · 2026-11-25 09:23 UTC · [original](https://github.com/fxceless/victory-fork/pull/527#issuecomment-7158275009) Independent verification: PR #527 merges cleanly onto main (310c6eb), no conflicts. Build: success (10.06s). Tests: fail due to pre-existing Linux build issues in victory-loader (windows_sys/console_insn not cfg-gated) and victory-gpu — unrelated to PR #527. PR contains 200+ stacked commits from multiple forks; new content is net.rs (+42 lines). PR introduces no new failures. Machine: Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04, Proton, AI-assisted.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/527/head:github-bot/gh-527'
git switch 'github-bot/gh-527'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-527'
git switch 'github-bot/gh-527'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-527'
git switch 'github-bot/gh-527'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-527'
git switch 'main'
git merge --squash 'github-bot/gh-527'
git switch 'main'
git merge --ff-only 'github-bot/gh-527'
git switch 'main'
git merge 'github-bot/gh-527'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.