easyloggingpp
easyloggingpp copied to clipboard
Uninitialized memory use in copy constuctor
https://github.com/amrayn/easyloggingpp/blob/8489989bb26c6371df103f6cbced3fbee1bc3c2f/src/easylogging%2B%2B.cc#L623
That line is passing uninitialized memory to safeDelete
and if it is non-zero, it is calling delete
.
I think the next method in easylogging++.cc has the same problem too:
https://github.com/amrayn/easyloggingpp/blob/8489989bb26c6371df103f6cbced3fbee1bc3c2f/src/easylogging%2B%2B.cc#L635
What is the best solution?
- Remove these two lines, because they are not needed.
or,
- Initialize member
m_typedConfigurations
tonullptr
in the class definition ofLogger
in easylogging++.h