We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa1fd89 commit 15f428cCopy full SHA for 15f428c
frmts/vrt/vrtderivedrasterband.cpp
@@ -992,6 +992,24 @@ CPLErr VRTDerivedRasterBand::IRasterIO(
992
return CE_Failure;
993
}
994
995
+ if constexpr (sizeof(GSpacing) > sizeof(int))
996
+ {
997
+ if (nLineSpace > INT_MAX)
998
999
+ if (nBufYSize == 1)
1000
1001
+ nLineSpace = 0;
1002
+ }
1003
+ else
1004
1005
+ CPLError(CE_Failure, CPLE_NotSupported,
1006
+ "VRTDerivedRasterBand::IRasterIO(): nLineSpace > "
1007
+ "INT_MAX not supported");
1008
+ return CE_Failure;
1009
1010
1011
1012
+
1013
const int nBufTypeSize = GDALGetDataTypeSizeBytes(eBufType);
1014
GDALDataType eSrcType = eSourceTransferType;
1015
if (eSrcType == GDT_Unknown || eSrcType >= GDT_TypeCount)
0 commit comments