This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit bde5c6acb60acd2448c301de633949f90c6064df Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Sep 22 00:30:20 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Mon Sep 28 11:47:39 2026 +0000 avfilter/vf_cropdetect: scan the edge map with a one byte pixel step Found-by: zhang xingxing <[email protected]> Suggested-by: zhang xingxing <[email protected]> Fixes: out of array read Fixes: VoiiaDYyhdfz --- libavfilter/vf_cropdetect.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavfilter/vf_cropdetect.c b/libavfilter/vf_cropdetect.c index 7c14cd117e..e9c12e5479 100644 --- a/libavfilter/vf_cropdetect.c +++ b/libavfilter/vf_cropdetect.c @@ -359,7 +359,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) #define FIND_EDGE(DST, FROM, NOEND, INC, STEP0, STEP1, LEN) \ for (last_y = y = FROM; NOEND; y = y INC) { \ - if (checkline_edge(ctx, tmpbuf + STEP0 * y, STEP1, LEN, bpp)) { \ + if (checkline_edge(ctx, tmpbuf + STEP0 * y, STEP1, LEN, 1)) { \ if (last_y INC == y) { \ DST = y; \ break; \ @@ -371,10 +371,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) DST = y -(INC); \ } - FIND_EDGE(s->y1, s->y1, y >= 0, -1, inw, bpp, scan_w); - FIND_EDGE(s->y2, s->y2, y < inh, +1, inw, bpp, scan_w); - FIND_EDGE(s->x1, s->x1, y >= 0, -1, bpp, inw, scan_h); - FIND_EDGE(s->x2, s->x2, y < inw, +1, bpp, inw, scan_h); + FIND_EDGE(s->y1, s->y1, y >= 0, -1, inw, 1, scan_w); + FIND_EDGE(s->y2, s->y2, y < inh, +1, inw, 1, scan_w); + FIND_EDGE(s->x1, s->x1, y >= 0, -1, 1, inw, scan_h); + FIND_EDGE(s->x2, s->x2, y < inw, +1, 1, inw, scan_h); // queue bboxes bboff = (s->frame_nb - 1) % s->window_size; -- 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]
