36d6a7257b
As the lwm2m_registry.c and specificly lwm2m_set() functions already ensure null-terminator on string and count that into string lenght, the content type handlers should do the same. When string is written, strlen()+1 is the data length. When string is read, use the data length, so we don't leak uninitialized strings. If buffer overrun have removed the null-terminator the strlen() migh be larger than data_len. Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no> |
||
---|---|---|
.. | ||
conn_mgr | ||
ip | ||
l2 | ||
lib | ||
pkt_filter | ||
buf.c | ||
buf_simple.c | ||
CMakeLists.txt | ||
hostname.c | ||
Kconfig | ||
Kconfig.hostname | ||
Kconfig.template.log_config.default.net | ||
Kconfig.template.log_config.net |