mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-04 01:28:49 +00:00
The pre-scan lexed one object after every `trailer` marker over the rest of the file, so an unterminated string or dictionary after each of many markers made opening a crafted PDF quadratic. Each lex now gets a 4 KiB window; when it runs out, the file is refused if `/Encrypt` appears past the window (one search per file), so long trailers can't hide the key.