]> granicus.if.org Git - apache/commitdiff
Merge r1584884 from trunk:
authorJim Jagielski <jim@apache.org>
Tue, 15 Apr 2014 19:11:57 +0000 (19:11 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 15 Apr 2014 19:11:57 +0000 (19:11 +0000)
Do not scan past the end of the buffer.
If no terminating delimiter is found, just leave things as it is
Submitted by: jailletc36
Reviewed/backported by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1587692 13f79535-47bb-0310-9956-ffa450edef68

STATUS
modules/filters/mod_proxy_html.c

diff --git a/STATUS b/STATUS
index 5fca8836914c222e2f9c69cb66e8e01b7de6267a..c0c72613a92e700c4447680bdb6f8a244f414687 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -134,10 +134,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
      2.4.x patch: trunk patch works (modulo CHANGES)
      +1: jailletc36, jim, ylavic
 
-   * mod_proxy_html: Do not scan past the end of the buffer.
-     trunk patch: https://svn.apache.org/r1584884
-     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 a80ee80c1bc0f06b2eed7d9fa5f7e363d43f2bb0..7a61e1ca81cb287454f56d2e85352ed72ed5496c 100644 (file)
@@ -676,7 +676,10 @@ static meta *metafix(request_rec *r, const char *buf)
                     while (*p && apr_isspace(*++p));
                     if ((*p == '\'') || (*p == '"')) {
                         delim = *p++;
-                        for (q = p; *q != delim; ++q);
+                        for (q = p; *q && *q != delim; ++q);
+                        /* No terminating delimiter found? Skip the boggus directive */
+                        if (*q != delim)
+                           break;
                     } else {
                         for (q = p; *q && !apr_isspace(*q) && (*q != '>'); ++q);
                     }