[FFmpeg-cvslog] avcodec/indeo5: require initial valid intra/gop headers not just later

Michael Niedermayer git at videolan.org
Sun Aug 12 23:16:53 EEST 2018


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Aug  4 02:19:15 2018 +0200| [6d8a289c98b80ddf596028ccae73cbc3c53dc7cf] | committer: Michael Niedermayer

avcodec/indeo5: require initial valid intra/gop headers not just later

Fixes: Timeout
Fixes: 9308/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_INDEO5_fuzzer-5284853581873152

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6d8a289c98b80ddf596028ccae73cbc3c53dc7cf
---

 libavcodec/indeo5.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/indeo5.c b/libavcodec/indeo5.c
index b39cffd9a9..7b9da53df4 100644
--- a/libavcodec/indeo5.c
+++ b/libavcodec/indeo5.c
@@ -642,6 +642,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
     IVI45DecContext  *ctx = avctx->priv_data;
     int             result;
 
+    ctx->gop_invalid = 1;
+
     ff_ivi_init_static_vlc();
 
     /* copy rvmap tables in our context so we can apply changes to them */



More information about the ffmpeg-cvslog mailing list