[FFmpeg-devel] stsz overflow

Reimar Döffinger Reimar.Doeffinger
Sat Aug 29 11:06:28 CEST 2009


On Sat, Aug 29, 2009 at 01:51:12AM -0700, Baptiste Coudurier wrote:
> On 8/25/2009 11:19 AM, Baptiste Coudurier wrote:
> > On 8/25/2009 11:11 AM, Reimar D?ffinger wrote:
>  >
> > [...]
> >
> >> Or
> >> if (entries>= UINT_MAX / sizeof(int) || entries>= (UINT_MAX - 4) /
> >> field_size)
> >> as a compromise.
> >
> > This one seems good to me as well.
> 
> Everybody is ok with this test ? I'll apply it soon.

IMO just go ahead. It at least can't be worse than the current code :-)



More information about the ffmpeg-devel mailing list