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

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

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

libtiff/tif_write.c:488:1: Parameter `tif->tif_dir.td_imagelength`
  486.  * that important information is not changed.
  487.  */
  488. int
       ^
  489. TIFFWriteCheck(TIFF* tif, int tiles, const char* module)
  490. {

contrib/addtiffo/tif_overview.c:150:5: Call
148. 
149.     TIFFWriteDirectory( hTIFF );
150.     TIFFSetDirectory( hTIFF, (tdir_t) (TIFFNumberOfDirectories(hTIFF)-1) );
         ^
151. 
152.     nOffset = TIFFCurrentDirOffset( hTIFF );

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

libtiff/tif_dir.c:1395:10: Call
  1393. 	 */
  1394. 	tif->tif_dirnumber = 0;
  1395. 	return (TIFFReadDirectory(tif));
                 ^
  1396. }
  1397. 

libtiff/tif_dirread.c:3404:1: Parameter `tif->tif_dir.td_imagelength`
    3402.  * format. We read directories sequentially.
    3403.  */
    3404. int
          ^
    3405. TIFFReadDirectory(TIFF* tif)
    3406. {

libtiff/tif_dirread.c:3600:29: Call
    3598. 		tif->tif_flags &= ~TIFF_ISTILED;
    3599. 	} else {
    3600. 		tif->tif_dir.td_nstrips = TIFFNumberOfTiles(tif);
                                      ^
    3601. 		tif->tif_flags |= TIFF_ISTILED;
    3602. 	}

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_imagelength`
      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_imagelength`
      138.  * Compute how many tiles are in an image.
      139.  */
      140. uint32
           ^
      141. TIFFNumberOfTiles(TIFF* tif)
      142. {

libtiff/tif_tile.c:157:6: Binary operation: ([0, 4294967294] + [0, 4294967294]):unsigned32 by call to `TIFFSetDirectory` 
      155. 	ntiles = (dx == 0 || dy == 0 || dz == 0) ? 0 :
      156. 	    multiply_32(tif, multiply_32(tif, TIFFhowmany_32(td->td_imagewidth, dx),
      157. 	    TIFFhowmany_32(td->td_imagelength, dy),
                ^
      158. 	    "TIFFNumberOfTiles"),
      159. 	    TIFFhowmany_32(td->td_imagedepth, dz), "TIFFNumberOfTiles");
