is enabled, could allow local users to gain privileges via a .htaccess
file. [Stefan Fritsch, Greg Ames]
+ *) mod_log_config: Fix segfault when logging nameless, valueless cookie.
+ PR 52256. [Stefan Fritsch]
+
*) core: Fix segfault in ap_send_interim_response(). PR 52315.
[Stefan Fritsch]
and 2.4.x no longer support this version, see r1203491 and r1203495)
+1: kbrand (non-binding), rjung, jorton
- * mod_log_config: Fix segfault when logging Nameless, Valueless cookie. PR 52256
- Trunk patch: http://svn.apache.org/viewvc?rev=1225380&view=rev
- 2.2.x patch: trunk patch works
- +1: sf, gregames, covener
-
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
[ New proposals should be added at the end of the list ]
while ((cookie = apr_strtok(cookies, ";", &last1))) {
char *name = apr_strtok(cookie, "=", &last2);
- char *value;
- apr_collapse_spaces(name, name);
-
- if (!strcasecmp(name, a) && (value = apr_strtok(NULL, "=", &last2))) {
- char *last;
- value += strspn(value, " \t"); /* Move past leading WS */
- last = value + strlen(value) - 1;
- while (last >= value && apr_isspace(*last)) {
- *last = '\0';
- --last;
+ if (name) {
+ char *value;
+ apr_collapse_spaces(name, name);
+
+ if (!strcasecmp(name, a) && (value = apr_strtok(NULL, "=", &last2))) {
+ char *last;
+ value += strspn(value, " \t"); /* Move past leading WS */
+ last = value + strlen(value) - 1;
+ while (last >= value && apr_isspace(*last)) {
+ *last = '\0';
+ --last;
+ }
+
+ return ap_escape_logitem(r->pool, value);
}
-
- return ap_escape_logitem(r->pool, value);
}
cookies = NULL;
}