iliaa Wed Sep 29 21:24:04 2004 EDT Modified files: (Branch: PHP_4_3) /php-src NEWS /php-src/ext/ctype ctype.c Log: MFH: Fixed bug #30276 (Possible crash in ctype_digit on large numbers). http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.735&r2=1.1247.2.736&ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.1247.2.735 php-src/NEWS:1.1247.2.736 --- php-src/NEWS:1.1247.2.735 Tue Sep 28 10:09:00 2004 +++ php-src/NEWS Wed Sep 29 21:24:03 2004 @@ -3,6 +3,7 @@ ?? ??? 2004, Version 4.3.10 - Backported Marcus' foreach() speedup patch from PHP 5.x. (Derick) - Fixed potential problems with unserializing invalid serialize data. (Marcus) +- Fixed bug #30276 (Possible crash in ctype_digit on large numbers). (Ilia) - Fixed bug #30224 (Sybase date strings are sometimes not null terminated). (Ilia) - Fixed bug #30057 (did not detect IPV6 on FreeBSD 4.1). (Wez) http://cvs.php.net/diff.php/php-src/ext/ctype/ctype.c?r1=1.23.4.4&r2=1.23.4.5&ty=u Index: php-src/ext/ctype/ctype.c diff -u php-src/ext/ctype/ctype.c:1.23.4.4 php-src/ext/ctype/ctype.c:1.23.4.5 --- php-src/ext/ctype/ctype.c:1.23.4.4 Tue Jul 20 16:10:04 2004 +++ php-src/ext/ctype/ctype.c Wed Sep 29 21:24:03 2004 @@ -99,7 +99,7 @@ case IS_LONG: \ if (Z_LVAL_P(c) <= 255 && Z_LVAL_P(c) >= 0) { \ RETURN_BOOL(iswhat(Z_LVAL_P(c))); \ - } else if (Z_LVAL_P(c) >= -128) { \ + } else if (Z_LVAL_P(c) >= -128 && Z_LVAL_P(c) < 0) { \ RETURN_BOOL(iswhat(Z_LVAL_P(c) + 256)); \ } \ SEPARATE_ZVAL(&c); \
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php