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 a7ed92c29335363779aa0768229829dd8c1ece0b
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Nov 7 00:16:12 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Nov 19 14:55:43 2026 +0100

    avfilter/vf_stereo3d: require an even chroma height for above-below and 
interleaved rows input
    
    With an odd number of rows in a vertically subsampled plane, the second
    view has one row less than the output height requires
    
    Fixes: heap-buffer-overflow (read)
    Fixes: DVVOyNZC90mi
    
    Found during triage of the security report i9omtrAF7zcc
    
    Out of array read Replicated through UnModified FFmpeg with ASAN
    
    (cherry picked from commit a60e54d13f4ee6b7f4ec23a0130c6c4812ee59f4)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/vf_stereo3d.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavfilter/vf_stereo3d.c b/libavfilter/vf_stereo3d.c
index 15d6f31c11..4037f90eae 100644
--- a/libavfilter/vf_stereo3d.c
+++ b/libavfilter/vf_stereo3d.c
@@ -396,6 +396,10 @@ static int config_output(AVFilterLink *outlink)
             av_log(ctx, AV_LOG_ERROR, "height must be even\n");
             return AVERROR_INVALIDDATA;
         }
+        if (AV_CEIL_RSHIFT(inlink->h, desc->log2_chroma_h) & 1) {
+            av_log(ctx, AV_LOG_ERROR, "chroma height must be even\n");
+            return AVERROR_INVALIDDATA;
+        }
         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