]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_cache_socache: Fix a possible cached entity body corruption when it
authorYann Ylavic <ylavic@apache.org>
Mon, 28 Dec 2015 12:09:29 +0000 (12:09 +0000)
committerYann Ylavic <ylavic@apache.org>
Mon, 28 Dec 2015 12:09:29 +0000 (12:09 +0000)
commitbcbfbe4acedd298139be41ad62c14f5428d149a8
tree62e43bd0ae61986e2e27753d34165c920c20ecab
parent2b7a352917bd71d9cba44aeb118a6ba06fe77192
mod_cache_socache: Fix a possible cached entity body corruption when it
is received from an origin server in multiple batches and forwarded by
mod_proxy.

Upstream buckets should be setaside when saving response body (store_body),
but since those will finally be flatten in the cache buffer (commit_entity),
let's save them directly into the buffer to avoid heap allocation(s) and
the final copy.

Reported by: Mike Pastore <mike oobak.org>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1721899 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
modules/cache/mod_cache_socache.c