Added MessagePack fuzzing

This commit is contained in:
Benoit Blanchon
2018-06-07 10:36:57 +02:00
parent 4ff6809bc5
commit a9a730fd74
41 changed files with 74 additions and 48 deletions

View File

@ -0,0 +1,11 @@
#include <ArduinoJson.h>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
DynamicJsonDocument doc;
DeserializationError error = deserializeMsgPack(doc, data, size);
if (!error) {
std::string json;
serializeMsgPack(doc, json);
}
return 0;
}