mirror of https://git.ffmpeg.org/ffmpeg.git
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: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
f054871a65
commit
8fe3566b8f
|
@ -127,6 +127,10 @@ static int rm_read_audio_stream_info(AVFormatContext *s, AVIOContext *pb,
|
||||||
uint32_t version;
|
uint32_t version;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
// Duplicate tags
|
||||||
|
if (st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO)
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
/* ra type header */
|
/* ra type header */
|
||||||
version = avio_rb16(pb); /* version */
|
version = avio_rb16(pb); /* version */
|
||||||
if (version == 3) {
|
if (version == 3) {
|
||||||
|
|
Loading…
Reference in New Issue