aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2018-11-30 10:26:38 -0800
committerGravatar ncteisen <ncteisen@gmail.com>2018-11-30 10:27:34 -0800
commit475ccfd110c6dfd0232cd8feedea7e4b8c42a82a (patch)
tree1933e94aef050376b51f429bd0957a9004cea831
parent3eb6c4779d0d132d1d5c7e17f7ef14812324c820 (diff)
Fix ubsan
-rw-r--r--test/cpp/microbenchmarks/bm_call_create.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cpp/microbenchmarks/bm_call_create.cc b/test/cpp/microbenchmarks/bm_call_create.cc
index 8d12606434..a0157c66c2 100644
--- a/test/cpp/microbenchmarks/bm_call_create.cc
+++ b/test/cpp/microbenchmarks/bm_call_create.cc
@@ -526,7 +526,7 @@ static void BM_IsolatedFilter(benchmark::State& state) {
grpc_core::ExecCtx exec_ctx;
size_t channel_size = grpc_channel_stack_size(
- filters.size() == 0 ? nullptr : &filters[0], filters.size());
+ filters.size() == 0 ? nullptr : filters.data(), filters.size());
grpc_channel_stack* channel_stack =
static_cast<grpc_channel_stack*>(gpr_zalloc(channel_size));
GPR_ASSERT(GRPC_LOG_IF_ERROR(