Commit d73b65ed authored by Michael Niedermayer's avatar Michael Niedermayer

4xm: add assert to check that the pointer from read_huffman_tables is within the array

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 53a3fdbf
......@@ -760,6 +760,8 @@ static int decode_i_frame(FourXContext *f, const uint8_t *buf, int length)
if (!prestream)
return -1;
av_assert0(prestream <= buf + length);
init_get_bits(&f->gb, buf + 4, 8 * bitstream_size);
prestream_size = length + buf - prestream;
......
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