Blob Blame History Raw
--- a/modules/cache/mod_cache_socache.c	2018/02/16 13:32:48	1824474
+++ b/modules/cache/mod_cache_socache.c	2018/02/16 13:34:35	1824475
@@ -213,7 +213,8 @@
                         "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