mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-05-30 06:09:08 -04:00
EXR: reject files with dimensions exceeding 300kx300k pixels
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user