cvs: php-src(PHP_4_3) /ext/dio dio.c
| From: | Ilia Alshanetsky | Date: | Fri, 03 Sep 2004 03:36:21 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /ext/dio dio.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-28556@lists.php.net to get a copy of this message | ||
iliaa Thu Sep 2 23:36:21 2004 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/dio dio.c
Log:
MFH: Adjusted input check.
http://cvs.php.net/diff.php/php-src/ext/dio/dio.c?r1=1.21.2.9&r2=1.21.2.10&ty=u
Index: php-src/ext/dio/dio.c
diff -u php-src/ext/dio/dio.c:1.21.2.9 php-src/ext/dio/dio.c:1.21.2.10
--- php-src/ext/dio/dio.c:1.21.2.9 Mon Aug 30 18:21:18 2004
+++ php-src/ext/dio/dio.c Thu Sep 2 23:36:21 2004
@@ -233,8 +233,8 @@
return;
}
- if (trunc_len <= 0 || trunc_len > data_len) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "length must be greater then zero and less then
the length of specified string.");
+ if (trunc_len < 0 || trunc_len > data_len) {
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "length must be greater or equal to zero and
less then the length of the specified string.");
RETURN_FALSE;
}