mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Mention limit in error message
This commit is contained in:
parent
08d9c89d8a
commit
9135fd0fb2
|
@ -140,7 +140,7 @@ def _safe_zlib_decompress(s: bytes) -> bytes:
|
|||
dobj = zlib.decompressobj()
|
||||
plaintext = dobj.decompress(s, MAX_TEXT_CHUNK)
|
||||
if dobj.unconsumed_tail:
|
||||
msg = "Decompressed Data Too Large"
|
||||
msg = "Decompressed data too large for PngImagePlugin.MAX_TEXT_CHUNK"
|
||||
raise ValueError(msg)
|
||||
return plaintext
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user