From 9dfcf67ea9027d931a89efd36f5c07d5c80820ee Mon Sep 17 00:00:00 2001 From: Mirco Miranda Date: Mon, 25 May 2026 14:13:15 +0200 Subject: [PATCH] EXR: reject files with dimensions exceeding 300kx300k pixels --- src/imageformats/exr.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/imageformats/exr.cpp b/src/imageformats/exr.cpp index fc0cc0f..fbcb285 100644 --- a/src/imageformats/exr.cpp +++ b/src/imageformats/exr.cpp @@ -209,6 +209,8 @@ EXRHandler::EXRHandler() { // Set the number of threads to use (0 is allowed) Imf::setGlobalThreadCount(QThread::idealThreadCount() / 2); + // Set maximum image size + Imf::Header::setMaxImageSize(EXR_MAX_IMAGE_WIDTH, EXR_MAX_IMAGE_HEIGHT); } bool EXRHandler::canRead() const