libavcodec/cook.c:1011: error: Buffer Overrun L1
  Offset: [-oo, -1] Size: 256 by call to `decode_subpacket`.

libavcodec/cook.c:973:5: Assignment
971.     int i, ret;
972.     int offset = 0;
973.     int chidx = 0;
         ^
974. 
975.     if (buf_size < avctx->block_align)

libavcodec/cook.c:1005:9: Assignment
1003.         q->subpacket[i].bits_per_subpacket = (q->subpacket[i].size * 8) >>
1004.                                               q->subpacket[i].bits_per_subpdiv;
1005.         q->subpacket[i].ch_idx = chidx;
              ^
1006.         av_log(avctx, AV_LOG_DEBUG,
1007.                "subpacket[%i] size %i js %i %i block_align %i\n",

libavcodec/cook.c:1011:20: Call
1009.                avctx->block_align);
1010. 
1011.         if ((ret = decode_subpacket(q, &q->subpacket[i], buf + offset, samples)) < 0)
                         ^
1012.             return ret;
1013.         offset += q->subpacket[i].size;

libavcodec/cook.c:918:1: Parameter `p->numvector_size`
  916.  * @param outbuffer         pointer to the outbuffer
  917.  */
  918. static int decode_subpacket(COOKContext *q, COOKSubpacket *p,
       ^
  919.                             const uint8_t *inbuffer, float **outbuffer)
  920. {

libavcodec/cook.c:931:20: Call
  929.             return res;
  930.     } else {
  931.         if ((res = mono_decode(q, p, q->decode_buffer_1)) < 0)
                          ^
  932.             return res;
  933. 

libavcodec/cook.c:645:1: Parameter `p->numvector_size`
    643.  * @param mlt_buffer        pointer to mlt coefficients
    644.  */
    645. static int mono_decode(COOKContext *q, COOKSubpacket *p, float *mlt_buffer)
         ^
    646. {
    647.     int category_index[128] = { 0 };

libavcodec/cook.c:655:5: Call
    653.         return res;
    654.     q->num_vectors = get_bits(&q->gb, p->log2_numvector_size);
    655.     categorize(q, p, quant_index_table, category, category_index);
             ^
    656.     expand_category(q, category, category_index);
    657.     decode_vectors(q, p, category, quant_index_table, mlt_buffer);

libavcodec/cook.c:411:1: <Offset trace>
409.  * @param category_index        pointer to the category_index array
410.  */
411. static void categorize(COOKContext *q, COOKSubpacket *p, int *quant_index_table,
     ^
412.                        int *category, int *category_index)
413. {

libavcodec/cook.c:411:1: Parameter `p->numvector_size`
      409.  * @param category_index        pointer to the category_index array
      410.  */
      411. static void categorize(COOKContext *q, COOKSubpacket *p, int *quant_index_table,
           ^
      412.                        int *category, int *category_index)
      413. {

libavcodec/cook.c:420:5: Assignment
      418.     int tmp_categorize_array[128 * 2] = { 0 };
      419.     int tmp_categorize_array1_idx = p->numvector_size;
      420.     int tmp_categorize_array2_idx = p->numvector_size;
               ^
      421. 
      422.     bits_left = p->bits_per_subpacket - get_bits_count(&q->gb);

libavcodec/cook.c:411:1: <Length trace>
409.  * @param category_index        pointer to the category_index array
410.  */
411. static void categorize(COOKContext *q, COOKSubpacket *p, int *quant_index_table,
     ^
412.                        int *category, int *category_index)
413. {

libavcodec/cook.c:411:1: Array declaration
      409.  * @param category_index        pointer to the category_index array
      410.  */
      411. static void categorize(COOKContext *q, COOKSubpacket *p, int *quant_index_table,
           ^
      412.                        int *category, int *category_index)
      413. {

libavcodec/cook.c:486:13: Array access: Offset: [-oo, -1] Size: 256 by call to `decode_subpacket` 
      484.             if (index == -1)
      485.                 break;
      486.             tmp_categorize_array[--tmp_categorize_array2_idx] = index;
                       ^
      487.             tmpbias2 -= expbits_tab[exp_index2[index]] -
      488.                         expbits_tab[exp_index2[index] - 1];
