Repository navigation
Port upstream #359: a '>' in a quoted manifest attribute does not end its tag - #38
Merged
DesertGamer merged 1 commit intoNov 25, 2026
Conversation
The MicrosoftGame.config reader ended a tag at its first '>', but XML allows '>' unescaped inside an attribute value. A value with one (DefaultDisplayName="A > B") cut the tag short: its '/>' was never seen, so the element stayed open and every element after it was read as its child. Game/TitleId and the storage quota were then not found, and the title ran as id 00000000 with no storage quota, its saves and temporary files in that folder, without a warning. A tag now ends at the first '>' outside quotes. (cherry picked from commit d549b63)
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.
What this changes
This ports Marvisak/VIctory#359 by Duff. It is cherry-picked with
-x, so the commit keeps their authorship.The
MicrosoftGame.configreader incrates/viport-hle/src/runtime.rs(elements) ends a tag at its first>. XML allows an unescaped>inside an attribute value, so a value such asDefaultDisplayName="A > B"cuts the tag short. Its/>is never seen, the element stays open, and every element after it is read as its child.Game/TitleIdandGame/PersistentLocalStorage/SizeMBare then not found. The title runs as id00000000with no storage quota, and its saves and temporary files go into that folder, with no warning.The fix adds
tag_end, which finds the first>outside quotes, plus #359's test.VIPort has the upstream merge of #359 in its history, but the change is not in the tree (
mainstill hasrest.find('>')). It was lost in a later merge.Checked
docs/asset-policy.md(the test manifest is synthetic)build.rs, git hook,.cargoconfig, CI change or script (or an issue explains why)cargo test --workspacepasses (not run, see below)cargo clippy --workspace --all-targets --locked -- -D warningspasses (forviport-hle, with CI: clear the clippy errors that keep main red since a3e7f17 #21 merged in locally)rustfmt; I did not reformat lines I did not changeWhat I ran
viport-hlebuilds only for Windows. On Linux I compiledTitle,field_text,elements(andtag_end) frommainand from this branch side by side. Then I parsed the test's manifest with both:cargo clippy -p viport-hle --all-targets --locked --target x86_64-pc-windows-msvc -- -D warnings, with #21 merged in: clean.Not run:
cargo test -p viport-hle(Windows only). The new test,a_quoted_angle_bracket_does_not_end_its_tag, will run in the Windows CI test step.Overlaps
None. No open PR touches
viport-hle/src/runtime.rs.🤖 Generated with Claude Code