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

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

commit c0ef29e3c74f229b4feaea9357707e3690968397
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat May 2 23:35:49 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Tue May 5 16:03:29 2026 +0200

    avformat/avidec: check LIST size in avi_load_index()
    
    This avoids an unsigned integer underflow and passing that large value to 
ff_read_riff_info()
    
    (cherry picked from commit 2678bce860877ac95423e63f7858dbb96d3e255b)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/avidec.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index c65ea78b72..4c65397d93 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1822,6 +1822,10 @@ static int avi_load_index(AVFormatContext *s)
             avi->index_loaded=2;
             ret = 0;
         }else if (tag == MKTAG('L', 'I', 'S', 'T')) {
+            if (size < 4) {
+                av_log(s, AV_LOG_WARNING, "Invalid size (%u) LIST in index\n", 
size);
+                break;
+            }
             uint32_t tag1 = avio_rl32(pb);
 
             if (tag1 == MKTAG('I', 'N', 'F', 'O'))

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

Reply via email to