From a9fe3d4e7f80c18d158377899325f18e0c7df248 Mon Sep 17 00:00:00 2001 From: aiongg Date: Sat, 24 Oct 2026 06:59:28 +0000 Subject: [PATCH] =?UTF-8?q?Integration:=20drop=20the=20doc=20comment=20of?= =?UTF-8?q?=20the=20removed=20visit=20cap=20(#3670=20=C3=97=20main)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/redact/src/interp.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/crates/redact/src/interp.rs b/crates/redact/src/interp.rs index 5b91bb64c5..3380fece14 100644 --- a/crates/redact/src/interp.rs +++ b/crates/redact/src/interp.rs @@ -36,12 +36,6 @@ use pdfcraft_fonts::pdf::Metrics; /// visible. pub(crate) const MAX_DEPTH: usize = 50; -/// How many forms one pass enters. The depth limit alone bounded the walk while it was 12: a form -/// that draws the next level twice, or a cycle of two forms, costs 2^depth interpretations, which -/// at 50 is a hang rather than a limit. Edit text's reader pairs its depth limit with the same -/// budget, and this is that constant, so the two cannot drift apart. Running out is treated as a -/// form that cannot be read: removed in Apply, counted as unreadable in Verify. - // A form a reader still shows must be walkable here, or a redaction removes content that is // visible; the build says so rather than a test, so the two limits cannot drift apart. const _: () = assert!(MAX_DEPTH >= pdfcraft_edit::text::MAX_FORM_DEPTH);