2023.05.03 19:45 "Re: [Tiff] [EXTERNAL] Re: Specific image fails with error at TIFFWriteRawStrip function(26659675)", by Sulau
I tested with convert.exe (Version: ImageMagick 6.9.10-60 Q16 x64 2019-08-10) and found no issues. Both files were converted to PDF successfully.
I also tried with tiffcp.exe from LibTiff version 4.5.0:
tiffcp test.tiff test_out.tiff reports the error for the last page (6/6):
Fax3Decode1D: Buffer overflow at line 2253 of strip 0.
test.tiff: Error, can't read strip 0.
This means, that there is probably an encoding error in the CCITT T.4 encoded data or at least an encoding case, which is not handled for decoding.
The error message "Buffer overflow .." comes just from a check in tif_fax3.c to avoid possible buffer overflows.
Since I'm not an expert in fax coding, I can't help further.
Again, even when TIFFReadRawStrip() does not report any errors, it is not guaranteed that you get what you expect, especially when you read encoded data.
TIFFReadRawStrip() reads the raw data with the assumption that the data are NOT encoded.
By the way, tiffcp.exe uses TIFFReadEncodedStrip() and TIFFWriteEncodedStrip() for test.tiff above.