diff options
author | Steve Huston <shuston@riverace.com> | 2010-11-07 00:19:06 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2010-11-07 00:19:06 +0000 |
commit | 6d4d5190978fe1bed798d50da57273ffcc5a3418 (patch) | |
tree | 15abaeeb9fdb8cbda4046f4c2e15438302857322 | |
parent | 0cd149f21025c5f262fb8785bb14ba9611695d65 (diff) | |
download | ATCD-6d4d5190978fe1bed798d50da57273ffcc5a3418.tar.gz |
ChangeLogTag:Tue Nov 2 01:25:05 UTC 2010 Douglas C. Schmidt <schmidt@dre.vanderbilt.edu>
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | ace/Log_Msg.cpp | 1 |
2 files changed, 11 insertions, 0 deletions
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 <shuston@riverace.com> * tests/INET_Addr_Test.cpp: Add some IPv6 address and name lookups. +Tue Nov 2 01:25:05 UTC 2010 Douglas C. Schmidt <schmidt@dre.vanderbilt.edu> + + * 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 <chad dot beaulac at objectivesolutions dot com> for + this suggestion. This fixes bugid 3923. + Tue Nov 2 00:18:34 UTC 2010 Steve Huston <shuston@riverace.com> * 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; |