On Sat, May 23, 2015 at 03:14:58PM +0200, Andreas Cadhalpun wrote:
> On 23.05.2015 14:05, Michael Niedermayer wrote:
> > On Sat, May 23, 2015 at 11:05:48AM +0200, Andreas Cadhalpun wrote:
> >> 4cc0440459f6b5e2223aaf2b667e3f222908714d  
> >> 0001-nutdec-fix-various-memleaks-on-failure.patch
> >> From 60de9fa45698acd206dccfc6eb634a1e6a49889f Mon Sep 17 00:00:00 2001
> >> From: Andreas Cadhalpun <andreas.cadhal...@googlemail.com>
> >> Date: Fri, 22 May 2015 23:02:07 +0200
> >> Subject: [PATCH] nutdec: fix various memleaks on failure
> >>
> >> Signed-off-by: Andreas Cadhalpun <andreas.cadhal...@googlemail.com>
> >> ---
> >>  libavformat/nutdec.c | 84 
> >> +++++++++++++++++++++++++++++++++++++---------------
> >>  1 file changed, 60 insertions(+), 24 deletions(-)
> >>
> >> diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
> >> index eeaf8bf..0757a70 100644
> >> --- a/libavformat/nutdec.c
> >> +++ b/libavformat/nutdec.c
> >> @@ -203,7 +203,8 @@ static int nut_probe(AVProbeData *p)
> >>          tmp = ffio_read_varlen(bc);                                       
> >>     \
> >>          if (!(check)) {                                                   
> >>     \
> >>              av_log(s, AV_LOG_ERROR, "Error " #dst " is (%"PRId64")\n", 
> >> tmp);  \
> >> -            return AVERROR_INVALIDDATA;                                   
> >>     \
> >> +            ret = AVERROR_INVALIDDATA;                                    
> >>     \
> >> +            goto fail;                                                    
> >>     \
> >>          }                                                                 
> >>     \
> >>          dst = tmp;                                                        
> >>     \
> >>      } while (0)
> > 
> > with this syncpoints and has_keyframes must be set to NULL in
> > find_and_decode_index() otherwise the later free might be freeing
> > a uninitialized pointer
> 
> You're right. Fixed patch attached.
> 
> Best regards,
> Andreas
> 

>  nutdec.c |   88 
> ++++++++++++++++++++++++++++++++++++++++++++-------------------
>  1 file changed, 62 insertions(+), 26 deletions(-)
> 86ac74fde804529ef5cf923c4e3009997d493de2  
> 0001-nutdec-fix-various-memleaks-on-failure.patch
> From e2612772405eed613d09ee6501399fc743e2d3d4 Mon Sep 17 00:00:00 2001
> From: Andreas Cadhalpun <andreas.cadhal...@googlemail.com>
> Date: Fri, 22 May 2015 23:02:07 +0200
> Subject: [PATCH] nutdec: fix various memleaks on failure
> 
> Signed-off-by: Andreas Cadhalpun <andreas.cadhal...@googlemail.com>

LGTM

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato

Attachment: signature.asc
Description: Digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to