File gd-CVE-2016-9317.patch of Package gd.8568
--- a/src/gd.c +++ b/src/gd.c @@ -185,6 +185,10 @@ BGD_DECLARE(gdImagePtr) gdImageCreate (int sx, int sy) int i; gdImagePtr im; + if (overflow2(sx, sy)) { + return NULL; + } + if (overflow2(sizeof (unsigned char *), sy)) { return NULL; }