pajoye Sat Jul 29 01:26:55 2006 UTC
Added files: (Branch: PHP_5_2)
/php-src/ext/filter/tests bug8315.phpt
Modified files:
/php-src/ext/filter logical_filters.c package.xml
Log:
- #8315, NULL character stops the validation
http://cvs.php.net/viewvc.cgi/php-src/ext/filter/logical_filters.c?r1=1.1.2.3&r2=1.1.2.4&diff_format=u
Index: php-src/ext/filter/logical_filters.c
diff -u php-src/ext/filter/logical_filters.c:1.1.2.3
php-src/ext/filter/logical_filters.c:1.1.2.4
--- php-src/ext/filter/logical_filters.c:1.1.2.3 Sat Jul 22 12:49:36 2006
+++ php-src/ext/filter/logical_filters.c Sat Jul 29 01:26:55 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: logical_filters.c,v 1.1.2.3 2006/07/22 12:49:36 nlopess Exp $ */
+/* $Id: logical_filters.c,v 1.1.2.4 2006/07/29 01:26:55 pajoye Exp $ */
#include "php_filter.h"
#include "filter_private.h"
@@ -119,6 +119,7 @@
}
i++;
p[i] = '\0';
+ end = p + i - 1;
}
/* state 0 */
@@ -189,7 +190,7 @@
}
stateT: /* state "tail" */
- if (*p != '\0') {
+ if (*p != '\0' || (p-1) != end) {
goto stateE;
} else {
goto stateR;
http://cvs.php.net/viewvc.cgi/php-src/ext/filter/package.xml?r1=1.22&r2=1.22.2.1&diff_format=u
Index: php-src/ext/filter/package.xml
diff -u php-src/ext/filter/package.xml:1.22
php-src/ext/filter/package.xml:1.22.2.1
--- php-src/ext/filter/package.xml:1.22 Sun May 28 01:24:01 2006
+++ php-src/ext/filter/package.xml Sat Jul 29 01:26:55 2006
@@ -26,10 +26,11 @@
<state>beta</state>
<version>0.10.0</version>
<date>2006-05-14</date>
- <notes>- Fixed PECL bug #6136, ini_set should not be able to change the
filter.default (Pierre)
-- Fixed PECL bug #6639: uppercase hexadecimal digits are not supported
+ <notes>- Fixed PECL bug #8315, NULL character stops the validation (Pierre)
- Fixed PECL bug #7733, Float exponential weird result (Pierre)
- Fixed PECL bug #7715, Input_get float error (Pierre)
+- Fixed PECL bug #6639: uppercase hexadecimal digits are not supported
+- Fixed PECL bug #6136, ini_set should not be able to change the
filter.default (Pierre)
- Implemented PECL req #6641: negative values for hexadecimal and octal
numbers are not supported.
- Added support for php pcre expressions (Pierre)
- Fixed Possible leak in internal sapi_filter (Pierre)
http://cvs.php.net/viewvc.cgi/php-src/ext/filter/tests/bug8315.phpt?view=markup&rev=1.1
Index: php-src/ext/filter/tests/bug8315.phpt
+++ php-src/ext/filter/tests/bug8315.phpt
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php