mirror of
https://github.com/monero-project/monero.git
synced 2025-04-19 00:55:51 -04:00

The upstream version of el::base::TypedConfigurations::unsafeGetConfigByRef accesses uninitialized memory if a key doesn't exist. Commit b2c59af84de8d35c1eee38878053206a62756968 patched the library to throw in this case, avoiding the invalid access, but the more suitable pattern, both logically, and as evidenced by the behavior of unsafeGetConfigByVal, would be to return a const reference to a default-initialized value with static storage duration.