address catch scanlines with negative sizes
@@ -429,7 +429,7 @@ readPixelData (InputStreamMutex *streamData,
if (yInFile != minY)
throw IEX_NAMESPACE::InputExc ("Unexpected data block y coordinate.");
- if (dataSize > (int) ifd->lineBufferSize)
+ if (dataSize < 0 || dataSize > static_cast<int>(ifd->lineBufferSize) )
throw IEX_NAMESPACE::InputExc ("Unexpected data block length.");
//
