mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
e0570181e4
Since RIOT is an operating system the native binary will never terminate [0]. The termination condition for fuzzing GNRC is that the packet was handled by the network stack and therefore freed. If it is never freed we will deadlock meaning a memory leak was found, afl should be able to detect this through timeouts. This is currently only supported for gnrc_pktbuf_malloc since this is the pktbuf implementation I used for fuzzing. Implementing this in pktbuf.h is not possible. [0]: Except NATIVE_AUTO_EXIT is defined, however, even with that define set RIOT will only terminate when all threads terminated. Unfortunately, gnrc_udp and other network threads will never terminate. |
||
---|---|---|
.. | ||
gnrc_pktbuf_malloc.c | ||
Makefile |