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

tools/tiff2pdf.c:5257:3: Call
5255. 	written += t2p_write_pdf_obj_end(output);
5256. 	for(t2p->pdf_page=0;t2p->pdf_page<t2p->tiff_pagecount;t2p->pdf_page++){
5257. 		t2p_read_tiff_data(t2p, input);
        ^
5258. 		if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5259. 		t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:1236:2: Call
  1234.         
  1235. 	
  1236. 	TIFFSetDirectory(input, t2p->tiff_pages[t2p->pdf_page].page_directory);
         ^
  1237. 
  1238. 	TIFFGetField(input, TIFFTAG_IMAGEWIDTH, &(t2p->tiff_width));

libtiff/tif_dir.c:1489:1: Parameter `tif->tif_dir.td_rowsperstrip`
    1487.  * NB: Directories are numbered starting at 0.
    1488.  */
    1489. int
          ^
    1490. TIFFSetDirectory(TIFF* tif, uint16 dirn)
    1491. {

tools/tiff2pdf.c:5360:4: Call
5358. 			written += t2p_write_pdf_stream_start(output);
5359. 			streamlen=written;
5360. 			t2p_read_tiff_size(t2p, input);
         ^
5361. 			written += t2p_readwrite_pdf_image(t2p, input, output);
5362. 			t2p_write_advance_directory(t2p, output);

tools/tiff2pdf.c:1800:1: Parameter `input->tif_dir.td_rowsperstrip`
  1798. */
  1799. 
  1800. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
        ^
  1801. 
  1802. 	uint64* sbc=NULL;

tools/tiff2pdf.c:1834:15: Call
  1832. 				return;
  1833. 			}
  1834. 			stripcount=TIFFNumberOfStrips(input);
                      ^
  1835. 			for(i=0;i<stripcount;i++){
  1836. 				k = checkAdd64(k, sbc[i], t2p);

libtiff/tif_strip.c:60:1: <LHS trace>
58.  * Compute how many strips are in an image.
59.  */
60. uint32
    ^
61. TIFFNumberOfStrips(TIFF* tif)
62. {

libtiff/tif_strip.c:60:1: Parameter `tif->tif_dir.td_rowsperstrip`
    58.  * Compute how many strips are in an image.
    59.  */
    60. uint32
        ^
    61. TIFFNumberOfStrips(TIFF* tif)
    62. {

libtiff/tif_strip.c:67:7: Binary operation: ([0, +oo] - 1):unsigned32 by call to `t2p_read_tiff_size` 
    65. 
    66. 	nstrips = (td->td_rowsperstrip == (uint32) -1 ? 1 :
    67. 	     TIFFhowmany_32(td->td_imagelength, td->td_rowsperstrip));
              ^
    68. 	if (td->td_planarconfig == PLANARCONFIG_SEPARATE)
    69. 		nstrips = _TIFFMultiply32(tif, nstrips, (uint32)td->td_samplesperpixel,
