mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-27 05:38:07 +00:00
xxan: don't read before start of buffer in av_memcpy_backptr().
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
This commit is contained in:
parent
a928ed3751
commit
f1279e286b
@ -129,7 +129,8 @@ static int xan_unpack(uint8_t *dest, const int dest_len,
|
|||||||
if (size + size2 > dest_end - dest)
|
if (size + size2 > dest_end - dest)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (src + size > src_end || dest + size + size2 > dest_end)
|
if (src + size > src_end || dest + size + size2 > dest_end ||
|
||||||
|
dest - orig_dest + size < back)
|
||||||
return -1;
|
return -1;
|
||||||
bytestream_get_buffer(&src, dest, size);
|
bytestream_get_buffer(&src, dest, size);
|
||||||
dest += size;
|
dest += size;
|
||||||
|
Loading…
Reference in New Issue
Block a user