From 57f3b0bb6c4fa7f1c78c956085cee3b0d60c8d4e Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Sat, 7 Nov 2026 15:48:07 +0100 Subject: [PATCH] Pass read control through ICC archive lookup --- crates/doc/src/pcraft_pixels.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/doc/src/pcraft_pixels.rs b/crates/doc/src/pcraft_pixels.rs index a8e7fac0..6f498e66 100644 --- a/crates/doc/src/pcraft_pixels.rs +++ b/crates/doc/src/pcraft_pixels.rs @@ -170,7 +170,7 @@ pub fn pcraft_icc_profile(bytes: &[u8], limits: &Limits) -> Result(bytes, &mut budget)?; let Some(ProfileHash(hash)) = head.profile else { return Ok(None) }; let path = craft_pcraft_format::blob_path(&hash).ok_or_else(|| malformed("invalid ICC blob hash"))?; - let entry = zip.find(&path).ok_or_else(|| malformed(format!("the manifest names `{path}`, which the bundle does not have")))?; + let entry = zip.find(&path, budget.control)?.ok_or_else(|| malformed(format!("the manifest names `{path}`, which the bundle does not have")))?; let frame = zip.read(entry, limits.max_entry, &mut budget, &path)?; let cap = limits.max_entry.min(budget.left()); let cap = usize::try_from(cap).unwrap_or(usize::MAX);