msgpack_fuzzer.cpp 290 B

1234567891011
  1. #include <ArduinoJson.h>
  2. extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
  3. DynamicJsonDocument doc(4096);
  4. DeserializationError error = deserializeMsgPack(doc, data, size);
  5. if (!error) {
  6. std::string json;
  7. serializeMsgPack(doc, json);
  8. }
  9. return 0;
  10. }