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

Git pushed a commit to branch master
in repository ffmpeg.

commit 01380721ab8c23c6d378b5b83515c212f682ee70
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Nov 17 22:58:45 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Thu Nov 19 01:11:41 2026 +0000

    avfilter/vf_lut3d: clip planar high bit depth samples in lut1d
    
    Fixes: out of array read
    Fixes: vtUg0iajmSsv
    Fixes: AISLE-2026-0166-00685
    
    Found-by: Joshua Rogers (AISLE)
    
    Out of array read Replicated through UnModified FFmpeg with ASAN
---
 libavfilter/vf_lut3d.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavfilter/vf_lut3d.c b/libavfilter/vf_lut3d.c
index 2c78507b7e..2ce8abe98a 100644
--- a/libavfilter/vf_lut3d.c
+++ b/libavfilter/vf_lut3d.c
@@ -1898,6 +1898,11 @@ static int 
interp_1d_##nbits##_##name##_p##depth(AVFilterContext *ctx,       \
             float r = srcr[x] * scale_r;                                     \
             float g = srcg[x] * scale_g;                                     \
             float b = srcb[x] * scale_b;                                     \
+            if (depth < nbits && (srcr[x] | srcg[x] | srcb[x]) >> depth) {   \
+                r = FFMIN(srcr[x], factor) * scale_r;                        \
+                g = FFMIN(srcg[x], factor) * scale_g;                        \
+                b = FFMIN(srcb[x], factor) * scale_b;                        \
+            }                                                                \
             r = interp_1d_##name(lut1d, 0, r);                               \
             g = interp_1d_##name(lut1d, 1, g);                               \
             b = interp_1d_##name(lut1d, 2, b);                               \

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