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 0a6474f6afaa46d5524fbbdf8d629851eac69e48
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon Oct 26 16:02:53 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Nov 15 02:25:40 2026 +0100

    avfilter/vf_bm3d: clamp the search range to the plane size
    
    Fixes: signed integer overflow
    Found during triage/review of the security report fH770hlenwcI
    Signed integer overflow Replicated through UnModified FFmpeg with UBSAN
    
    (cherry picked from commit e259604514c80f5076eb42485e469afae05e2ca8)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/vf_bm3d.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_bm3d.c b/libavfilter/vf_bm3d.c
index f71845cd60..58910e2414 100644
--- a/libavfilter/vf_bm3d.c
+++ b/libavfilter/vf_bm3d.c
@@ -314,7 +314,7 @@ static void block_matching_multi(BM3DContext *s, const 
uint8_t *ref, int ref_lin
     const int height = s->planeheight[plane];
     const int block_size = s->block_size;
     const int step = s->bm_step;
-    const int range = s->bm_range / step * step;
+    const int range = FFMIN(s->bm_range, FFMAX(width, height)) / step * step;
     int l = search_boundary(0, range, step, 0, y, x);
     int r = search_boundary(width - block_size, range, step, 0, y, x);
     int t = search_boundary(0, range, step, 1, y, x);

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