mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-13 16:54:45 +03:00
Changed max Image size to allow reading of huge climate image files
This commit is contained in:
parent
8740e32619
commit
11bbfef366
|
@ -69,8 +69,8 @@ class DecompressionBombError(Exception):
|
|||
pass
|
||||
|
||||
|
||||
# Limit to around a quarter gigabyte for a 24-bit (3 bpp) image
|
||||
MAX_IMAGE_PIXELS = int(1024 * 1024 * 1024 // 4 // 3)
|
||||
# We're unworried about potential attacks in this project, since our development is entirely internal
|
||||
MAX_IMAGE_PIXELS = sys.maxsize
|
||||
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue
Block a user