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

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
280 dst[INDX2D(r, c, width)] = 0;280 dst[INDX2D(r, c, width)] = 0;
281 for (g = 0; g < filtersize; ++g) {281 for (g = 0; g < filtersize; ++g) {
282 dst[INDX2D(r, c, width)] += GAUSS(src, r, c + GINDX(filtersize, g),282 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]);
284 }284 }
285 }285 }
286 }286 }
@@ -295,7 +295,7 @@ static int slice_get_derivative(AVFilterContext* ctx, void* arg, int jobnr, int · 8 unmodified lines
295 dst[INDX2D(r, c, width)] = 0;295 dst[INDX2D(r, c, width)] = 0;
296 for (g = 0; g < filtersize; ++g) {296 for (g = 0; g < filtersize; ++g) {
297 dst[INDX2D(r, c, width)] += GAUSS(src, r + GINDX(filtersize, g), c,297 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]);
299 }299 }
300 }300 }
301 }301 }

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