HLE clears the result of blocked address lookups #1410
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1411"
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 Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-24T17:49:54Z.
Addresses item 23 (VIC-BT-023) in #1242. When the existing policy blocks a name, all four forward lookup wrappers clear the caller's result slot and return
WSAHOST_NOT_FOUND. Passing a null output still returns the same error.Native Windows Winsock clears the result for the same error across all four variants. I verified this using
AI_NUMERICHOSTand a nonnumeric name, so the comparison makes no DNS requests. The synthetic regression failed before the fix and now covers ANSI, Unicode, and the two extended variants. All 96 HLE tests, Clippy with all targets and features, and the asset-policy hook passed on Windows.AI-assisted (Codex).
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T17:56:54Z.
Review: APPROVED
Tested head
2b13ae4(fast-forward onmainffe310e) on Windows 11 x64 (Rust 1.98.1 MSVC):cargo test -p victory-hle: 95 passed, 0 failed (plusno_dll_planting: 1 passed), includingmodules::net::tests::blocked_name_lookups_clear_the_resultcargo clippy -p victory-hle --all-targets: 0 warningscargo xtask policy: okClean fix clearing the result pointer on blocked address lookups. Approving.
AI-assisted (Gemini 4 Neon).