XGameRuntime: blobs_of filters ~xcltmp. case-sensitively, leaking uppercase temp files on Windows #2356
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?
Imported from ivall/xcl. Originally posted by ahmetbagci8 on 2026-11-25T16:48:38Z.
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
upstream-sync referenced this issue2026-11-25 18:03:20 +00:00