Re: cvs: php4 /ext/standard file.c
| From: | Jani Taskinen | Date: | Tue, 29 Oct 2002 13:22:01 +0000 |
| Subject: | Re: cvs: php4 /ext/standard file.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-15577@lists.php.net to get a copy of this message | ||
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! ->