Files
effectcraft/crates/pdf/src
Dylan M. Taylor 4020edb8cd PDF fonts and fax: bound charstring work, ToUnicode ranges and reference search (#2964)
* PDF fonts and fax: bound charstring work, ToUnicode ranges and reference search

Type 1 and CFF charstrings bounded subroutine depth but not total work:
subroutines that call each other several times multiplied a small font into
unbounded instructions and geometry. Each glyph now has a shared budget of
100,000 instructions. The Type 1 Subrs parser looked up /CharStrings again
for every entry; it is found once. A ToUnicode bfrange expanded a long
destination string for each of up to 65,536 codes; destinations past 256
bytes are skipped and a CMap keeps at most 2^20 mappings. CCITT 2-D decoding
scanned the reference row from its start for every code; it bisects.

* address review: cap bfchar and array bfrange unicode mappings

* address review: seac components share the glyph instruction budget (CFF and Type 1)
2026-11-10 17:57:27 -05:00
..
2026-10-28 06:09:21 +00:00
…
…
…
…