Repository navigation
XGameSave: reject empty container name in XGameSaveDeleteContainer - #95
Closed
raylitebull wants to merge 1 commit into
Closed
raylitebull wants to merge 1 commit into
raylitebull wants to merge 1 commit into
Conversation
Member
Author
|
Closing in favor of #108, which supersedes this fix — it includes the same |
Collaborator
|
Merged together with #95–#102 and checked on Windows 11 with an RX 9070: |
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes a data-loss bug in
XGameSaveDeleteContainer/XGameSaveDeleteContainerAsync(crates/xcl/src/hle/xgameruntime/gamesave.rs):XGameSaveCreateContainer,XGameSaveDeleteContainerdid not validate that the container name is non-empty (or within the 256-byte limit).""causedenc("") == "", sostd::fs::remove_dir_all(pr.root.join(""))deleted the entire provider root directory and wiped every save container under it while returningS_OK.XGameSaveDeleteContainernow rejectsn.is_empty() || n.len() > 256withE_GS_INVALID_CONTAINER_NAME, matchingXGameSaveCreateContainer.Testing
delete_container_rejects_empty_name_without_wiping_provider_rootincrates/xcl/src/hle/xgameruntime/gamesave.rs:origin/main):XGameSaveDeleteContainer(provider, "")returnedS_OKand deleted existing containers and the provider root directory.E_GS_INVALID_CONTAINER_NAMEfor both syncXGameSaveDeleteContainerand asyncXGameSaveDeleteContainerAsync, leaving existing containers and blobs intact.origin/main(60599a9):cargo build --workspaceandcargo test --workspace -- --test-threads=4pass with 0 failures and 0 new warnings.