mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-02 22:41:47 -06:00
The depth limit didn't hold. An ICC profile read was kept whole, with the alternate it fell back to, and a later read took it without counting its levels. A page selecting the last of a chain first built each space on the one before, and no read was deep: 20,000 levels, and the stack overflowed painting with it. In the other direction, a profile met at the limit kept the fallback it got there, and a read nearer the top got that instead of its alternate. Both come from keeping a result that depends on the depth. What's kept now is what the profile itself reads as, one level whatever it is, and the alternate is read where it's met. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AmsdeUCdTaD72jkDw2pJKY