mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-27 19:48:14 -06:00
encrypt_dict multiplied any V4 StdCF /Length up to 32 by 8, so a large negative value overflowed (a panic with overflow checks, a wrapped length without). A zero or negative length is meaningless; read it as if absent, the 128-bit default, which also fixes small negatives that used to clamp to a 40-bit key and fail to open. Claude-Session: https://claude.ai/code/session_01RUNQSPVXx3dDBabRZHAnjz Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>