[MPlayer-cvslog] CVS: main/libmpdemux demux_ogg.c,1.93,1.94

Diego Biurrun diego at biurrun.de
Sat May 13 14:33:10 CEST 2006


On Sat, May 13, 2006 at 02:05:46AM -0400, Rich Felker wrote:
> On Sat, May 13, 2006 at 07:48:19AM +0200, Richard Felker CVS wrote:
> > 
> > @@ -663,7 +665,8 @@
> >        if(index_mode == 2 && (flags || (os->vorbis && op.granulepos >= 0))) {
> > -	ogg_d->syncpoints = (ogg_syncpoint_t*)realloc(ogg_d->syncpoints,(ogg_d->num_syncpoint+1)*sizeof(ogg_syncpoint_t));
> > +        if (ogg_d->num_syncpoint > SIZE_MAX / sizeof(ogg_syncpoint_t) - 1) break;
> > +	ogg_d->syncpoints = realloc_struct(ogg_d->syncpoints,(ogg_d->num_syncpoint+1), sizeof(ogg_syncpoint_t));
> 
> Sorry for committing this at the same time. I didn't realize I had it
> in my tree... :(

Hmm, forgot to doublecheck with 'cvs diff'? ;)

Diego




More information about the MPlayer-cvslog mailing list