]> granicus.if.org Git - apache/commitdiff
* modules/http/byterange_filter.c (ap_byterange_filter): Don't reveal
authorJoe Orton <jorton@apache.org>
Mon, 5 Sep 2011 12:59:07 +0000 (12:59 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 5 Sep 2011 12:59:07 +0000 (12:59 +0000)
  the pid in the boundary delimiter (part of CVE-2003-1418).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1165268 13f79535-47bb-0310-9956-ffa450edef68

modules/http/byterange_filter.c

index 8972374ff1752e9e4d3a7caee2e56f46e14192c5..de6c729fdfcd294423d4e35d52b20070619164ef 100644 (file)
@@ -273,7 +273,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_byterange_filter(ap_filter_t *f,
         /* Is ap_make_content_type required here? */
         const char *orig_ct = ap_make_content_type(r, r->content_type);
         boundary = apr_psprintf(r->pool, "%" APR_UINT64_T_HEX_FMT "%lx",
-                                (apr_uint64_t)r->request_time, (long) getpid());
+                                (apr_uint64_t)r->request_time, c->id);
 
         ap_set_content_type(r, apr_pstrcat(r->pool, "multipart",
                                            use_range_x(r) ? "/x-" : "/",