What if the value of rowsStrip is greater than Integer.MAX_VALUE, as in the file I’m currently trying to read where the value is 4294967295 ?
int rowsStrip = h;
if (dir.isTagPresent(TIFFConstants.TIFFTAG_ROWSPERSTRIP)) //another hack for broken tiffs
rowsStrip = (int)dir.getFieldAsLong(TIFFConstants.TIFFTAG_ROWSPERSTRIP);
Any suggestions?
Jon