[FFmpeg-devel] avcodec/nuv: add FF_CODEC_CAP_INIT_CLEANUP

Submitted by Michael Niedermayer on Jan. 11, 2019, 1:15 a.m.

Details

Message ID 20190111011508.26625-1-michael@niedermayer.cc
State Accepted
Commit e94288c4932e40d99c00557add2a164d3601c1ed
Headers show

Commit Message

Michael Niedermayer Jan. 11, 2019, 1:15 a.m.
Fixes: memleak
Fixes: 12244/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_NUV_fuzzer-5099447273390080

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
---
 libavcodec/nuv.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Derek Buitenhuis Jan. 11, 2019, 1:05 p.m.
On 11/01/2019 01:15, Michael Niedermayer wrote:
> Fixes: memleak
> Fixes: 12244/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_NUV_fuzzer-5099447273390080
> 
> Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> ---
>  libavcodec/nuv.c | 1 +
>  1 file changed, 1 insertion(+)

OK.

- Derek
Michael Niedermayer Jan. 12, 2019, 1:10 a.m.
On Fri, Jan 11, 2019 at 01:05:38PM +0000, Derek Buitenhuis wrote:
> On 11/01/2019 01:15, Michael Niedermayer wrote:
> > Fixes: memleak
> > Fixes: 12244/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_NUV_fuzzer-5099447273390080
> > 
> > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> > ---
> >  libavcodec/nuv.c | 1 +
> >  1 file changed, 1 insertion(+)
> 
> OK.

will apply

thx

[...]

Patch hide | download patch | download mbox

diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c
index 32ed65899b..75b14bce5b 100644
--- a/libavcodec/nuv.c
+++ b/libavcodec/nuv.c
@@ -365,4 +365,5 @@  AVCodec ff_nuv_decoder = {
     .close          = decode_end,
     .decode         = decode_frame,
     .capabilities   = AV_CODEC_CAP_DR1,
+    .caps_internal  = FF_CODEC_CAP_INIT_CLEANUP,
 };