trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject trafficserver git commit: Fixing AddressSanitizer issue where sizeof(size_t) > sizeof(int).
Date Thu, 20 Nov 2014 19:53:38 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 74d29be0e -> 90b635481


Fixing AddressSanitizer issue where sizeof(size_t) > sizeof(int).


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

Branch: refs/heads/master
Commit: 90b635481aa9a819852fbfeafdf334bf06513181
Parents: 74d29be
Author: Brian Geffon <briang@apache.org>
Authored: Thu Nov 20 11:53:24 2014 -0800
Committer: Brian Geffon <briang@apache.org>
Committed: Thu Nov 20 11:53:24 2014 -0800

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


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/90b63548/proxy/logging/LogAccess.cc
----------------------------------------------------------------------
diff --git a/proxy/logging/LogAccess.cc b/proxy/logging/LogAccess.cc
index 17cfed8..ce5f04c 100644
--- a/proxy/logging/LogAccess.cc
+++ b/proxy/logging/LogAccess.cc
@@ -861,7 +861,7 @@ LogAccess::marshal_ip(char* dest, sockaddr const* ip) {
 inline int
 LogAccess::unmarshal_with_map(int64_t code, char *dest, int len, Ptr<LogFieldAliasMap>
map, const char *msg)
 {
-  int codeStrLen;
+  long int codeStrLen = 0;
 
   switch (map->asString(code, dest, len, (size_t *) & codeStrLen)) {
   case LogFieldAliasMap::INVALID_INT:


Mime
View raw message