Skip to content
Commit 5883e897 authored by Johann Fischer's avatar Johann Fischer Committed by Christopher Friedt
Browse files

usb: bluetooth: check buffer tailroom before copying



If HCI packet length is greater than endpoint MPS or currently
received data block (over USB), next block could be larger
than allocated net_buf buffer.

Check buffer tailroom before copying data using net_buf_add_mem().

Signed-off-by: default avatarJohann Fischer <johann.fischer@nordicsemi.no>
parent 20899f9f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment