]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Do not scan past the end of the buffer.
authorChristophe Jaillet <jailletc36@apache.org>
Fri, 4 Apr 2014 20:17:46 +0000 (20:17 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Fri, 4 Apr 2014 20:17:46 +0000 (20:17 +0000)
If no terminating delimiter is found, just leave things as it is

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1584884 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_proxy_html.c

index 081f37122a5d64b39761ef10457fcfddf35a0949..1d87f1106de78abb99e10d2ae630fc91bbad64a4 100644 (file)
@@ -677,7 +677,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);
                     }