tools/tiff2pdf.c:5358: error: Integer Overflow L2
  ([0, 4294967294] + [0, 4294967294]):unsigned32 by call to `t2p_readwrite_pdf_image_tile`.

tools/tiff2pdf.c:5239:1: Parameter `input->tif_dir.td_imagedepth`
5237. */
5238. 
5239. tsize_t t2p_write_pdf(T2P* t2p, TIFF* input, TIFF* output){
      ^
5240. 
5241. 	tsize_t written=0;

tools/tiff2pdf.c:5246:2: Call
5244. 	uint16 i=0;
5245. 
5246. 	t2p_read_tiff_init(t2p, input);
       ^
5247. 	if(t2p->t2p_error!=T2P_ERR_OK){return(0);}
5248. 	t2p->pdf_xrefoffsets= (uint32*) _TIFFmalloc(t2p->pdf_xrefcount * sizeof(uint32) );

tools/tiff2pdf.c:1057:1: Parameter `input->tif_dir.td_imagedepth`
  1055. */
  1056. 
  1057. void t2p_read_tiff_init(T2P* t2p, TIFF* input){
        ^
  1058. 
  1059. 	tdir_t directorycount=0;

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:1247:1: Parameter `input->tif_dir.td_imagedepth`
  1245. */
  1246. 
  1247. void t2p_read_tiff_data(T2P* t2p, TIFF* input){
        ^
  1248. 
  1249. 	int i=0;

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_imagedepth`
    1368.  * NB: Directories are numbered starting at 0.
    1369.  */
    1370. int
          ^
    1371. TIFFSetDirectory(TIFF* tif, uint16 dirn)
    1372. {

tools/tiff2pdf.c:5358:16: Call
5356. 				streamlen=written;
5357. 				t2p_read_tiff_size_tile(t2p, input, i2);
5358. 				written += t2p_readwrite_pdf_image_tile(t2p, input, output, i2);
                     ^
5359. 				t2p_write_advance_directory(t2p, output);
5360. 				if(t2p->t2p_error!=T2P_ERR_OK){return(0);}

tools/tiff2pdf.c:2627:1: Parameter `input->tif_dir.td_imagedepth`
  2625.  */
  2626. 
  2627. tsize_t t2p_readwrite_pdf_image_tile(T2P* t2p, TIFF* input, TIFF* output, ttile_t tile){
        ^
  2628. 
  2629. 	uint16 edge=0;

tools/tiff2pdf.c:2822:17: Call
  2820. 		if(t2p->pdf_sample == T2P_SAMPLE_PLANAR_SEPARATE_TO_CONTIG){
  2821. 			septilesize=TIFFTileSize(input);
  2822. 			septilecount=TIFFNumberOfTiles(input);
                        ^
  2823. 			tilesize=septilesize*t2p->tiff_samplesperpixel;
  2824. 			tilecount=septilecount/t2p->tiff_samplesperpixel;

libtiff/tif_tile.c:140:1: <LHS trace>
138.  * Compute how many tiles are in an image.
139.  */
140. uint32
     ^
141. TIFFNumberOfTiles(TIFF* tif)
142. {

libtiff/tif_tile.c:140:1: Parameter `tif->tif_dir.td_imagedepth`
    138.  * Compute how many tiles are in an image.
    139.  */
    140. uint32
         ^
    141. TIFFNumberOfTiles(TIFF* tif)
    142. {

libtiff/tif_tile.c:140:1: <RHS trace>
138.  * Compute how many tiles are in an image.
139.  */
140. uint32
     ^
141. TIFFNumberOfTiles(TIFF* tif)
142. {

libtiff/tif_tile.c:140:1: Parameter `tif->tif_dir.td_imagedepth`
    138.  * Compute how many tiles are in an image.
    139.  */
    140. uint32
         ^
    141. TIFFNumberOfTiles(TIFF* tif)
    142. {

libtiff/tif_tile.c:159:6: Binary operation: ([0, 4294967294] + [0, 4294967294]):unsigned32 by call to `t2p_readwrite_pdf_image_tile` 
    157. 	    TIFFhowmany_32(td->td_imagelength, dy),
    158. 	    "TIFFNumberOfTiles"),
    159. 	    TIFFhowmany_32(td->td_imagedepth, dz), "TIFFNumberOfTiles");
              ^
    160. 	if (td->td_planarconfig == PLANARCONFIG_SEPARATE)
    161. 		ntiles = multiply_32(tif, ntiles, td->td_samplesperpixel,
