653c987762
Currently the lwm2m_path_log_strdup allocates a temporary buffer on a stack, and then passes it to the log_strdup function to create a copy of the string for the logger. log_strdup however will not copy the string if for instance immediate logging is used, therefore the logging function will still use the memory address of the already invalid buffer allocated within lwm2m_path_log_strdup. Fix this by passing an addittional `buf` parameter to the lwm2m_path_log_strdup function, therefore allowing the user to provide the buffer within a valid scope. CID: 220536 Fixes #34005 Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no> |
||
---|---|---|
.. | ||
ip | ||
l2 | ||
lib | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.hostname | ||
Kconfig.template.log_config.default.net | ||
Kconfig.template.log_config.net | ||
buf.c | ||
hostname.c |