hle: confine virtual-drive paths and harden storage/package inputs #1447
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1447
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1447/head"
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?
@kunalkhude99 on GitHub · 2026-11-24 18:04 UTC · original
kunalkhude99:fix/issue-1375-hle-storage-hardening→main· +468 −11 · 4 files · 1 commits · closed without mergingSummary:
..so traversal stops at the mounted drive root, while preserving intra-folder relative paths and mixed slash handling.bytesout-pointer inXPackageEstimateDownloadbefore any side effects.Root cause:
Short title paths were concatenated directly onto the host folder behind a virtual drive. A path such as
X:..\secret.dattherefore resolved above the sandbox.estimate_downloadalso wrote*confirm = falsebefore validating thebytespointer, and tests sharing the globalTitlestate could clobber each other under a multi-threaded runner.Fix:
normalize_partsinfiles::translatefor any short path containing..; each..pops a component and stops at the drive root. Long paths already used the normalized\\?\form.estimate_downloadbefore writing outputs.runtime::TitlewithTEST_TITLE_LOCK.Testing:
Fixes #1375
@Marvisak on GitHub · 2026-11-25 00:40 UTC · original
Automated triage for the maintainers. Closing because another open pull request covers the same change.
See #182. Its real fix (
..in a short title path escapes the virtual drive's folder, true in main) is done better by the focused #182, which also keeps trailing separators and leaves\\?\paths alone. The rest is a null-pointer guard and 400 lines of generated tests.If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed