[FFmpeg-devel] [PATCH 1/2] avformat/oggparsevorbis: Update context on double init
Michael Niedermayer
michael at niedermayer.cc
Sun Apr 5 01:38:41 EEST 2020
Fixes: memleak
Fixes: 19949/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5743636058210304
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavformat/oggparsevorbis.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index 8dd27e7770..d5784a5f5e 100644
--- a/libavformat/oggparsevorbis.c
+++ b/libavformat/oggparsevorbis.c
@@ -398,6 +398,7 @@ static int vorbis_header(AVFormatContext *s, int idx)
st->codecpar->extradata_size = 0;
return AVERROR_UNKNOWN;
}
+ st->internal->need_context_update = 1;
}
return 1;
--
2.17.1
More information about the ffmpeg-devel
mailing list