[FFmpeg-devel] [PATCH]Avoid null pointer dereference on oom after duration_error allocation

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Jul 10 22:05:49 CEST 2013


Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:

>          if (!st->info->duration_error)
>              st->info->duration_error = 
>  av_mallocz(sizeof(st->info->duration_error[0])*2);
> +        if (!st->info->duration_error)
> +            return AVERROR(ENOMEM);

Merged by Michael.

Thank you, Carl Eugen



More information about the ffmpeg-devel mailing list