mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-01 14:08:23 -06:00
A 1-bit image was decoded for Group 4 up to MAX_DECODED (1 GiB), so a few kilobytes of Flate could cost a gigabyte, and the same held for the samples of a colour or grey image read to resample it (pixels). Both now stop at twice the samples plus a byte a row and 4 KiB, as redaction does; data past that can only be a decompression bomb, and the image is left alone. From reviews with the pdfcraft-review skill. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P6yUtvWGPsJpMLyh6pxSXG