mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 17:48:52 +00:00
Merge pull request #7380
8889f49
easylogging++: fix potential memory corruption (moneromooo-monero)
This commit is contained in:
commit
e028591336
5
external/easylogging++/easylogging++.cc
vendored
5
external/easylogging++/easylogging++.cc
vendored
@ -714,9 +714,8 @@ Logger::Logger(const std::string& id, const Configurations& configurations,
|
|||||||
}
|
}
|
||||||
|
|
||||||
Logger::Logger(const Logger& logger) {
|
Logger::Logger(const Logger& logger) {
|
||||||
base::utils::safeDelete(m_typedConfigurations);
|
|
||||||
m_id = logger.m_id;
|
m_id = logger.m_id;
|
||||||
m_typedConfigurations = logger.m_typedConfigurations;
|
m_typedConfigurations = logger.m_typedConfigurations ? new base::TypedConfigurations(*logger.m_typedConfigurations) : nullptr;
|
||||||
m_parentApplicationName = logger.m_parentApplicationName;
|
m_parentApplicationName = logger.m_parentApplicationName;
|
||||||
m_isConfigured = logger.m_isConfigured;
|
m_isConfigured = logger.m_isConfigured;
|
||||||
m_configurations = logger.m_configurations;
|
m_configurations = logger.m_configurations;
|
||||||
@ -728,7 +727,7 @@ Logger& Logger::operator=(const Logger& logger) {
|
|||||||
if (&logger != this) {
|
if (&logger != this) {
|
||||||
base::utils::safeDelete(m_typedConfigurations);
|
base::utils::safeDelete(m_typedConfigurations);
|
||||||
m_id = logger.m_id;
|
m_id = logger.m_id;
|
||||||
m_typedConfigurations = logger.m_typedConfigurations;
|
m_typedConfigurations = logger.m_typedConfigurations ? new base::TypedConfigurations(*logger.m_typedConfigurations) : nullptr;
|
||||||
m_parentApplicationName = logger.m_parentApplicationName;
|
m_parentApplicationName = logger.m_parentApplicationName;
|
||||||
m_isConfigured = logger.m_isConfigured;
|
m_isConfigured = logger.m_isConfigured;
|
||||||
m_configurations = logger.m_configurations;
|
m_configurations = logger.m_configurations;
|
||||||
|
Loading…
Reference in New Issue
Block a user