pull/6160/head
Craig Tiller 9 years ago
parent 2ca75bf168
commit 41703589dc
  1. 8
      test/core/end2end/fuzzers/api_fuzzer.c

@ -652,12 +652,20 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
op = &ops[i]; op = &ops[i];
switch (op->op) { switch (op->op) {
case GRPC_OP_SEND_INITIAL_METADATA: case GRPC_OP_SEND_INITIAL_METADATA:
for (size_t j = 0; j < op->data.send_initial_metadata.count; j++) {
gpr_free((void*)op->data.send_initial_metadata.metadata[j].key);
gpr_free((void*)op->data.send_initial_metadata.metadata[j].value);
}
gpr_free(op->data.send_initial_metadata.metadata); gpr_free(op->data.send_initial_metadata.metadata);
break; break;
case GRPC_OP_SEND_MESSAGE: case GRPC_OP_SEND_MESSAGE:
grpc_byte_buffer_destroy(op->data.send_message); grpc_byte_buffer_destroy(op->data.send_message);
break; break;
case GRPC_OP_SEND_STATUS_FROM_SERVER: case GRPC_OP_SEND_STATUS_FROM_SERVER:
for (size_t j = 0; j < op->data.send_status_from_server.trailing_metadata_count; j++) {
gpr_free((void*)op->data.send_status_from_server.trailing_metadata[j].key);
gpr_free((void*)op->data.send_status_from_server.trailing_metadata[j].value);
}
gpr_free(op->data.send_status_from_server.trailing_metadata); gpr_free(op->data.send_status_from_server.trailing_metadata);
gpr_free((void*)op->data.send_status_from_server.status_details); gpr_free((void*)op->data.send_status_from_server.status_details);
break; break;

Loading…
Cancel
Save