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

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

commit c643b2afbab7bfd9c1b88e491bdb61858fd4b6a9
Author:     Ratnaker Gautam <[email protected]>
AuthorDate: Sun Nov 8 16:46:04 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Nov 19 04:36:59 2026 +0100

    avcodec/vmdvideo: reject method 2 frames shorter than the frame area
    
    A method 2 frame with too little data was returned with the part of the
    frame past the end of the data left as it was in the reused frame
    buffer, exposing previously decoded pictures.
    
    Fixes: information disclosure
    Fixes: 4q1titS5dliF
    Information disclosure Replicated through UnModified FFmpeg
    
    Found-by: Ratnaker Gautam
    (cherry picked from commit 38eda0354c3a38beec6365734c9995b681255c36)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/vmdvideo.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/vmdvideo.c b/libavcodec/vmdvideo.c
index b168a931ce..022e60a692 100644
--- a/libavcodec/vmdvideo.c
+++ b/libavcodec/vmdvideo.c
@@ -325,7 +325,9 @@ static int vmd_decode(VmdVideoContext *s, AVFrame *frame)
 
     case 2:
         for (i = 0; i < frame_height; i++) {
-            bytestream2_get_buffer(&gb, dp, frame_width);
+            if (bytestream2_get_bytes_left(&gb) < frame_width)
+                return AVERROR_INVALIDDATA;
+            bytestream2_get_bufferu(&gb, dp, frame_width);
             dp += frame->linesize[0];
         }
         break;

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