MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / LLVMFuzzerTestOneInput

Function LLVMFuzzerTestOneInput

oss-fuzz/main.cpp:73–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t dataSize);
72
73int LLVMFuzzerTestOneInput(const uint8_t *data, size_t dataSize)
74{
75 if (dataSize < 10000) {
76 const std::string code = generateCode2(data, dataSize);
77 doCheck(reinterpret_cast<const unsigned char*>(code.data()), code.size());
78 }
79 return 0;
80}
81#else
82int main(int argc, char * argv[])
83{

Callers

nothing calls this directly

Calls 4

generateCode2Function · 0.85
doCheckFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected