MCPcopy Create free account
hub / github.com/beefytech/Beef / QueueFile

Method QueueFile

BeefFuzz/FuzzApp.cpp:126–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126bool FuzzApp::QueueFile(const char* data, size_t len)
127{
128 bool worked = true;
129 void* bfParser = BfSystem_CreateParser(mSystem, (mCELibProject != NULL) ? mCELibProject : mProject);
130 BfParser_SetSource(bfParser, data, len, "Fuzz.bf");
131 //bfParser.SetCharIdData(charIdData);
132 worked &= BfParser_Parse(bfParser, mPassInstance, false);
133 worked &= BfParser_Reduce(bfParser, mPassInstance);
134 worked &= BfParser_BuildDefs(bfParser, mPassInstance, NULL, false);
135 return worked;
136}
137
138bool FuzzApp::QueuePath(const StringImpl& path)
139{

Callers 1

LLVMFuzzerTestOneInputFunction · 0.45

Calls 4

BfParser_SetSourceFunction · 0.85
BfParser_ParseFunction · 0.85
BfParser_ReduceFunction · 0.85
BfParser_BuildDefsFunction · 0.85

Tested by

no test coverage detected