Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-04-15 21:27:27 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2020-05-10 02:09:13 +0300
commit97c78caf3e8f7ec4df3d3123b5e8d0e7541319e6 (patch)
treefb1fa30a453d0a684dd085067744ab78cf734eff /libavformat/thp.c
parent20f7b4dfc9640c910655bd153c6996e9edd42ff0 (diff)
avformat/thp: Require a video stream
The demuxer code assumes the existence of a video stream Fixes: assertion failure Fixes: 21512/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5699660783288320 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/thp.c')
-rw-r--r--libavformat/thp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/thp.c b/libavformat/thp.c
index 332ed79128..d3ae86c645 100644
--- a/libavformat/thp.c
+++ b/libavformat/thp.c
@@ -145,6 +145,9 @@ static int thp_read_header(AVFormatContext *s)
}
}
+ if (!thp->vst)
+ return AVERROR_INVALIDDATA;
+
return 0;
}