[FFmpeg-devel] [PATCH] libavfilter: guard against ff_draw_init/ff_draw_init2 failures
Nil Fons Miret
nilf at netflix.com
Mon Mar 3 19:07:55 EET 2025
Hi, any feedback on this? Thank you
On Thu, Feb 20, 2025 at 7:31 PM Nil Fons Miret <nilf at netflix.com> wrote:
>
> The return value of ff_draw_init and ff_draw_init2 are not checked in
> most usages. However, if they return an error, they don't get to the
> point where they set the attributes of the FFDrawContext. These
> functions are typically used in conjunction with ff_draw_color, which
> checks draw->desc->flags, causing a null pointer dereference.
>
> Attaching patch with a fix to guard against this.
>
> Thanks,
> Nil
More information about the ffmpeg-devel
mailing list