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

tools/tiff2pdf.c:5533:3: Call
5531. 	written += t2p_write_pdf_obj_end(output);
5532. 	for(t2p->pdf_page=0;t2p->pdf_page<t2p->tiff_pagecount;t2p->pdf_page++){
5533. 		t2p_read_tiff_data(t2p, input);
        ^
5534. 		if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5535. 		t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:1326:2: Call
  1324.         
  1325. 	
  1326. 	TIFFSetDirectory(input, t2p->tiff_pages[t2p->pdf_page].page_directory);
         ^
  1327. 
  1328. 	TIFFGetField(input, TIFFTAG_IMAGEWIDTH, &(t2p->tiff_width));

libtiff/tif_dir.c:1665:1: Parameter `tif->tif_dir.td_rowsperstrip`
    1663.  * NB: Directories are numbered starting at 0.
    1664.  */
    1665. int
          ^
    1666. TIFFSetDirectory(TIFF* tif, uint16 dirn)
    1667. {

tools/tiff2pdf.c:5636:4: Call
5634. 			written += t2p_write_pdf_stream_start(output);
5635. 			streamlen=written;
5636. 			t2p_read_tiff_size(t2p, input);
         ^
5637. 			if (t2p->tiff_maxdatasize && (t2p->tiff_datasize > t2p->tiff_maxdatasize)) {
5638. 				TIFFError(TIFF2PDF_MODULE,

tools/tiff2pdf.c:1962:1: Parameter `input->tif_dir.td_rowsperstrip`
  1960. */
  1961. 
  1962. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
        ^
  1963. 
  1964. 	uint64* sbc=NULL;

tools/tiff2pdf.c:5644:15: Call
5642. 				return (0);
5643. 			}
5644. 			written += t2p_readwrite_pdf_image(t2p, input, output);
                    ^
5645. 			t2p_write_advance_directory(t2p, output);
5646. 			if(t2p->t2p_error!=T2P_ERR_OK){return(0);}

tools/tiff2pdf.c:2233:1: Parameter `input->tif_dir.td_rowsperstrip`
  2231. */
  2232. 
  2233. tsize_t t2p_readwrite_pdf_image(T2P* t2p, TIFF* input, TIFF* output){
        ^
  2234. 
  2235. 	tsize_t written=0;

tools/tiff2pdf.c:2379:17: Call
  2377. 					buffer[bufferoffset++]= (ri>>8) & 0xff;
  2378. 					buffer[bufferoffset++]= ri & 0xff;
  2379. 					stripcount=TIFFNumberOfStrips(input);
                        ^
  2380. 					for(i=0;i<stripcount;i++){
  2381. 						if(i != 0 ){ 

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

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

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