From: Christophe Jaillet Date: Fri, 4 Apr 2014 20:30:38 +0000 (+0000) Subject: Do not perform a p+= 7 that could go past the end of the buffer in case we find a... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69061d85ed81300374683bf67380071f708f45fb;p=thirdparty%2Fapache%2Fhttpd.git 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1584896 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_proxy_html.c b/modules/filters/mod_proxy_html.c index 1d87f1106de..76fc6b56e97 100644 --- a/modules/filters/mod_proxy_html.c +++ b/modules/filters/mod_proxy_html.c @@ -672,8 +672,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++;