Commit 1b1182ce authored by Laurent Aimar's avatar Laurent Aimar Committed by Janne Grunau

4xm: prevent NULL dereference with invalid huffman table

Signed-off-by: 's avatarJanne Grunau <janne-libav@jannau.net>
parent 79964745
......@@ -602,9 +602,10 @@ static const uint8_t *read_huffman_tables(FourXContext *f, const uint8_t * const
len_tab[j]= len;
}
init_vlc(&f->pre_vlc, ACDC_VLC_BITS, 257,
len_tab , 1, 1,
bits_tab, 4, 4, 0);
if (init_vlc(&f->pre_vlc, ACDC_VLC_BITS, 257,
len_tab , 1, 1,
bits_tab, 4, 4, 0))
return NULL;
return ptr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment