4xm: add assert to check that the pointer from read_huffman_tables is within the array
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
53a3fdbfc5
commit
d73b65ed0e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user