cvs: php-src /ext/gd/libgd gd.c
| From: | Pierre-Alain Joye | Date: | Sat, 13 Mar 2004 23:21:27 +0000 |
| Subject: | cvs: php-src /ext/gd/libgd gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-26621@lists.php.net to get a copy of this message | ||
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;
}
-
}
/*