cvs: php-src /ext/ctype ctype.c

From: Date: Thu, 30 Sep 2004 01:22:56 +0000
Subject: cvs: php-src /ext/ctype ctype.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-28850@lists.php.net to get a copy of this message
iliaa Wed Sep 29 21:22:56 2004 EDT Modified files: /php-src/ext/ctype ctype.c Log: Fixed bug #30276 (Possible crash in ctype_digit on large numbers). http://cvs.php.net/diff.php/php-src/ext/ctype/ctype.c?r1=1.31&r2=1.32&ty=u Index: php-src/ext/ctype/ctype.c diff -u php-src/ext/ctype/ctype.c:1.31 php-src/ext/ctype/ctype.c:1.32 --- php-src/ext/ctype/ctype.c:1.31 Tue Jul 20 16:08:08 2004 +++ php-src/ext/ctype/ctype.c Wed Sep 29 21:22:56 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); \

« previous php.cvs (#28850) next »