mirror of
https://github.com/php/php-src.git
synced 2024-11-26 03:16:33 +08:00
Adjusted input check.
This commit is contained in:
parent
69a4d841a9
commit
6ad651afbe
@ -249,8 +249,8 @@ PHP_FUNCTION(dio_write)
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user