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

tools/tiff2pdf.c:5166:3: Call
5164. 	written += t2p_write_pdf_obj_end(output);
5165. 	for(t2p->pdf_page=0;t2p->pdf_page<t2p->tiff_pagecount;t2p->pdf_page++){
5166. 		t2p_read_tiff_data(t2p, input);
        ^
5167. 		if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5168. 		t2p->pdf_xrefoffsets[t2p->pdf_xrefcount++]=written;

tools/tiff2pdf.c:1202:2: Call
  1200.         
  1201. 	
  1202. 	TIFFSetDirectory(input, t2p->tiff_pages[t2p->pdf_page].page_directory);
         ^
  1203. 
  1204. 	TIFFGetField(input, TIFFTAG_IMAGEWIDTH, &(t2p->tiff_width));

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

tools/tiff2pdf.c:5269:4: Call
5267. 			written += t2p_write_pdf_stream_start(output);
5268. 			streamlen=written;
5269. 			t2p_read_tiff_size(t2p, input);
         ^
5270. 			written += t2p_readwrite_pdf_image(t2p, input, output);
5271. 			t2p_write_advance_directory(t2p, output);

tools/tiff2pdf.c:1766:1: Parameter `input->tif_dir.td_rowsperstrip`
  1764. */
  1765. 
  1766. void t2p_read_tiff_size(T2P* t2p, TIFF* input){
        ^
  1767. 
  1768. 	uint64* sbc=NULL;

tools/tiff2pdf.c:5270:15: Call
5268. 			streamlen=written;
5269. 			t2p_read_tiff_size(t2p, input);
5270. 			written += t2p_readwrite_pdf_image(t2p, input, output);
                    ^
5271. 			t2p_write_advance_directory(t2p, output);
5272. 			if(t2p->t2p_error!=T2P_ERR_OK){return(0);}

tools/tiff2pdf.c:1984:1: Parameter `input->tif_dir.td_rowsperstrip`
  1982. */
  1983. 
  1984. tsize_t t2p_readwrite_pdf_image(T2P* t2p, TIFF* input, TIFF* output){
        ^
  1985. 
  1986. 	tsize_t written=0;

tools/tiff2pdf.c:2161:16: Call
  2159. 				_TIFFmemcpy(buffer, t2p->pdf_ojpegdata, t2p->pdf_ojpegdatalength);
  2160. 				bufferoffset=t2p->pdf_ojpegdatalength;
  2161. 				stripcount=TIFFNumberOfStrips(input);
                       ^
  2162. 				for(i=0;i<stripcount;i++){
  2163. 					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,
