- Fix test_bomb_limit_flate to actually test early abort behavior - Use 200-byte pattern (not large buffers) that compresses to ~50 bytes - Set bomb_limit to 50 bytes to force truncation - Assert output.len() < pattern.len() to verify truncation occurred - Add documentation explaining the minimal input approach Per bf-4xk2v: "Decompression-bomb and max_decompress_bytes tests must trigger the STREAM_BOMB abort WITHOUT building the multi-GB decoded output in memory. Use minimal crafted inputs and assert the byte-budget limit fires early. Never pre-size a Vec to the claimed or decompressed length." Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| pdftract-cer-diff | ||
| pdftract-cli | ||
| pdftract-core | ||
| pdftract-libpdftract | ||
| pdftract-py | ||