From 723d69f99cd26db9687ed2d24d06afaff624daf3 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 19 Oct 2019 09:56:53 +0200 Subject: [PATCH] avfilter/vf_lagfun: fix heap-buffer overflow Fixes #8310 --- 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;