[riot-notifications] [RIOT-OS/RIOT] nrf802154: don't call memcpy if iolist->iol_len==0 (#11176)

Koen Zandberg notifications at github.com
Wed Mar 13 21:17:44 CET 2019


### Contribution description

Should fix an ubsan complaint as memcpy with `len==0` is undefined.

### Testing procedure

Preferably with the procedure lined out in #11163

### Issues/PRs references

related: #10782 and #11163 
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/11176

-- Commit Summary --

  * nrf802154: don't call memcpy if iolist->iol_len==0

-- File Changes --

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

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/11176.patch
https://github.com/RIOT-OS/RIOT/pull/11176.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11176
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190313/d200074e/attachment-0001.html>


More information about the notifications mailing list