Merge remote-tracking branch 'origin/tqtc/lts-5.15.12' into tqtc/lts-5.15-opensource

Change-Id: I304f4e4e7800cb47a601d51a7921c9502940066e
This commit is contained in:
Tarja Sundqvist 2023-10-11 16:01:33 +03:00
commit 1019058c49
3 changed files with 4 additions and 1 deletions

View File

@ -2,4 +2,4 @@ load(qt_build_config)
DEFINES += QT_NO_FOREACH QT_NO_JAVA_STYLE_ITERATORS QT_NO_LINKED_LIST
MODULE_VERSION = 5.15.11
MODULE_VERSION = 5.15.12

View File

@ -39,6 +39,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
/* Select the plausible largest natural integer type for the architecture */
#define SIZEOF_WORDTYPE SIZEOF_SIZE_T

View File

@ -361,6 +361,8 @@ bool QTiffHandler::read(QImage *image)
}
TIFF *const tiff = d->tiff;
if (TIFFIsTiled(tiff) && TIFFTileSize64(tiff) > uint64_t(image->sizeInBytes())) // Corrupt image
return false;
const quint32 width = d->size.width();
const quint32 height = d->size.height();