commit | acc7cfaadf442e5945fb048af5ace12deadd065e | [log] [tgz] |
---|---|---|
author | Robert Lubos <robert.lubos@nordicsemi.no> | Tue Jul 18 15:52:11 2023 +0200 |
committer | Chris Friedt <chrisfriedt@gmail.com> | Mon Oct 02 14:55:05 2023 -0400 |
tree | 033cbb5009177a3f5a469cb1b3b0e981dcc4ee8c | |
parent | f9a56bcfd460be100f5c71914b524ccf70e1f111 [diff] |
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: Robert Lubos <robert.lubos@nordicsemi.no>