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

Git pushed a commit to branch master
in repository ffmpeg.

commit 9ec7889b2352e8076ec1c646331d05fd4d820f34
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Nov 7 00:25:48 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Tue Nov 17 17:54:46 2026 +0000

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