[FFmpeg-cvslog] avcodec/iff: Cleanup on init failure
Michael Niedermayer
git at videolan.org
Sun Jun 18 16:16:34 EEST 2017
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Jun 18 14:05:12 2017 +0200| [9a6503f496ae496dd6b1f54fd5752d48435361b0] | committer: Michael Niedermayer
avcodec/iff: Cleanup on init failure
Fixes: memleak
Fixes: 2272/clusterfuzz-testcase-minimized-5059103858622464
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=9a6503f496ae496dd6b1f54fd5752d48435361b0
---
libavcodec/iff.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/iff.c b/libavcodec/iff.c
index 075ada6ddd..33cf2e3a94 100644
--- a/libavcodec/iff.c
+++ b/libavcodec/iff.c
@@ -1878,6 +1878,7 @@ AVCodec ff_iff_ilbm_decoder = {
.init = decode_init,
.close = decode_end,
.decode = decode_frame,
+ .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
.capabilities = AV_CODEC_CAP_DR1,
};
#endif
More information about the ffmpeg-cvslog
mailing list