diff options
author | Pierre Joye <pajoye@php.net> | 2004-03-13 23:21:25 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2004-03-13 23:21:25 +0000 |
commit | 197b48322e4edaf43e35450800dfbb87901b2402 (patch) | |
tree | 9d700e2e0a9d9f50cf4184f34f33e439d97f037d /ext/gd | |
parent | 0763dfa16f49211a1cc462ec72a90cc18367f7f3 (diff) | |
download | php-git-197b48322e4edaf43e35450800dfbb87901b2402.tar.gz |
- 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
Diffstat (limited to 'ext/gd')
-rw-r--r-- | ext/gd/libgd/gd.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } - } /* |