In the nRF5 SDK, the ble_ots_object_set_name() function use strncpy() without adding a null-character to the destination.
In the nRF5 SDK, the ble_ots_object_set_name() function use strncpy() without adding a null-character to the destination.
Hi,
Is the issue that strncpy() will not put null termination in p_object->name if new_name (including the \0) is longer than BLE_OTS_NAME_MAX_SIZE?
Regards,
Terje
yes
Hi,
Great!
Thanks for the report and for the quick answer. It is highly appreciated! I have reported the issue internally to the SDK team.
Regards,
Terje
Hi,
Great!
Thanks for the report and for the quick answer. It is highly appreciated! I have reported the issue internally to the SDK team.
Regards,
Terje