HLE: reject null handle in WinHttpSetOption proxy path and expand net.rs tests (1 -> 17) #1213

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

@⁠geiyiliyabumo on GitHub · 2026-11-24 16:26 UTC · original
geiyiliyabumo:test/hle-net-audit → main · +1287 −83 · 1 files · 1 commits · open

Summary

Closes #1141

Full verification details and change notes are documented in #1141 (commit d30bed4, based on main ffe310e).

 crates/victory-hle/src/modules/net.rs | 1370 +++++++++++++++++++++++++++++++--
 1 file changed, 1287 insertions(+), 83 deletions(-)

Verification (Windows 11 x64 MSVC)

  • rustfmt --edition 2024 --check on edited files: PASS
  • cargo xtask policy: PASS (zero game files/data)
  • cargo clippy --all-targets --locked -- -D warnings (default + --features diagnostics where applicable): PASS
  • Targeted & crate unit/GPU tests: PASS

AI-assisted; synthetic tests only, no game files.

**@⁠geiyiliyabumo** on GitHub · 2026-11-24 16:26 UTC · [original](https://github.com/Marvisak/VIctory/pull/1213) `geiyiliyabumo:test/hle-net-audit` → `main` · +1287 −83 · 1 files · 1 commits · open ### Summary Closes #1141 Full verification details and change notes are documented in #1141 (commit `d30bed4`, based on `main` `ffe310e`). ```text crates/victory-hle/src/modules/net.rs | 1370 +++++++++++++++++++++++++++++++-- 1 file changed, 1287 insertions(+), 83 deletions(-) ``` ### Verification (Windows 11 x64 MSVC) - `rustfmt --edition 2024 --check` on edited files: **PASS** - `cargo xtask policy`: **PASS** (zero game files/data) - `cargo clippy --all-targets --locked -- -D warnings` (default + `--features diagnostics` where applicable): **PASS** - Targeted & crate unit/GPU tests: **PASS** *AI-assisted; synthetic tests only, no game files.*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:23:56 +00:00
Author
Owner

@⁠Zipettte on GitHub · 2026-11-24 17:59 UTC · original

Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at d30bed4: cargo test -p victory-hle passes, 111 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

**@⁠Zipettte** on GitHub · 2026-11-24 17:59 UTC · [original](https://github.com/Marvisak/VIctory/pull/1213#issuecomment-7140009538) Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at d30bed4: `cargo test -p victory-hle` passes, 111 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:18 UTC · original · edited 2026-11-25 02:25 UTC

Automated triage for the maintainers.

Thanks for the rebase. The only change outside the tests is in crates/victory-hle/src/modules/net.rs WinHttpSetOption: a WINHTTP_OPTION_PROXY call with a null handle is no longer swallowed but now goes to the host's WinHttpSetOption. The net module is offline by design, and its proxy guard exists so that no proxy setting from the title ever reaches the host. The repo rules close any change that loosens a guard in net, even a narrow one, and this change fixes no observed bug: nothing shows the title making this call or the current answer (1) causing trouble. The remaining ~1,200 lines rewrite and expand the module's tests, most of which open real loopback sockets and WinHTTP sessions. As a test-only PR that leaves the guards as they are, that part could be filed again separately, preferably in smaller pieces.

This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the triage: proposed close label. CI: passing.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:18 UTC · [original](https://github.com/Marvisak/VIctory/pull/1213#issuecomment-7149422187) · edited 2026-11-25 02:25 UTC <!-- victory-triage v1 head=0fc724aeceb3adca40bc4d80ade9e4a553545cdd verdict=proposed-close at=2026-11-25T02:20:29Z --> Automated triage for the maintainers. Thanks for the rebase. The only change outside the tests is in `crates/victory-hle/src/modules/net.rs` `WinHttpSetOption`: a `WINHTTP_OPTION_PROXY` call with a null handle is no longer swallowed but now goes to the host's `WinHttpSetOption`. The `net` module is offline by design, and its proxy guard exists so that no proxy setting from the title ever reaches the host. The repo rules close any change that loosens a guard in `net`, even a narrow one, and this change fixes no observed bug: nothing shows the title making this call or the current answer (1) causing trouble. The remaining ~1,200 lines rewrite and expand the module's tests, most of which open real loopback sockets and WinHTTP sessions. As a test-only PR that leaves the guards as they are, that part could be filed again separately, preferably in smaller pieces. This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the `triage: proposed close` label. CI: passing. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠geiyiliyabumo on GitHub · 2026-11-25 02:10 UTC · original

Rebased cleanly onto \main\ (\ccfb029). \cargo test -p victory-hle --locked modules::net::tests, \cargo clippy -p victory-hle --all-targets --locked -- -D warnings, and \cargo xtask policy\ all pass.

**@⁠geiyiliyabumo** on GitHub · 2026-11-25 02:10 UTC · [original](https://github.com/Marvisak/VIctory/pull/1213#issuecomment-7150408751) Rebased cleanly onto \main\ (\ccfb029\). \cargo test -p victory-hle --locked modules::net::tests\, \cargo clippy -p victory-hle --all-targets --locked -- -D warnings\, and \cargo xtask policy\ all pass.
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/1213/head:github-bot/gh-1213'
git switch 'github-bot/gh-1213'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1213'
git switch 'github-bot/gh-1213'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1213'
git switch 'github-bot/gh-1213'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1213'
git switch 'main'
git merge --squash 'github-bot/gh-1213'
git switch 'main'
git merge --ff-only 'github-bot/gh-1213'
git switch 'main'
git merge 'github-bot/gh-1213'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1213
No description provided.