tools/tiff2pdf.c:5306: error: Integer Overflow L2
  ([0, +oo] - 1):unsigned32 by call to `t2p_read_tiff_data`.

tools/tiff2pdf.c:5274:2: Call
5272. 	uint16 i=0;
5273. 
5274. 	t2p_read_tiff_init(t2p, input);
       ^
5275. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5276. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(TIFFSafeMultiply(tmsize_t,t2p->pdf_xrefcount,sizeof(uint32)) );

tools/tiff2pdf.c:1121:4: Assignment
  1119.                     && (xuint16==PHOTOMETRIC_PALETTE))
  1120. 		   || TIFFGetField(input, TIFFTAG_INDEXED, &xuint16)) {
  1121. 			t2p->tiff_pages[i].page_extra++;
           ^
  1122. 			t2p->pdf_xrefcount++;
  1123. 		}

tools/tiff2pdf.c:5306:3: Call
5304. 	written += t2p_write_pdf_obj_end(output);
5305. 	for(t2p->pdf_page=0;t2p->pdf_page<t2p->tiff_pagecount;t2p->pdf_page++){
5306. 		t2p_read_tiff_data(t2p, input);
        ^
5307. 		if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5308. 		t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:1244:1: <LHS trace>
1242. */
1243. 
1244. void t2p_read_tiff_data(T2P* t2p, TIFF* input){
      ^
1245. 
1246. 	int i=0;

tools/tiff2pdf.c:1244:1: Parameter `t2p->tiff_pages->page_extra`
  1242. */
  1243. 
  1244. void t2p_read_tiff_data(T2P* t2p, TIFF* input){
        ^
  1245. 
  1246. 	int i=0;

tools/tiff2pdf.c:1750:4: Binary operation: ([0, +oo] - 1):unsigned32 by call to `t2p_read_tiff_data` 
  1748. 			t2p->pdf_sample|=T2P_SAMPLE_REALIZE_PALETTE;
  1749. 			t2p->pdf_colorspace ^= T2P_CS_PALETTE;
  1750. 			t2p->tiff_pages[t2p->pdf_page].page_extra--;
           ^
  1751. 		}
  1752. 	}
