mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
mvdec: Check the frame counter against the correct limit.
fixes out of array reads Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6512405ce2
commit
362271d72f
@ -372,7 +372,7 @@ static int mv_read_packet(AVFormatContext *avctx, AVPacket *pkt)
|
||||
int ret;
|
||||
uint64_t pos;
|
||||
|
||||
if (frame < st->nb_frames) {
|
||||
if (frame < st->nb_index_entries) {
|
||||
index = &st->index_entries[frame];
|
||||
pos = avio_tell(pb);
|
||||
if (index->pos > pos)
|
||||
|
Loading…
Reference in New Issue
Block a user