[FFmpeg-devel] [PATCH]Fix crash on OOM

Michael Niedermayer michaelni at gmx.at
Thu Jun 27 13:26:57 CEST 2013


On Thu, Jun 27, 2013 at 02:31:03AM +0200, Carl Eugen Hoyos wrote:
> On Thursday 27 June 2013 01:58:41 am Michael Niedermayer wrote:
> > On Thu, Jun 27, 2013 at 12:18:25AM +0200, Carl Eugen Hoyos wrote:
> > >
> > > Attached patch fixes a null-pointer-dereference in
> > > avcodec_decode_video2() because of OOM as reported in ticket 1900.
> 
> > > +                if (ret < 0)
> > > +                    goto find_stream_info_err;
> > > +            }
> > >          }
> > >          if (!options)
> > >              av_dict_free(&thread_opt);
> >
> > failure of one decoder to open should not cause failure of the 
> > other streams
> 
> Attached is an alternative patch that also fixes the null ptr 
> dereference.

probably ok

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130627/0471a6fb/attachment.asc>


More information about the ffmpeg-devel mailing list