cvs: php-src(PHP_4_3) /ext/gd/libgd gd.c
| From: | Pierre-Alain Joye | Date: | Wed, 17 Mar 2004 17:25:25 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /ext/gd/libgd gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-26693@lists.php.net to get a copy of this message | ||
pajoye Wed Mar 17 12:25:25 2004 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/gd/libgd gd.c
Log:
- MFH (crash in imagecolortransparent with invalid color index)
http://cvs.php.net/diff.php/php-src/ext/gd/libgd/gd.c?r1=1.24.2.26&r2=1.24.2.27&ty=u
Index: php-src/ext/gd/libgd/gd.c
diff -u php-src/ext/gd/libgd/gd.c:1.24.2.26 php-src/ext/gd/libgd/gd.c:1.24.2.27
--- php-src/ext/gd/libgd/gd.c:1.24.2.26 Sat Mar 13 19:46:45 2004
+++ php-src/ext/gd/libgd/gd.c Wed Mar 17 12:25:24 2004
@@ -571,7 +571,7 @@
if (im->transparent != -1) {
im->alpha[im->transparent] = gdAlphaOpaque;
}
- if (color > -1 && color<=gdMaxColors) {
+ if (color > -1 && color<im->colorsTotal && color<=gdMaxColors) {
im->alpha[color] = gdAlphaTransparent;
} else {
return;