Files
craft-libs/crates
Alex Chambers 7ad164ff8a craft-heif: refuse a too-large item before copying any of it
`Iloc::gather` copied extents until it passed its limit and then
returned `TooLarge`, and `scan` charges its byte budget only for items
it returns. So 1,024 items, each naming one 64 KiB region 257 times,
copied 16 GiB from a 2 MiB file, and `read` up to 1 GiB.

Check every extent and sum the lengths first, and copy only when the
total fits. The new test counts the bytes copied over the full
1,024-gather scan and `read`'s 64 candidates; it copied 16 GiB before.
2026-11-15 00:26:42 +01:00
..
2026-11-13 21:38:11 +00:00
2026-11-13 01:31:26 -05:00
2026-11-14 11:21:01 +00:00