[error] force error checking (#4784)

This commit is contained in:
kangping
2020-05-06 11:17:58 -07:00
committed by GitHub
parent 6e8f2c9913
commit 49f36f8c24
96 changed files with 792 additions and 741 deletions
+4 -4
View File
@@ -55,10 +55,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
FuzzerPlatformInit();
instance = otInstanceInitSingle();
otLinkSetPanId(instance, panId);
otIp6SetEnabled(instance, true);
otThreadSetEnabled(instance, true);
otThreadBecomeLeader(instance);
IgnoreError(otLinkSetPanId(instance, panId));
IgnoreError(otIp6SetEnabled(instance, true));
IgnoreError(otThreadSetEnabled(instance, true));
IgnoreError(otThreadBecomeLeader(instance));
settings.mLinkSecurityEnabled = (data[0] & 0x1) != 0;
settings.mPriority = OT_MESSAGE_PRIORITY_NORMAL;