[Ffmpeg-devel] [PATCH] minor improvements to libavcodec/mem.c

Michael Niedermayer michaelni
Fri Jun 30 00:06:55 CEST 2006


Hi

On Thu, Jun 29, 2006 at 01:21:41PM +0200, Herv? W. 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

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