On Tue, May 12, 2015 at 05:55:29PM +0200, Luca Barbato wrote:
> --- a/libavcodec/eatgv.c
> +++ b/libavcodec/eatgv.c
> @@ -174,6 +174,8 @@ static int tgv_decode_inter(TgvContext *s, AVFrame *frame,
> /* allocate codebook buffers as necessary */
> if (num_mvs > s->num_mvs) {
> s->mv_codebook = av_realloc(s->mv_codebook, num_mvs*2*sizeof(int));
> + if (!s->mv_codebook)
> + return AVERROR(ENOMEM);
> s->num_mvs = num_mvs;
> }
This leaks memory on failure, below as well. Patch coming up.
Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel