libavformat/gxfenc.c:786: error: Buffer Overrun L3
  Offset: [1, +oo] Size: [0, 2147483631].

libavformat/gxfenc.c:785:10: <Offset trace>
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: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:767:1: <Length trace>
765. }
766. 
767. static int gxf_write_trailer(AVFormatContext *s)
     ^
768. {
769.     GXFContext *gxf = s->priv_data;

libavformat/gxfenc.c:767:1: Parameter `s->priv_data->map_offsets`
765. }
766. 
767. static int gxf_write_trailer(AVFormatContext *s)
     ^
768. {
769.     GXFContext *gxf = s->priv_data;

libavformat/gxfenc.c:780:5: Call
778.     avio_seek(pb, 0, SEEK_SET);
779.     /* overwrite map, flt and umf packets with new values */
780.     gxf_write_map_packet(s, 1);
         ^
781.     gxf_write_flt_packet(s);
782.     gxf_write_umf_packet(s);

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:786:23: Array access: Offset: [1, +oo] Size: [0, 2147483631]
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);
788.         avio_flush(pb);
