File php-5.2.6-qa-ppc64-bug24155.patch of Package php5

Index: ext/gd/libgd/gd.c
===================================================================
RCS file: /repository/php-src/ext/gd/libgd/gd.c,v
retrieving revision 1.90.2.1.2.23
diff -u -p -r1.90.2.1.2.23 gd.c
--- ext/gd/libgd/gd.c	31 Jul 2008 09:22:17 -0000	1.90.2.1.2.23
+++ ext/gd/libgd/gd.c	12 Nov 2008 15:07:16 -0000
@@ -1940,7 +1940,7 @@ struct seg {int y, xl, xr, dy;};
 /* max depth of stack */
 #define FILL_MAX 1200000
 #define FILL_PUSH(Y, XL, XR, DY) \
-    if (sp<stack+FILL_MAX*10 && Y+(DY)>=0 && Y+(DY)<wy2) \
+    if (sp<stack+FILL_MAX && Y+(DY)>=0 && Y+(DY)<wy2) \
     {sp->y = Y; sp->xl = XL; sp->xr = XR; sp->dy = DY; sp++;}
 
 #define FILL_POP(Y, XL, XR, DY) \