From 29ceae4b8c01f6f485cdfda4462cd53f30850a8b Mon Sep 17 00:00:00 2001 From: willson-chen Date: Sat, 7 Dec 2019 10:56:37 +0800 Subject: [PATCH] ext/gd: fix new_a init error in gdImageConvolution() --- ext/gd/libgd/gd_filter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/gd/libgd/gd_filter.c b/ext/gd/libgd/gd_filter.c index 566330668ea25..db364c923ec60 100644 --- a/ext/gd/libgd/gd_filter.c +++ b/ext/gd/libgd/gd_filter.c @@ -362,6 +362,7 @@ int gdImageConvolution(gdImagePtr src, float filter[3][3], float filter_div, flo for ( y=0; ysy; y++) { for(x=0; xsx; x++) { new_r = new_g = new_b = 0; + pxl = f(srcback, x, y); new_a = gdImageAlpha(srcback, pxl); for (j=0; j<3; j++) {