ffmpeg | branch: master | Paul B Mahol <[email protected]> | Sat Oct 19 09:56:53 2019 +0200| [723d69f99cd26db9687ed2d24d06afaff624daf3] | committer: Paul B Mahol
avfilter/vf_lagfun: fix heap-buffer overflow Fixes #8310 > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=723d69f99cd26db9687ed2d24d06afaff624daf3 --- libavfilter/vf_lagfun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_lagfun.c b/libavfilter/vf_lagfun.c index 329c7465e1..1fbc889e35 100644 --- a/libavfilter/vf_lagfun.c +++ b/libavfilter/vf_lagfun.c @@ -137,7 +137,7 @@ static int lagfun_frame16(AVFilterContext *ctx, void *arg, int jobnr, int nb_job } for (int y = slice_start; y < slice_end; y++) { - for (int x = 0; x < s->linesize[p]; x++) + for (int x = 0; x < s->linesize[p] / 2; x++) dst[x] = FFMAX(src[x], osrc[x] * decay); src += in->linesize[p] / 2; _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
