tools/tiff2pdf.c:2884: error: Integer Overflow L2
  ([0, max(0, `input->tif_dir.td_tilewidth`)] - 1):unsigned32 by call to `TIFFReadEncodedTile`.

tools/tiff2pdf.c:2627:1: Parameter `input->tif_dir.td_tilewidth`
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:2884:11: Call
2882. 				return(0);
2883. 			}
2884. 			read = TIFFReadEncodedTile(
                ^
2885. 				input, 
2886. 				tile, 

libtiff/tif_read.c:617:1: Parameter `tif->tif_dir.td_tilewidth`
  615.  * amount into the user-supplied buffer.
  616.  */
  617. tmsize_t
       ^
  618. TIFFReadEncodedTile(TIFF* tif, uint32 tile, void* buf, tmsize_t size)
  619. {

libtiff/tif_read.c:636:6: Call
  634. 	else if (size > tilesize)
  635. 		size = tilesize;
  636. 	if (TIFFFillTile(tif, tile) && (*tif->tif_decodetile)(tif,
            ^
  637. 	    (uint8*) buf, size, (uint16)(tile/td->td_stripsperimage))) {
  638. 		(*tif->tif_postdecode)(tif, (uint8*) buf, size);

libtiff/tif_read.c:757:1: Parameter `tif->tif_dir.td_tilewidth`
    755.  * expanded, as necessary, to hold the tile's data.
    756.  */
    757. int
         ^
    758. TIFFFillTile(TIFF* tif, uint32 tile)
    759. {

libtiff/tif_read.c:853:10: Call
    851. 		}
    852. 	}
    853. 	return (TIFFStartTile(tif, tile));
                  ^
    854. }
    855. 

libtiff/tif_read.c:933:1: <LHS trace>
931.  * tile has just been read in.
932.  */
933. static int
     ^
934. TIFFStartTile(TIFF* tif, uint32 tile)
935. {

libtiff/tif_read.c:933:1: Parameter `tif->tif_dir.td_imagewidth`
      931.  * tile has just been read in.
      932.  */
      933. static int
           ^
      934. TIFFStartTile(TIFF* tif, uint32 tile)
      935. {

libtiff/tif_read.c:945:14: Binary operation: ([0, max(0, input->tif_dir.td_tilewidth)] - 1):unsigned32 by call to `TIFFReadEncodedTile` 
      943. 	tif->tif_curtile = tile;
      944. 	tif->tif_row =
      945. 	    (tile % TIFFhowmany_32(td->td_imagewidth, td->td_tilewidth)) *
                        ^
      946. 		td->td_tilelength;
      947. 	tif->tif_col =
