Skip to content

Commit 52ac387

Browse files
Merge pull request #93 from developer0hye/ralph/phase20-fix-remaining-docx
Fix remaining 4 DOCX failures from issue #84
2 parents fc65123 + 8a50470 commit 52ac387

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

crates/office2pdf/tests/bulk_conversion.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ const DENYLIST: &[&str] = &[
3535
"clusterfuzz-testcase-minimized-POIXWPFFuzzer-6733884933668864.docx",
3636
// Crash reporter — corrupted zip
3737
"crash-517626e815e0afa9decd0ebb6d1dee63fb9907dd.docx",
38-
// Deeply nested table cells — stack overflow risk
39-
"deep-table-cell.docx",
4038
// Truncated archive — incomplete zip
4139
"truncated62886.docx",
4240
// ── PPTX — fuzzer-generated / corrupted zip structures ───────────

crates/office2pdf/tests/docx_fixtures.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,3 +645,13 @@ docx_fixture_tests!(
645645
sdt_after_section_break,
646646
"libreoffice/sdt_after_section_break.docx"
647647
);
648+
649+
// ODT files with .docx extension — clean parse error (not panic)
650+
docx_fixture_tests!(tdf171025_page_after, "libreoffice/tdf171025_pageAfter.docx");
651+
docx_fixture_tests!(tdf171038_page_after, "libreoffice/tdf171038_pageAfter.docx");
652+
653+
// Intentionally malformed XML — clean parse error (not panic)
654+
docx_fixture_tests!(math_malformed_xml, "libreoffice/math-malformed_xml.docx");
655+
656+
// Deeply nested tables (5000+ levels) — clean error after depth-limit fix (not stack overflow)
657+
docx_fixture_tests!(deep_table_cell, "poi/deep-table-cell.docx");

0 commit comments

Comments
 (0)