This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 6a025044c7d16586aba6ae6f68264ac93c03ced6 Author: Michael Niedermayer <[email protected]> AuthorDate: Mon Oct 12 02:28:42 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Tue Oct 20 02:25:09 2026 +0000 avfilter/vf_photosensitivity: blend only the visible part of the lines Fixes: out of array read Fixes: Au41rSBM5kGS Found during triage of the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24765 Out of array read Replicated through UnModified FFmpeg with ASAN --- libavfilter/vf_photosensitivity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_photosensitivity.c b/libavfilter/vf_photosensitivity.c index 3f040f8c89..97347ad2c9 100644 --- a/libavfilter/vf_photosensitivity.c +++ b/libavfilter/vf_photosensitivity.c @@ -152,12 +152,12 @@ static int blend_frame_partial(AVFilterContext *ctx, void *arg, int jobnr, int n const uint16_t t_mul = 0x100 - s_mul; const int slice_start = ff_slice_pos(td->target->height, jobnr, nb_jobs); const int slice_end = ff_slice_pos(td->target->height, jobnr + 1, nb_jobs); - const int linesize = td->target->linesize[0]; + const int width = td->target->width * NUM_CHANNELS; for (y = slice_start; y < slice_end; y++) { t = td->target->data[0] + y * td->target->linesize[0]; s = td->source->data[0] + y * td->source->linesize[0]; - for (x = 0; x < linesize; x++) { + for (x = 0; x < width; x++) { *t = (*t * t_mul + *s * s_mul) >> 8; t++; s++; } -- 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]
