libavfilter/af_channelmap.c:326: error: Buffer Overrun L2
  Offset added: [0, 1008] Size: 512.

libavfilter/af_channelmap.c:321:24: <Offset trace>
319.     AVFilterLink *outlink = ctx->outputs[0];
320.     const ChannelMapContext *s = ctx->priv;
321.     const int nch_in = av_get_channel_layout_nb_channels(inlink->channel_layout);
                            ^
322.     const int nch_out = s->nch;
323.     int ch;

libavfilter/af_channelmap.c:321:24: Call
319.     AVFilterLink *outlink = ctx->outputs[0];
320.     const ChannelMapContext *s = ctx->priv;
321.     const int nch_in = av_get_channel_layout_nb_channels(inlink->channel_layout);
                            ^
322.     const int nch_out = s->nch;
323.     int ch;

libavutil/channel_layout.c:180:12: Call
  178. int av_get_channel_layout_nb_channels(uint64_t channel_layout)
  179. {
  180.     return av_popcount64(channel_layout);
                  ^
  181. }
  182. 

libavutil/common.h:234:12: Call
    232. static av_always_inline av_const int av_popcount64_c(uint64_t x)
    233. {
    234.     return av_popcount(x) + av_popcount(x >> 32);
                    ^
    235. }
    236. 

libavutil/common.h:218:1: Parameter `x`
      216.  * @return the number of bits set to one in x
      217.  */
      218. static av_always_inline av_const int av_popcount_c(uint32_t x)
           ^
      219. {
      220.     x -= (x >> 1) & 0x55555555;

libavutil/common.h:220:5: Assignment
      218. static av_always_inline av_const int av_popcount_c(uint32_t x)
      219. {
      220.     x -= (x >> 1) & 0x55555555;
               ^
      221.     x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
      222.     x = (x + (x >> 4)) & 0x0F0F0F0F;

libavutil/common.h:221:5: Assignment
      219. {
      220.     x -= (x >> 1) & 0x55555555;
      221.     x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
               ^
      222.     x = (x + (x >> 4)) & 0x0F0F0F0F;
      223.     x += x >> 8;

libavutil/common.h:222:5: Assignment
      220.     x -= (x >> 1) & 0x55555555;
      221.     x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
      222.     x = (x + (x >> 4)) & 0x0F0F0F0F;
               ^
      223.     x += x >> 8;
      224.     return (x + (x >> 16)) & 0x3F;

libavutil/common.h:223:5: Assignment
      221.     x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
      222.     x = (x + (x >> 4)) & 0x0F0F0F0F;
      223.     x += x >> 8;
               ^
      224.     return (x + (x >> 16)) & 0x3F;
      225. }

libavutil/common.h:224:5: Assignment
      222.     x = (x + (x >> 4)) & 0x0F0F0F0F;
      223.     x += x >> 8;
      224.     return (x + (x >> 16)) & 0x3F;
               ^
      225. }
      226. 

libavutil/common.h:234:5: Assignment
    232. static av_always_inline av_const int av_popcount64_c(uint64_t x)
    233. {
    234.     return av_popcount(x) + av_popcount(x >> 32);
             ^
    235. }
    236. 

libavutil/channel_layout.c:180:5: Assignment
  178. int av_get_channel_layout_nb_channels(uint64_t channel_layout)
  179. {
  180.     return av_popcount64(channel_layout);
           ^
  181. }
  182. 

libavfilter/af_channelmap.c:321:5: Assignment
319.     AVFilterLink *outlink = ctx->outputs[0];
320.     const ChannelMapContext *s = ctx->priv;
321.     const int nch_in = av_get_channel_layout_nb_channels(inlink->channel_layout);
         ^
322.     const int nch_out = s->nch;
323.     int ch;

libavfilter/af_channelmap.c:316:1: <Length trace>
314. }
315. 
316. static int channelmap_filter_frame(AVFilterLink *inlink, AVFrame *buf)
     ^
317. {
318.     AVFilterContext  *ctx = inlink->dst;

libavfilter/af_channelmap.c:316:1: Array declaration
314. }
315. 
316. static int channelmap_filter_frame(AVFilterLink *inlink, AVFrame *buf)
     ^
317. {
318.     AVFilterContext  *ctx = inlink->dst;

libavfilter/af_channelmap.c:326:5: Array access: Offset added: [0, 1008] Size: 512
324.     uint8_t *source_planes[MAX_CH];
325. 
326.     memcpy(source_planes, buf->extended_data,
         ^
327.            nch_in * sizeof(source_planes[0]));
328. 
