libavcodec/twinvq.c:1066: error: Buffer Overrun L2
  Offset: [0, 3] Size: 3 by call to `construct_perm_table`.

libavcodec/twinvq.c:1065:10: Assignment
1063.     }
1064. 
1065.     for (i = 0; i < 4; i++)
               ^
1066.         construct_perm_table(tctx, i);
1067. }

libavcodec/twinvq.c:1066:9: Call
1064. 
1065.     for (i = 0; i < 4; i++)
1066.         construct_perm_table(tctx, i);
              ^
1067. }
1068. 

libavcodec/twinvq.c:977:1: <Offset trace>
975. }
976. 
977. static av_cold void construct_perm_table(TwinContext *tctx,enum FrameType ftype)
     ^
978. {
979.     int block_size;

libavcodec/twinvq.c:977:1: Parameter `ftype`
  975. }
  976. 
  977. static av_cold void construct_perm_table(TwinContext *tctx,enum FrameType ftype)
       ^
  978. {
  979.     int block_size;

libavcodec/twinvq.c:977:1: <Length trace>
975. }
976. 
977. static av_cold void construct_perm_table(TwinContext *tctx,enum FrameType ftype)
     ^
978. {
979.     int block_size;

libavcodec/twinvq.c:977:1: Parameter `tctx->mtab->fmode[*]`
  975. }
  976. 
  977. static av_cold void construct_perm_table(TwinContext *tctx,enum FrameType ftype)
       ^
  978. {
  979.     int block_size;

libavcodec/twinvq.c:981:38: Array access: Offset: [0, 3] Size: 3 by call to `construct_perm_table` 
  979.     int block_size;
  980.     const ModeTab *mtab = tctx->mtab;
  981.     int size = tctx->avctx->channels*mtab->fmode[ftype].sub;
                                            ^
  982.     int16_t *tmp_perm = (int16_t *) tctx->tmp_buf;
  983. 
