mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-19 11:33:51 +01:00
The termination condition implemented in gnrc_pktbuf_malloc does not work when using the sock interface as sock copies packet data to a local buffer and frees the packet afterwards. As such, the fuzzing application would exit before performing any input processing. For this reason, the termination condition in gnrc_pktbuf_malloc is disabled when using sock. Instead, the application terminates if gnrc_sock_recv previously returned the fuzzing packet. The underlying assumption of this implementation is that gnrc_sock_recv is called in a loop.