mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-10 13:01:29 +00:00
Editor, export and redaction must not read or rewrite text that the page view and Find never see, which a mismatched cap allows on large streams. Lower MAX_DECODED to 256 MiB to match the renderer cap, so every Stream::decoded-based content reader stops at the same byte and oversized streams error instead of exposing later text. Test: decoded_stops_at_renderer_cap_of_256_mib failed before the change and passes after. Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com>