diff options
author | Steve Huston <shuston@riverace.com> | 2010-11-07 00:20:03 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2010-11-07 00:20:03 +0000 |
commit | c6e5d4e14729014a2148ea20690ec9bbcd027e71 (patch) | |
tree | 6190703bef0e082c0f34466f28821b55003b5796 | |
parent | e309b857481f28899d2dc5cdd2181d54fed9112a (diff) | |
download | ATCD-c6e5d4e14729014a2148ea20690ec9bbcd027e71.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 c0fcdbd4bed..20b73ffdb98 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24,6 +24,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. + Thu Oct 28 17:45:10 UTC 2010 Steve Huston <shuston@riverace.com> * ace/INET_Addr.cpp (set): Corrected ACE_HAS_IPV6 checks made in diff --git a/ace/Log_Msg.cpp b/ace/Log_Msg.cpp index ce445120de9..36d090eedcc 100644 --- a/ace/Log_Msg.cpp +++ b/ace/Log_Msg.cpp @@ -1112,6 +1112,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; |