mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-27 11:37:56 +00:00
A /CIDToGIDMap, CMap or program whose /DecodeParms are an indirect object, or an array holding one, was decoded without them, as on main: behind a PNG predictor its tag bytes stayed in, so the map read wrong and the CMap or program not at all. Each of the five metrics reads and the editor's program read now go through Document::with_direct_parms, which shares the stream's data and copies its dictionary only when a parameter is indirect. Reads::decode's comment now says what the stage bound does: a stage may make more than the stream's limit where a decode without an allowance stops it, and a stream past its limit counts as refused when what is left can't pay for its stages. Found by the Legal forms review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AmsdeUCdTaD72jkDw2pJKY