mirror of
https://github.com/espressif/openthread.git
synced 2026-08-05 18:37:45 +00:00
[fuzz] avoid undefined enum values (#11549)
This commit is contained in:
@@ -107,6 +107,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
Log("Fuzz");
|
||||
|
||||
fdp.ConsumeData(&error, sizeof(error));
|
||||
VerifyOrExit((OT_ERROR_NONE <= error) && (error < OT_NUM_ERRORS));
|
||||
|
||||
fdp.ConsumeData(&frame, sizeof(frame));
|
||||
|
||||
frame.mLength = fdp.RemainingBytes();
|
||||
|
||||
Reference in New Issue
Block a user