mirror of
https://github.com/espressif/openthread.git
synced 2026-08-26 12:11:17 +00:00
[fuzz] process pending tasklets to increase coverage (#3617)
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include <openthread/ip6.h>
|
||||
#include <openthread/link.h>
|
||||
#include <openthread/message.h>
|
||||
#include <openthread/tasklet.h>
|
||||
#include <openthread/thread.h>
|
||||
#include <openthread/thread_ftd.h>
|
||||
|
||||
@@ -71,6 +72,11 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
|
||||
message = NULL;
|
||||
|
||||
while (otTaskletsArePending(instance))
|
||||
{
|
||||
otTaskletsProcess(instance);
|
||||
}
|
||||
|
||||
exit:
|
||||
|
||||
if (message != NULL)
|
||||
|
||||
Reference in New Issue
Block a user