From e40199bf6fe4660a387f99467ac5d676f816d71a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Legrand?= Date: Sun, 1 Nov 2026 19:38:55 +0100 Subject: [PATCH] docs(geom): M14: clarify truncated TIFF errors --- crates/geom/src/picture.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/geom/src/picture.rs b/crates/geom/src/picture.rs index 9ef2f7489a..abdf1c2a99 100644 --- a/crates/geom/src/picture.rs +++ b/crates/geom/src/picture.rs @@ -65,8 +65,8 @@ const TIFF_COMPRESSIONS: [u16; 6] = [1, 4, 5, 8, 32946, 32773]; /// # Errors /// /// Returns `Refusal::NotAPicture` for an unsupported format, `Refusal::Unsupported` for a TIFF -/// whose compression cannot be budgeted, `Refusal::TooLarge` on size arithmetic overflow, and -/// `Refusal::Broken` for an invalid header. +/// whose compression cannot be read or budgeted (including a truncated TIFF), `Refusal::TooLarge` +/// on size arithmetic overflow, and `Refusal::Broken` for an invalid header of another format. pub fn probe(bytes: &[u8]) -> Result, Refusal> { let format = image::guess_format(bytes).map_err(|_| Refusal::NotAPicture)?; let held = match format {