Skip to content
Commit 95cef5f3 authored by Seppo Takalo's avatar Seppo Takalo Committed by Carles Cufí
Browse files

net: lwm2m: Ensure string termination



When writing string data to resources which are string types,
we should count in the terminating character into the data length.

Corner cases exist where LwM2M resource type is opaque but
lwm2m_get_string() or lwm2m_set_string() are used to read/write
the data. We must ensure string termination on those case, but
terminating character must not be stored in the engine buffer
or counted in the data length as this might be considered
as part of the binary data.

Fixes #59196

Signed-off-by: default avatarSeppo Takalo <seppo.takalo@nordicsemi.no>
parent 8b9815af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment