Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions subsys/bluetooth/mesh/pb_adv.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,13 @@ static void gen_prov_start(struct prov_rx *rx, struct net_buf_simple *buf)
return;
}

if (link.rx.buf->len < buf->len) {
LOG_ERR("Invalid declared provisionig PDU length (%u > %u)", buf->len,
link.rx.buf->len);
prov_failed(PROV_ERR_NVAL_FMT);
return;
}

if (START_LAST_SEG(rx->gpc) > 0 && link.rx.buf->len <= 20U) {
LOG_ERR("Too small total length for multi-segment PDU");
prov_failed(PROV_ERR_NVAL_FMT);
Expand Down
Loading