XGameRuntime: blobs_of filters ~xcltmp. case-sensitively, leaking uppercase temp files on Windows #2366
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#2366
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@ahmetbagci8 on GitHub · 2026-11-25 16:48 UTC · original
Summary
blobs_ofincrates/xcl/src/hle/xgameruntime/gamesave.rsfilters temporary files with a case-sensitive check:On Windows 11 (NTFS),
hle::xgameruntime::gamesave::tests::blob_enumeration_sees_one_submitted_updatefails reproducibly because an uppercase temporary file (e.g.~XCLTMP.44804.151.tmp, 0 bytes) appears in the directory and slips past the filter:Because
enc()always percent-encodes~as%7E, no valid blob filename can ever start with~xcltmp.in any case.Suggested fix
Use the existing
starts_with_ignore_ascii_casehelper inblobs_of:Tested
082944135cd2b96288470a595861fa608eee08dccargo test -p xcl --lib blob_enumeration_sees_one_submitted_updatefailed reproducibly (1–6 mixed enumerations per run).cargo test -p xcl --lib gamesave→ 12 passed, 0 failed, 0 ignored.AI use