PR #24487 opened by michaelni URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24487 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24487.patch
Fixes: XEbMheG4aNCP Fixes: NULL pointer dereference Found-by: Zheng Yu @ Depthfirst >From 5a4c91b47ecde5e8db6c7133785c054ecc9a17c7 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Mon, 14 Sep 2026 03:24:11 +0200 Subject: [PATCH] avcodec/hap: do not hide the failure of the chunk table allocation Fixes: XEbMheG4aNCP Fixes: NULL pointer dereference Found-by: Zheng Yu @ Depthfirst --- libavcodec/hap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/hap.c b/libavcodec/hap.c index ac4032ce11..26b071da68 100644 --- a/libavcodec/hap.c +++ b/libavcodec/hap.c @@ -30,7 +30,7 @@ int ff_hap_set_chunk_count(HapContext *ctx, int count, int first_in_frame) { int ret = 0; if (first_in_frame == 1 && ctx->chunk_count != count) { - int ret = av_reallocp_array(&ctx->chunks, count, sizeof(HapChunk)); + ret = av_reallocp_array(&ctx->chunks, count, sizeof(HapChunk)); if (ret == 0) ret = av_reallocp_array(&ctx->chunk_results, count, sizeof(int)); if (ret < 0) { -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
