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

libavcodec/huffyuv.c:380:1: Parameter `s->len[*]`
378. }
379. 
380. static int read_huffman_tables(HYuvContext *s, uint8_t *src, int length){
     ^
381.     GetBitContext gb;
382.     int i;

libavcodec/huffyuv.c:389:12: Call
387.         if(read_len_table(s->len[i], &gb)<0)
388.             return -1;
389.         if(generate_bits_table(s->bits[i], s->len[i])<0){
                ^
390.             return -1;
391.         }

libavcodec/huffyuv.c:240:13: <Offset trace>
238. 
239.     for(len=32; len>0; len--){
240.         for(index=0; index<256; index++){
                 ^
241.             if(len_table[index]==len)
242.                 dst[index]= bits++;

libavcodec/huffyuv.c:240:13: Assignment
  238. 
  239.     for(len=32; len>0; len--){
  240.         for(index=0; index<256; index++){
                   ^
  241.             if(len_table[index]==len)
  242.                 dst[index]= bits++;

libavcodec/huffyuv.c:235:1: <Length trace>
233. }
234. 
235. static int generate_bits_table(uint32_t *dst, uint8_t *len_table){
     ^
236.     int len, index;
237.     uint32_t bits=0;

libavcodec/huffyuv.c:235:1: Parameter `*len_table`
  233. }
  234. 
  235. static int generate_bits_table(uint32_t *dst, uint8_t *len_table){
       ^
  236.     int len, index;
  237.     uint32_t bits=0;

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