Skip to content

fix(runtime): contain translated PS2 paths - #239

Open
hedgeg0d wants to merge 1 commit into
ran-j:mainfrom
hedgeg0d:fix/translated-path-containment
Open

fix(runtime): contain translated PS2 paths#239
hedgeg0d wants to merge 1 commit into
ran-j:mainfrom
hedgeg0d:fix/translated-path-containment

Conversation

@hedgeg0d

Copy link
Copy Markdown

PS2 device paths were normalized but not checked against their configured roots. Parent traversal and pre-existing symlinks could resolve outside hostRoot, cdRoot, or mcRoot.

  • Canonicalize configured roots and translated paths before accepting them
  • Compare existing roots by filesystem identity
  • Restrict direct Windows paths to cdRoot
  • Add translation and fioOpen regression tests

Tested with ps2x_tests: 428 passed. The runtime changes from #235 were applied only for the Debug test run because current main aborts in PS2SifDma without that fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant