File php-CVE-2016-10166.patch of Package php7.11084
Index: php-7.0.7/ext/gd/libgd/gd_interpolation.c
===================================================================
--- php-7.0.7.orig/ext/gd/libgd/gd_interpolation.c 2017-01-31 15:59:47.895084524 +0100
+++ php-7.0.7/ext/gd/libgd/gd_interpolation.c 2017-01-31 16:08:39.782455495 +0100
@@ -904,8 +904,7 @@ static inline LineContribType * _gdContr
}
if (overflow_error == 1 || res->ContribRow[u].Weights == NULL) {
unsigned int i;
- u--;
- for (i=0;i<=u;i++) {
+ for (i=0;i<u;i++) {
gdFree(res->ContribRow[i].Weights);
}
gdFree(res->ContribRow);