iliaa           Wed Sep 29 21:23:34 2004 EDT

  Modified files:              (Branch: PHP_5_0)
    /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.1760.2.86&r2=1.1760.2.87&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1760.2.86 php-src/NEWS:1.1760.2.87
--- php-src/NEWS:1.1760.2.86    Tue Sep 28 10:07:59 2004
+++ php-src/NEWS        Wed Sep 29 21:23:33 2004
@@ -1,6 +1,7 @@
 PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2004, PHP 5.0.3
+- 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 #30147 (OO sqlite_fetch_object did not reset error handler). (Wez)
http://cvs.php.net/diff.php/php-src/ext/ctype/ctype.c?r1=1.29.2.2&r2=1.29.2.3&ty=u
Index: php-src/ext/ctype/ctype.c
diff -u php-src/ext/ctype/ctype.c:1.29.2.2 php-src/ext/ctype/ctype.c:1.29.2.3
--- php-src/ext/ctype/ctype.c:1.29.2.2  Tue Jul 20 16:09:27 2004
+++ php-src/ext/ctype/ctype.c   Wed Sep 29 21:23:34 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

Reply via email to