| 85 | } // namespace |
| 86 | |
| 87 | int 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 | } |
nothing calls this directly
no test coverage detected