mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-02 21:31:00 +02:00
12 lines
278 B
C++
12 lines
278 B
C++
#include <ArduinoJson.h>
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
|
DynamicJsonDocument doc;
|
|
DeserializationError error = deserializeJson(doc, data, size);
|
|
if (!error) {
|
|
std::string json;
|
|
serializeJson(doc, json);
|
|
}
|
|
return 0;
|
|
}
|