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

Function GetClassPath

launcher/jvm_tooling.cpp:210–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208#endif
209
210std::string GetClassPath() {
211 // combine class path from command line flags and JAVA_FUZZER_CLASSPATH env
212 // variable
213 std::string class_path = absl::StrFormat("-Djava.class.path=%s", FLAGS_cp);
214 const auto class_path_from_env = std::getenv("JAVA_FUZZER_CLASSPATH");
215 if (class_path_from_env) {
216 class_path += absl::StrCat(ARG_SEPARATOR, class_path_from_env);
217 }
218
219 class_path += absl::StrCat(ARG_SEPARATOR, getInstrumentorAgentPath());
220 return class_path;
221}
222
223JVM::JVM() {
224 std::string class_path = GetClassPath();

Callers 1

JVMMethod · 0.85

Calls 1

getInstrumentorAgentPathFunction · 0.85

Tested by

no test coverage detected