Repository navigation
Conversation
abnalstlll-byte
left a comment
There was a problem hiding this comment.
Verified on Windows 11.
- Correctly serves \LoadPackagedLibrary, \AddDllDirectory, \RemoveDllDirectory, and \SetDefaultDllDirectories\ in
untime/shims/library_loader.cpp\ and
untime/shims/file_system.cpp:- Rejects traversal/relative paths and reserved flags (\ERROR_INVALID_PARAMETER\ / \ERROR_MOD_NOT_FOUND).
- Restricts packaged loading to bundled package modules and owned shims, refusing arbitrary host modules.
- Resolves console paths (\GAME:...) through
t::fs::resolve_read_path. - Proper tracking and lifecycle management for DLL directory cookies.
- Unit tests in
untime/test/loader_test.cpp\ verify all reject/accept paths and cookie round-trips. - \compileall, \git diff --check, and clean-room checks pass.
LGTM!
|
Verified head
AI-assisted. |
|
Tested
|
|
Tested For this change. Setup. Built with MSVC 14.52 (Visual Studio 18), Windows SDK 10.0.26100, Vulkan SDK 1.4.363.1, Ninja RelWithDebInfo on Windows Server 2025 (no Vulkan driver there), then the same binaries run through
Under Wine the tree is test by test the same as Because the six were built together, there is no per-PR negative control in this run: a regression would have shown as a difference from |
What
Why
Unpackaged processes cannot use the host package loader for owned shims, and console paths are not host directory names.
Known limits
ERROR_MOD_NOT_FOUND; absolute, drive and parent-traversal paths are rejected withERROR_INVALID_PARAMETER.Tested
loader_test: 106 checks, 0 failed; no GPU or driver used. Negative controls: previous loader implementation produced 2 failures; returning success without configuring defaults produced 1 failure.loader_test: 102 checks, 0 failed. A synthetic bundled DLL loads successfully;version.dllis reachable through host search but is rejected by the packaged loader. No GPU or driver used.library_loader.cppwith revision 86a20c4 on the pod (equivalent to stashing that change), retaining the new path tests: 102 checks, 6 failed; restored the fix and forced recompilation: 102 passed. The host reachability assertion was added after the negative control.loader_test, 95 checks, 0 failed; no GPU or driver used.library_loader.cppon the pod (equivalent to stashing the follow-up .cpp change), retaining the new test: 95 checks, 1 failed because the host module was loaded. Restored the changed file and rebuilt: 95 passed.library_loader.cppon the remote copy with the new test (equivalent to stashing that change): 89 checks, 1 failed, missing shim exports. Restored the change and forced recompilation before the passing run.dll_thread_calls_testsuccessfully.git diff --checkandpython -I scripts/check_no_game_data.pypassed for the changed files.@ItsNotRexed: an exe PR, as you asked.
Claim: #8683 (comment)