Skip to content
Commit acc7cfaa authored by Robert Lubos's avatar Robert Lubos Committed by Chris Friedt
Browse files

drivers: ieee802154_nrf5: Add payload length check on TX



In case upper layer does not follow the convention, and the net_pkt
provided to the nRF 15.4 driver had a payload larger than the maximum
payload size of an individual 15.4 frame, the driver would end up with
buffer overflow.

Fix this by adding an extra payload_len check before attempting to copy
the payload to the internal buffer.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent f9a56bcf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment