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 21d71edaf246ecb397cd0432817a74fc48b31fd6
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Thu Nov 12 01:27:14 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Nov 19 14:55:43 2026 +0100

    avfilter/vf_median: limit the number of jobs by the current radiusV
    
    Fixes: out of array read
    Fixes: NidYeIfje6hU
    
    Found during the triage of a finding from the review of 
https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25800
    
    Out of array read Replicated through UnModified FFmpeg with ASAN
    
    (cherry picked from commit 4b133cc46096d835bd154b1aaa6cb7625360344c)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/vf_median.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_median.c b/libavfilter/vf_median.c
index 5398932436..aeb5d09e3a 100644
--- a/libavfilter/vf_median.c
+++ b/libavfilter/vf_median.c
@@ -230,7 +230,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
     av_frame_copy_props(out, in);
 
     td.in = in; td.out = out;
-    ff_filter_execute(ctx, filter_slice, &td, NULL, s->nb_threads);
+    ff_filter_execute(ctx, filter_slice, &td, NULL,
+                      av_clip(s->planeheight[1] / (s->radiusV + 1), 1, 
s->nb_threads));
 
     av_frame_free(&in);
     return ff_filter_frame(outlink, out);

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