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

tools/tiff2pdf.c:5277:3: Call
5275. 	written += t2p_write_pdf_obj_end(output);
5276. 	for(t2p->pdf_page=0;t2p->pdf_page<t2p->tiff_pagecount;t2p->pdf_page++){
5277. 		t2p_read_tiff_data(t2p, input);
        ^
5278. 		if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5279. 		t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:1263:2: Call
  1261.         
  1262. 	
  1263. 	TIFFSetDirectory(input, t2p->tiff_pages[t2p->pdf_page].page_directory);
         ^
  1264. 
  1265. 	TIFFGetField(input, TIFFTAG_IMAGEWIDTH, &(t2p->tiff_width));

libtiff/tif_dir.c:1370:1: Parameter `tif->tif_dir.td_rowsperstrip`
    1368.  * NB: Directories are numbered starting at 0.
    1369.  */
    1370. int
          ^
    1371. TIFFSetDirectory(TIFF* tif, uint16 dirn)
    1372. {

tools/tiff2pdf.c:5380:4: Call
5378. 			written += t2p_write_pdf_stream_start(output);
5379. 			streamlen=written;
5380. 			t2p_read_tiff_size(t2p, input);
         ^
5381. 			written += t2p_readwrite_pdf_image(t2p, input, output);
5382. 			t2p_write_advance_directory(t2p, output);

tools/tiff2pdf.c:1827:1: Parameter `input->tif_dir.td_rowsperstrip`
  1825. */
  1826. 
  1827. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
        ^
  1828. 
  1829. 	uint64* sbc=NULL;

tools/tiff2pdf.c:1863:15: Call
  1861. 				return;
  1862. 			}
  1863. 			stripcount=TIFFNumberOfStrips(input);
                      ^
  1864. 			for(i=0;i<stripcount;i++){
  1865. 				k += sbc[i];

libtiff/tif_strip.c:86:1: <LHS trace>
84.  * Compute how many strips are in an image.
85.  */
86. uint32
    ^
87. TIFFNumberOfStrips(TIFF* tif)
88. {

libtiff/tif_strip.c:86:1: Parameter `tif->tif_dir.td_imagelength`
    84.  * Compute how many strips are in an image.
    85.  */
    86. uint32
        ^
    87. TIFFNumberOfStrips(TIFF* tif)
    88. {

libtiff/tif_strip.c:93:7: Binary operation: ([0, +oo] - 1):unsigned32 by call to `t2p_read_tiff_size` 
    91. 
    92. 	nstrips = (td->td_rowsperstrip == (uint32) -1 ? 1 :
    93. 	     TIFFhowmany_32(td->td_imagelength, td->td_rowsperstrip));
              ^
    94. 	if (td->td_planarconfig == PLANARCONFIG_SEPARATE)
    95. 		nstrips = multiply_32(tif, nstrips, (uint32)td->td_samplesperpixel,
