MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / LLVMFuzzerTestOneInput

Function LLVMFuzzerTestOneInput

fuzz/fuzz.cpp:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23// see http://llvm.org/docs/LibFuzzer.html
24extern "C" int LLVMFuzzerTestOneInput(const uint8_t* input, size_t size) {
25 using namespace sonic_json;
26 Document dom;
27 WriteBuffer wb;
28 dom.Parse(reinterpret_cast<const char*>(input), size);
29 dom.Serialize(wb);
30 return 0;
31}

Callers

nothing calls this directly

Calls 1

ParseMethod · 0.80

Tested by

no test coverage detected