2006.06.14 22:52 "[Tiff] minor bug in tiff2pdf.c", by Scott Becker
I'm using code from tiff2pdf.c for a project and ran into this and thought I should feed it back:
In function t2p_read_tiff_init, on line 1035 or so this allocation is followed by the wrong test. tiff_pages is tested above it:
t2p->tiff_tiles = (T2P_TILES*) _TIFFmalloc(directorycount *
sizeof(T2P_TILES
if(t2p->tiff_pages==NULL){
should be:
if(t2p->tiff_tiles==NULL){
thanks
scottb