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

libavcodec/twinvq.c:1055:10: Assignment
1053.     }
1054. 
1055.     for (frametype = FT_SHORT; frametype <= FT_PPC; frametype++)
               ^
1056.         construct_perm_table(tctx, frametype);
1057. }

libavcodec/twinvq.c:1056:9: Call
1054. 
1055.     for (frametype = FT_SHORT; frametype <= FT_PPC; frametype++)
1056.         construct_perm_table(tctx, frametype);
              ^
1057. }
1058. 

libavcodec/twinvq.c:966:1: <Offset trace>
964. }
965. 
966. static av_cold void construct_perm_table(TwinContext *tctx,enum FrameType ftype)
     ^
967. {
968.     int block_size;

libavcodec/twinvq.c:966:1: Parameter `ftype`
  964. }
  965. 
  966. static av_cold void construct_perm_table(TwinContext *tctx,enum FrameType ftype)
       ^
  967. {
  968.     int block_size;

libavcodec/twinvq.c:966:1: <Length trace>
964. }
965. 
966. static av_cold void construct_perm_table(TwinContext *tctx,enum FrameType ftype)
     ^
967. {
968.     int block_size;

libavcodec/twinvq.c:966:1: Parameter `tctx->mtab->fmode[*]`
  964. }
  965. 
  966. static av_cold void construct_perm_table(TwinContext *tctx,enum FrameType ftype)
       ^
  967. {
  968.     int block_size;

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