Use a parameter

pull/20666/head
Vijay Pai 5 years ago committed by GitHub
parent c7f296908e
commit 85105c6711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      test/core/util/one_corpus_entry_fuzzer.cc

@ -29,13 +29,14 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size);
extern bool squelch;
extern bool leak_check;
int main(int /*argc*/, char** argv) {
int main(int argc, char** argv) {
grpc_slice buffer;
squelch = false;
leak_check = false;
/* TODO(yashkt) Calling grpc_init breaks tests. Fix the tests and replace
* grpc_core::ExecCtx::GlobalInit with grpc_init and GlobalShutdown with
* grpc_shutdown */
GPR_ASSERT(argc > 1); /* Make sure that we have a filename argument */
GPR_ASSERT(
GRPC_LOG_IF_ERROR("load_file", grpc_load_file(argv[1], 0, &buffer)));
LLVMFuzzerTestOneInput(GRPC_SLICE_START_PTR(buffer),

Loading…
Cancel
Save