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 5a6bc614e75985934d7068d3cff68e98741806b4
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Fri Nov 13 01:58:08 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Nov 19 04:36:59 2026 +0100

    avfilter/vf_fftfilt: mask the coordinates of weight_Y/U/V()
    
    Fixes: heap-buffer-overflow (read)
    
    Found during triage of the security report nw59dSqw4SNa
    
    Out of array read Replicated through UnModified FFmpeg with ASAN
    
    (cherry picked from commit 68ca3ab63b506a724e1729e62ed74940f43a9d93)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/vf_fftfilt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_fftfilt.c b/libavfilter/vf_fftfilt.c
index 043479b0c3..4b0851dad6 100644
--- a/libavfilter/vf_fftfilt.c
+++ b/libavfilter/vf_fftfilt.c
@@ -107,7 +107,8 @@ AVFILTER_DEFINE_CLASS(fftfilt);
 static inline double lum(void *priv, double x, double y, int plane)
 {
     FFTFILTContext *s = priv;
-    return s->rdft_vdata_out[plane][(int)x * s->rdft_vstride[plane] + (int)y];
+    return s->rdft_vdata_out[plane][((int)x & (s->rdft_hlen[plane] - 1)) * 
s->rdft_vstride[plane] +
+                                    ((int)y & (s->rdft_vlen[plane] - 1))];
 }
 
 static double weight_Y(void *priv, double x, double y) { return lum(priv, x, 
y, Y); }

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