[FFmpeg-devel] [PATCH] indeo3: check return values of av_malloc()

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Jun 30 20:06:43 CEST 2013


Paul B Mahol <onemda <at> gmail.com> writes:

>  ctx->planes[p].buffers[0] = av_malloc(!p ? luma_size : chroma_size);
>  ctx->planes[p].buffers[1] = av_malloc(!p ? luma_size : chroma_size);
> 
> +    if (!ctx->planes[p].buffers[0] || !ctx->planes[p].buffers[1])
> +        return AVERROR(ENOMEM);

Possible memleak.

Please add a comment about ticket #2733 to the commit message.

Carl Eugen



More information about the ffmpeg-devel mailing list