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

Git pushed a commit to branch master
in repository ffmpeg.

commit 37ff8fad47fa43976a4e00380c8794e5489cfb0d
Author:     Marvin Scholz <[email protected]>
AuthorDate: Tue Apr 21 22:12:05 2026 +0200
Commit:     Marvin Scholz <[email protected]>
CommitDate: Tue May 12 17:18:38 2026 +0200

    avutil: hdr_dynamic_metadata: handle allocation failure
    
    Handle allocation failure properly in
    av_dynamic_hdr_smpte2094_app5_from_t35.
    
    Fixes Coverity issue #1691448
---
 libavutil/hdr_dynamic_metadata.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavutil/hdr_dynamic_metadata.c b/libavutil/hdr_dynamic_metadata.c
index 5b8f3ea87d..4505786119 100644
--- a/libavutil/hdr_dynamic_metadata.c
+++ b/libavutil/hdr_dynamic_metadata.c
@@ -441,6 +441,9 @@ int 
av_dynamic_hdr_smpte2094_app5_from_t35(AVDynamicHDRSmpte2094App5 *s, const u
         return AVERROR(ENOMEM);
 
     uint8_t *padded_data = av_mallocz(padded_size);
+    if (!padded_data)
+        return AVERROR(ENOMEM);
+
     memcpy(padded_data, data, size);
     ret = init_get_bits8(gb, padded_data, size);
     if (ret < 0)

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

Reply via email to