This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/9.0
in repository ffmpeg.

commit 8c99ffdccc2e31b8fc7ae619325f49f582b6a390
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon Sep 14 03:24:11 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Sep 17 01:30:44 2026 +0200

    avcodec/hap: do not hide the failure of the chunk table allocation
    
    Fixes: XEbMheG4aNCP
    Fixes: NULL pointer dereference
    Found-by: Zheng Yu @ Depthfirst
    (cherry picked from commit f8c4c6400e835bf65e8b9cc12aba9e5c4d1c818c)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 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) {

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to