libtiff/tif_write.c:414: error: Buffer Overrun S2
  Offset: `tile` Size: [0, +oo].

libtiff/tif_write.c:378:1: <Offset trace>
376.  *     the image on each write (as TIFFWriteScanline does).
377.  */
378. tmsize_t
     ^
379. TIFFWriteEncodedTile(TIFF* tif, uint32 tile, void* data, tmsize_t cc)
380. {

libtiff/tif_write.c:378:1: Parameter `tile`
376.  *     the image on each write (as TIFFWriteScanline does).
377.  */
378. tmsize_t
     ^
379. TIFFWriteEncodedTile(TIFF* tif, uint32 tile, void* data, tmsize_t cc)
380. {

libtiff/tif_write.c:378:1: <Length trace>
376.  *     the image on each write (as TIFFWriteScanline does).
377.  */
378. tmsize_t
     ^
379. TIFFWriteEncodedTile(TIFF* tif, uint32 tile, void* data, tmsize_t cc)
380. {

libtiff/tif_write.c:378:1: Parameter `*tif->tif_dir.td_stripbytecount`
376.  *     the image on each write (as TIFFWriteScanline does).
377.  */
378. tmsize_t
     ^
379. TIFFWriteEncodedTile(TIFF* tif, uint32 tile, void* data, tmsize_t cc)
380. {

libtiff/tif_write.c:414:31: Array access: Offset: tile Size: [0, +oo]
412.             {
413.                 if( !(TIFFWriteBufferSetup(tif, NULL,
414.                     (tmsize_t)TIFFroundup_64((uint64)(td->td_stripbytecount[tile] + 1), 1024))) )
                                   ^
415.                     return ((tmsize_t)(-1));
416.             }
