diff options
| author | bbareth <179921368+BBareth@users.noreply.github.com> | 2026-11-22 06:35:21 +0100 |
|---|---|---|
| committer | bbareth <179921368+BBareth@users.noreply.github.com> | 2026-11-22 06:35:21 +0100 |
| commit | 937c44407f96cb10999486407aa040e53052d16c (patch) | |
| tree | 9e0a176ce9c2af64513a405e42106246a0433342 /runtime/src/pe_loader.cpp | |
| parent | 067d3e8b97189fcf272dc699fdbb871eae496660 (diff) | |
gamedata_xml.py: tail references survive the parser's buffer boundary, and an unknown encoding is malformed
scan_xml() read each element's tail at its "end" event and then cleared the
element, but iterparse can deliver the end event before the parser has read
the tail, so a $(...) reference after a close tag at a 16 KiB boundary was
lost. The tail is now read at the next event (or after the loop), before the
element is cleared.
An encoding declaration Python doesn't know raised LookupError out of
scan_xml() and ended --check in a traceback. It is now recorded as the
document's error, so the file counts as malformed like any other parse error.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions