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

libavcodec/huffyuv.c:357:1: Parameter `s->len[*]`
355. }
356. 
357. static int read_huffman_tables(HYuvContext *s, const uint8_t *src, int length)
     ^
358. {
359.     GetBitContext gb;

libavcodec/huffyuv.c:367:13: Call
365.         if (read_len_table(s->len[i], &gb) < 0)
366.             return -1;
367.         if (generate_bits_table(s->bits[i], s->len[i]) < 0) {
                 ^
368.             return -1;
369.         }

libavcodec/huffyuv.c:213:14: <Offset trace>
211. 
212.     for (len = 32; len > 0; len--) {
213.         for (index = 0; index < 256; index++) {
                  ^
214.             if (len_table[index] == len)
215.                 dst[index] = bits++;

libavcodec/huffyuv.c:213:14: Assignment
  211. 
  212.     for (len = 32; len > 0; len--) {
  213.         for (index = 0; index < 256; index++) {
                    ^
  214.             if (len_table[index] == len)
  215.                 dst[index] = bits++;

libavcodec/huffyuv.c:207:1: <Length trace>
205. }
206. 
207. static int generate_bits_table(uint32_t *dst, const uint8_t *len_table)
     ^
208. {
209.     int len, index;

libavcodec/huffyuv.c:207:1: Parameter `*len_table`
  205. }
  206. 
  207. static int generate_bits_table(uint32_t *dst, const uint8_t *len_table)
       ^
  208. {
  209.     int len, index;

libavcodec/huffyuv.c:214:17: Array access: Offset: [0, 257] (⇐ [0, 2] + [0, 255]) Size: 3 by call to `generate_bits_table` 
  212.     for (len = 32; len > 0; len--) {
  213.         for (index = 0; index < 256; index++) {
  214.             if (len_table[index] == len)
                       ^
  215.                 dst[index] = bits++;
  216.         }
