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

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 9eaa559847 avformat/matroskadec: fix invalid check and uninitialized 
memory access
9eaa559847 is described below

commit 9eaa5598473606e268360611bb530f78ce267fb7
Author:     Zhao Zhili <[email protected]>
AuthorDate: Mon Apr 27 14:55:32 2026 +0800
Commit:     Marvin Scholz <[email protected]>
CommitDate: Tue Apr 28 11:59:59 2026 +0000

    avformat/matroskadec: fix invalid check and uninitialized memory access
    
    size is uninitialized when av_dynamic_hdr_smpte2094_app5_alloc failed.
    
    Signed-off-by: Zhao Zhili <[email protected]>
---
 libavformat/matroskadec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index de14ff96b8..b303d534aa 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -3973,7 +3973,7 @@ static int 
matroska_parse_block_additional(MatroskaDemuxContext *matroska,
                     break; // ignore
 
                 hdr_smpte_2094_app5 = 
av_dynamic_hdr_smpte2094_app5_alloc(&hdr_smpte_2094_app5_size);
-                if (!hdr_smpte_2094_app5_size)
+                if (!hdr_smpte_2094_app5)
                     return AVERROR(ENOMEM);
 
                 if ((res = 
av_dynamic_hdr_smpte2094_app5_from_t35(hdr_smpte_2094_app5,

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to