HLE/media: block mixed-slash UNC, NT object, and backslash file: URL … #529
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!529
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-529"
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?
@pug205gti6 on GitHub · 2026-11-25 02:00 UTC · original
pug205gti6:pr/484-hle-media→main· +143 −12 · 1 files · 1 commits · open…bypasses
\/,/\,\\.\,//?/) and NT object namespace prefixes (\??\,/??/) inmedia::local(), allowing only verbatim drive paths (\\?\X:...).UNC\/UNC/prefix stripping when reporting the refused host.file:URLs and refuse backslash, extra-slash, percent-encoded UNC/NT, and drive-lesslocalhostSMB forms (file://\host\share,file:\\host\share,file:////host/share,file:///%5c%5chost/share,file://localhost/share) instead of falling through with the unmodified URL.@Revens2 on GitHub · 2026-11-25 07:37 UTC · original
Duplicate of #484: @AscilCH opened this patch 37 minutes earlier, and
gh pr diffreturns the same bytes for both (+143/-12 on 1 file(s), same title).Please continue in #484 so the review history and any test data stay in one place.
Thanks.
@Headache3318 on GitHub · 2026-11-25 09:22 UTC · original
Independent verification: PR #529 (actually HLE/media URL bypass fix) cherry-picks cleanly onto main (
8dd30ab), no conflicts. Build: success. Tests: compile successfully but cannot execute on this Linux machine (Windows test binary needs Wine/Proton, both timed out). Native Linux tests fail due to pre-existing victory-gpu/victory-loader build issues (E0425 host_resource) — not caused by this PR. Modifies only crates/victory-hle/src/modules/media.rs with 3 new unit tests. Machine: Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04, Proton, AI-assisted.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.