Files
effectcraft/crates/psd/src
Dylan M. Taylor c6d5c62d5a PSD: bounded zip errors, budgeted prediction row, row-bounded PackBits, channel checks before the result (#2987)
* PSD: bounded zip errors, budgeted prediction row, row-bounded PackBits, channel checks before the result

A failed inflate was formatted with Debug, which prints the whole partial
output; only the status is kept. The 32-bit ZIP prediction scratch row was
allocated outside the decode budget; it is charged now. PackBits packets
were appended whole even past the row's end, growing the reserved plane;
they are cut at the row. The composite and layer decodes allocated the
document-sized result before checking that the channel data exists; the
compression and raw/RLE lengths are checked first.

* address review: check short ZIP composite data and the layer mask channel before allocating the result

* address review: drop the channel prechecks that rejected PSDs the lenient decode accepts; keep the allocation bounds
2026-11-11 14:39:19 -05:00
..
2026-10-28 06:09:21 +00:00
2026-10-28 06:09:21 +00:00
2026-10-28 06:09:21 +00:00
…
…