[riot-notifications] [RIOT-OS/RIOT] nrf802154: Validate frame length before dst filter (#11191)

Koen Zandberg notifications at github.com
Thu Mar 14 18:58:53 CET 2019

### Contribution description

This PR adds a length check to the received frame. This prevents the destination filter check in the driver from reading beyond the received frame length. This increases the time spent in the receive part of the interrupt by 0.875µs (from 6.75µs to 7.625µs).

Also requesting a review from @miri64 and @haukepetersen as they probably also have an opinion on the additional check here.

### Testing procedure

Basic receive validation should be enough. 
Before this PR it should have been possible to trigger a netif receive operation on an incorrect frame after a valid frame was received.

### Issues/PRs references

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * nrf802154: Validate frame length before dst filter

-- File Changes --

    M cpu/nrf52/radio/nrf802154/nrf802154.c (20)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190314/6460e181/attachment.html>

More information about the notifications mailing list