Files
vectorcraft/crates/pdf
dotCooCoo 3f21a06bed Tests: cover broken hex strings in the stream scan and restricted file fonts
A hex string broken by a byte that is neither a hex digit nor white space
is no string: the hostile-input scan goes on from the next byte, so a
cross-reference stream after it is still read. A font a PDF carries with
restricted license flags (OS/2 fsType 0x0002) keeps drawing its type, and
a PDF saved from the document draws that type as outlines with the license
warning instead of embedding the font again.
2026-11-30 23:03:07 -08:00
..