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