zephyr/subsys/net
Robert Lubos 653c987762 net: lwm2m: Fix lwm2m_path_log_strdup buffer usage
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>
2021-04-28 19:30:09 +02:00
..
ip net: trickle: Do not initialize a work item from its handler 2021-04-27 19:48:16 +03:00
l2 net: remove usage of device_pm_control_nop 2021-04-27 16:28:49 -04:00
lib net: lwm2m: Fix lwm2m_path_log_strdup buffer usage 2021-04-28 19:30:09 +02:00
CMakeLists.txt
Kconfig Bluetooth: controller: ISO adaptation layer, Rx unframed 2021-04-14 18:17:09 +02:00
Kconfig.hostname net: hostname: Update unique hostname on link address change 2021-01-13 17:50:32 +02:00
Kconfig.template.log_config.default.net
Kconfig.template.log_config.net
buf.c clock: renmae z_timeout_end_calc -> sys_clock_timeout_end_calc 2021-03-19 11:22:17 -04:00
hostname.c net: hostname: Update unique hostname on link address change 2021-01-13 17:50:32 +02:00