create: lift TIFF decoding buffer limit to allow print-sized images (#665) (#681)

* create: lift TIFF decoding buffer limit to allow print-sized images (#665)

By default, the tiff crate limits decoded buffer size to 256 MiB.
Set Decoder::with_limits(Limits::unlimited()) to match PNG decoding
behavior and prevent 'decoder limits exceeded' on large images.

* create: cap the TIFF decode buffer at 2 GiB instead of lifting it entirely (#665)

A few bytes claiming enormous dimensions must still be refused, not allocated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Krzysztof Cieślik
2026-10-10 06:12:10 -04:00
committed by GitHub
co-authored by Claude Opus 5.5 Brandon Thomas
parent a211e334a0
commit 627d822709
3 changed files with 44 additions and 2 deletions
+4
View File
@@ -67,3 +67,7 @@ sync_github_name = false
[people.Byxis]
sync_github_name = true
[people.Hathor875]
real_name = "Krzysztof Cieślik"
sync_github_name = true