libavcodec/cook.c:627: error: Buffer Overrun L2
  Offset: [min(7, `*category`), max(7, `*category`)] Size: 7 by call to `unpack_SQVH`.

libavcodec/cook.c:613:1: Parameter `*category`
611. 
612. 
613. static void decode_vectors(COOKContext* q, int* category,
     ^
614.                            int *quant_index_table, float* mlt_buffer){
615.     /* A zero in this table means that the subband coefficient is

libavcodec/cook.c:627:16: Call
625.         index = category[band];
626.         if(category[band] < 7){
627.             if(unpack_SQVH(q, category[band], subband_coef_index, subband_coef_sign)){
                    ^
628.                 index=7;
629.                 for(j=0 ; j<q->total_subbands ; j++) category[band+j]=7;

libavcodec/cook.c:568:1: <Offset trace>
566.  */
567. 
568. static int unpack_SQVH(COOKContext *q, int category, int* subband_coef_index,
     ^
569.                        int* subband_coef_sign) {
570.     int i,j;

libavcodec/cook.c:568:1: Parameter `category`
  566.  */
  567. 
  568. static int unpack_SQVH(COOKContext *q, int category, int* subband_coef_index,
       ^
  569.                        int* subband_coef_sign) {
  570.     int i,j;

libavcodec/cookdata.h:61:1: <Length trace>
59. };
60. 
61. static const int vd_tab[7] = {
    ^
62.     2, 2, 2, 4, 4, 5, 5,
63. };

libavcodec/cookdata.h:61:1: Array declaration
  59. };
  60. 
  61. static const int vd_tab[7] = {
      ^
  62.     2, 2, 2, 4, 4, 5, 5,
  63. };

libavcodec/cook.c:573:10: Array access: Offset: [min(7, *category), max(7, *category)] Size: 7 by call to `unpack_SQVH` 
  571.     int vlc, vd ,tmp, result;
  572. 
  573.     vd = vd_tab[category];
                ^
  574.     result = 0;
  575.     for(i=0 ; i<vpr_tab[category] ; i++){
