MCPcopy Create free account
hub / github.com/bblanchon/ArduinoJson / LLVMFuzzerTestOneInput

Function LLVMFuzzerTestOneInput

extras/fuzzing/json_fuzzer.cpp:3–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls 2

deserializeJsonFunction · 0.85
serializeJsonFunction · 0.85

Tested by

no test coverage detected