MCPcopy Create free account
hub / github.com/HexHive/NASS / startFuzzing

Function startFuzzing

fans/fuzzer-engine/fuzzer/src/main.cpp:33–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 init_jvm(&vm, &env);
32}
33void startFuzzing() {
34 FUZZER_LOGI("Start fuzzing...");
35 Generator gen;
36 Executor executor;
37 status_t ret;
38 unsigned long iteration = 0;
39 // string stop = "Y";
40 while (true) {
41 FUZZER_LOGI(
42 "-------------------------------------------------------------------");
43 printf("Fuzzer iteration %ld\n", iteration);
44 Transaction tx = gen.generateTx();
45 tx.dumpsha1(iteration);
46 printf("executing transaction\n ");
47 ret = executor.run(tx);
48 printf("done sending request\n");
49 // sleep(1);
50 // if (stop == "Y") {
51 // cin >> stop;
52 // }
53 iteration++;
54 FUZZER_LOGI(
55 "-------------------------------------------------------------------");
56 }
57}
58
59int main(int argc, char *argv[]) {
60

Callers 1

mainFunction · 0.70

Calls 3

generateTxMethod · 0.45
dumpsha1Method · 0.45
runMethod · 0.45

Tested by

no test coverage detected