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

libtiff/tif_write.c:185:1: <Offset trace>
183.  * NB: Image length must be setup before writing.
184.  */
185. tmsize_t
     ^
186. TIFFWriteEncodedStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc)
187. {

libtiff/tif_write.c:185:1: Parameter `strip`
183.  * NB: Image length must be setup before writing.
184.  */
185. tmsize_t
     ^
186. TIFFWriteEncodedStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc)
187. {

libtiff/tif_write.c:185:1: <Length trace>
183.  * NB: Image length must be setup before writing.
184.  */
185. tmsize_t
     ^
186. TIFFWriteEncodedStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc)
187. {

libtiff/tif_write.c:185:1: Parameter `*tif->tif_dir.td_stripbytecount`
183.  * NB: Image length must be setup before writing.
184.  */
185. tmsize_t
     ^
186. TIFFWriteEncodedStrip(TIFF* tif, uint32 strip, void* data, tmsize_t cc)
187. {

libtiff/tif_write.c:243:51: Array access: Offset: strip Size: [0, +oo]
241.             /* so that TIFFAppendToStrip() will detect the overflow when it is called the first */
242.             /* time if the new compressed tile is bigger than the older one. (GDAL #4771) */
243.             if( tif->tif_rawdatasize <= (tmsize_t)td->td_stripbytecount[strip] )
                                                       ^
244.             {
245.                 if( !(TIFFWriteBufferSetup(tif, NULL,
