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

tools/tiff2pdf.c:5429:3: Call
5427. 	written += t2p_write_pdf_obj_end(output);
5428. 	for(t2p->pdf_page=0;t2p->pdf_page<t2p->tiff_pagecount;t2p->pdf_page++){
5429. 		t2p_read_tiff_data(t2p, input);
        ^
5430. 		if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5431. 		t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:1274:2: Call
  1272.         
  1273. 	
  1274. 	TIFFSetDirectory(input, t2p->tiff_pages[t2p->pdf_page].page_directory);
         ^
  1275. 
  1276. 	TIFFGetField(input, TIFFTAG_IMAGEWIDTH, &(t2p->tiff_width));

libtiff/tif_dir.c:1537:1: Parameter `tif->tif_dir.td_rowsperstrip`
    1535.  * NB: Directories are numbered starting at 0.
    1536.  */
    1537. int
          ^
    1538. TIFFSetDirectory(TIFF* tif, uint16 dirn)
    1539. {

tools/tiff2pdf.c:5532:4: Call
5530. 			written += t2p_write_pdf_stream_start(output);
5531. 			streamlen=written;
5532. 			t2p_read_tiff_size(t2p, input);
         ^
5533. 			written += t2p_readwrite_pdf_image(t2p, input, output);
5534. 			t2p_write_advance_directory(t2p, output);

tools/tiff2pdf.c:1892:1: Parameter `input->tif_dir.td_rowsperstrip`
  1890. */
  1891. 
  1892. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
        ^
  1893. 
  1894. 	uint64* sbc=NULL;

tools/tiff2pdf.c:5533:15: Call
5531. 			streamlen=written;
5532. 			t2p_read_tiff_size(t2p, input);
5533. 			written += t2p_readwrite_pdf_image(t2p, input, output);
                    ^
5534. 			t2p_write_advance_directory(t2p, output);
5535. 			if(t2p->t2p_error!=T2P_ERR_OK){return(0);}

tools/tiff2pdf.c:2155:1: Parameter `input->tif_dir.td_rowsperstrip`
  2153. */
  2154. 
  2155. tsize_t t2p_readwrite_pdf_image(T2P* t2p, TIFF* input, TIFF* output){
        ^
  2156. 
  2157. 	tsize_t written=0;

tools/tiff2pdf.c:2301:17: Call
  2299. 					buffer[bufferoffset++]= (ri>>8) & 0xff;
  2300. 					buffer[bufferoffset++]= ri & 0xff;
  2301. 					stripcount=TIFFNumberOfStrips(input);
                        ^
  2302. 					for(i=0;i<stripcount;i++){
  2303. 						if(i != 0 ){ 

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_imagelength`
    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_readwrite_pdf_image` 
    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,
