a4f3a1
--- a/modules/cache/mod_cache_socache.c	2018/02/16 13:32:48	1824474
a4f3a1
+++ b/modules/cache/mod_cache_socache.c	2018/02/16 13:34:35	1824475
a4f3a1
@@ -213,7 +213,8 @@
a4f3a1
                         "Premature end of cache headers.");
a4f3a1
                 return APR_EGENERAL;
a4f3a1
             }
a4f3a1
-            while (apr_isspace(buffer[colon])) {
a4f3a1
+            /* Do not go past the \r from above as apr_isspace('\r') is true */
a4f3a1
+            while (apr_isspace(buffer[colon]) && (colon < *slider)) {
a4f3a1
                 colon++;
a4f3a1
             }
a4f3a1
             apr_table_addn(table, apr_pstrndup(r->pool, (const char *) buffer