fix: report save enumeration failures #3657
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3657
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3657"
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?
@igorevv on GitHub · 2026-11-30 03:07 UTC · original
igorevv:fix/xgamesave-enumeration-errors→main· +32 −8 · 3 files · 7 commits · openfix: report save enumeration failures
Branch:
fix/xgamesave-enumeration-errorsCommit:
77f08437Summary
Make blob enumeration report corrupted or unreadable saves as
NO_ACCESSinstead of returningS_OKwith no blobs.Problem
enumerate_blobs()loaded the current save version with:This discarded both
InvalidDataand host I/O errors. A container with a malformed manifest or an access failure was therefore indistinguishable from an empty container: enumeration returnedS_OKand invoked no callbacks.Read and update paths already reported the same failures through the existing
io_error()mapping.Fix
enumerate_blobs()now matches on thecurrent_named()result and returnsio_error(&c.dir, &e)when loading fails.Valid missing containers still enumerate as empty, and valid containers retain their existing behavior.
Regression test
Extended
no_readable_version_is_refused_and_keptto corrupt the container manifest and verify that:all_blobs()returnsNO_ACCESS;The callback deliberately panics if called, so the test would fail before the fix with both the wrong HRESULT and an unexpected callback path.
Changed files
crates/victory-hle/src/modules/xgamesave.rsValidation
The second test confirms that normal blocking blob enumeration still works. Tests were run with
TEMPandTMPpointing to a writable directory onD:. No game or real user save was used.@andrewpozdnakov7-jpg on GitHub · 2026-11-30 09:33 UTC · original
I replayed a real Windows I/O denial with a valid temporary save on current release/main
41adb551and with the exact #3657 change77f08437applied as7ae27b6.The fixture opens the generated save manifest with
OpenOptionsExt::share_mode(0). A second open returns Win32 error 32. I then callall_blobswith the same handle still held and again after releasing it.S_OK, 0 callbacksNO_ACCESS(0x80830002), 0 callbacksS_OK, 1 callbackS_OK, 1 callbackBoth runs preserved the manifest and blob byte for byte. The existing
modules::xgamesave::suite passed 17/17 with the patch. The additional sharing-denial test failed on main and passed with the patch on Rust 1.98.1/MSVC.If you reuse the additional regression case, please retain its authorship with
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.