aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/http/response_fuzzer.cc
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-12-05 21:19:52 -0800
committerGravatar GitHub <noreply@github.com>2017-12-05 21:19:52 -0800
commita3df36cc2505a89c2f481eea4a66a87b3002844a (patch)
tree72385cc865094115bc08cb813201d48cb09840bb /test/core/http/response_fuzzer.cc
parent9dbb6e3a28ae9c5ed3c97913c4c363b15eb7b2cc (diff)
parent73bb67d054ecb952f10649cc42c998ab7ea8facd (diff)
Merge pull request #13058 from yashykt/execctx
All instances of exec_ctx being passed around in src/core removed
Diffstat (limited to 'test/core/http/response_fuzzer.cc')
-rw-r--r--test/core/http/response_fuzzer.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/core/http/response_fuzzer.cc b/test/core/http/response_fuzzer.cc
index 2a793fddd4..fc0904b1db 100644
--- a/test/core/http/response_fuzzer.cc
+++ b/test/core/http/response_fuzzer.cc
@@ -19,6 +19,7 @@
#include <stdint.h>
#include <string.h>
+#include <grpc/grpc.h>
#include <grpc/support/alloc.h>
#include "src/core/lib/http/parser.h"
@@ -29,6 +30,7 @@ bool leak_check = true;
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
grpc_http_parser parser;
grpc_http_response response;
+ grpc_init();
memset(&response, 0, sizeof(response));
grpc_http_parser_init(&parser, GRPC_HTTP_RESPONSE, &response);
grpc_slice slice = grpc_slice_from_copied_buffer((const char*)data, size);
@@ -37,5 +39,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
grpc_slice_unref(slice);
grpc_http_parser_destroy(&parser);
grpc_http_response_destroy(&response);
+ grpc_shutdown();
return 0;
}