libavformat/gxfenc.c:787: error: Buffer Overrun L3
  Offset: [2, +oo] Size: [0, 2147483631] by call to `gxf_write_map_packet`.

libavformat/gxfenc.c:785:10: Assignment
783.     avio_flush(pb);
784.     /* update duration in all map packets */
785.     for (i = 1; i < gxf->map_offsets_nb; i++) {
              ^
786.         avio_seek(pb, gxf->map_offsets[i], SEEK_SET);
787.         gxf_write_map_packet(s, 1);

libavformat/gxfenc.c:787:9: Call
785.     for (i = 1; i < gxf->map_offsets_nb; i++) {
786.         avio_seek(pb, gxf->map_offsets[i], SEEK_SET);
787.         gxf_write_map_packet(s, 1);
             ^
788.         avio_flush(pb);
789.     }

libavformat/gxfenc.c:337:1: <Offset trace>
335. }
336. 
337. static int gxf_write_map_packet(AVFormatContext *s, int rewrite)
     ^
338. {
339.     GXFContext *gxf = s->priv_data;

libavformat/gxfenc.c:337:1: Parameter `s->priv_data->map_offsets_nb`
  335. }
  336. 
  337. static int gxf_write_map_packet(AVFormatContext *s, int rewrite)
       ^
  338. {
  339.     GXFContext *gxf = s->priv_data;

libavformat/gxfenc.c:337:1: <Length trace>
335. }
336. 
337. static int gxf_write_map_packet(AVFormatContext *s, int rewrite)
     ^
338. {
339.     GXFContext *gxf = s->priv_data;

libavformat/gxfenc.c:337:1: Parameter `s->priv_data->map_offsets`
  335. }
  336. 
  337. static int gxf_write_map_packet(AVFormatContext *s, int rewrite)
       ^
  338. {
  339.     GXFContext *gxf = s->priv_data;

libavformat/gxfenc.c:354:9: Array access: Offset: [2, +oo] Size: [0, 2147483631] by call to `gxf_write_map_packet` 
  352.             }
  353.         }
  354.         gxf->map_offsets[gxf->map_offsets_nb++] = pos; // do not increment here
               ^
  355.     }
  356. 
