This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  52510b9   TS-4983: Buffer overflow in esi plugin
52510b9 is described below

commit 52510b917301a6820d14cc48dba73541474f0a02
Author: Bryan Call <bc...@apache.org>
AuthorDate: Tue Oct 18 13:07:51 2016 -0700

    TS-4983: Buffer overflow in esi plugin
---
 plugins/esi/lib/EsiParser.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/esi/lib/EsiParser.cc b/plugins/esi/lib/EsiParser.cc
index 2c3c5cd..24556b3 100644
--- a/plugins/esi/lib/EsiParser.cc
+++ b/plugins/esi/lib/EsiParser.cc
@@ -346,8 +346,8 @@ EsiParser::_parse(const string &data, int &parse_start_pos, 
DocNodeList &node_li
 
     if ((search_result == NO_MATCH) || (search_result == PARTIAL_MATCH)) {
       if (last_chunk) {
-        _errorLog("[%s] ESI tag starting with [%.10s]... has no matching 
closing tag [%.*s]", __FUNCTION__,
-                  data_ptr - ESI_TAG_PREFIX_LEN, node_info->closing_tag_len, 
node_info->closing_tag);
+        _errorLog("[%s] ESI tag starting with [%.10s]... has no matching 
closing tag [%.*s]", __FUNCTION__, data.c_str(),
+                  node_info->closing_tag_len, node_info->closing_tag);
         goto lFail;
       } else {
         goto lPartialMatch;

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Reply via email to