AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

2022.04.14 21:05 "[Tiff] group3 encoding/decoding", by Charis Williams

Hi,

We have a tiff that returns the following from the tiff2rgba tool:

"Fax3Decode1D: Buffer overflow at line 3 of strip 0."

The tiff opens in other apps. Does tif_fax3.c Fax3SetupState(), needsRefLine need to allocate additional space for COMPRESSION_CCITTFAX3 as well?

       /*
       * Allocate any additional space required for decoding/encoding.
       */
       needsRefLine = (
           (sp->groupoptions & GROUP3OPT_2DENCODING) ||
           td->td_compression == COMPRESSION_CCITTFAX4
       );

Thanks,

Charis Williams