EXR: reject files with dimensions exceeding 300kx300k pixels

This commit is contained in:
Mirco Miranda
2026-05-25 14:13:15 +02:00
parent 6017099044
commit 9dfcf67ea9

View File

@@ -209,6 +209,8 @@ EXRHandler::EXRHandler()
{ {
// Set the number of threads to use (0 is allowed) // Set the number of threads to use (0 is allowed)
Imf::setGlobalThreadCount(QThread::idealThreadCount() / 2); Imf::setGlobalThreadCount(QThread::idealThreadCount() / 2);
// Set maximum image size
Imf::Header::setMaxImageSize(EXR_MAX_IMAGE_WIDTH, EXR_MAX_IMAGE_HEIGHT);
} }
bool EXRHandler::canRead() const bool EXRHandler::canRead() const