From: Jim Jagielski Date: Wed, 23 Feb 2011 13:03:58 +0000 (+0000) Subject: protect one-off boundary X-Git-Tag: 2.3.11~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0da266ae47a9cbbf57d4b0aafc86e2247307bf0;p=apache protect one-off boundary git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1073728 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_balancer.c b/modules/proxy/mod_proxy_balancer.c index e5db47b0d3..cf4c739775 100644 --- a/modules/proxy/mod_proxy_balancer.c +++ b/modules/proxy/mod_proxy_balancer.c @@ -938,12 +938,12 @@ static int balancer_handler(request_rec *r) } if (r->method_number == M_POST) { apr_bucket_brigade *ib; - apr_size_t len; - char *buf = apr_pcalloc(r->pool, 1024);; + apr_size_t len = 1024; + char *buf = apr_pcalloc(r->pool, len+1); ib = apr_brigade_create(r->connection->pool, r->connection->bucket_alloc); rv = ap_get_brigade(r->input_filters, ib, AP_MODE_READBYTES, - APR_BLOCK_READ, 1024); + APR_BLOCK_READ, len); if (rv != APR_SUCCESS) { return HTTP_INTERNAL_SERVER_ERROR; }