You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2018/10/01 15:28:16 UTC

[trafficserver] branch master updated: Fix a TM crash on alarms

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

maskit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 58bd441  Fix a TM crash on alarms
58bd441 is described below

commit 58bd441976cb5c9e4422e1de26c07572af40271b
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Fri Sep 28 13:44:23 2018 -0600

    Fix a TM crash on alarms
    
    An alarm receiver expects null terminated message but a sender calculated message size incorrectly, and it caused a buffer overflow.
---
 lib/records/I_RecCore.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/records/I_RecCore.h b/lib/records/I_RecCore.h
index b724876..e3db5ea 100644
--- a/lib/records/I_RecCore.h
+++ b/lib/records/I_RecCore.h
@@ -188,7 +188,7 @@ void RecSignalManager(int id, const char *, size_t);
 static inline void
 RecSignalManager(int id, const char *str)
 {
-  RecSignalManager(id, str, strlen(str + 1));
+  RecSignalManager(id, str, strlen(str) + 1);
 }
 
 // Format a message, and send it to the manager and to the Warning diagnostic.