ffmpeg | branch: release/4.1 | Paul B Mahol <one...@gmail.com> | Sat Oct 12 
11:07:54 2019 +0200| [29f1cf0c0f5d90e81a438dc12a4782dc424bf5ec] | committer: 
James Almer

avfilter/vf_colorconstancy: fix overreads in gauss array

Fixes #8250

(cherry picked from commit a7fd1279703683ebb548ef7baa2f1519994496ae)
Signed-off-by: James Almer <jamr...@gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=29f1cf0c0f5d90e81a438dc12a4782dc424bf5ec
---

 libavfilter/vf_colorconstancy.c | 4 ++--
 1 file 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]);
                     }
                 }
             }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to