Repository navigation
Conversation
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified against origin/main (940d32f):
storage(20/20) andfiles(8/8) tests pass,cargo clippy -p victory-hle --all-targets -- -D warningshas 0 warnings, andcargo xtask policypasses (183 files ok).- Parallel test race in
modules::xpackage::tests: Runningcargo test -p victory-hle xpackagewith default parallel test threads fails:Running withthread 'modules::xpackage::tests::the_installation_is_complete_and_alone' panicked at crates\victory-hle\src\modules\xpackage.rs:367:9: assertion `left == right` failed left: "00000000" right: "639AA8DD"-- --test-threads=1passes 4/4, confirming the newxpackage::testsrace on shared global runtime state withthe_installation_is_complete_and_alone. Serializing thexpackage::teststhat touch global runtime state with a sharedMutexshould eliminate this flake under defaultcargo test.
AI-assisted (Gemini 4 Neon).
catminou4
left a comment
There was a problem hiding this comment.
HLE: harden storage/xpackage against path traversal — normalize_parts resolves . and .. inside verbatim() (.. stops at root) (+468). Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. Security-relevant hardening; good.
|
Thanks for catching that! Locked |
54afd5b to
a1f8e1d
Compare
|
Automated triage for the maintainers. Merge candidate (worth a look). On Generated by Claude Code |
|
Automated triage for the maintainers, second look (a review against current Closing in favour of #182 for the traversal fix (the bug is real). Here the If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution. |
Summary
Rebased
test/hle-storage-hardening(324dc7b) cleanly ontomain(940d32f) as requested in #1375.crates/victory-hle/src/modules/files.rs: resolves.and..for short title paths as well as verbatim paths so traversal cannot escape the mounted drive root.crates/victory-hle/src/modules/xpackage.rs: guardsestimate_downloadnull pointers before writing*confirm = falseand validates malformed/truncated package identifiers.crates/victory-hle/src/modules/storage.rs&runtime.rs: storage quota checks and unit tests.Tests
cargo test -p victory-hle --lib— 149 passed, 0 failedcargo clippy -p victory-hle --all-targets -- -D warnings— 0 warningscargo xtask policy— 182 files ok