On 2011-12-22 16:20:55 +0000, Måns Rullgård wrote: > Luca Barbato <[email protected]> writes: > > > On 22/12/11 13:45, Tomas Härdin wrote: > >> It's also hard to define "crazy" when it comes to MXF. After all, we're > >> talking about a format that allows indexing individual scanlines in raw > >> footage.. > > > > So we should accept 64bit/sizeof(the thing) values on 64bit architectures? > > av_malloc() and friends take a size_t argument (as do the underlying OS > functions), so that would seem to be the proper limit to check against.
The same check with SIZE_MAX has an annoying warning that the check is always true with 64 bit size_t. Janne _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
