Skip to content

Fix CDATA decoding in worksheet text - #13

Merged
developer0hye merged 2 commits into
fix/panic-safety-v2from
fix/cdata-text-fork
Sep 20, 2026
Merged

developer0hye merged 2 commits into
fix/panic-safety-v2from
fix/cdata-text-fork

Conversation

@developer0hye

@developer0hye developer0hye commented Sep 20, 2026 •

Copy link
Copy Markdown
Owner

Port MathNya#369 to the parser-safety branch used by office2pdf. Copy CDATA content literally and decode entity references only outside it, so worksheet headers and footers no longer retain CDATA delimiters.

Retain the fork's existing tolerant handling of malformed text, with a regression for malformed references and unterminated CDATA. Public XLSX reader tests cover ordinary entities, literal CDATA ampersands, mixed text, adjacent/empty sections, and escaped delimiter-looking text in both headers and footers.

Related: developer0hye/office2pdf#1709

Validation:

  • Red-first public regression reproduced literal CDATA delimiters on the unchanged fork.
  • cargo test --locked: 53 unit, 1 CDATA regression, and 97 integration tests passed.
  • cargo clippy --locked -- -D warnings: passed.
  • Targeted rustfmt and git diff --check: passed.
  • Documentation freshness audit: PASS; no public API or usage changes.

The workflow branch patterns now include slash-named branches so this fork PR and its target run CI. Current-head PR CI passed (35518268005); the redundant push run was intentionally canceled.

Signed-off-by: Yonghye Kwon <developer.0hye@gmail.com>
Signed-off-by: Yonghye Kwon <developer.0hye@gmail.com>
@developer0hye
developer0hye merged commit 9ed2e09 into fix/panic-safety-v2 Sep 20, 2026
2 of 3 checks passed
@developer0hye
developer0hye deleted the fix/cdata-text-fork branch September 20, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant