From: Amos Jeffries Date: Wed, 23 Apr 2014 05:06:52 +0000 (-0700) Subject: Bug 3986 (partial): assertion failed due to incorrect error page buffer size X-Git-Tag: SQUID_3_4_4_1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3328eee30d663fbc150d3dc34e4a2e01af8ae216;p=thirdparty%2Fsquid.git Bug 3986 (partial): assertion failed due to incorrect error page buffer size errorpage.cc:1307: "(size_t)content->contentSize() == strlen(content->content())" --- diff --git a/src/errorpage.cc b/src/errorpage.cc index 8d161e1be6..6a01da7d91 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -1304,6 +1304,8 @@ MemBuf *ErrorState::ConvertText(const char *text, bool allowRecursion) if (*m) content->Printf("%s", m); /* copy tail */ + content->terminate(); + assert((size_t)content->contentSize() == strlen(content->content())); return content;