summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-12-08 21:15:02 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-12-08 21:15:02 +0000
commitfe29c8def5486eeb740dfcc9ff96d7efc52c2035 (patch)
treeb73ac391d07b3bc5c4a5d196176f596046abe4d0 /ext
parent251851dbb3ca527cb9aa5630257a63ce0cda5991 (diff)
downloadphp-git-fe29c8def5486eeb740dfcc9ff96d7efc52c2035.tar.gz
MFH: Fixed bug #31024 (Crash in fgetcsv() with negative length).
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/file.c2
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;
}