From: Adam Dickmeiss Date: Thu, 4 Jul 2013 14:43:27 +0000 (+0200) Subject: Don't go beyond end of string for quoted literals X-Git-Tag: v1.3.59~18 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=b8c30d9591850c3c0c1f9f8b7e15e76ea5517375;p=metaproxy-moved-to-github.git Don't go beyond end of string for quoted literals --- diff --git a/src/filter_http_rewrite.cpp b/src/filter_http_rewrite.cpp index 5e3cfab..97c0755 100644 --- a/src/filter_http_rewrite.cpp +++ b/src/filter_http_rewrite.cpp @@ -636,6 +636,8 @@ void yf::HttpRewrite::Content::quoted_literal( { if (cp[-1] != '\\' && *cp == m) break; + if (*cp == '\n') + break; cp++; } if (!*cp)