Skip to content
Commit 02cee093 authored by Carles Cufi's avatar Carles Cufi
Browse files

drivers: bluetooth: spi: Check lengths in incoming headers



So far the lengths provided in event and ACL packets were not being
checked at all, which could have caused an overflow if the contents were
not to fit inside the net_buf.
Check the length and discard the packet when it doesn't fit.

Signed-off-by: default avatarCarles Cufi <carles.cufi@nordicsemi.no>
parent fef2e30b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment