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

libavcodec/cook.c:961:5: Assignment
959.     int i, ret;
960.     int offset = 0;
961.     int chidx = 0;
         ^
962. 
963.     if (buf_size < avctx->block_align)

libavcodec/cook.c:993:9: Assignment
991.         q->subpacket[i].bits_per_subpacket = (q->subpacket[i].size * 8) >>
992.                                               q->subpacket[i].bits_per_subpdiv;
993.         q->subpacket[i].ch_idx = chidx;
             ^
994.         av_log(avctx, AV_LOG_DEBUG,
995.                "subpacket[%i] size %i js %i %i block_align %i\n",

libavcodec/cook.c:999:9: Call
 997.                avctx->block_align);
 998. 
 999.         decode_subpacket(q, &q->subpacket[i], buf + offset, samples);
              ^
1000.         offset += q->subpacket[i].size;
1001.         chidx += q->subpacket[i].num_channels;

libavcodec/cook.c:912:1: Parameter `p->numvector_size`
  910.  * @param outbuffer         pointer to the outbuffer
  911.  */
  912. static void decode_subpacket(COOKContext *q, COOKSubpacket *p,
       ^
  913.                              const uint8_t *inbuffer, float *outbuffer)
  914. {

libavcodec/cook.c:926:9: Call
  924.         joint_decode(q, p, q->decode_buffer_1, q->decode_buffer_2);
  925.     } else {
  926.         mono_decode(q, p, q->decode_buffer_1);
               ^
  927. 
  928.         if (p->num_channels == 2) {

libavcodec/cook.c:638:1: Parameter `p->numvector_size`
    636.  * @param mlt_buffer        pointer to mlt coefficients
    637.  */
    638. static void mono_decode(COOKContext *q, COOKSubpacket *p, float *mlt_buffer)
         ^
    639. {
    640.     int category_index[128];

libavcodec/cook.c:649:5: Call
    647.     decode_envelope(q, p, quant_index_table);
    648.     q->num_vectors = get_bits(&q->gb, p->log2_numvector_size);
    649.     categorize(q, p, quant_index_table, category, category_index);
             ^
    650.     expand_category(q, category, category_index);
    651.     decode_vectors(q, p, category, quant_index_table, mlt_buffer);

libavcodec/cook.c:402:1: <Offset trace>
400.  * @param category_index        pointer to the category_index array
401.  */
402. static void categorize(COOKContext *q, COOKSubpacket *p, int *quant_index_table,
     ^
403.                        int *category, int *category_index)
404. {

libavcodec/cook.c:402:1: Parameter `p->numvector_size`
      400.  * @param category_index        pointer to the category_index array
      401.  */
      402. static void categorize(COOKContext *q, COOKSubpacket *p, int *quant_index_table,
           ^
      403.                        int *category, int *category_index)
      404. {

libavcodec/cook.c:411:5: Assignment
      409.     int tmp_categorize_array[128 * 2];
      410.     int tmp_categorize_array1_idx = p->numvector_size;
      411.     int tmp_categorize_array2_idx = p->numvector_size;
               ^
      412. 
      413.     bits_left = p->bits_per_subpacket - get_bits_count(&q->gb);

libavcodec/cook.c:402:1: <Length trace>
400.  * @param category_index        pointer to the category_index array
401.  */
402. static void categorize(COOKContext *q, COOKSubpacket *p, int *quant_index_table,
     ^
403.                        int *category, int *category_index)
404. {

libavcodec/cook.c:402:1: Array declaration
      400.  * @param category_index        pointer to the category_index array
      401.  */
      402. static void categorize(COOKContext *q, COOKSubpacket *p, int *quant_index_table,
           ^
      403.                        int *category, int *category_index)
      404. {

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