From 6d4d5190978fe1bed798d50da57273ffcc5a3418 Mon Sep 17 00:00:00 2001 From: Steve Huston Date: Sun, 7 Nov 2010 00:19:06 +0000 Subject: ChangeLogTag:Tue Nov 2 01:25:05 UTC 2010 Douglas C. Schmidt --- ChangeLog | 10 ++++++++++ ace/Log_Msg.cpp | 1 + 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index f92f20bae15..787fa66a457 100644 --- a/ChangeLog +++ b/ChangeLog @@ -25,6 +25,16 @@ Thu Nov 4 15:17:51 UTC 2010 Steve Huston * tests/INET_Addr_Test.cpp: Add some IPv6 address and name lookups. +Tue Nov 2 01:25:05 UTC 2010 Douglas C. Schmidt + + * ace/Log_Msg.cpp (ACE_Log_Msg::log): Added + + ACE_OS::memset(format,'\0',128); + + to ensure the format string has known values. Thanks to Chad + Beaulac for + this suggestion. This fixes bugid 3923. + Tue Nov 2 00:18:34 UTC 2010 Steve Huston * ace/INET_Addr.cpp (set): For platforms that have the GNU-extended diff --git a/ace/Log_Msg.cpp b/ace/Log_Msg.cpp index 57e2c6c1d42..a3151e26848 100644 --- a/ace/Log_Msg.cpp +++ b/ace/Log_Msg.cpp @@ -1105,6 +1105,7 @@ ACE_Log_Msg::log (const ACE_TCHAR *format_str, const ACE_TCHAR *abort_str = ACE_TEXT ("Aborting..."); const ACE_TCHAR *start_format = format_str; ACE_TCHAR format[128]; // Converted format string + ACE_OS::memset (format, '\0', 128); // Set this string to known values. ACE_TCHAR *fp; // Current format pointer int wp = 0; // Width/precision extracted from args bool done = false; -- cgit v1.2.1