httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject Re: Problem use Apache::Upload
Date Mon, 02 Aug 2004 15:21:45 GMT
Markus Wichitill <mawic@gmx.de> writes:

> [Mon Aug 02 13:20:29 2004] [error] [forum] [client 192.168.0.1] key =
> <autht-Disposition: form-data;

[...]

> --\r\n>, val => <1283460750>
> 

That looks like memory corruption, not a parser failure.  I see
your problem now- see if this patch fixes it:

Index: src/apreq_parsers.c
===================================================================
RCS file: /home/cvs/httpd-apreq-2/src/apreq_parsers.c,v
retrieving revision 1.59
diff -u -r1.59 apreq_parsers.c
--- src/apreq_parsers.c 31 Jul 2004 23:56:40 -0000      1.59
+++ src/apreq_parsers.c 2 Aug 2004 15:19:25 -0000
@@ -948,7 +948,7 @@

             case APR_SUCCESS:
                 /* part has no body- return CRLF to front */
-                e = apr_bucket_transient_create(CRLF, 2,
+                e = apr_bucket_immortal_create(CRLF, 2,
                                                 ctx->bb->bucket_alloc);
                 APR_BRIGADE_INSERT_HEAD(ctx->in,e);
                 break;
@@ -975,7 +975,7 @@

             if (s != APR_SUCCESS) {
                 name = apr_pstrmemdup(pool, name, nlen);
-                e = apr_bucket_transient_create(name, nlen,
+                e = apr_bucket_immortal_create(name, nlen,
                                                 ctx->bb->bucket_alloc);
                 APR_BRIGADE_INSERT_HEAD(ctx->bb,e);
                 ctx->status = MFD_PARAM;


-- 
Joe Schaefer


Mime
View raw message