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

Git pushed a commit to branch master
in repository ffmpeg.

commit df1ddf75db9a1ff36a35019511e17f795cf20c55
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Nov 14 00:36:46 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Thu Nov 19 01:11:41 2026 +0000

    avfilter/vf_readeia608: clip high bit depth samples to the histogram
    
    Fixes: out of array write
    Fixes: 1gH0Fg8kXAvn
    Fixes: AISLE-2026-0166-00264
    
    Found-by: Joshua Rogers (AISLE)
    
    Out of array write Replicated through UnModified FFmpeg with ASAN
---
 libavfilter/vf_readeia608.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_readeia608.c b/libavfilter/vf_readeia608.c
index 86e9019356..2d23afdf19 100644
--- a/libavfilter/vf_readeia608.c
+++ b/libavfilter/vf_readeia608.c
@@ -173,7 +173,7 @@ static void build_histogram(ReadEIA608Context *s, ScanItem 
*scan, const LineItem
     memset(scan->histogram, 0, (s->max + 1) * sizeof(*scan->histogram));
 
     for (int i = LAG; i < len + LAG; i++)
-        scan->histogram[line[i].input]++;
+        scan->histogram[FFMIN(line[i].input, s->max)]++;
 }
 
 static void find_black_and_white(ReadEIA608Context *s, ScanItem *scan)

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