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

Function FuzzInit

BeefFuzz/BeefFuzz.cpp:24–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22BF_IMPORT void BF_CALLTYPE IDEHelper_ProgramDone();
23
24static void FuzzInit()
25{
26 BfpSystem_SetCommandLine(0, NULL);
27
28 BfpThread_SetName(NULL, "MainThread", NULL);
29
30 BfpSystem_Init(BFP_VERSION, BfpSystemInitFlag_None);
31
32 IDEHelper_ProgramStart();
33
34 gApp = new FuzzApp();
35 gApp->SetTargetPath("fuzz_testd");
36 gApp->AddDefine("CLI");
37 gApp->AddDefine("DEBUG");
38 gApp->SetStartupObject("fuzz_test.Program");
39 gApp->SetLinkParams("./libBeefRT_d.a ./libBeefySysLib_d.so -ldl -lpthread -Wl,-rpath -Wl,$ORIGIN");
40
41 BF_ASSERT(gApp->Init());
42}
43
44void trimwhitespace(const uint8_t*& str, size_t& len)
45{

Callers 1

LLVMFuzzerTestOneInputFunction · 0.85

Calls 5

IDEHelper_ProgramStartFunction · 0.85
BfpSystem_SetCommandLineFunction · 0.50
BfpThread_SetNameFunction · 0.50
BfpSystem_InitFunction · 0.50
InitMethod · 0.45

Tested by

no test coverage detected