You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by yl...@apache.org on 2018/02/15 18:31:25 UTC
svn commit: r1824343 - in /httpd/httpd/trunk: CHANGES
modules/cache/mod_cache_socache.c
Author: ylavic
Date: Thu Feb 15 18:31:25 2018
New Revision: 1824343
URL: http://svn.apache.org/viewvc?rev=1824343&view=rev
Log:
mod_cache_socache: Fix caching of empty headers up to carriage return.
Modified:
httpd/httpd/trunk/CHANGES
httpd/httpd/trunk/modules/cache/mod_cache_socache.c
Modified: httpd/httpd/trunk/CHANGES
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=1824343&r1=1824342&r2=1824343&view=diff
==============================================================================
--- httpd/httpd/trunk/CHANGES [utf-8] (original)
+++ httpd/httpd/trunk/CHANGES [utf-8] Thu Feb 15 18:31:25 2018
@@ -1,6 +1,9 @@
-*- coding: utf-8 -*-
Changes with Apache 2.5.1
+ *) mod_cache_socache: Fix caching of empty headers up to carriage return.
+ [Yann Ylavic]
+
*) regex: Allow to configure global/default options for regexes, like
caseless matching or extended format. [Yann Ylavic]
Modified: httpd/httpd/trunk/modules/cache/mod_cache_socache.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_cache_socache.c?rev=1824343&r1=1824342&r2=1824343&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_cache_socache.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_cache_socache.c Thu Feb 15 18:31:25 2018
@@ -213,7 +213,8 @@ static apr_status_t read_table(cache_han
"Premature end of cache headers.");
return APR_EGENERAL;
}
- while (apr_isspace(buffer[colon])) {
+ /* Do not go past the \r from above as apr_isspace('\r') is true */
+ while (apr_isspace(buffer[colon]) && (colon < *slider)) {
colon++;
}
apr_table_addn(table, apr_pstrndup(r->pool, (const char *) buffer