X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5beedebb828f9dcfcd614abc81926025e039c6cd..c753eb9269d1e6c99b80a2d782ce49d9864ac1da:/src/common/imagtiff.cpp diff --git a/src/common/imagtiff.cpp b/src/common/imagtiff.cpp index 0df1139d8f..2b48f30b6d 100644 --- a/src/common/imagtiff.cpp +++ b/src/common/imagtiff.cpp @@ -301,7 +301,7 @@ bool wxTIFFHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbos // guard against integer overflow during multiplication which could result // in allocating a too small buffer and then overflowing it - const double bytesNeeded = w * h * sizeof(uint32); + const double bytesNeeded = (double)w * (double)h * sizeof(uint32); if ( bytesNeeded >= wxUINT32_MAX ) { if ( verbose )