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

bluetooth: hci_raw: avoid possible memory overflow in bt_buf_get_tx()



Function bt_buf_get_tx(), which is used to allocate buffer from
fixed-size pool, does not check size argument before copying
the data with the length size into fixed-size buffer, wich may
not be large enough.

Check immediately before copying if the tailroom of the buffer
is large enough.

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