libavcodec/twinvq.c:1056: error: Buffer Overrun L2
  Offset: [0, 4] (⇐ [0, 3] + [0, 1]) Size: 4 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: 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:983:5: Call
  981.                       tctx->length_change[ftype], ftype);
  982. 
  983.     transpose_perm(tctx->permut[ftype], tmp_perm, tctx->n_div[ftype],
           ^
  984.                    tctx->length[ftype], tctx->length_change[ftype]);
  985. 

libavcodec/twinvq.c:953:34: <Offset trace>
951.     int cont= 0;
952.     for (i = 0; i < num_vect; i++)
953.         for (j = 0; j < line_len[i >= length_div]; j++)
                                      ^
954.             out[cont++] = in[j*num_vect + i];
955. }

libavcodec/twinvq.c:953:34: Assignment
    951.     int cont= 0;
    952.     for (i = 0; i < num_vect; i++)
    953.         for (j = 0; j < line_len[i >= length_div]; j++)
                                          ^
    954.             out[cont++] = in[j*num_vect + i];
    955. }

libavcodec/twinvq.c:947:1: <Length trace>
945.  * aiqxbjr1cks2dlt3emu4fvn5gow6hp
946.  */
947. static void transpose_perm(int16_t *out, int16_t *in, int num_vect,
     ^
948.                            const uint8_t line_len[2], int length_div)
949. {

libavcodec/twinvq.c:947:1: Parameter `*line_len`
    945.  * aiqxbjr1cks2dlt3emu4fvn5gow6hp
    946.  */
    947. static void transpose_perm(int16_t *out, int16_t *in, int num_vect,
         ^
    948.                            const uint8_t line_len[2], int length_div)
    949. {

libavcodec/twinvq.c:953:25: Array access: Offset: [0, 4] (⇐ [0, 3] + [0, 1]) Size: 4 by call to `construct_perm_table` 
    951.     int cont= 0;
    952.     for (i = 0; i < num_vect; i++)
    953.         for (j = 0; j < line_len[i >= length_div]; j++)
                                 ^
    954.             out[cont++] = in[j*num_vect + i];
    955. }
