From d47a987e4c158cf6cbf2ff09f761ab3f308f6296 Mon Sep 17 00:00:00 2001 From: Mex <44814932+MMexicann@users.noreply.github.com> Date: Sat, 14 Nov 2026 20:19:47 +0100 Subject: [PATCH] fix(xfa): initialize stripping parser options completely --- crates/xfa/src/pdf/strip.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/xfa/src/pdf/strip.rs b/crates/xfa/src/pdf/strip.rs index a13e1b5218..686e356f0a 100644 --- a/crates/xfa/src/pdf/strip.rs +++ b/crates/xfa/src/pdf/strip.rs @@ -151,7 +151,7 @@ pub fn strip(doc: &mut Document) -> Result { } // One XDP: the packets it holds are the envelope's children. let text = s.decoded_within(64 << 20).ok().and_then(|b| crate::packets::decode(&b)).map(|(t, _)| t).unwrap_or_default(); - let opts = crate::xml::ParsingOptions { allow_dtd: false, nodes_limit: 1_000_000, ..Default::default() }; + let opts = crate::xml::ParsingOptions { allow_dtd: false, nodes_limit: 1_000_000 }; if crate::xml_nesting_depth(&text) <= crate::MAX_XML_DEPTH && let Ok(parsed) = crate::xml::Document::parse_with_options(&text, opts) {