Browse Source

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@niedermayer.cc>
tags/n4.2
Michael Niedermayer 6 years ago
parent
commit
bb326795d1
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/takdec.c

+ 2
- 0
libavformat/takdec.c View File

@@ -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)


Loading…
Cancel
Save