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

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

commit 155ef982ee72038c1efe9b21181bca3ea15920dd
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Nov 7 00:25:48 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Nov 19 14:55:43 2026 +0100

    tools/qt-faststart: reject a moov atom that starts before the end of the 
ftyp atom
    
    Fixes: allocation-size-too-big
    Fixes: mcdSpfadtpED
    Fixes: test_neg5.mov
    
    Found-by: Hicham Ouabella <[email protected]>
    
    This is not a security issue.
    
    Negative allocation size Replicated through UnModified qt-faststart with 
ASAN
    
    (cherry picked from commit 9ec7889b2352e8076ec1c646331d05fd4d820f34)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 tools/qt-faststart.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/qt-faststart.c b/tools/qt-faststart.c
index 46950a5cf4..a270fa78a9 100644
--- a/tools/qt-faststart.c
+++ b/tools/qt-faststart.c
@@ -571,6 +571,10 @@ int main(int argc, char *argv[])
         perror(argv[1]);
         goto error_out;
     }
+    if (last_offset < start_offset) {
+        fprintf(stderr, "moov atom overlaps the ftyp atom\n");
+        goto error_out;
+    }
     moov_atom_size = atom_size;
     moov_atom      = malloc(moov_atom_size);
     if (!moov_atom) {

-- 
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