diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-10-12 11:07:54 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-10-12 19:07:51 +0200 |
commit | a7fd1279703683ebb548ef7baa2f1519994496ae (patch) | |
tree | 8f966a53dfe5ac7c750b81b6b4ed36bc00c6d988 /libavfilter/vf_colorconstancy.c | |
parent | e923e6205eda5ef196844af889c09201675cbb68 (diff) |
avfilter/vf_colorconstancy: fix overreads in gauss array
Fixes #8250
Diffstat (limited to 'libavfilter/vf_colorconstancy.c')
-rw-r--r-- | libavfilter/vf_colorconstancy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_colorconstancy.c b/libavfilter/vf_colorconstancy.c index e3bb39e51b..cc081e957f 100644 --- a/libavfilter/vf_colorconstancy.c +++ b/libavfilter/vf_colorconstancy.c @@ -280,7 +280,7 @@ static int slice_get_derivative(AVFilterContext* ctx, void* arg, int jobnr, int dst[INDX2D(r, c, width)] = 0; for (g = 0; g < filtersize; ++g) { dst[INDX2D(r, c, width)] += GAUSS(src, r, c + GINDX(filtersize, g), - in_linesize, height, width, gauss[GINDX(filtersize, g)]); + in_linesize, height, width, gauss[g]); } } } @@ -295,7 +295,7 @@ static int slice_get_derivative(AVFilterContext* ctx, void* arg, int jobnr, int dst[INDX2D(r, c, width)] = 0; for (g = 0; g < filtersize; ++g) { dst[INDX2D(r, c, width)] += GAUSS(src, r + GINDX(filtersize, g), c, - width, height, width, gauss[GINDX(filtersize, g)]); + width, height, width, gauss[g]); } } } |