Skip to content
Commit 3183ff3f authored by Anders Storrø's avatar Anders Storrø Committed by Carles Cufí
Browse files

Bluetooth: Mesh: Add buf size check in comp p1 get



According to mesh 1.1 spec (4.4.1.2.2 Composition Data state):
“If the complete list of models does not fit in the Data field, the
element shall not be reported.“

The implementation of bt_mesh_comp_data_get_page_1 does
not consider this, and further it will assert the device if the passed
buffer is to small.

This commit adds a check that prevents populating passed buffer
if the full element entry wont fit in the buffer.

Signed-off-by: default avatarAnders Storrø <anders.storro@nordicsemi.no>
parent 1e471eb2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment