Logger::log isn't thread safe (by inspection)
---------------------------------------------

                 Key: QPID-1852
                 URL: https://issues.apache.org/jira/browse/QPID-1852
             Project: Qpid
          Issue Type: Bug
          Components: C++ Broker
    Affects Versions: M4
            Reporter: Andrew Stitcher
            Assignee: Andrew Stitcher


In source file cpp/src/qpid/log/Logger.h Logger::log() uses the function 
localtime which is not thread saf

localtime() needs to be replaced with localtime_r() for threadsafety.

Incidentally sprintf() and most of the rest of the function can be replaced 
with strftime().

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to