trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject git commit: TS-1881 TS can crash on regex URL lookup
Date Tue, 07 May 2013 02:45:27 GMT
Updated Branches:
  refs/heads/master da413c514 -> d1136f6f0


TS-1881 TS can crash on regex URL lookup


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

Branch: refs/heads/master
Commit: d1136f6f07aa1c445f73b5f7841ffce1b50db42c
Parents: da413c5
Author: Alan M. Carroll <amc@network-geographics.com>
Authored: Mon Apr 15 02:50:47 2013 -0500
Committer: Alan M. Carroll <amc@network-geographics.com>
Committed: Mon Apr 15 02:50:47 2013 -0500

----------------------------------------------------------------------
 iocore/cache/CacheVol.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d1136f6f/iocore/cache/CacheVol.cc
----------------------------------------------------------------------
diff --git a/iocore/cache/CacheVol.cc b/iocore/cache/CacheVol.cc
index 854948b..bb4b387 100644
--- a/iocore/cache/CacheVol.cc
+++ b/iocore/cache/CacheVol.cc
@@ -260,7 +260,7 @@ CacheVC::scanObject(int event, Event * e)
       if (!vector.get(i)->valid())
         goto Lskip;
       if (!hostinfo_copied) {
-        memccpy(hname, vector.get(i)->request_get()->url_get()->host_get(&hlen),
0, 500);
+        memccpy(hname, vector.get(i)->request_get()->host_get(&hlen), 0, 500);
         hname[hlen] = 0;
         Debug("cache_scan", "hostname = '%s', hostlen = %d", hname, hlen);
         hostinfo_copied = 1;


Mime
View raw message