Do not perform a p+= 7 that could go past the end of the buffer in case we find a 'content' without a corresponding '='.
Should we need to deal with this case, a new search should be performed to find the real starting position of another potential 'content=' pattern.
Submitted by: jailletc36
Reviewed/backported by: jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1587690 13f79535-47bb-0310-9956-
ffa450edef68
2.4.x patch: trunk patch works
+1: jailletc36, jim, ylavic
- * mod_proxy_html: Do not perform a p+= 7 that could go past the end of the buffer
- trunk patch: https://svn.apache.org/r1584896
- 2.4.x patch: trunk patch works
- +1: jailletc36, jim, ylavic
-
-
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
[ New proposals should be added at the end of the list ]
p += 7;
while (apr_isspace(*p))
++p;
+ /* XXX Should we search for another content= pattern? */
if (*p != '=')
- continue;
+ break;
while (*p && apr_isspace(*++p));
if ((*p == '\'') || (*p == '"')) {
delim = *p++;