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

Git pushed a commit to branch master
in repository ffmpeg.

commit 58416458a0ba176464a42d894cd4aabfd54171a7
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Oct 10 04:50:50 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Mon Oct 12 23:55:55 2026 +0000

    avformat/mov: treat a negative rescaled edit list duration as overflow
    
    Signed integer overflow Replicated through API with UBSAN
    
    Fixes: signed integer overflow: -9223372036854775808 + -72057594037927936 
cannot be represented in type 'int64_t'
    Fixes: 
538868974/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-5819272002338816
    Fixes: erHRV4uA0F71
    
    Found-by: continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/mov.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 0057ca7d92..be931c3a8b 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -4204,7 +4204,8 @@ static int get_edit_list_entry(MOVContext *mov,
     *edit_list_duration = av_rescale(*edit_list_duration, msc->time_scale,
                                      global_timescale);
 
-    if (*edit_list_duration + (uint64_t)*edit_list_media_time > INT64_MAX)
+    if (*edit_list_duration < 0 ||
+        *edit_list_duration + (uint64_t)*edit_list_media_time > INT64_MAX)
         *edit_list_duration = 0;
 
     return 1;

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