[FFmpeg-devel] [PATCH] libavcodec/tests/motion: Add check for avcodec_alloc_context3()

Michael Niedermayer michael at niedermayer.cc
Mon Aug 4 02:30:54 EEST 2025


On Sun, Aug 03, 2025 at 08:32:23PM +0000, Jiasheng Jiang wrote:
> Add check for the return value of avcodec_alloc_context3() to avoid potential NULL pointer dereference.
> 
> Fixes: 5d48e4eafa ("Merge commit 'a6a750c7ef240b72ce01e9653343a0ddf247d196'")
> Signed-off-by: Jiasheng Jiang <jiashengjiangcool at gmail.com>
> ---
>  libavcodec/tests/motion.c | 4 ++++
>  1 file changed, 4 insertions(+)

will apply

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Never trust a computer, one day, it may think you are the virus. -- Compn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250804/e87a9e5c/attachment.sig>


More information about the ffmpeg-devel mailing list