[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
@@ -56,10 +56,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
instance = otInstanceInitSingle();
otCliUartInit(instance);
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));
buf = static_cast<uint8_t *>(malloc(size));