From 197b48322e4edaf43e35450800dfbb87901b2402 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sat, 13 Mar 2004 23:21:25 +0000 Subject: [PATCH] - restore too the alphablending if we do not reach the end of the function Notice: This function still crashes (stack overflow), to reproduce it see bug27582_2.phpt --- ext/gd/libgd/gd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c index cff22915a0..4ae2488b1c 100644 --- a/ext/gd/libgd/gd.c +++ b/ext/gd/libgd/gd.c @@ -1787,6 +1787,9 @@ void gdImageFillToBorder (gdImagePtr im, int x, int y, int border, int color) leftLimit = i; } if (leftLimit == -1) { + if (restoreAlphaBleding) { + im->alphaBlendingFlag = 1; + } return; } /* Seek right */ @@ -1834,7 +1837,6 @@ void gdImageFillToBorder (gdImagePtr im, int x, int y, int border, int color) if (restoreAlphaBleding) { im->alphaBlendingFlag = 1; } - } /* -- 2.50.1