[FFmpeg-cvslog] r22856 - trunk/libavcodec/huffyuv.c
Benoit Fouet
benoit.fouet
Wed Apr 14 12:20:51 CEST 2010
On Mon, 12 Apr 2010 22:07:38 +0530 Jai Menon wrote:
> On Mon, Apr 12, 2010 at 9:46 PM, benoit <subversion at mplayerhq.hu> wrote:
> > Author: benoit
> > Date: Mon Apr 12 18:16:43 2010
> > New Revision: 22856
> >
> > Log:
> > Extradata length checks for Huffyuv.
> > Patch by Michael Kaufmann hallo $(name) dash $(surname) ch
> >
> > Modified:
> > ? trunk/libavcodec/huffyuv.c
> >
> > Modified: trunk/libavcodec/huffyuv.c
> > ==============================================================================
> > --- trunk/libavcodec/huffyuv.c ?Mon Apr 12 18:05:10 2010 ? ? ? ?(r22855)
> > +++ trunk/libavcodec/huffyuv.c ?Mon Apr 12 18:16:43 2010 ? ? ? ?(r22856)
> > @@ -452,6 +452,9 @@ s->bgr32=1;
> > ? ? if(s->version==2){
> > ? ? ? ? int method, interlace;
> >
> > + ? ? ? ?if (avctx->extradata_size < 4)
> > + ? ? ? ? ? ?return -1;
>
> AVERROR_INVALIDDATA perhaps
>
indeed, that could be changed. Feel free to do it.
Ben
More information about the ffmpeg-cvslog
mailing list