trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudhe...@apache.org
Subject git commit: [TS-2314] - remove possible invalid array index access from debug log
Date Fri, 03 Oct 2014 22:33:05 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 2a84c6b9f -> 0099e9bb9


[TS-2314] - remove possible invalid array index access from debug log


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/0099e9bb
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/0099e9bb
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/0099e9bb

Branch: refs/heads/master
Commit: 0099e9bb9c1cf6f28f3492b275fd7e407b3bf500
Parents: 2a84c6b
Author: Sudheer Vinukonda <sudheerv@yahoo-inc.com>
Authored: Fri Oct 3 22:32:32 2014 +0000
Committer: Sudheer Vinukonda <sudheerv@yahoo-inc.com>
Committed: Fri Oct 3 22:32:32 2014 +0000

----------------------------------------------------------------------
 proxy/http/HttpSM.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/0099e9bb/proxy/http/HttpSM.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index cef58ff..cdde36b 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -4223,7 +4223,7 @@ HttpSM::parse_range_and_compare(MIMEField *field, int64_t content_length)
       int frag_offset_cnt = t_state.cache_info.object_read->get_frag_offset_count();
 
       if (!frag_offset_tbl || !frag_offset_cnt || (frag_offset_tbl[frag_offset_cnt - 1] <
(uint64_t)end)) {
-        Debug("http_range", "request range in cache, end %" PRId64 ", frg_offset_cnt %d,
frag_size %" PRId64, end, frag_offset_cnt, frag_offset_tbl[frag_offset_cnt - 1]);
+        Debug("http_range", "request range in cache, end %" PRId64 ", frg_offset_cnt %d"
PRId64, end, frag_offset_cnt);
         t_state.range_in_cache = false;
       }
     }


Mime
View raw message