You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ja...@apache.org on 2016/04/07 21:09:47 UTC
trafficserver git commit: TS-4329 Off-by-one error in NULL terminator
for aname in hostdb
Repository: trafficserver
Updated Branches:
refs/heads/master 4561dc5a6 -> 0926cf698
TS-4329 Off-by-one error in NULL terminator for aname in hostdb
This closes #555
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/0926cf69
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/0926cf69
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/0926cf69
Branch: refs/heads/master
Commit: 0926cf698fe804dd83bcf44fbe594a164d3aaf1f
Parents: 4561dc5
Author: Thomas Jackson <ja...@apache.org>
Authored: Wed Apr 6 21:06:20 2016 -0700
Committer: Thomas Jackson <ja...@apache.org>
Committed: Thu Apr 7 12:09:13 2016 -0700
----------------------------------------------------------------------
iocore/hostdb/HostDB.cc | 1 -
1 file changed, 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/0926cf69/iocore/hostdb/HostDB.cc
----------------------------------------------------------------------
diff --git a/iocore/hostdb/HostDB.cc b/iocore/hostdb/HostDB.cc
index 9966437..611cacb 100644
--- a/iocore/hostdb/HostDB.cc
+++ b/iocore/hostdb/HostDB.cc
@@ -1370,7 +1370,6 @@ HostDBContinuation::lookup_done(IpAddr const &ip, char const *aname, bool around
void *host_dest = hostDB.alloc(&i->hostname_offset, s_size);
if (host_dest) {
ink_strlcpy((char *)host_dest, aname, s_size);
- *((char *)host_dest + s_size) = '\0';
} else {
Warning("Out of room in hostdb for hostname (data area full!)");
hostDB.delete_block(i);