Skip to content

Keep persistent storage paths within the boot caller buffer - #8137

Open
gabrielsteglich wants to merge 1 commit into
ItsNotRexed:mainfrom
gabrielsteglich:fix/boot-persistent-storage-path
Open

gabrielsteglich wants to merge 1 commit into
ItsNotRexed:mainfrom
gabrielsteglich:fix/boot-persistent-storage-path

Conversation

@gabrielsteglich

Copy link
Copy Markdown
Contributor

Claimed in coordination issue #7913

What and why

The startup finding records persistent-storage callers that use a fixed 256-byte path buffer. A long overlay path can exceed the buffer and leave the startup cache unavailable.

When the host path exceeds that buffer, return the short PLS: guest path and route it to the same persistent storage directory through the runtime's intercepted file APIs. Keep its contents separate from the GAME: overlay and package views. The current short host paths remain compatible. #7987 independently improves required-size reporting on an undersized buffer. Both patches merge cleanly together locally.

Tested

  • Windows 11 build 26300, MSVC 19.44.35229, Windows SDK 10.0.28000.0, RelWithDebInfo. Compared 7d52622f5 with dde82f27e. The loader built and all five focused CTest targets passed (file_system, xgameruntime, run_tiny_game, run_tiny_game_console_paths, run_tiny_game_dir). xgameruntime passed 182 checks.
  • Synthetic 256-byte callers passed with both Unicode paths exceeding 255 UTF-8 bytes and ASCII paths beyond MAX_PATH. Covered ANSI and wide file access, listing, copy and rename, storage accounting, package separation and reparse point behavior. The two new fixed-buffer checks fail on the exact base.
  • Coverage is for the runtime's intercepted file APIs and synthetic startup fixtures. Retail boot progression has not been measured with this patch.

AI-assisted (Codex).

  • Synthetic fixtures only. No game data, keys or decryption.

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