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> |
||
---|---|---|
.. | ||
capture | ||
coap | ||
config | ||
conn_mgr | ||
dns | ||
http | ||
lwm2m | ||
mqtt | ||
openthread | ||
sntp | ||
sockets | ||
socks | ||
tftp | ||
tls_credentials | ||
utils | ||
websocket | ||
CMakeLists.txt | ||
Kconfig |