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

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

commit 60f39047184d2ca2ba8e24ed0f375ab7f7476ced
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Mar 7 13:48:49 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Mar 15 00:49:57 2026 +0100

    avformat/dhav: Fix handling or slightly larger files
    
    Fixes: integer overflow
    Fixes: 
490241718/clusterfuzz-testcase-minimized-ffmpeg_dem_DHAV_fuzzer-4902512932225024
    
    Found-by: continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit c5d5fb2309cd93953e137dacb09ee0ceb8494733)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/dhav.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/dhav.c b/libavformat/dhav.c
index 84a203ef6f..b9adfc1296 100644
--- a/libavformat/dhav.c
+++ b/libavformat/dhav.c
@@ -252,7 +252,7 @@ static int64_t get_duration(AVFormatContext *s)
     int64_t size = avio_size(s->pb);
     int64_t ret = 0;
 
-    if (start_pos + 20 > size)
+    if (start_pos < 0 || start_pos > size - 20)
         return 0;
 
     avio_skip(s->pb, 16);

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

Reply via email to