ffmpeg | branch: master | Paul B Mahol <one...@gmail.com> | Sun Nov 12 22:57:06 2017 +0100| [f38d0d0c22c1871ef0728a718c5e00a6ba93bfa1] | committer: Paul B Mahol
avformat/ty: check cur_chunk_pos before using it Fixes #6831. Signed-off-by: Paul B Mahol <one...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f38d0d0c22c1871ef0728a718c5e00a6ba93bfa1 --- libavformat/ty.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/ty.c b/libavformat/ty.c index ba874280ea..d348643f40 100644 --- a/libavformat/ty.c +++ b/libavformat/ty.c @@ -378,6 +378,8 @@ static void parse_master(AVFormatContext *s) ty->cur_chunk_pos = 32; for (j = 0; j < ty->seq_table_size; j++) { + if (ty->cur_chunk_pos >= CHUNK_SIZE - 8) + return; ty->seq_table[j].timestamp = AV_RB64(ty->chunk + ty->cur_chunk_pos); ty->cur_chunk_pos += 8; if (map_size > 8) { _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog