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/audioconvert.c:178:12: Call
  176. int av_get_channel_layout_nb_channels(uint64_t channel_layout)
  177. {
  178.     return av_popcount64(channel_layout);
                  ^
  179. }
  180. 

libavutil/common.h:228:12: Call
    226. static av_always_inline av_const int av_popcount64_c(uint64_t x)
    227. {
    228.     return av_popcount(x) + av_popcount(x >> 32);
                    ^
    229. }
    230. 

libavutil/common.h:212:1: Parameter `x`
      210.  * @return the number of bits set to one in x
      211.  */
      212. static av_always_inline av_const int av_popcount_c(uint32_t x)
           ^
      213. {
      214.     x -= (x >> 1) & 0x55555555;

libavutil/common.h:214:5: Assignment
      212. static av_always_inline av_const int av_popcount_c(uint32_t x)
      213. {
      214.     x -= (x >> 1) & 0x55555555;
               ^
      215.     x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
      216.     x = (x + (x >> 4)) & 0x0F0F0F0F;

libavutil/common.h:215:5: Assignment
      213. {
      214.     x -= (x >> 1) & 0x55555555;
      215.     x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
               ^
      216.     x = (x + (x >> 4)) & 0x0F0F0F0F;
      217.     x += x >> 8;

libavutil/common.h:216:5: Assignment
      214.     x -= (x >> 1) & 0x55555555;
      215.     x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
      216.     x = (x + (x >> 4)) & 0x0F0F0F0F;
               ^
      217.     x += x >> 8;
      218.     return (x + (x >> 16)) & 0x3F;

libavutil/common.h:217:5: Assignment
      215.     x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
      216.     x = (x + (x >> 4)) & 0x0F0F0F0F;
      217.     x += x >> 8;
               ^
      218.     return (x + (x >> 16)) & 0x3F;
      219. }

libavutil/common.h:218:5: Assignment
      216.     x = (x + (x >> 4)) & 0x0F0F0F0F;
      217.     x += x >> 8;
      218.     return (x + (x >> 16)) & 0x3F;
               ^
      219. }
      220. 

libavutil/common.h:228:5: Assignment
    226. static av_always_inline av_const int av_popcount64_c(uint64_t x)
    227. {
    228.     return av_popcount(x) + av_popcount(x >> 32);
             ^
    229. }
    230. 

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

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_samples(AVFilterLink *inlink, AVFilterBufferRef *buf)
     ^
317. {
318.     AVFilterContext  *ctx = inlink->dst;

libavfilter/af_channelmap.c:316:1: Array declaration
314. }
315. 
316. static int channelmap_filter_samples(AVFilterLink *inlink, AVFilterBufferRef *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. 
