[FFmpeg-cvslog] avformat/takdec: Check for multiple streaminfo
Michael Niedermayer
git at videolan.org
Thu Jul 18 00:19:52 EEST 2019
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Tue Jul 2 21:11:57 2019 +0200| [bb326795d13508c1d0ffc97cb5d75e49e1feca35] | committer: Michael Niedermayer
avformat/takdec: Check for multiple streaminfo
Fixes: memleak
Fixes: 15446/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5662875831500800
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bb326795d13508c1d0ffc97cb5d75e49e1feca35
---
libavformat/takdec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/takdec.c b/libavformat/takdec.c
index c51a020161..5e0601806f 100644
--- a/libavformat/takdec.c
+++ b/libavformat/takdec.c
@@ -80,6 +80,8 @@ static int tak_read_header(AVFormatContext *s)
switch (type) {
case TAK_METADATA_STREAMINFO:
+ if (st->codecpar->extradata)
+ return AVERROR_INVALIDDATA;
case TAK_METADATA_LAST_FRAME:
case TAK_METADATA_ENCODER:
if (size <= 3)
More information about the ffmpeg-cvslog
mailing list