contrib/addtiffo/tif_overview.c:162: error: Integer Overflow L2
  ([0, 4294967294] + [0, 4294967294]):unsigned32 by call to `TIFFSetDirectory`.

contrib/addtiffo/tif_overview.c:82:1: Parameter `hTIFF->tif_dir.td_imagelength`
80. /************************************************************************/
81. 
82. uint32 TIFF_WriteOverview( TIFF *hTIFF, uint32 nXSize, uint32 nYSize,
    ^
83.                            int nBitsPerPixel, int nPlanarConfig, int nSamples, 
84.                            int nBlockXSize, int nBlockYSize,

contrib/addtiffo/tif_overview.c:149:9: Call
147. /*      Write directory, and return byte offset.                        */
148. /* -------------------------------------------------------------------- */
149.     if( TIFFWriteCheck( hTIFF, bTiled, "TIFFBuildOverviews" ) == 0 )
             ^
150.         return 0;
151. 

libtiff/tif_write.c:564:1: Parameter `tif->tif_dir.td_imagelength`
  562.  * that important information is not changed.
  563.  */
  564. int
       ^
  565. TIFFWriteCheck(TIFF* tif, int tiles, const char* module)
  566. {

contrib/addtiffo/tif_overview.c:162:5: Call
160.         exit(-1);
161.     }
162.     TIFFSetDirectory( hTIFF, (tdir_t) (iNumDir - 1) );
         ^
163. 
164.     nOffset = TIFFCurrentDirOffset( hTIFF );

libtiff/tif_dir.c:1598:1: Parameter `tif->tif_dir.td_imagelength`
  1596.  * NB: Directories are numbered starting at 0.
  1597.  */
  1598. int
        ^
  1599. TIFFSetDirectory(TIFF* tif, uint16 dirn)
  1600. {

libtiff/tif_dir.c:1623:10: Call
  1621. 	 */
  1622. 	tif->tif_dirnumber = 0;
  1623. 	return (TIFFReadDirectory(tif));
                 ^
  1624. }
  1625. 

libtiff/tif_dirread.c:3511:1: Parameter `tif->tif_dir.td_imagelength`
    3509.  * format. We read directories sequentially.
    3510.  */
    3511. int
          ^
    3512. TIFFReadDirectory(TIFF* tif)
    3513. {

libtiff/tif_dirread.c:3735:29: Call
    3733. 		tif->tif_flags &= ~TIFF_ISTILED;
    3734. 	} else {
    3735. 		tif->tif_dir.td_nstrips = TIFFNumberOfTiles(tif);
                                      ^
    3736. 		tif->tif_flags |= TIFF_ISTILED;
    3737. 	}

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

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

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

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

libtiff/tif_tile.c:129:6: Binary operation: ([0, 4294967294] + [0, 4294967294]):unsigned32 by call to `TIFFSetDirectory` 
      127. 	ntiles = (dx == 0 || dy == 0 || dz == 0) ? 0 :
      128. 	    _TIFFMultiply32(tif, _TIFFMultiply32(tif, TIFFhowmany_32(td->td_imagewidth, dx),
      129. 	    TIFFhowmany_32(td->td_imagelength, dy),
                ^
      130. 	    "TIFFNumberOfTiles"),
      131. 	    TIFFhowmany_32(td->td_imagedepth, dz), "TIFFNumberOfTiles");
