Repository navigation
HLE: read manifest fields past inline XML comments - #487
Conversation
9bcb02c to
be484a1
Compare
mercuryVM
left a comment
There was a problem hiding this comment.
Tested be484a1 on Windows 11, RTX 5070, MSVC: cargo test --workspace --no-fail-fast passes (248 passed, 0 failed; older base), including inline_comments_do_not_truncate_a_field.
field_text keeps the old rule that any other markup ends the text, and only steps over <!-- … -->. Entities are still decoded afterwards on the joined text (the 9&<!-- -->C case shows that). An unterminated comment stops at the text read so far rather than swallowing the rest. It also merges cleanly with #359 (quoted > in attributes), which is in our fork: together they handle both directions of this parser's edge cases.
No issues found.
AI-assisted (Claude Code).
… XML comments Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
elements() took field text up to the next '<', so a generator comment before the value made TitleId, StoreId or SizeMB empty. Skip comments while gathering the text. Add a regression with comments inside all three fields.
be484a1 to
ca362a4
Compare
|
Focused verification on current head
This verification was AI-assisted. |
…ack-log-487-111a GPU: host texture fallback ladder and refusal logging (Marvisak#487)
What
elements()read a field's text up to the next<. A manifest generatorthat writes
<TitleId><!-- generated -->639AA8DD</TitleId>thereforeproduced an empty TitleId, giving the title id 0 and the wrong save
namespace. The same affected StoreId and storage size. Field text now skips
comments instead of stopping at them; other markup still ends the field.
An AI tool wrote part of this change.
Tested
cargo test --workspace: 165 passed, 0 failed, 3 ignored. The existing manifest test still passes; a new regression puts inline comments inside TitleId, StoreId and SizeMB and checks all three values.cargo check --target x86_64-pc-windows-gnu --workspace --testspasses. No Windows host here.cargo xtask policypasses (150 files ok). No game files or data from them were added.Checklist
cargo xtask policypasses. No game files or data from them were added.