2023.04.19 06:48 "[Tiff] Specific image fails with error at TIFFWriteRawStrip function(26659675)", by Ganesh Bondili

2023.05.02 21:01 "Re: [Tiff] [EXTERNAL] Re: Specific image fails with error at TIFFWriteRawStrip function(26659675)", by Ganesh Bondili

Hi Su,

I have modified sample as you have given by adding mandatory tags. I have attached complete sample in the below link. I could not see error at "TIFFReadRawStrip ()" but TIFFWriteRawStrip()' results in error "Maximum TIFF file size exceeded". 'TIFFWriteEncodedStrip()' throws error "Fractional scanlines cannot be written". How these errors can be resolved.

https://drive.google.com/file/d/1JGPBGCkYAdRFUfUAa2K2DSF_H8e3Hvxn/view?usp=s
hare_link

I have also tested with ImageMagick with customer 'Test.Tiff' & our own G3 (CCITT T.4) sample attached '3pg_small.tif'. ImageMagick Convert.exe has resulted in error as below with Customer Sample 'Test.Tiff' but not with our G3 (CCITT T.4) sample '3pg_small.tif' as shown below. Why ImageMagick throws error ": Buffer overflow at line 2253" for customer sample only. Why conversion works with our G3 (CCITT T.4) sample but not with the sample from the customer 'Test.Tiff'.

ImageMagick Convert.exe execution -

C:\Program Files (x86)\ImageMagick>convert test.tiff tt1.pdf

convert: Buffer overflow at line 2253 of strip 0. `Fax3Decode1D' @ error/tiff.c/TIFFErrors/600.

C:\Program Files (x86)\ImageMagick64>convert 3pg_small.tif TT2.pdf

No error. Successful conversion.

Regards,

Ganesh.

Ganesh Bondili
Principal Software Engineer

Kofax India Private Limited
V IT Park, Capella Building, Floor 6, Plot No. 17, Software Units Layout
Hyderabad, Madhapur 500081
India

Tel: +91 40 45459949
Fax: +91 40 45459922
Ganesh.Bondili@kofax.com <mailto:Ganesh.Bondili@kofax.com>


Editor's note: This mail was not originally archived, and has been reconstructed from quotes.