Skip to content
Snippets Groups Projects
Commit 6d7f466d authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avformat/rmdec: Check for multiple audio_stream_info

Fixes: memleak
Fixes: 39166/clusterfuzz-testcase-minimized-ffmpeg_dem_IVR_fuzzer-5153276690038784

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg


Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 8fe3566b)
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 5a514d8e
No related branches found
No related tags found
No related merge requests found
......@@ -131,6 +131,10 @@ static int rm_read_audio_stream_info(AVFormatContext *s, AVIOContext *pb,
uint32_t version;
int ret;
// Duplicate tags
if (st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO)
return AVERROR_INVALIDDATA;
/* ra type header */
version = avio_rb16(pb); /* version */
if (version == 3) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment