mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-14 04:11:34 +00:00
The pixel reader capped the image size the dictionary gives, then decoded the JPEG at the size its header gives and compared afterwards, so a small image dictionary over a huge JPEG allocated the huge one first. The reader takes the size from the JPEG header and refuses a mismatch before decoding.