diff options
| author | Marcus Boerger <helly@php.net> | 2002-10-29 12:53:58 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2002-10-29 12:53:58 +0000 |
| commit | 083fc401fed908f4def3181090b59fe1cd94e2f7 (patch) | |
| tree | 5850b3ba210ec5ade5f5fb96577c20d6ac58c9a9 | |
| parent | 2ab1bd044fae70bee855c216cb344e8008a44c3d (diff) | |
| download | php-git-083fc401fed908f4def3181090b59fe1cd94e2f7.tar.gz | |
fix overrun
| -rw-r--r-- | ext/standard/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c index 44d604eb34..5110904943 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -501,7 +501,8 @@ PHP_FUNCTION(file) p++; parse_eol: if (PG(magic_quotes_runtime)) { - slashed = php_addslashes(s, (p-s), &len, 1 TSRMLS_CC); + // s is in target_buf which is freed at the end of the function + slashed = php_addslashes(s, (p-s), &len, 0 TSRMLS_CC); add_index_stringl(return_value, i++, slashed, len, 0); } else { add_index_stringl(return_value, i++, estrndup(s, p-s), p-s, 0); |
