[FFmpeg-devel] [PATCH] libavfilter: guard against ff_draw_init/ff_draw_init2 failures
Nil Fons Miret
nilf at netflix.com
Fri Feb 21 05:31:57 EET 2025
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
-------------- next part --------------
An embedded message was scrubbed...
From: Nil Fons Miret <nilf at netflix.com>
Subject: [PATCH] libavfilter: guard against ff_draw_init/ff_draw_init2 failures
Date: Fri, 21 Feb 2025 01:18:21 +0000
Size: 15866
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250220/7aabfd01/attachment.eml>
More information about the ffmpeg-devel
mailing list