libavcodec/huffyuv.c:400: error: Buffer Overrun L2
  Offset: [0, 257] (⇐ [0, 2] + [0, 255]) Size: 3 by call to `generate_bits_table`.

libavcodec/huffyuv.c:391:1: Parameter `s->len[*]`
389. }
390. 
391. static int read_huffman_tables(HYuvContext *s, uint8_t *src, int length){
     ^
392.     GetBitContext gb;
393.     int i;

libavcodec/huffyuv.c:400:12: Call
398.         read_len_table(s->len[i], &gb);
399. 
400.         if(generate_bits_table(s->bits[i], s->len[i])<0){
                ^
401.             return -1;
402.         }

libavcodec/huffyuv.c:251:13: <Offset trace>
249. 
250.     for(len=32; len>0; len--){
251.         for(index=0; index<256; index++){
                 ^
252.             if(len_table[index]==len)
253.                 dst[index]= bits++;

libavcodec/huffyuv.c:251:13: Assignment
  249. 
  250.     for(len=32; len>0; len--){
  251.         for(index=0; index<256; index++){
                   ^
  252.             if(len_table[index]==len)
  253.                 dst[index]= bits++;

libavcodec/huffyuv.c:246:1: <Length trace>
244. }
245. 
246. static int generate_bits_table(uint32_t *dst, uint8_t *len_table){
     ^
247.     int len, index;
248.     uint32_t bits=0;

libavcodec/huffyuv.c:246:1: Parameter `*len_table`
  244. }
  245. 
  246. static int generate_bits_table(uint32_t *dst, uint8_t *len_table){
       ^
  247.     int len, index;
  248.     uint32_t bits=0;

libavcodec/huffyuv.c:252:16: Array access: Offset: [0, 257] (⇐ [0, 2] + [0, 255]) Size: 3 by call to `generate_bits_table` 
  250.     for(len=32; len>0; len--){
  251.         for(index=0; index<256; index++){
  252.             if(len_table[index]==len)
                      ^
  253.                 dst[index]= bits++;
  254.         }
