History

avfilter/vf_colorconstancy: fix overreads in gauss array

Fixes #8250

Paul B Mahol committed 7 years ago

Commit a7fd1271 parent e923e621 file · +2 −2Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_colorconstancy.c+2−2
@@ -280,7 +280,7 @@ static int slice_get_derivative(AVFilterContext* ctx, void* arg, int jobnr, int · 279 unmodified lines
280280 dst[INDX2D(r, c, width)] = 0;
281281 for (g = 0; g < filtersize; ++g) {
282282 dst[INDX2D(r, c, width)] += GAUSS(src, r, c + GINDX(filtersize, g),
283− in_linesize, height, width, gauss[GINDX(filtersize, g)]);
283+ in_linesize, height, width, gauss[g]);
284284 }
285285 }
286286 }
@@ -295,7 +295,7 @@ static int slice_get_derivative(AVFilterContext* ctx, void* arg, int jobnr, int · 8 unmodified lines
295295 dst[INDX2D(r, c, width)] = 0;
296296 for (g = 0; g < filtersize; ++g) {
297297 dst[INDX2D(r, c, width)] += GAUSS(src, r + GINDX(filtersize, g), c,
298− width, height, width, gauss[GINDX(filtersize, g)]);
298+ width, height, width, gauss[g]);
299299 }
300300 }
301301 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t