pajoye Sat Mar 13 18:21:27 2004 EDT
Modified files:
/php-src/ext/gd/libgd gd.c
Log:
- 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
http://cvs.php.net/diff.php/php-src/ext/gd/libgd/gd.c?r1=1.72&r2=1.73&ty=u
Index: php-src/ext/gd/libgd/gd.c
diff -u php-src/ext/gd/libgd/gd.c:1.72 php-src/ext/gd/libgd/gd.c:1.73
--- php-src/ext/gd/libgd/gd.c:1.72 Sat Mar 13 13:28:19 2004
+++ php-src/ext/gd/libgd/gd.c Sat Mar 13 18:21:25 2004
@@ -1787,6 +1787,9 @@
leftLimit = i;
}
if (leftLimit == -1) {
+ if (restoreAlphaBleding) {
+ im->alphaBlendingFlag = 1;
+ }
return;
}
/* Seek right */
@@ -1834,7 +1837,6 @@
if (restoreAlphaBleding) {
im->alphaBlendingFlag = 1;
}
-
}
/*
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php