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;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php