Skip to content

Commit d3db900

Browse files
committed
document new limit
1 parent 6b311aa commit d3db900

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/user/security.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ aware of the possible side effects, you can modify the following constants which
1818
For JBIG2 images, there is a similar parameter to limit the memory usage during decoding: `pypdf.filters.JBIG2_MAX_OUTPUT_LENGTH`
1919
It defaults to 75 MB as well.
2020

21+
For all streams, the maximum allowed value for the `/Length` field is limited to `pypdf.filters.MAX_DECLARED_STREAM_LENGTH`, which
22+
defaults to 75 MB as well.
23+
2124
For the *FlateDecode* filter, the number of bytes to attempt recovery with can be set by `pypdf.filters.ZLIB_MAX_RECOVERY_INPUT_LENGTH`.
2225
It defaults to 5 MB due to the much more complex recovery approach.
2326

0 commit comments

Comments
 (0)