On Wed, Mar 07, 2012 at 01:29:06PM -0800, [email protected] wrote:
> 
> --- a/libavformat/oggdec.c
> +++ b/libavformat/oggdec.c
> @@ -167,7 +167,7 @@ static int ogg_new_stream(AVFormatContext *s, uint32_t 
> serial, int new_avstream)
>      os = ogg->streams + idx;
>      os->serial = serial;
>      os->bufsize = DECODER_BUFFER_SIZE;
> -    os->buf = av_malloc(os->bufsize);
> +    os->buf = av_malloc(os->bufsize + FF_INPUT_BUFFER_PADDING_SIZE);
>      os->header = -1;

Not related to this patch, but every single malloc in this file is
unchecked...

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to