You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
592 B

--- 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