DO NOT USE C++ comments!!!!! --Jani
On Tue, 29 Oct 2002, Marcus Börger wrote: >helly Tue Oct 29 07:53:58 2002 EDT > > Modified files: > /php4/ext/standard file.c > Log: > fix overrun > > >Index: php4/ext/standard/file.c >diff -u php4/ext/standard/file.c:1.276 php4/ext/standard/file.c:1.277 >--- php4/ext/standard/file.c:1.276 Thu Oct 24 15:17:08 2002 >+++ php4/ext/standard/file.c Tue Oct 29 07:53:58 2002 >@@ -21,7 +21,7 @@ > +----------------------------------------------------------------------+ > */ > >-/* $Id: file.c,v 1.276 2002/10/24 19:17:08 helly Exp $ */ >+/* $Id: file.c,v 1.277 2002/10/29 12:53:58 helly Exp $ */ > > /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */ > >@@ -501,7 +501,8 @@ > 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); > > > > -- <- For Sale! -> -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php