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

Git pushed a commit to branch master
in repository ffmpeg.

commit 5fa81277ad775634ef9c3e18bac970b80fd74c80
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Nov 7 00:17:42 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Tue Nov 17 17:54:46 2026 +0000

    avfilter/vf_stereo3d: read both views from the same row pair for 
interleaved rows to checkerboard
    
    Fixes: heap-buffer-overflow (read)
    Fixes: gmosBeD5XeCJ
    
    Found during triage of the security report i9omtrAF7zcc
    
    Out of array read Replicated through UnModified FFmpeg with ASAN
---
 libavfilter/vf_stereo3d.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_stereo3d.c b/libavfilter/vf_stereo3d.c
index 4037f90eae..80dd3d8971 100644
--- a/libavfilter/vf_stereo3d.c
+++ b/libavfilter/vf_stereo3d.c
@@ -973,8 +973,9 @@ copy:
                 const int d1 = (s->in.format == INTERLEAVE_COLS_LR || 
s->in.format == INTERLEAVE_COLS_RL) && (s->in.format & 1) != (s->out.format & 
1);
                 const int d2 = (s->in.format == INTERLEAVE_COLS_LR || 
s->in.format == INTERLEAVE_COLS_RL) ? !d1 : 0;
                 const int m = 1 + (s->in.format == INTERLEAVE_COLS_LR || 
s->in.format == INTERLEAVE_COLS_RL);
-                uint8_t *left  = ileft->data[i]  + ileft->linesize[i]  * y + 
s->in_off_left[i]  + d1 * s->pixstep[i];
-                uint8_t *right = iright->data[i] + iright->linesize[i] * y + 
s->in_off_right[i] + d2 * s->pixstep[i];
+                const int in_y = y / s->in.row_step * s->in.row_step;
+                uint8_t *left  = ileft->data[i]  + ileft->linesize[i]  * in_y 
+ s->in_off_left[i]  + d1 * s->pixstep[i];
+                uint8_t *right = iright->data[i] + iright->linesize[i] * in_y 
+ s->in_off_right[i] + d2 * s->pixstep[i];
                 int p, b;
 
                 if (s->out.format == CHECKERBOARD_RL && s->in.format != 
INTERLEAVE_COLS_LR && s->in.format != INTERLEAVE_COLS_RL)

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