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