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

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 2a057e6be9 avformat/flvdec: bound the keyframe index arrays by the 
metadata tag size
2a057e6be9 is described below

commit 2a057e6be95c7229c4c0b5d1e8eec2c4c1864df6
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon Sep 21 05:29:43 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Mon Sep 28 03:42:29 2026 +0000

    avformat/flvdec: bound the keyframe index arrays by the metadata tag size
    
    Fixes: letting a 180 byte file allocate and zero 2 GiB.
    Fixes: QaEym66QNGh3
    Found-by: Mayank Jangid, OpenSec
---
 libavformat/flvdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 03310503d1..e4bc8ebd83 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -551,7 +551,7 @@ static int parse_keyframes_index(AVFormatContext *s, 
AVIOContext *ioc, int64_t m
             break;
 
         arraylen = avio_rb32(ioc);
-        if (arraylen>>28)
+        if (arraylen>>28 || arraylen > (max_pos - avio_tell(ioc)) / 9)
             break;
 
         if       (!strcmp(KEYFRAMES_TIMESTAMP_TAG , str_val) && !times) {

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