mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 01:53:51 +01:00
This adds a unit test to nanocoap that checks that nanocoap's `coap_parse()` indeed returns `-EBADMSG` when a CoAP Option exceeds the packet's boundaries. This is relied upon in the option parsing code at various places by omitting the bounds checking, so we should better make sure that bounds checking is done correctly here and those functions can indeed rely upon bounds checking being done correctly before.