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

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

commit 26fdd2258bf6a17eb712d6df4b3080bb6bcb3b71
Author:     James Almer <[email protected]>
AuthorDate: Thu Mar 5 09:55:43 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Thu Mar 5 23:29:52 2026 -0300

    avformat/mov: check return value of mov_read_iref_thmb()
    
    Signed-off-by: James Almer <[email protected]>
    (cherry picked from commit 77298c29bca9284647812c0990ab7cdfabb0e302)
---
 libavformat/mov.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 6da60ac298..3fdf6d21f8 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -9167,6 +9167,8 @@ static int mov_read_iref_thmb(MOVContext *c, AVIOContext 
*pb, int version)
 static int mov_read_iref(MOVContext *c, AVIOContext *pb, MOVAtom atom)
 {
     int version = avio_r8(pb);
+    int ret;
+
     avio_rb24(pb); // flags
     atom.size -= 4;
 
@@ -9186,14 +9188,14 @@ static int mov_read_iref(MOVContext *c, AVIOContext 
*pb, MOVAtom atom)
         type = avio_rl32(pb);
         switch (type) {
         case MKTAG('d','i','m','g'):
-        {
-            int ret = mov_read_iref_dimg(c, pb, version);
+            ret = mov_read_iref_dimg(c, pb, version);
             if (ret < 0)
                 return ret;
             break;
-        }
         case MKTAG('t','h','m','b'):
-            mov_read_iref_thmb(c, pb, version);
+            ret = mov_read_iref_thmb(c, pb, version);
+            if (ret < 0)
+                return ret;
             break;
         default:
             av_log(c->fc, AV_LOG_DEBUG, "Unknown iref type %s size 
%"PRIu32"\n",

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

Reply via email to