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

Git pushed a commit to branch master
in repository ffmpeg.

commit 38eda0354c3a38beec6365734c9995b681255c36
Author:     Ratnaker Gautam <[email protected]>
AuthorDate: Sun Nov 8 16:46:04 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Sun Nov 15 20:25:44 2026 +0000

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