We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08d9c89 commit 9135fd0Copy full SHA for 9135fd0
src/PIL/PngImagePlugin.py
@@ -140,7 +140,7 @@ def _safe_zlib_decompress(s: bytes) -> bytes:
140
dobj = zlib.decompressobj()
141
plaintext = dobj.decompress(s, MAX_TEXT_CHUNK)
142
if dobj.unconsumed_tail:
143
- msg = "Decompressed Data Too Large"
+ msg = "Decompressed data too large for PngImagePlugin.MAX_TEXT_CHUNK"
144
raise ValueError(msg)
145
return plaintext
146
0 commit comments