Skip to content

🐛 fix(xml): normalize PI data whitespace - #1648

Merged
gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:fix/fuzz-xml-fixpoint-20261106
Nov 6, 2026
Merged

gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:fix/fuzz-xml-fixpoint-20261106

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

Problem

Removing invalid characters from processing instruction data can leave leading whitespace. XML parsing discards it, so a second XML serialization differs from the first.

Change

Normalize leading processing instruction whitespace in XML output while preserving internal whitespace. Add serializer and round trip oracle cases, including invalid characters before whitespace.

Verification

  • tox run -e 3.14 — 73,087 passed; 100% Python and C line and branch coverage.
  • tox run -e warnings — passed.
  • Replayed the saved fuzz artifact locally; the XML serialization oracle now passes.

@gaborbernat gaborbernat added the bug Something isn't working label Nov 6, 2026
@codspeed

codspeed Bot commented Nov 6, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 582 untouched benchmarks
⏩ 32 skipped benchmarks1


Comparing gaborbernat:fix/fuzz-xml-fixpoint-20261106 (92f6750) with main (be9cadb)

Open in CodSpeed

Footnotes

  1. 32 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@gaborbernat
gaborbernat merged commit 65d2a36 into tox-dev:main Nov 6, 2026
65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant