Changed max Image size to allow reading of huge climate image files

This commit is contained in:
Gfecito 2023-04-15 12:04:14 -04:00 committed by GitHub
parent 8740e32619
commit 11bbfef366
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,8 +69,8 @@ class DecompressionBombError(Exception):
pass pass
# Limit to around a quarter gigabyte for a 24-bit (3 bpp) image # We're unworried about potential attacks in this project, since our development is entirely internal
MAX_IMAGE_PIXELS = int(1024 * 1024 * 1024 // 4 // 3) MAX_IMAGE_PIXELS = sys.maxsize
try: try: