Files
lightcraft/crates
eliets2 555eb4c9fd tiff: bound total entries across a parse (#2136)
max_ifds (1024) x max_entries (8192) tables that overlap in the file — SubIFD pointers
shifted by one entry reuse the same bytes — could make Tiff::parse allocate ~8M Entry values
(~400 MB) from a ~100 KB input, since count-0 entries cost nothing from the value budget and
only the per-IFD entry cap existed. ParseOptions gains max_entries_total (65 536 default,
generous for real scanned TIFFs), charged per IFD before the entries Vec is allocated, so a
hostile file stops with TiffError::Limit("entry count") instead of amplifying.

Tests: a hostile overlapping-table chain stops after 8 IFDs inside one parse, and a
legitimate multi-IFD file (chain + Exif/GPS children) still parses fully.
2026-10-17 21:53:21 +03:00
..
2026-10-15 01:43:02 -04:00
2026-10-15 00:53:45 -04:00
2026-10-14 21:58:33 -04:00
2026-10-15 03:40:17 -04:00
2026-10-14 22:31:58 -04:00
2026-10-15 03:40:17 -04:00
…
2026-10-14 22:29:35 -04:00
2026-10-15 01:44:24 -04:00
2026-10-15 01:42:11 -04:00
2026-10-14 22:32:30 -04:00
2026-10-14 22:31:41 -04:00
2026-10-14 22:32:29 -04:00
2026-10-15 01:13:36 -04:00
2026-10-14 23:23:18 -04:00