From: Amos Jeffries Date: Fri, 24 Jul 2009 11:21:01 +0000 (+1200) Subject: Send fatal error if response header contains a nul-byte X-Git-Tag: SQUID_3_2_0_1~852 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39f441652334f4a18cfdc3d57fb8bf0caaef8eca;p=thirdparty%2Fsquid.git Send fatal error if response header contains a nul-byte --- diff --git a/src/HttpMsg.cc b/src/HttpMsg.cc index 22e61db892..0132de9e49 100644 --- a/src/HttpMsg.cc +++ b/src/HttpMsg.cc @@ -189,6 +189,7 @@ bool HttpMsg::parse(MemBuf *buf, bool eof, http_status *error) if (res == 0) { debugs(58, 2, "HttpMsg::parse: strange, need more data near '" << buf->content() << "'"); + *error = HTTP_INVALID_HEADER; return false; // but this should not happen due to headersEnd() above }