mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avformat/cinedec: Fix index_entries size check
Fixes: out of array access Fixes: 29868/clusterfuzz-testcase-minimized-ffmpeg_dem_CINE_fuzzer-5692001957445632 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
0c48c332ee
commit
09b3040354
@ -288,7 +288,7 @@ static int cine_read_packet(AVFormatContext *avctx, AVPacket *pkt)
|
||||
AVIOContext *pb = avctx->pb;
|
||||
int n, size, ret;
|
||||
|
||||
if (cine->pts >= st->duration)
|
||||
if (cine->pts >= st->internal->nb_index_entries)
|
||||
return AVERROR_EOF;
|
||||
|
||||
avio_seek(pb, st->internal->index_entries[cine->pts].pos, SEEK_SET);
|
||||
|
Loading…
Reference in New Issue
Block a user