diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2004-12-08 21:15:02 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2004-12-08 21:15:02 +0000 |
| commit | fe29c8def5486eeb740dfcc9ff96d7efc52c2035 (patch) | |
| tree | b73ac391d07b3bc5c4a5d196176f596046abe4d0 /ext | |
| parent | 251851dbb3ca527cb9aa5630257a63ce0cda5991 (diff) | |
| download | php-git-fe29c8def5486eeb740dfcc9ff96d7efc52c2035.tar.gz | |
MFH: Fixed bug #31024 (Crash in fgetcsv() with negative length).
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/standard/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c index fdbe22568c..b0bae7c1d1 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -2335,7 +2335,7 @@ PHP_FUNCTION(fgetcsv) convert_to_long_ex(bytes); len = Z_LVAL_PP(bytes); - if (len < 0) { + if (Z_LVAL_PP(bytes) < 0) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter may not be negative"); RETURN_FALSE; } |
