zephyr/subsys/net/lib
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
..
capture net: remove usage of device_pm_control_nop 2021-04-27 16:28:49 -04:00
coap net: coap: coap_find_options() now returns 0 when options empty 2021-04-22 19:34:11 +03:00
config net: config: Try to only use auto started interface 2021-03-29 07:40:24 -04:00
conn_mgr kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
dns net: dns: add 10ms delay when rescheduling query timeout handler 2021-04-23 15:05:41 -05:00
http net: http: add numeric http status code to response struct 2021-04-14 18:46:47 +03:00
lwm2m net: lwm2m: Fix lwm2m_path_log_strdup buffer usage 2021-04-28 19:30:09 +02:00
mqtt net: mqtt: log struct mqtt_utf8 with hexdump 2021-03-05 12:49:22 +02:00
openthread net: openthread: enable CSL delayed transmissions 2021-04-26 13:40:43 +02:00
sntp net: sntp: Depend on NET_SOCKETS_POSIX_NAMES || POSIX_API 2021-04-22 13:41:33 +03:00
sockets net: lib: sockets: Fix zsock_select 2021-04-28 20:01:31 +03:00
socks
tftp
tls_credentials
utils
websocket kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
CMakeLists.txt net: capture: Add support for network packet capturing 2021-04-02 07:24:06 -04:00
Kconfig net: capture: Add support for network packet capturing 2021-04-02 07:24:06 -04:00