mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	Merge pull request #8391 from radarhere/png_decompress
This commit is contained in:
		
						commit
						e80cada0f6
					
				| 
						 | 
				
			
			@ -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