Repository navigation
Conversation
…ding libHttpClient always stores into *bufferSize before returning, including E_PENDING (typically 0). Leaving the caller's out-parameter untouched let a stale sentinel survive until GetResult. Assisted-by: Cursor Auto (Composer) Co-authored-by: Cursor <cursoragent@cursor.com>
|
Independent verification on current Machine: Windows 11, Ryzen 9 7900X; Rust stable MSVC, debug.
AI use: test runs by Devin (Cognition, SWE-2); no code changes. |
libHttpClient stores *bufferUsed before returning E_PENDING (and on failure HRESULTs). Leaving the out-parameter untouched kept a caller's sentinel. Same class as GetResultSize (xcl-dev#1201). Assisted-by: Cursor Auto (Composer) Co-authored-by: Cursor <cursoragent@cursor.com>
|
Regression run of Against the limits in CONTRIBUTING.md: 101 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
XAsyncGetResultSizereturnedE_PENDINGwithout writing*size. libHttpClient always writes*bufferSizefirst (0 while pending), so a caller's leftover sentinel could be mistaken for a real size.No open issue tracked this; checked that open XAsync PRs (#1188, #1176, #670, …) do not cover GetResultSize's pending path.
What is in it
crates/xcl/src/hle/xgameruntime/xasync.rs: write*size = 0on pending (and on finished blocks); unit test with a0xDEADsentinelTested
rustc 1.97.1MSVC debug8b57a0d(clean tree)cargo test -p xcl --lib xasync::tests -- --test-threads=4: 15 passed, 0 failed, 0 ignoredRegression run
crates/xcl/srcoutside tests changed.Not tested
cargo test --workspacescripts/smoke.ps1on a retail Series titleAI use
*bufferSizecontract, implemented the fix and test, opened this draft PR. Exact underlying model name not disclosed to the agent.