]> granicus.if.org Git - apache/commitdiff
Merge r1584896 from trunk:
authorJim Jagielski <jim@apache.org>
Tue, 15 Apr 2014 19:11:31 +0000 (19:11 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 15 Apr 2014 19:11:31 +0000 (19:11 +0000)
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

STATUS
modules/filters/mod_proxy_html.c

diff --git a/STATUS b/STATUS
index 18af4f07ae446cdb8af22779f6edfcdc1727f06b..5fca8836914c222e2f9c69cb66e8e01b7de6267a 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -139,12 +139,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
      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 ]
 
index 3e5170d1c54297b263746f68f90df6e08aa8e53b..a80ee80c1bc0f06b2eed7d9fa5f7e363d43f2bb0 100644 (file)
@@ -670,8 +670,9 @@ static meta *metafix(request_rec *r, const char *buf)
                     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++;