mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-06 08:08:58 +02:00
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…
Reference in New Issue
Block a user