Add missing exec ctx to public api (#28134)

pull/28136/head
Craig Tiller 3 years ago committed by GitHub
parent 84525ae029
commit 4573ee8491
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/lib/resource_quota/api.cc
  2. 117
      test/core/end2end/fuzzers/api_fuzzer_corpus/clusterfuzz-testcase-minimized-api_fuzzer-5590514309398528.test

@ -19,6 +19,7 @@
#include <grpc/grpc.h>
#include "src/core/lib/gpr/useful.h"
#include "src/core/lib/iomgr/exec_ctx.h"
namespace grpc_core {
@ -94,6 +95,7 @@ extern "C" void grpc_resource_quota_unref(grpc_resource_quota* resource_quota) {
extern "C" void grpc_resource_quota_resize(grpc_resource_quota* resource_quota,
size_t new_size) {
grpc_core::ExecCtx exec_ctx;
grpc_core::ResourceQuota::FromC(resource_quota)
->memory_quota()
->SetSize(new_size);

@ -0,0 +1,117 @@
actions {
create_server {
channel_args {
key: "grpc.resource_quota"
resource_quota {
}
}
channel_args {
}
}
}
actions {
create_channel {
target: "dns:server"
channel_args {
resource_quota {
}
}
channel_args {
i: 1
}
}
}
actions {
create_call {
method {
value: "dns:sers:s"
intern: true
}
timeout: 999962120
}
}
actions {
create_call {
method {
value: "dns:se0s[s\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\001\000W\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000D08796287\000\000\000\000\000\000\000\000\000\000\000\000\000"
}
host {
value: "dns:sers:s"
intern: true
}
timeout: 1000000000
}
}
actions {
get_peer {
}
}
actions {
queue_batch {
operations {
send_initial_metadata {
}
}
operations {
flags: 1634992128
}
}
}
actions {
change_active_call {
}
}
actions {
advance_time: 10000000
}
actions {
queue_batch {
}
}
actions {
advance_time: 10000000
}
actions {
watch_connectivity: 10131072
}
actions {
advance_time: 80
}
actions {
create_call {
method {
value: "dns:sers:ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss"
intern: true
}
host {
value: "dns:sers:s"
intern: true
}
timeout: 999962120
}
}
actions {
poll_cq {
}
}
actions {
destroy_call {
}
}
actions {
resize_resource_quota: 0
}
actions {
queue_batch {
operations {
send_initial_metadata {
}
}
operations {
flags: 1634992128
}
}
}
actions {
disable_tracer: "dns:sers:s"
}
Loading…
Cancel
Save