MCPcopy Create free account
hub / github.com/CodeIntelligenceTesting/jazzer / main

Function main

launcher/jazzer_main.cpp:87–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85} // namespace
86
87int main(int argc, char **argv) {
88#if !defined(__ANDROID__)
89 rules_jni_init(argv[0]);
90#endif
91
92 for (int i = 1; i < argc; ++i) {
93 const std::string &arg = argv[i];
94 std::vector<std::string> split =
95 absl::StrSplit(arg, absl::MaxSplits('=', 1));
96 if (split.size() < 2) {
97 continue;
98 }
99 if (split[0] == "--cp") {
100 FLAGS_cp = split[1];
101 } else if (split[0] == "--jvm_args") {
102 FLAGS_jvm_args = split[1];
103 } else if (split[0] == "--additional_jvm_args") {
104 FLAGS_additional_jvm_args = split[1];
105 } else if (split[0] == "--agent_path") {
106 FLAGS_agent_path = split[1];
107 }
108 }
109
110 StartLibFuzzer(std::unique_ptr<jazzer::JVM>(new jazzer::JVM()),
111 std::vector<std::string>(argv + 1, argv + argc));
112}

Callers

nothing calls this directly

Calls 2

StartLibFuzzerFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected