Decoder regression: mandrill.tiff from upstream
RReverser opened this issue · comments
I've tried to upgrade upstream image
crate to tiff 0.7.0, and it uncovered a regression bug: upstream image mandrill.tiff used to decode with 0.6.0, but fails with 0.7.0 with:
Cannot create decoder: FormatError(Format("Neither strips nor tiles were found or both were used in the same file"))
I verified that this problem is reproducible with just image-tiff
too, so it's not an issue with integration in the image
crate itself. It's also an uncompressed TIFF, so doesn't seem related to my deflate PR (#132) either.
Beyond that, I'm not that familiar with changes between releases, so leaving it up to others to debug this further.
Sorry, this is the result of some code I added.
Lines 704 to 719 in bd1e37d
This file has StripOffsets and StripByteCounts, but doesn't have RowsPerStrip, which I didn't expect.
Maybe I should just check for (StripOffsets && StripByteCounts) || (TileOffsets && TileByteCounts), otherwise reject the file ?