tools/tiff2pdf.c:1071: error: Integer Overflow L2
  ([min(1, `input->tif_dir.td_imagedepth`), 4294967294] + [0, 4294967294-min(1, `input->tif_dir.td_imagedepth`)]):unsigned32 by call to `TIFFNumberOfTiles`.

tools/tiff2pdf.c:996:1: Parameter `input->tif_dir.td_imagedepth`
994. */
995. 
996. void t2p_read_tiff_init(T2P* t2p, TIFF* input){
     ^
997. 
998. 	tdir_t directorycount=0;

tools/tiff2pdf.c:1030:7: Call
1028. 		uint32 subfiletype = 0;
1029. 		
1030. 		if(!TIFFSetDirectory(input, i)){
            ^
1031. 			TIFFError(
1032. 				TIFF2PDF_MODULE, 

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

tools/tiff2pdf.c:1071:5: Call
1069. 		if(TIFFIsTiled(input)){
1070. 			t2p->tiff_pages[t2p->tiff_pagecount].page_tilecount = 
1071. 				TIFFNumberOfTiles(input);
          ^
1072. 		}
1073. 		t2p->tiff_pagecount++;

libtiff/tif_tile.c:114:1: <LHS trace>
112.  * Compute how many tiles are in an image.
113.  */
114. uint32
     ^
115. TIFFNumberOfTiles(TIFF* tif)
116. {

libtiff/tif_tile.c:114:1: Parameter `tif->tif_dir.td_imagedepth`
  112.  * Compute how many tiles are in an image.
  113.  */
  114. uint32
       ^
  115. TIFFNumberOfTiles(TIFF* tif)
  116. {

libtiff/tif_tile.c:114:1: <RHS trace>
112.  * Compute how many tiles are in an image.
113.  */
114. uint32
     ^
115. TIFFNumberOfTiles(TIFF* tif)
116. {

libtiff/tif_tile.c:114:1: Parameter `tif->tif_dir.td_imagedepth`
  112.  * Compute how many tiles are in an image.
  113.  */
  114. uint32
       ^
  115. TIFFNumberOfTiles(TIFF* tif)
  116. {

libtiff/tif_tile.c:133:6: Binary operation: ([min(1, input->tif_dir.td_imagedepth), 4294967294] + [0, 4294967294-min(1, input->tif_dir.td_imagedepth)]):unsigned32 by call to `TIFFNumberOfTiles` 
  131. 	    TIFFhowmany_32(td->td_imagelength, dy),
  132. 	    "TIFFNumberOfTiles"),
  133. 	    TIFFhowmany_32(td->td_imagedepth, dz), "TIFFNumberOfTiles");
            ^
  134. 	if (td->td_planarconfig == PLANARCONFIG_SEPARATE)
  135. 		ntiles = _TIFFMultiply32(tif, ntiles, td->td_samplesperpixel,
