pull/6160/head
Craig Tiller 9 years ago
parent 7bbcd74757
commit 22524376a1
  1. 5
      test/core/end2end/fuzzers/api_fuzzer.c

@ -431,7 +431,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
grpc_completion_queue *cq = grpc_completion_queue_create(NULL); grpc_completion_queue *cq = grpc_completion_queue_create(NULL);
while (!is_eof(&inp) || g_channel != NULL || g_server != NULL || while (!is_eof(&inp) || g_channel != NULL || g_server != NULL ||
pending_channel_watches > 0 || pending_pings > 0 || pending_ops > 0) { pending_channel_watches > 0 || pending_pings > 0 || pending_ops > 0 || active_call->type != ROOT || active_call->next != active_call) {
if (is_eof(&inp)) { if (is_eof(&inp)) {
if (g_channel != NULL) { if (g_channel != NULL) {
grpc_channel_destroy(g_channel); grpc_channel_destroy(g_channel);
@ -847,6 +847,9 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
GPR_ASSERT(g_channel == NULL); GPR_ASSERT(g_channel == NULL);
GPR_ASSERT(g_server == NULL); GPR_ASSERT(g_server == NULL);
GPR_ASSERT(active_call->type == ROOT);
GPR_ASSERT(active_call->next == active_call);
gpr_free(active_call);
grpc_completion_queue_shutdown(cq); grpc_completion_queue_shutdown(cq);
GPR_ASSERT( GPR_ASSERT(

Loading…
Cancel
Save