[Ffmpeg-devel] [PATCH] minor improvements to libavcodec/mem.c
Michael Niedermayer
michaelni
Fri Jun 30 03:04:25 CEST 2006
Hi
On Fri, Jun 30, 2006 at 12:42:12AM +0200, Herv? W. wrote:
> On 30/06/06, Michael Niedermayer <michaelni at gmx.at> wrote:
> >[...]
> >> -#endif
> >>
> >> /* lets disallow possible ambiguous cases */
> >> + if(size > (INT_MAX-16) )
> >> + return NULL;
> >> +#else
> >> if(size > INT_MAX)
> >> return NULL;
> >> +#endif
> >
> >just always subtract 16, this isnt worth a special case
> >Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> Thanks for your reply. I made that change and the new version should
> find itself attached to this e-mail.
> Any other comments? On the patch or my previous mail on this topic?
patch looks ok
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is
More information about the ffmpeg-devel
mailing list